summaryrefslogtreecommitdiff
path: root/vcl/osx
AgeCommit message (Collapse)Author
2014-09-18fdo#82577: Handle FontNoel Grandin
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
2014-09-15loplugin:salboolStephan Bergmann
Change-Id: I1ff0990052ed224a7518cd52e9b9087b5777b7b6
2014-09-13mac: clean-up obsolete conditional code based on old SDKNorbert Thiebaud
Change-Id: Ie2d476780a48b5815961598e214343d5def962c1
2014-09-13vcl: SalFrame::Enable() is not used anywhere so removingChris Sherlock
Change-Id: I851c414aa9e95c4d2c3ddb44deb5835656d16f87
2014-09-03fdo#80474: Fix the check whether the window is active on OS X.Jan Holesovsky
Change-Id: I68d7d11a93f5d741f2295ef183b2b607ad6833fc Reviewed-on: https://gerrit.libreoffice.org/11266 Reviewed-by: Jan Holesovsky <kendy@collabora.com> Tested-by: Jan Holesovsky <kendy@collabora.com>
2014-09-02prevent potential crash if no SystemWindowData is passedMarkus Mohrhard
Change-Id: I92a084bba88a4c34e93aac9b547a986ea6381790
2014-09-02fix indentationMarkus Mohrhard
Change-Id: I558b6c0c1be917fbf6df722d4f0268c271bb888c
2014-09-02fix buildMarkus Mohrhard
Change-Id: I13c67763ec3cb940292199f3e9e0f3942446959f
2014-09-02fix indentationMarkus Mohrhard
Change-Id: I4f299e510fecb57f763818743d357ae6bf2333af
2014-09-02support legacy and core context on OSXMarkus Mohrhard
Change-Id: Ib8cadb3f182ce49c0ca8b6ccaa95960eb8e5f9ae
2014-09-02remove unused methodMarkus Mohrhard
Change-Id: I17d3e3fa4671d0004e2d7918ea3bcad1a7bcd2b5
2014-09-02use SystemWindowData to request a NSOpenGLWindowMarkus Mohrhard
Change-Id: Ief50a2fc533846cd61be66b1ea166a992942083b
2014-09-02switch to a NSOpenGLView implementationMarkus Mohrhard
Change-Id: Ifed59a9e899abc900ddf27378eec6b641be061d3
2014-08-25fdo#62054 Enable "Select All", "Undo" and "Redo" in "Save as..." on OS XMatthew J. Francis
Change-Id: I2051f54b0b031dcab4918c8c187ed434842ffdd4 Reviewed-on: https://gerrit.libreoffice.org/11104 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2014-08-23fdo#82577: Handle KeyCodeTor Lillqvist
Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
2014-08-12fdo#39477: Mac Keyboard shortcut Option key ko in Customize dialogJulien Nabet
There's still a problem of order of symbols between menu shortcut and the 2 shortcuts in Customize dialog Change-Id: I7d8235130e8ddb8aa510a20cf803fbe81038b023 Reviewed-on: https://gerrit.libreoffice.org/10600 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-08-04loplugin:externandnotdefinedStephan Bergmann
Change-Id: I5337cd288e3f5d6f7c42d7a1f5c9b2dbce5f06b4
2014-08-04loplugin:externandnotdefinedStephan Bergmann
Change-Id: I5f0c34a44898637b3c0d3d507777cbc7ace8b656
2014-07-11new loplugin: externalandnotdefinedNoel Grandin
Find "missing headers," where a function is declared directly in the .cxx (as extern) and not defined, and should arguably instead be declared in an include file. Change-Id: I6d83ee432b2ab0cd050aec2b27c3658d32ac02a2
2014-07-11-Wdeprecated-declarations: first deprecated in OS X 10.10rbuj
vcl/osx/salframeview.mm:201:16: warning: 'useOptimizedDrawing:' is deprecated: first deprecated in OS X 10.10 [-Wdeprecated-declarations] Change-Id: I6025de6c23a73c625ddfe8398dfd91bd838fe83c Reviewed-on: https://gerrit.libreoffice.org/10122 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-11-Wdeprecated-declarations: first deprecated in OS X 10.10rbuj
vcl/osx/printaccessoryview.mm:362:37: warning: 'NSScaleProportionally' is deprecated: first deprecated in OS X 10.10 - Use NSImageScaleProportionallyDown instead [-Wdeprecated-declarations] Available in OS X v10.0 and later. Deprecated in OS X v10.10. enum { NSScaleProportionally = 0, NSScaleToFit, NSScaleNone }; Available in OS X v10.5 and later. enum { NSImageScaleProportionallyDown = 0, NSImageScaleAxesIndependently, NSImageScaleNone, NSImageScaleProportionallyUpOrDown }; Change-Id: I457196e3e8f2ebcc10e9e0fa87755e5e3dba207c Reviewed-on: https://gerrit.libreoffice.org/10121 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-07-10use SimpleReferenceObject in vcl/osx moduleNoel Grandin
to replace hand-rolled version Change-Id: Idf3f2dd20bacd3cb3de64931027ef62d9116200f
2014-07-02fix 'NSCursor' may not respond to operationNotAllowedCursor,dragCopyCursorDouglas Mencken
related commit: e4653eee7680831e6d0995d51d80fb63309c03ab Change-Id: Iba30c90336bf08d15d5990d6e1380867eee3564e Reviewed-on: https://gerrit.libreoffice.org/10013 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-07-02fix 'NSImage' may not respond to '-lockFocusFlipped:'Douglas Mencken
related commit: b3818f53812053e94196a58bbe474e2c3b72ac69 Change-Id: Ica27b3c2e474ebb85a69149e35021835f8183b69 Reviewed-on: https://gerrit.libreoffice.org/10011 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
2014-06-30Remove double assignmentPeter Senna Tschudin
The semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r@ expression i,f; position p1,p2; @@ ( (<+...i++...+>) = ...; | (<+...++i...+>) = ...; | (<+...i--...+>) = ...; | (<+...--i...+>) = ...; | i = <+...f(...)...+>; | i@p1 = ...; ( i = <+...i...+>; | i = <+...f(...)...+>; | i@p2 = ...; ) ) @@ expression i; position r.p1,r.p2; @@ * i@p1 = ...; i@p2 = ...; // </smpl> Change-Id: Ifacb878d58486f2645560592484ce24b2bc0bd6f Reviewed-on: https://gerrit.libreoffice.org/9968 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-06-26Related: #i122471# make the Mac lookup feature handle the correct wordHerbert Dürr
(cherry picked from commit 0a4564b42de0fc61253ae4e69039860c09e53eba) Conflicts: vcl/osx/a11ytextattributeswrapper.mm Change-Id: I786815feb847a2a340d2e3d24c9a8a01bb7ace7c
2014-06-23Resolves: #i124970# fix DocumentFocusListener::notifyEvent's...Herbert Dürr
handling of IndexOutOfBoundsException the DocumentFocusListener::notifyEvent() throw list only allows a RuntimeException to propagate. The methods called in notifyEvent() allow IndexOutOfBoundsException though, so it must be handled in all cases to prevent C++ from invoking its unexpected() abort mechanisms. Ceterum censeo, non-empty throw lists should be removed altogether... (cherry picked from commit 4da0e442f0fd4838e93e7316c24cfeef9289207d) Conflicts: vcl/osx/documentfocuslistener.cxx vcl/unx/gtk/a11y/atkutil.cxx Change-Id: Ie0b783832314ee5ec376a0c3c2cd67e4a70e218b
2014-06-18fix 'NSWindow' may not respond to '+windowNumbersWithOptions'Douglas Mencken
conditionally reverts 1b89f986f0e7e6303c4e44cb1ca5d42a5c78c8d4 Change-Id: I13aa24286dab52c9e4af798c8b6d9bf407bb7069 Reviewed-on: https://gerrit.libreoffice.org/9760 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-16fix keyboard input on OS X < 10.6Douglas Mencken
Since commit e4dc93f5, LibreOffice just beeps on any key press: it's impossible to add symbols by using keyboard. This patch fixes that. conditionally reverts e4dc93f5d8d0df50f1a8b4594220d0c57703e03d Change-ID: Id30e30775c0d0224954b8a1f05fd0d8d5f39cd4e Reviewed-on: https://gerrit.libreoffice.org/9793 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-13Don't use the CoreUI private framework when sandboxed (i.e., for App Store)Tor Lillqvist
This conditionally reverts 0c7e6080519014f1fb345ed25e2f12c9a043b3ae. Change-Id: I462016cd43c489fced7fb3739aa98c521d52f78e
2014-06-13loplugin:staticcallStephan Bergmann
Change-Id: Id5c17212031b6710f38413c833c0df2b33f42475
2014-06-13fix build error "error: NSPrintJobSavingURL was not declared in this scope"Douglas Mencken
see commits: c5c317ed20933c6508b35c34039df31669943f1c Change-Id: I3a886bde11dc3620cffeb3e2e579c7b37285d9c5 Reviewed-on: https://gerrit.libreoffice.org/9759 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-12'NSNoUnderlineStyle' & ‘NSSingleUnderlineStyle’: Deprecated in OS X 10.9rbuj
Change-Id: If18df0c06a1bdec5ea54307f9c452a1edf533e15 Reviewed-on: https://gerrit.libreoffice.org/9740 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-06-05various: remove SAL_THROW macroNoel Grandin
Change-Id: I9464179a736b91f5bc32eb5e5e89b3b4e3da3494
2014-06-03WaE: 'convertBaseToScreen:' is deprecated: first deprecated in OS X 10.7Tor Lillqvist
Change-Id: I04cc155e69d25021d294bccc588450b1f20e1fde
2014-06-03WaE: 'scrollerWidth' is deprecated: first deprecated in OS X 10.7Tor Lillqvist
Change-Id: I2451687c10f91e7d5242b04974cb7bdd745de51c
2014-06-03WaE: 'NSPrintSavePath' is deprecated: first deprecated in OS X 10.6Tor Lillqvist
Change-Id: I810b42da1d62c66c2ab6fb7bb6f71d1d00115dfa
2014-06-03WaE: comparison of two values with different enumeration typesTor Lillqvist
Change-Id: I611eefd20043386d00984f76a28d111e1c0495f1
2014-06-03WaE: 'setFlipped' is deprecated: first deprecated in OS X 10.6Tor Lillqvist
Not sure if using lockFocusFlipped: has the same effect, but will see... Change-Id: I957874bcf59c2c521bd5b2b2ca6f44fb0400e64f
2014-06-03WaE: case value not in enumerated type 'NSEventSubtype'Tor Lillqvist
Change-Id: Iaf5de07b7f0da7294681b9cdc152575a756a73c7
2014-06-03Initial attempt at implementing NSTextInputClient instead of NSTextInputTor Lillqvist
NSTextInput was deprecated in 10.6. Change-Id: I6bce9e91a68014a6ca28bff6a820c27817f9baaf
2014-06-03WaE: 'NSCountWindows' is deprecated: first deprecated in OS X 10.6Tor Lillqvist
Change-Id: I7163d3821ac0dfc0d471cf31e98f72953c78d878
2014-06-01fdo#68849: Add header guards to all include filesJens Carl
Added header guards to files in directory vcl/ Change-Id: I76ad0c34f2b107d56e92c5a6a8f4c61554c93e2f Reviewed-on: https://gerrit.libreoffice.org/9597 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-05-29remove more unnecesary OUString constructor useNoel Grandin
when throwing exceptions Change-Id: I6edfb6b6745499f802b0e3c0e096a36fb7c32aac
2014-05-27Remove unnecessary semicolonsPeter Senna Tschudin
A simplified version of the semantic match that finds this problem is follows: (http://coccinelle.lip6.fr/) // <smpl> @r1@ statement S; position p,p1; @@ S@p1;@p @script:python r2@ p << r1.p; p1 << r1.p1; @@ if p[0].line != p1[0].line_end: cocci.include_match(False) @@ position r1.p; @@ -;@p // </smpl> Change-Id: Ib9708d37fbb4c6060f88d5dae3814a2d37b2091e Reviewed-on: https://gerrit.libreoffice.org/9493 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2014-05-25cppcheck: unusedFunctionThomas Arnhold
Change-Id: I81f2a4be65bbc9359e51accccb746f1e8ea48c4f
2014-05-23Related: #i124191# small cleanup for salframeview.mmHerbert Dürr
clean up some minor warts while the behaviour remains unchanged. (cherry picked from commit 8ba6a0be8a0ac9075b2faa68bf71245f4aff0d16) Conflicts: vcl/osx/salframeview.mm Change-Id: I613bf0f40429db6516f82e79438e86bffb7f71cb
2014-05-20Don't use two separate names for the same thingTor Lillqvist
Change-Id: Iad76d452d5dbaa03099c1a649d7f278b0151f340
2014-05-20We don't support the Apple Remote in sandboxed modeTor Lillqvist
Change-Id: Ie0a456647376b9d249850227d3481be5b4ee991d
2014-05-17Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part15Julien Nabet
Change-Id: I38e855966598342eb2352e70e04f7a5e09e54f83