summaryrefslogtreecommitdiff
path: root/vcl/source/app/svapp.cxx
AgeCommit message (Collapse)AuthorFilesLines
2018-11-13LOK: update main threadAndras Timar1-0/+7
Change-Id: I75df6ae9f9fb41b08a8774ce026f79fdd120b629 Reviewed-on: https://gerrit.libreoffice.org/62921 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 6f076e75b2adb4628ee3cea311781c40f219bba7)
2017-12-14lokdialog: Allow switching language of some of the ResMgr's.Jan Holesovsky1-2/+1
This way, it is possible to have all the strings translated in dialogs even when different users use different languages. [It was already possible to have different languages previously, but not everything in the dialog has switched - like the buttons at the bottom of the dialogs etc.] Change-Id: I29a5ae6d31a370eec60397884200b684ec1bf5b9 Reviewed-on: https://gerrit.libreoffice.org/46417 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2017-12-05loplugin: unnecessary destructor vbahelper..vclNoel Grandin1-2/+0
Reviewed-on: https://gerrit.libreoffice.org/33577 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> (cherry picked from commit 32a461bdd6ffda4b59ff262e1fcbcbe8bf2be7a0) Change-Id: I6b7800d4a456391251168f7923a1ec7a5ca9efc9 (cherry picked from commit 6a734daa02e7d816bf924465e53765b811a517d5)
2017-03-24lok: Scheduler::ProcessEventsToIdle() needs the solar mutex locked.Jan Holesovsky1-0/+1
Change-Id: Ibd2e40a995e670db09ca7dbf09465a998f832446
2017-03-24lok: Unit test for setting of the language during load of the document.Jan Holesovsky1-0/+8
Change-Id: Idf4d3ba6b55be1f885f9d8fc89157e7e498d4e42
2016-11-02loplugin:singlevalfieldsNoel Grandin1-5/+0
Change-Id: I65f96d9cd24572c8d0946acf4d2d45eb3db83a76 Reviewed-on: https://gerrit.libreoffice.org/30476 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-29Add layout engine info to the About dialogKhaled Hosny1-0/+8
Change-Id: I6a87efa5e1072bac3588226df0e1351aa51c4d0d Reviewed-on: https://gerrit.libreoffice.org/30108 Reviewed-by: Khaled Hosny <khaledhosny@eglug.org> Tested-by: Khaled Hosny <khaledhosny@eglug.org>
2016-10-19tdf#103185 - Add VCL backend being used to About dialogAshod Nakashian1-0/+7
The VCL backend is now shown on the About dialog. Change-Id: Ib4e6b33e9c2b3ec2fca229fed8f4533227a67ac6 Reviewed-on: https://gerrit.libreoffice.org/29798 Reviewed-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Yousuf Philips <philipz85@hotmail.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-10-18loplugin:unusedmethodsNoel Grandin1-5/+0
Change-Id: Icf773925c37dde8b7404edac9864e7b10fe113b4 Reviewed-on: https://gerrit.libreoffice.org/29968 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-17Force disable OpenGL in Safe ModeSamuel Mehrbrodt1-0/+12
Change-Id: I3f19231d9a9168499d9f9ed970d4da1a69cca36a Reviewed-on: https://gerrit.libreoffice.org/29959 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-10-09loplugin:badstaticsStephan Bergmann1-12/+10
...so make aPostedEventList a member of the global ImpSVAppData singleton Change-Id: Ie7ac49b56107eb393514d9ba1d91ee66296f60a0 Reviewed-on: https://gerrit.libreoffice.org/29612 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-10-05convert MapUnit to scoped enumNoel Grandin1-1/+1
I left a prefix on the names "Map" so that I would not have to re-arrange each name too much, since I can't start identifiers with digits like "100thMM" And remove RSC_EXTRAMAPUNIT, which doesn't seem to be doing anything anymore. Change-Id: I5187824aa87e30caf5357b51b5384b5ab919d224 Reviewed-on: https://gerrit.libreoffice.org/29096 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2016-10-05Remove _TYPED suffix from tools/link.hxx macrosStephan Bergmann1-7/+7
...which was introduced with 3ead3ad52f9bb2f9d1d6cf8dfc73a0a25e6778ed "Gradually typed Link" to distinguish the new, typed versions from the old, untyped ones, but is no longer necessary since 382eb1a23c390154619c385414bdbe6f6e461173 "remove untyped Link<>" removed the old versions. Change-Id: I494025df486a16a45861fcd8192dfe0275b1103c
2016-07-28vcl: remove Application::InsertIdleHdl() and ImplIdleMgrMichael Stahl1-20/+0
This is obsolete since 5.0 introduced the new Idle scheduler. Change-Id: I8555fe35e2befb0cc2a4c39ae469a5c32a32fcb9 Reviewed-on: https://gerrit.libreoffice.org/27598 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-07-10ditch the application per-language IsAutoMnemonicEnabled settingCaolán McNamara1-14/+0
Change-Id: I9734ada09edb6544a332893a7c5d31730b0d081d
2016-07-10ditch the multiply dialog width * X where X is based on language thingCaolán McNamara1-9/+0
Which should be unnecessary since the vcl layout work and optimal size widgets, and its a small and arbitary set of languages for which its set. Change-Id: Ifa397218510ade251f795cdd9360d6bdccb115b7
2016-07-04merge vcl::DisplayConnectionDispatch with vcl::DisplayConnectionNoel Grandin1-2/+2
Change-Id: I0eb83905896e1d7549a5bd4adde45e9d69209401 Reviewed-on: https://gerrit.libreoffice.org/26888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-06-17convert DBG_ASSERT in vclNoel Grandin1-5/+5
Change-Id: I732fb1a789f90ca7a7f393cc41a6afe84fecf3d3 Reviewed-on: https://gerrit.libreoffice.org/26200 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-30Convert DialogCancelMode to scoped enumNoel Grandin1-2/+2
Change-Id: I7aca03334c6609a8729bbc88ada6ecce4309c21d Reviewed-on: https://gerrit.libreoffice.org/25607 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-13convert EXCEPTION_ to scoped enumNoel Grandin1-5/+5
- simplify VCLExceptionSignal_impl - drop "minor" part of error code, nobody passes it in, and nobody checks it - rename Display to UserInterface, to prevent -Werror=shadow Change-Id: I503fd8a50ded30d59c30fb388796f6b1a0c058de Reviewed-on: https://gerrit.libreoffice.org/24892 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-05-12Resolves: tdf#99464 don't allow a menu as a dialog parentCaolán McNamara1-1/+1
which is an issue since... commit dd46727b99d4bb5135451aa7e5e1bdb197373843 Author: Caolán McNamara <caolanm@redhat.com> Date: Tue Apr 5 15:27:38 2016 +0100 Resolves; tdf#87120 no keyboard navigation inside floating windows lets try and treat these the same as we do normal toplevels like dialogs if they popup with GrabFocus. This way focus can be set on widgets inside the floating windows, and so keyboard traversal of widgets etc all works. which allows keyboard focus inside floatinging windows to allow a11y keyboard navigation inside them without jumping through difficult hoops. Its typically better to explicitly set the parent of the dialog rather than depend no the auto-search stuff Change-Id: I869f3ef6c86d32dd9a1f5b53a2677be9f16a1598
2016-05-12rejig for legibility, no logic changeCaolán McNamara1-22/+22
Change-Id: I73418e29dd85488613ea5c54ca8d505715ed3cbf
2016-05-12mpDefDialogParent is not used since 2002Caolán McNamara1-50/+40
i.e. commit c0ae87cb5f2989bc4b8dff4907994d513ee87e39 Author: Stephan Schäfer <ssa@openoffice.org> Date: Tue Oct 22 08:39:05 2002 +0000 #103442# choose DefDialogParent on-the-fly and so calling SetDefDialogParent doesn't achieve anything Change-Id: I2ec72da47b2dac03fdddbdb9eba5ae4bf205eb22
2016-05-10Convert SAL_EVENT to scoped enumNoel Grandin1-10/+10
Change-Id: I4e605e7acfe9d4fe409d32f20880b4c0e85a0ea7
2016-05-03tdf#99383 vcl: don't dispatch events from SolarMutexReleaserMichael Stahl1-2/+5
Having SolarMutexReleaser effectively do Reschedule() on WNT and not on other platforms doesn't seem such a good idea. Let's try to restrict it so that it still calls ImplSalYieldMutexAcquireWithWait() but no longer dispatches messages, timers and idles. (regression from 482c52e91fe41a52e68827e9bf64a9736427d517) Change-Id: I52a2c88e9c2473e35909bf270b9e3ae7acbe0d17
2016-04-07Fix simple typo in SAL_INFO tdf#97087Muhammet Kara1-1/+1
Change-Id: I925ff84c827b668d11cff8de13b0834dafc47e28 Reviewed-on: https://gerrit.libreoffice.org/23886 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2016-03-25fix headless buildOliver Specht1-0/+4
disables OpenGL and glew usage, lets --without-gui do what --without-x did before and disables X related test Change-Id: I680b47c9962a0d43c8ece593db0b82e347ceebdb Reviewed-on: https://gerrit.libreoffice.org/23474 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2016-03-16loplugin:constantparams in vcl/Noel Grandin1-4/+2
also some improvements to the plugin Change-Id: I0e3a519d70756e577fcb1bd47dd66864b5b4c871 Reviewed-on: https://gerrit.libreoffice.org/23289 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-26loplugin:unuseddefaultparams in /include/vclNoel Grandin1-2/+2
Change-Id: I36daccd90bfa6ba0ee8b9e76bff2bd8494155a04 Reviewed-on: https://gerrit.libreoffice.org/22710 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-24Ensure processEventsToIdle process events (including from the OS) until idle.Michael Meeks1-1/+17
Change-Id: I9578849b0e78af15ddeb1e6495a48ccfb3f1c44a Reviewed-on: https://gerrit.libreoffice.org/22651 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-18Resolves: tdf#97904 opengl stuff isn't implemented for gtk3Caolán McNamara1-0/+9
Change-Id: I1abbceebadf320f28955f54058b2d0ebfc79b9bc
2016-02-17use consistent #define checks for the Windows platformNoel Grandin1-1/+1
stage 2 of replacing usage of various checks for the windows platform with the compiler-defined '_WIN32' macro In this stage we focus on replacing usage of the WIN macro Change-Id: Ie8a4a63198a6de96bd158ecd707dadafb9c8ea84 Reviewed-on: https://gerrit.libreoffice.org/22393 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-02-06vcl: rename EXC_* constants to EXCEPTION_*, EXC is too much like 'execute'Chris Sherlock1-4/+4
Change-Id: I2f79e0419b27391cc9bdc45576e67eecdbc9efa4
2016-02-06vcl: split exception types from input typesChris Sherlock1-31/+31
Having them in the file apptypes.hxx isn't necessary helpful, IMO so I've split the types into inputtypes.hxx and exceptiontypes.hxx Change-Id: I89a1ff168c3ae276b2f5486669d4ec2dda062d57
2016-02-05vcl: Remove unneeded exception constantsChris Sherlock1-1/+0
EXC_USER and EXC_REMOTE are not used. EXC_REMOTE was actually used for the RVP (Remote Visualization Protocol), but that was apparently removed when Sun opensourced StarView! Change-Id: Icc644146d18d1ba2f6503c6fdbd9acc85cb9e75c
2016-02-03tdf#96888 - Kill internal vcl dog-tags ...Ras-al-Ghul1-34/+0
Removed some more usages of ImplDelData Change-Id: Ieb3c83ecebaa799bec6ae409dd480ac123b8a460 Reviewed-on: https://gerrit.libreoffice.org/22040 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2016-02-03tdf#97512 make strings localizableAndras Timar1-5/+5
Change-Id: I518918689e81475e9aaf0023cf91f4860531ad1e Reviewed-on: https://gerrit.libreoffice.org/22063 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2016-01-22ImplSVEvent::maDelData is unused nowStephan Bergmann1-6/+1
...since 47bac0de19fc4ca2c9d469b64fcbffe15bc4a0a3 "tdf#96888 Kill internal vcl dog-tags ..." removed its last use Change-Id: I4a6c6f87f99dfa5ff2f6f5abdb028a99b1996345
2016-01-21loplugin: unused return valuesNoel Grandin1-6/+2
Change-Id: I4eb1f0c9245c04058fd5e47046f043f8840a79c7 Reviewed-on: https://gerrit.libreoffice.org/21628 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-16tdf#78431: Clean up pFrame parameter in ImplWindowFrameProcXisco Fauli1-1/+1
Change-Id: I441c1b89a975fa7d31094e66ef3ccad37ce40818 Reviewed-on: https://gerrit.libreoffice.org/21497 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-01-05loplugin:redundantcastStephan Bergmann1-1/+1
Change-Id: I8a5c0eddb784a23a2019c5315161b9bbb02e1e48
2015-12-29cppcheck: noExplicitConstructorCaolán McNamara1-3/+4
Change-Id: Ib43e53d5b6c9c130adb765ac9b769f58060ac640
2015-12-11Update hardware/OS info in About dialogYousuf Philips1-3/+3
Change-Id: I2c70e88cfa2663d0b3db48c309d7cf1630bbddbd Reviewed-on: https://gerrit.libreoffice.org/20632 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-12-08Make ImplSVData private to vclTor Lillqvist1-1/+9
Change-Id: I1df6ba8a269be3e165ff5948af1dd12e0bdc6f7d
2015-11-25vcl: improve scheduler debugging information.Michael Meeks1-0/+8
Change-Id: I6f7d7d3b5b027097417a15804a42aaaab4a03158 Reviewed-on: https://gerrit.libreoffice.org/20185 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-24vcl: re-introduce idle handling.Michael Meeks1-1/+8
The idea here is that we should process 'idle' events - like re-paint after we have processed any OS messages - such as key/mouse input, window re-size events etc. The previous approach wasn't achieving this - it was processing a single idle event each time around the main-loop iteration; urk. Lubos implemented something -like- this, the vestiges of it need cleaning up and removing in: 06d731428ef6cf93c7333e8228bfb6088853b52f but it was disabled (most likely because it broke gtk in tdf#91727, which was itself broken by using silly values for timeouts in the scheduler (now fixed)) Tested on Windows, gtk, kde4, unx-generic. Change-Id: I7756bca874779c00f72b372cacb7745d0f189f66 Reviewed-on: https://gerrit.libreoffice.org/20158 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-24vcl: scheduler - split timeout calculation from idle invocation.Michael Meeks1-6/+13
This moves us towards unifying timeouts, events, idle handlers leaving only the OS main-loop integration in the backends. Change-Id: Iebfb0db21777d8018b33f216b13acb4ea2068659
2015-11-24loplugin:unusedfields in vcl/Noel Grandin1-27/+25
and remove the unused SALEVENT_MOUSEACTIVATE stuff Change-Id: Ieb85872eca68621c6a7be47ff5dbea12f7690507 Reviewed-on: https://gerrit.libreoffice.org/20140 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-11-23Update-check, expand to allow reporting of H/W and OS versions.Michael Meeks1-0/+32
Off by default. Expand config options to show the user agent used. Re-use this to show more useful info in Help->About too. Change-Id: I1044116ef9beeb341a537c0f4451dca54e198f67 Reviewed-on: https://gerrit.libreoffice.org/20098 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2015-11-18com::sun::star->css in vcl/Noel Grandin1-3/+3
Change-Id: Ifad76177673cf93746ba221838be80ff76fed228 Reviewed-on: https://gerrit.libreoffice.org/20032 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>