Move OS X sandbox flag to config_features.h

Change-Id: I189fa06d13a78bcaa8e17b32756076473ced3641
Don't use deprecated API for OS X alias resolving

Change-Id: Ifaaec1863f12cd73d0a77c3367935f57675157e2
We only support 10.6 or later

No need to check whether running on 10.5 ("Leopard") or later.

Besides, Gestalt() is deprecated in 10.8.

Change-Id: I8d20d1e4d208eef8fbe980cbed4d70662cf4bb0d
WaE: 'UpdateSystemActivity' is deprecated: first deprecated in OS X 10.8

Instead use IOKit as described in
http://developer.apple.com/library/mac/#qa/qa1340/_index.html , said
to work in 10.6 or later, thus fine for us.

Change-Id: I1bfcc2b9bce6cdf5d7274e89f96b1739898fa735
Need the IOKit library now

Change-Id: Ib98fc2f683729d1c9fe6768c63a1d1a6614ba567
WaE: 'FSResolveAliasFile' is deprecated: first deprecated in OS X 10.8

Use the bookmark API instead.

Change-Id: I61fe91ea2c7287c52d45ddfee772ecfcfb5498b6
Don't use deprecated API

Change-Id: I1dfc8998eeeda31648a4b4fe95d40117686a866b
The PICT format was formally deprecated already in OS X v10.4

The documentation says: "The PICT format was formally deprecated in OS
X v10.4 along with QuickDraw. You should not be explicitly providing
or looking for PICT data on the pasteboard."

Change-Id: I01cc600286f9a2933a91e19bb611df08944ab997
Avoid deprecated API

Change-Id: I2537721bd6b0214c25590504751c39fb4661e2fe
Avoid deprecated API

Change-Id: I703e94b999382f52331a61050eaf3d31073f5a9c
Be a bit more lax when resolving bookmarks when sandboxed

Change-Id: I6ada3e660ee58f7937425eea40a4bbd82754f4b1
Use sandboxing when requested also for the app bundle in the dmg

Change-Id: I612be680e7aea2b098894aa4e11b10b471d34144
Adapt to NSPrintInfo API change

Change-Id: Idce313b30b46a81847e116c380f6fe8eb2953a35
Odd instability in what Bluetooth headers to include in OS X SDKs

Change-Id: Ia8e835373bea3287cf16f3d505dbb420c874fed3
Add a --nstemporarydirectory switch for potential use when sandboxed

Intentionally very brutally just exit after printing out what
NSTemporaryDirectory() returns, as this is for use only in unit testing, so
that makefiles can learn the app-specific sandboxed temp dir.

Change-Id: I96fba1399ffc43b09fe317c1b9db5af76432f4e0
Use a proper folder as "user installation" when sandboxed

A sandboxed soffice process (runnin smoketest) has no access to workdir.

Change-Id: I62ef94282df37ea710735f1305c1d95dd2b0a304
Actually the smoketest does not work for a sandboxed soffice on OS X

We can't create and bind Unix domain sockets, it seems, so bypass this
for now.

Change-Id: I85b84099f2d8afe860e0bc866e3ced3cb922ca63
Bypass the O_NONBLOCK resetting for now when sandboxed on OS X

The fcntl fails. Will have to check later whether we should also drop
using O_NONBLOCK when opening then.

Change-Id: I529a4d728563eb323e35487782f7fee88b2faa0c
The AppleRemote code is blocked by sandboxing so bypass it in that case

Change-Id: I0e86c82fb81732468cf0a60eb8ff1d0579986767
Make our File>Recent Documents work better when sandboxed

Store security scope bookmarks for files selected in the file picker
in the user data. (I looked into storing it in the LO "registry" in
the Histories/PickList thingies, but that was horribly complex.)

When opening a file, if we have stored a security scope bookmark for
it, use that while opening the file.

Change-Id: I347ae2dd815299441c17467d9b66a226061d0ed2