summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2016-05-11tdf#98924 In windows, change the keyboard layout per applicationJuergen Funk
reint the key maps when in windows change the language for the application Change-Id: I71045386b4fe4d6db5572effa07a2f01ce79e74f Reviewed-on: https://gerrit.libreoffice.org/23556 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2016-05-11loplugin:implicitboolconversionTor Lillqvist
Silly fix for "Implicit conversion (IntegralCast) from 'bool' to 'gint8' (aka 'signed char')". The GLib TRUE is defined as !FALSE, thus it is a bool value, which the loplugin doesn't then like being assigned to a 'signed char'. Change-Id: I04ae41c0ff89adad8962954e04215026b5f79c4c
2016-05-11There is nothing called 'flushAndSwap'Tor Lillqvist
Probably what is meant is the name of the function, which is doFlush(). Change-Id: Ia949a2f8ce19950b1cd0b676c5146488ce7182ee
2016-05-11Resolves: tdf#99709 native gtk3 menubar isn't accessible with F6Caolán McNamara
Change-Id: If772231e824e71c327103e147e3eef69e82339f6
2016-05-11make this cunning more explicitCaolán McNamara
Change-Id: Ie461646e076da4aa4b144c68e0e08c0424474ad8
2016-05-11gtk[3]: the frame argument is now unusedCaolán McNamara
Change-Id: Ib9989545495a8682d7cac97c02ab73d7c622aecf
2016-05-11convert SAL_FRAME_TOTOP to scoped enumNoel Grandin
Change-Id: Id996e1e6fc29f6323bd4e82785386de26d075cae Reviewed-on: https://gerrit.libreoffice.org/24834 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11Lost initialization of mbMouseOverStephan Bergmann
...with b0ea829f686b0cb690e2c2828389263f36ee7c5d "vcl : Simplify vcl::Window initialisation and destruction" Change-Id: I40aafecd746b4981206e338e4e65004624701dea
2016-05-11convert EXTTEXTINPUT_ATTR to scoped enumNoel Grandin
Change-Id: I94706bdea91d367fc8c2bbd482f6b4d8f55449d7 Reviewed-on: https://gerrit.libreoffice.org/24821 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11Convert BORDERWINDOW_STYLE to scoped enumNoel Grandin
Change-Id: Idbd538c69ebb40a319decc1e3a9cf06c99eb6423
2016-05-11Convert BORDERWINDOW_HITTEST to scoped enumNoel Grandin
Change-Id: I67341099c5465cc77840a8087d186b825d79048d
2016-05-11Convert FONT_FAMILY to scoped enumNoel Grandin
Change-Id: Id7cc5c76ba45cdd6a06a981ad14e83713cfe5c1a Reviewed-on: https://gerrit.libreoffice.org/24840 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11Convert BORDERWINDOW_DRAW to scoped enumNoel Grandin
Change-Id: I25d8c8921445749be05974af5c00e9fde82382a3 Reviewed-on: https://gerrit.libreoffice.org/24837 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11Convert BORDERWINDOW_TITLE to scoped enumNoel Grandin
Change-Id: I9e3088c4ba51010a013f5bbaa2bb545ffa11409b Reviewed-on: https://gerrit.libreoffice.org/24836 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11remove unused return type from SalGraphics::SetFontNoel Grandin
Change-Id: I0ca41130f5e1028a70f1242f7af3366b7c57c572 Reviewed-on: https://gerrit.libreoffice.org/24833 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-11Change code related to setting diacritic and cluster property of a characterAkash Jain
To determine whether a character is a diacritic check the characters unicode combining class if the font has no GDEF table. Also change the way to determine whether a character is in a cluster or not. Change-Id: I1ef45d5ffe610216d492ce4a1caacf2c01bfde78 Reviewed-on: https://gerrit.libreoffice.org/24844 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
2016-05-10Constify some temporariesMatteo Casalin
Change-Id: I4d88975c4c4639ff933dc155bd258f1617c2198f
2016-05-10This temporary Size is not really neededMatteo Casalin
Change-Id: Ieb20b30bb017118acc6fcc00d175cab9b47732c2
2016-05-10Use member initialization listMatteo Casalin
Change-Id: I98486822d1cac8fd16c8d916011c3d99baf1f1ae
2016-05-10Fix code format and remove some unneeded parenthesesMatteo Casalin
Change-Id: I7ffd93c98736f1904cef5c5bfcfa18dbf365cd6d
2016-05-10Avoid some temporaries, constifyMatteo Casalin
Change-Id: I5a9a02b5dae88679d7f39a85b26796a161688815
2016-05-10Fix typosAndrea Gelmini
Change-Id: I1c1894fcf533291b34a662b6efb96dcfa75b92b3 Reviewed-on: https://gerrit.libreoffice.org/24760 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-05-10Add SAL_FALLTHROUGH, where apparently appropriateStephan Bergmann
Change-Id: I796ec3b79d7c26d9efe275b4232ae85cac80b578
2016-05-10Silence Clang -Wimplicit-fallthrough in gperf-generated codeStephan Bergmann
...in preparation of eventually enabling -Wimplicit-fallthrough for Clang. Change-Id: Idca352d011505e83dbe275cb19626c8b9d8560c8
2016-05-10Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann
...which (in LIBO_INTERNAL_ONLY) for Clang expands to [[clang::fallthrough]] in preparation of enabling -Wimplicit-fallthrough. (This is only relevant for C++11, as neither C nor old C++ has a way to annotate intended fallthroughs.) Could use BOOST_FALLTHROUGH instead of introducing our own SAL_FALLTHROUGH, but that would require adding back in dependencies on boost_headers to many libraries where we carefully removed any remaining Boost dependencies only recently. (At least make SAL_FALLTHROUGH strictly LIBO_INTERNAL_ONLY, so its future evolution will not have any impact on the stable URE interface.) C++17 will have a proper [[fallthroug]], eventually removing the need for a macro altogether. Change-Id: I342a7610a107db7d7a344ea9cbddfd9714d7e9ca
2016-05-10separate this piece of goo out into a standalone thingCaolán McNamara
no logic change Change-Id: Ib03a2516c9b3cf6bedf52760d8f7cb68cc70464f
2016-05-10mbErrors is never readStephan Bergmann
In the original 5624be5a3520a16d57724064e16df3722d728010 "CWS-TOOLING: integrate CWS graphite01" it used to be read in debug-only code that meanwhile got removed. (And getIntValue can now be a non-member function, as noted by loplugin:staticmethods.) Change-Id: I758268064181d44c90f5c4d1841fb09f4c532669
2016-05-10Harmless missing break in switchStephan Bergmann
mbErrors isn't read anywhere, anyway. Change-Id: Ieef912c046535c130b82d2d2e0536a1ec0446905
2016-05-10Insert explicit "break" when falling through to empty next caseStephan Bergmann
...which itself only contains a "break" (or nothing at all at the end of the "switch"), as otherwise Clang -Wimplicit-fallthrough would warn about these. Change-Id: I25c1cf2ca74dfeba7ca0385ca8f1c1bf30bbf91b
2016-05-10Convert SAL_INVERT to scoped enumNoel Grandin
Change-Id: If9f725c791f9d01efba098caed8387f21862fa04 Reviewed-on: https://gerrit.libreoffice.org/24825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10No need to wrap SAL_WARN in DBG_UTILStephan Bergmann
Change-Id: I0d401f09cb504c89329a27533c2df30b59bb60ad
2016-05-10convert SAL_ROP to scoped enumNoel Grandin
Change-Id: I2c49ec843c0f95e8246cdf9d3185c11e81a3bde3 Reviewed-on: https://gerrit.libreoffice.org/24824 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10Convert SALOBJ_EVENT to scoped enumNoel Grandin
Change-Id: I41fcdbb2381008b99f6cb7cafb085d35f8db9374 Reviewed-on: https://gerrit.libreoffice.org/24828 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10opengl: Check if texture is valid before asking for IdTomaž Vajngerl
Change-Id: I6482ca005df385d79bcd55f3b1db3559021ab371 Reviewed-on: https://gerrit.libreoffice.org/24835 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-05-10more OSX fixNoel Grandin
Change-Id: I585ff0105f00793a80e0b5fa25e7dd08fb2fc95f
2016-05-10more OSX fixNoel Grandin
Change-Id: Id9500cf86988614d9dfa04a52b73decd2a4855e0
2016-05-10fix OSX and Windows buildsNoel Grandin
after my "Convert SALEVENT to scoped enum" commit Change-Id: Ib4a3f0e18fa5d8160446d5b5cd505bae651da7d5
2016-05-10Check if we have an OpenGL context before using API that requires itTor Lillqvist
Avoid GL errors when glDisable() is called without a context. Change-Id: Ie9eae498c207a82934228ad2f74b7096308f5530
2016-05-10fix OSX buildNoel Grandin
after my "Convert SALEVENT to scoped enum" commit Change-Id: I1b91997fdadfd70cb2a00a33ec00f2f51727656a
2016-05-10Convert TOOLBOX_MENUTYPE_ to scoped enumNoel Grandin
Change-Id: I8eb25fc274b45b8add04dfc03e4b52f130ad04de Reviewed-on: https://gerrit.libreoffice.org/24827 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10Convert StatusBarItemBits to scoped enumNoel Grandin
Change-Id: Ic979d1470052039c4b966edd1d896af31ef55668 Reviewed-on: https://gerrit.libreoffice.org/24826 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-10fix Windows and OSX buildNoel Grandin
after my "Convert SAL_EVENT to scoped enum" commit Change-Id: I1a52a1e3428c9b68d67bd521a3136f3a529392f5
2016-05-10fix OSX buildNoel Grandin
after my "WindowStateState scoped enum" conversion. WorkWindow::IsMinimized needs to check the return code of SalFrame::GetWindowState, or it can end up reading uninitialised memory. So mark the member as SAL_WARN_UNUSED_RESULT. Change-Id: Iaeb132ed2fbf08162dbd7ec2e126dfa679cbda6c
2016-05-10Convert SAL_EVENT to scoped enumNoel Grandin
Change-Id: I4e605e7acfe9d4fe409d32f20880b4c0e85a0ea7
2016-05-10EXTTEXTINPUT_CURSOR_INVISIBLE is set on the wrong fieldCaolán McNamara
Change-Id: I6d92c86035dd321eb6df46bcd01aed7a0113b0a4
2016-05-10Avoid non--async-signal-safe functions in child after forkStephan Bergmann
Posix requires that a process forked from a multi-threaded process only calls async-signal-safe functions between fork and exec. This has been observed to cause trouble at least in an ASan build, where a forked sub-process (that wants to proceed to exec java from getJavaProps, jvmfwk/plugins/sunmajor/pluginlib/util.cxx) hangs in __sanitizer::BlockingMutex::Lock from within ASan's operator new replacement, from within the SAL_INFO in SvpSalInstance::CloseWakeupPipe, from within the atfork_child handler established with pthread_atfork. The rest of the calls in SvpSalInstance::Create-/CloseWakupPipe appear to be async-signal-safe. This pthread_atfork handler got introduced with dbced8e8584b631524dacf607f752ebb734901db "Don't share the wakeup pipe with child processes". It is irrelevant when the child process will proceed to call exec. And if the child process does not proceed to call exec (which is the intented use case why it got added), the above-mentioned Posix requirement makes it look unlikely that the child will operate properly (i.e., not call any async-signal- safe functions), unless the parent process was single-threaded. Change-Id: I9ecaf98597b396e0db83fe98fb11a7df7686e1d6
2016-05-10fix Windows build (second attempt)Noel Grandin
Change-Id: I5aa3bcf16cbcda984a74ec85a49a354087f5044e
2016-05-10tdf#99207: Fix incorrect RGB ordering in Graphite DWrite pathTim Eves
Direct 2D accepts colours specified as UINT32 ARGB values or floats. However GDI presents colours as COLOREFS which are 32 bit FBGR (F is a flag not an alpha) values. Passing a COLORREF to D2D1:ColorF swaps the red and blue channels. This patch converts the COLORREF into RGB float triples using the GDI colour macros. Change-Id: Iee5c00bfb10fa8771a2a1019976f70633cca4094 Reviewed-on: https://gerrit.libreoffice.org/24819 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Martin Hosken <martin_hosken@sil.org>
2016-05-10fix Windows buildNoel Grandin
Change-Id: Ia00af427fda31867a19457b7ef30158b385639e6
2016-05-10vcl : Simplify vcl::Window initialisation and destructionArnaud Versini
Change-Id: Ie3a8435d0adff795645618deb2c3c3da813e54f3 Reviewed-on: https://gerrit.libreoffice.org/24681 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>