summaryrefslogtreecommitdiff
path: root/vcl/aqua
AgeCommit message (Collapse)Author
2013-05-14Fix return type of SalYieldMutex::tryToAcquire() to match declarationTor Lillqvist
Change-Id: I3a659b736bede41dd4790e8ec062c81ac3fa03e5
2013-05-14SolarMutex does not belong into the URE interfaceStephan Bergmann
...so move it from osl/mutex.hxx to its own comphelper/solarmutex.hxx. It looks like a newbie mistake that 59e7685d8d812ee8773f57475cbe3aa2a0bdfc81 "Create an abstract interface to be used to implement a SolarMutex" put it here in the first place. I do not consider this an incompatible change really, as no external URE client code should have used SolarMutex anyway. (Also included some clean up, like removing unused {Clearable,Resettable}SolarGuard, and spelling out SolarGuard in the few places it is used.) Change-Id: I121ffb5b7cefbc19e88b5405e5a85ffc895be852
2013-05-10protect SalFrameView's isOpaque() method by an isAlive() checkHerbert Dürr
(cherry picked from commit feb1be19817d10e0ed1a18bada9c917f2a4532db) Change-Id: I9e6ddcf04047bdc905f00b709db84459112122db
2013-05-10Related: #i112873# check native widget's control value type...Herbert Dürr
before converting to SpinbuttonValue or ScrollbarValue Else problems like #i112873# or even crashes can and do happen. (cherry picked from commit d2fde1d34c3c28572b1b6b4780269c15dd4c2bef) Conflicts: vcl/unx/kde/salnativewidgets-kde.cxx Change-Id: I6429205ab41b3194577bc50aa02384c920e11ed2
2013-04-19remove unused component_canUnload functionsMatúš Kukan
Change-Id: Id3f41e2a620c47bb848718d0fc994739be2d64fc
2013-04-19fdo#31082 cursor visible during impress presentationjorendc
Change-Id: I8983676244d0b996c237cbfc487ed68a535803d1 Reviewed-on: https://gerrit.libreoffice.org/3376 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-04-15AquaA11yTextAttributesWrapper: trigraphs confuse llvm-g++ 4.2.1Michael Stahl
Change-Id: Ic45a2219c8352625f40619373f5828b981864fef
2013-04-10fix the A11Y text attribute color in AquaHerbert Dürr
Using the SalColor->CGFloat[] helper gets more of VCL into the scope which causes conflicting declarations between css::awt and vcl-classic font attributes so their namespace must be explicitly qualified (cherry picked from commit 5ffbf3126f57d2f6a3dc6874bca2ffbc29b99ffb) Conflicts: vcl/aqua/source/a11y/aqua11ytextattributeswrapper.mm Change-Id: Icc7d7125e508188a9a389014bbc2f40e90bc3e34
2013-04-09Related: fdo#62287 make it impossible to use a dead AquaSalFrameCaolán McNamara
Change-Id: Ie56a41e901ea26d5ea946260bdf25a903185be99
2013-04-09Related: #i120237# cache the updated frame reference in AquaSalGraphicsHerbert Dürr
(cherry picked from commit 6e4214e604f8aa86b08a7fbe315a80d7751ffc2d) Change-Id: Id10d49737ba773e95a3198997e25fbfd98708f65
2013-04-09Resolves: #i120237# workaround a crash on OSX...Herbert Dürr
when a VirtualDevice is reused that was created for a now dead window regression was introduced by the changes for #i116758# Patch-By: Herbert Duerr Suggested-By: Herbert Duerr Found-By: Herbert Duerr (cherry picked from commit 6550c7c0595670c10e340e2c7b41be7e128af40a) Change-Id: I1a813f128ad16e6eb840b22fbd14af49b34e11d0
2013-04-08GetGlyphOutlines is unusedTor Lillqvist
Change-Id: I9c5b60b52030110f4b308a9a75010fade2b8d575
2013-04-07mass removal of rtl:: prefixes for O(U)String*Luboš Luňák
Modules sal, salhelper, cppu, cppuhelper, codemaker (selectively) and odk have kept them, in order not to break external API (the automatic using declaration is LO-internal). Change-Id: I588fc9e0c45b914f824f91c0376980621d730f09
2013-04-07Drop workarounds for Mac OS X SDKs 10.4 and 10.5Tor Lillqvist
Change-Id: Ifa07f9b5613b4a75c5b72178cb276b9c0b495a62
2013-04-07Add comments to some questionable codeTor Lillqvist
Change-Id: I06121b065f360ecfeddb25c9e1487f4849e453a2
2013-04-07Log the ImplLayoutArgs parameter in AdjustLayout().Tor Lillqvist
Change-Id: Ib875973d31f71bab75973f683621118eb9cb927b
2013-04-03fdo#58807 bring Beep() for basic backThomas Arnhold
The functionality was removed by fdo#48549. This partially reverts 0f6101cfef4c2e45d9f1f1b3a61ef94799e4526b 0bdf6fc7c71c4c49e6d6f83d56ac953272ad16d5 85cb9084533605657aca0394afe4516058a8e4ef I changed the behavior to always beep, because only the basic macro function is using Beep(). Looks like the Beep macro function didn't even work correctly before the removal, because the default was to not beep for most platforms. So I set the volume from disable (0) to 50% for XBell(). Change-Id: I663ffb7af75d2fd6d2c1f94073e4412d9744de4a Reviewed-on: https://gerrit.libreoffice.org/3124 Reviewed-by: Thorsten Behrens <tbehrens@suse.com> Tested-by: Thorsten Behrens <tbehrens@suse.com>
2013-03-27Need <vcl/syswin.hxx> for WINDOWSTATE_*Tor Lillqvist
Change-Id: Ic4f729554d92652f38d783bb237448e8469e6faf
2013-03-27No need for two sets of names for the same exttextinput flag bitsTor Lillqvist
Change-Id: Ic5756d75bc86795a7add95694aef6fc9d1f6b9fa
2013-03-27No need for two sets of names for the same frame/window state bitsTor Lillqvist
Bin the SAL_FRAMESTATE_* defines which as the comment said had to be the same as the WINDOWSTATE_*] in syswin.hxx. Change-Id: I42fcd91db543821f007038e558872ba8f69e4a78
2013-03-26(author=pl) fix for transporting OOo types through OSX system clipboardHerbert Dürr
Change-Id: Idc00fbc8ac1adb04c76ecb4b641cfa055f5901b8
2013-03-25vcl: fix typoMichael Stahl
Change-Id: I606be5f7eea9290ac647b0369fcd3c279e9594d0
2013-03-25Introduce HAVE_GCC_PRAGMA_DIAGNOSTIC_{MODIFY,SCOPE}Stephan Bergmann
...replacing hard-coded GCC version checks. Those checks that guard #pragma GCC diagnostic ignored "-Wnon-virtual-dtor" appear relevant only for GCC itself, not Clang (which used to fail the old guards because it typically announces itself with a rather low __GNUC__/__GNUC_MINOR__ version), see 6e67c03dc0225fc66343546b14e902b9d238b1a3 "Enable -Wnon-virtual-dtor for GCC 4.6" Change-Id: I6bfa4d5caa6192e7a203ce829682bf6bb8d61a1b
2013-03-22blind try to fix MacOs buildingJulien Nabet
Change-Id: Ia6dac95a754c61a8f98120af1a703bd27d3be95c
2013-03-22get rid of two-argument compareToAsciiChristian Lohmaier
As I don't see a point in comparing a mimetype with only a substring, it probably could be a simple compareToAscii, but play it save and use startsWith. Change-Id: Ic33c8089283def615999ddf80cd12f6fe219ed17 Reviewed-on: https://gerrit.libreoffice.org/2907 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-21Re-work the vcl aspects of the iOS portTor Lillqvist
Don't try to use similar code as for OS X to manage windows, events etc. I.e. don't use UIKit in vcl to do that. Instead, just do as in the Android port, use the "headless" vcl backend. Do keep using CoreText, though, not FreeType & fontconfig. Start changing the iOS "Viewer" app to correspond to the Android "desktop" app (so it should be renamed). Work in progress since a long time, several crucial details still missing, but committing for now. Change-Id: Iac5fbf8def415e4d0d21e5200450a373420ad7ee
2013-03-20Improve previous __BIG_ENDIAN__ fixStephan Bergmann
Change-Id: Ic7ca080e00d94f93306f65ba17ffc23dd4d746e7
2013-03-20-Werror,-WundefStephan Bergmann
Change-Id: I197fcafa3d39e5ec312d7e0c56b076a479391a73
2013-03-19SetSalColor() and GetSalColor() are unusedTor Lillqvist
Change-Id: I1d33abe2e2ccb6d62895da70da89fbbaa0c3b426
2013-03-19removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStrings declarationsThomas Arnhold
s/(OUString\s+[a-zA-Z_][A-Za-z0-9_]*\s*)\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/$1\($2\)/gms Change-Id: Iad20f242c80c4bdc69df17e2d7a69d58ea53654b Reviewed-on: https://gerrit.libreoffice.org/2835 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-19automated removal of RTL_CONSTASCII_USTRINGPARAM for quoted OUStringsThomas Arnhold
Done with a perl regex: s/OUString\s*\(\s*RTL_CONSTASCII_USTRINGPARAM\s*\((\s*"[^")]*?"\s*)\)\s*\)/OUString\($1\)/gms Change-Id: Idf28320817cdcbea6d0f7ec06a9bf51bd2c3b3ec Reviewed-on: https://gerrit.libreoffice.org/2832 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-03-18SalData::drainThreadAutoreleasePool() is unusedTor Lillqvist
Change-Id: Idbb98b32ffc5970e236c9d319e0e8791b855e283
2013-03-12Polishing 7d1f4cdec307bb1e761bb5dd3d8231bba5833e10Chr. Rossmanith
Change-Id: I73334fca8429dc0ad4250ce638027fa52245dec4 Reviewed-on: https://gerrit.libreoffice.org/2676 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-12maybe fix MacOSX buildEike Rathke
Change-Id: I5a3842e95e45ee80a2a3fb7954fb16878ad16907
2013-03-12fix incorrectly applied patchLuboš Luňák
Change-Id: Ia35a4dc3c199d94cdaaefe0c632e6f08050ae63a
2013-03-11fdo#38838: Converting String/UniString to OUStringelixir
Change-Id: If64db96005fcd8a42e4fa24041867b99183965f9 Reviewed-on: https://gerrit.libreoffice.org/2586 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-03-11use startsWith() instead of compareToAscii()Thomas Arnhold
brain damage... Change-Id: I4dc63c7346f724eded9ac7b82cda25c2bb60beff
2013-03-02Typo fix: informations -> information and a few other adjacent typos.Gregg King
FDO:60724 Change-Id: I73ad9f1c37cbbcf28d996ed73c75cf09553e499b Reviewed-on: https://gerrit.libreoffice.org/2479 Reviewed-by: Eike Rathke <erack@redhat.com> Tested-by: Eike Rathke <erack@redhat.com>
2013-02-24fdo#38838 searched, replaced and removed String::CreateFromInt32().Jean-Noël Rouvignac
I ran the following code replace: s/(Uni|Xub)?String\s*::\s*CreateFromInt32/OUString::number/ And finally removed String::CreateFromInt32(). Change-Id: I53b26a59c68511ae09f0ee82cfade210d0de3fa5 Reviewed-on: https://gerrit.libreoffice.org/2279 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2013-02-20typo: allways -> alwaysAndras Timar
Change-Id: I48bd0161dd76c36eeaa39c45e9539584a4ef6841
2013-02-12fdo#46808, use constructor for datatransfer::MimeContentTypeFactoryNoel Grandin
Change-Id: I576a472e22ad0e3798f4b34d808ac320f13d3e6d
2013-01-30Remove unused DeInitSalMainStephan Bergmann
Change-Id: I8fd733fe6535cc4f9f299f53adc1821ce344a85c
2013-01-30Setting env vars in aqua's InitSalMain should long be unnecessaryStephan Bergmann
...see the comment at the start of InitSalMain in 95548c7b5ad2b388f077bf9bf2031ac5f6121d0e "Implemented InitSalMain() and DeInitSalMain() functions" for why this was relevant back in 2001. Change-Id: I2b2e5f261065d3b801ef20cca592009fa6b3f558
2013-01-29Do not call putenv with a temporary string argumentStephan Bergmann
These bad calls to putenv suddenly caused the buildIdFile string (macro-expanded from bootstraprc's UserInstallation) in cleanExtensionCache (desktop/source/app/app.cxx) to contain nonsense at least in a local libreoffice-4-0-0 of mine, as getenv("UserInstallation") started to return some non-null pointer pointing to garbage. Change-Id: Ib93fd4e1caef016bd0e00bf09800b9532824ac4b
2013-01-28Sprinkle some SAL_INFO debugging outputTor Lillqvist
To make it easier to compare to what goes on in the corresponding CoreText layout code. Change-Id: I18478cb7e28827a512b50573c8f7ac84b1cf1ece
2013-01-23More informative warning messagesTor Lillqvist
Change-Id: Ib6d94e6e695d4c675c05954fbf28af61bbaa05fe
2013-01-20Fix fallout from my earlier vcl changes todayTor Lillqvist
Change-Id: Iee869d254944383994d9c8da73603b71cafe85b8
2013-01-19AquaSalBitmap and IosSalBitmap were identical so unifyTor Lillqvist
Call it QuartzSalBitmap. The more we get rid of that "Aqua" term the better. Aqua is the name of a visual theme, not of an API. The Quartz 2D API is shared between OS X and iOS.
2013-01-19De-duplication of CoreText code and headers for OS X and iOSTor Lillqvist
Nominally renamed the AquaSalGraphics class to QuartzSalGraphics, as it isn't now then "Aqua" (Mac OS X) specific any more. Actually, for Mac OS X, because lots of code in vcl/aqua expects it to be called AquaSalGraphics (just like the alternative class used when using the obsolete ATSUI API on Mac OS X), use a #define to make it still be called AquaSalGraphics to the compiler's eyes. For iOS it can be called QuartzSalGraphics.
2013-01-19Use SAL_INFO instead of home-grown msgs_debugTor Lillqvist
If there is a need to optionally get a thread identifier or the function name into logging output (as msgs_debug did), we should figure out a way to do that in some elegant fashion in the sal logging macros instead of using some local solution in just one place in the code. Yes, the iOS and OS X CoreText code should be de-duplicated. Will happen soon.