summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2017-10-23loplugin:includeform: vclStephan Bergmann
Change-Id: Id7dea3917740aaf4db8dada5e2bea6e117d714ea
2017-10-23chmod 0755 -> 0644 for some source filesStephan Bergmann
Change-Id: Ibe5b5e03374419c2c23cd6559ab213d2dc2fcc66
2017-10-23shrink cgm fuzzerCaolán McNamara
Change-Id: I507987be6092549b60c9b74ecd7680006186ba9c
2017-10-23shrink ppt fuzzerCaolán McNamara
Change-Id: I8873020cb7aad6d067f037d72146a42451977cc3
2017-10-23tdf#96505 Get rid of cargo cult long integer literalsudareechk
Removed 1L and 0L in vcl/ directory files Change-Id: I0f5d134e0602d00ba058d34054b3dbfbc4233983 Reviewed-on: https://gerrit.libreoffice.org/42599 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
2017-10-23need some more services in calc fuzzersCaolán McNamara
Change-Id: I8ddca8e1f12a42d70f00ade8e179179fdf567589
2017-10-23shrink rtf fuzzerCaolán McNamara
Change-Id: I69fbac6ada653b2cacfdf80ce2772dc253fc3075
2017-10-23shrink qpw fuzzerCaolán McNamara
Change-Id: If7038a3e720a987aaa3575646444aaf8dad555c2
2017-10-23overload std::hash for OUString and OStringNoel Grandin
no need to explicitly specify it anymore Change-Id: I6ad9259cce77201fdd75152533f5151aae83e9ec Reviewed-on: https://gerrit.libreoffice.org/43567 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-22tdf#113353 gtk2: No decoration for floating toolbarsMaxim Monastirsky
Some window managers need this explicit setting. Change-Id: I007f066e29002d8988132f72ef55fbe3b679fa8c Reviewed-on: https://gerrit.libreoffice.org/43697 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-22shrink slk fuzzerCaolán McNamara
Change-Id: I1f9a6afaa2ae0d235eb6c40ae8b2a3b9ed929972
2017-10-22oss-fuzz: drop our own afl related hackeryCaolán McNamara
Change-Id: Ia6a498c07fffd1790ad433287ef4d1cf82085887 Reviewed-on: https://gerrit.libreoffice.org/43695 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-22Prevent gnome-shell f/ showing 'unresponsive app' during debugAndreas Brandner
LibreOffice advertises NET_WM_PING atom, so mutter rightfully warns of an unresponsive application during debugging. Hack that out unconditionally for dbg_util builds, as per https://bugzilla.redhat.com/show_bug.cgi?id=981149 upstream refuses to make this configurable in any way. Change-Id: I12edbb49a067ad20903ca9b62557ee02c90c8a6e Reviewed-on: https://gerrit.libreoffice.org/43618 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de> Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
2017-10-22Fix 3bf3cae9b7b4d38e0427d71a2b34629fd5988af7Julien Nabet
wrong use of emplace_back, it should be push_back here Change-Id: I729820336f4aedbebb94ce8311c8fb62aba74e92 Reviewed-on: https://gerrit.libreoffice.org/43688 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-22Replace some lists by vectors (vcl)Julien Nabet
Change-Id: Id6f61cbbcd91e1a81e5ac23cdf19a6cda07f8659 Reviewed-on: https://gerrit.libreoffice.org/43675 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-22Fix wrong use of emplace/emplace_backJulien Nabet
after these patches: https://cgit.freedesktop.org/libreoffice/core/commit/?id=ea6858c1e388c2d17a0825f3d21353ded67083eb https://cgit.freedesktop.org/libreoffice/core/commit/?id=118a0a3734a3f794c67a9d7d4376d8ed78a96fee https://cgit.freedesktop.org/libreoffice/core/commit/?id=c16804de78b1cf1ad906eaacbcc7c51d35218d8a Change-Id: I287d64d3aef6cf18fbf20602680ae9ead0ab26e5 Reviewed-on: https://gerrit.libreoffice.org/43687 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-22Avoid compiler eliding redundant dynamic_castStephan Bergmann
...from vcl::Window to itself. This relies on vcl::Window deriving solely from OutputDevice. Change-Id: I530108ff41d2c141a88e9ec9d9d6929abc773c0d
2017-10-21Replace lists by vectors in printerjob (vcl)Julien Nabet
Change-Id: I6eb9b94839307e6297b5c3e3308d95d3645a215f Reviewed-on: https://gerrit.libreoffice.org/43665 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-21check bmp seekCaolán McNamara
Change-Id: Ie5e40d7817c4bac2a645822863e62467739801e8 Reviewed-on: https://gerrit.libreoffice.org/43672 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-21Replace lists by vectors in ppdparser (vcl)Julien Nabet
+ simplify some parts Change-Id: I78c611f234e06e542be56016231f6c16d44e4385 Reviewed-on: https://gerrit.libreoffice.org/43640 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-21Replace list by vector for maPS3Font (vcl)Julien Nabet
Change-Id: Ida0d1a87e32024430fd314c601b9acb9358a9dd2 Reviewed-on: https://gerrit.libreoffice.org/43641 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-21Replace lists by vectors in gtkgdi (vcl)Julien Nabet
Change-Id: I328fd67c24607173ead855179c44f7f08baf9e0b Reviewed-on: https://gerrit.libreoffice.org/43620 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-20WIN message handling cleanup and refactoringJan-Marek Glogowski
Replace a lot of duplicated case code with macros. Some minor constifications of function parameters. I restrained from shorten the SAL_MSG_* via preprocessor concat, so a grep will still find the whole names. Change-Id: If1f2477fc8817b4ae7816e807154e35004bb4da9 Reviewed-on: https://gerrit.libreoffice.org/43531 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-10-20ofz#3706 shrunk ww2 filter too farCaolán McNamara
Change-Id: I79d87614fe220db595e4d2107b0d1571093db6c5
2017-10-20OSX implement direct timeout processingJan-Marek Glogowski
Basically works in the same way then in the Windows backend. Change-Id: If48e2b55f037563839a5e716830ce75ed78381e4 Reviewed-on: https://gerrit.libreoffice.org/43530 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-10-20shrink ww8 fuzzerCaolán McNamara
Change-Id: Ic2ee596b1d2dbba4f685100aef1862ce0e5e435d
2017-10-20Resolves: tdf#113252 missing tabs in basic library organizerCaolán McNamara
Like SfxTabDialog, as in interim measure throw away the TabPage if its not suitable for reuse Change-Id: If8247ea37dfca42e690716a8b687677e0f73c9a8
2017-10-20ofz+ubsan: left shift of negative valueCaolán McNamara
Change-Id: I304532162fc75b69807d5e45227368ab25736b93 Reviewed-on: https://gerrit.libreoffice.org/43586 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-20WIN guarantee direct timeout handlingJan-Marek Glogowski
The code did acccount processing of an invaild timeout system message as a valid timeout event. Change-Id: I3c31f8b9cec592631b4089411163dadecffde816 Reviewed-on: https://gerrit.libreoffice.org/43529 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2017-10-20pdfextoutdevdata: Rearrange code for readability and efficiencyMike Kaganski
Change-Id: I506e77d97940570b076274a35cc92d3ec7278d3c Reviewed-on: https://gerrit.libreoffice.org/43584 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Jenkins <ci@libreoffice.org>
2017-10-20shrink ww6 fuzzerCaolán McNamara
Change-Id: Ic84ebb2327d6f99b04a6f2722f71fe401d2a9e09
2017-10-20Replace list by unordered_set for m_aAlternateFiles (vcl)Julien Nabet
Change-Id: I66ea61972fed87245b33dfe355eff58d23041120 Reviewed-on: https://gerrit.libreoffice.org/43520 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-19tdf#106163 tdf#112830 Mirror mouse enter/leave for gtk2Maxim Monastirsky
Change-Id: I02bc5be82bc2bf51ff3e93939273d2c60c1c4d46 Reviewed-on: https://gerrit.libreoffice.org/43570 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-19shrink ww2 fuzzerCaolán McNamara
Change-Id: Id30693b2e0cd260bf5ee7d22e8c701b4566e54d6
2017-10-19tdf#113225 - reset framebuffer count when resetting OpenGLContextMichael Meeks
Otherwise we can fail to allocate a new one when we need it post reset. http://crashreport.libreoffice.org/stats/crash_details/e4f26191-15d5-441a-868f-9ada21ef4424 Change-Id: Icc5ec6c51338e18a0a1bc890f56670e8fe9c73ea Reviewed-on: https://gerrit.libreoffice.org/43508 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
2017-10-19tdf#112830 measure test with ApplySettings appliedCaolán McNamara
and don't invalidate on first view Change-Id: I1156c83c0365ef27946cc414cad8dfa07206e5af Reviewed-on: https://gerrit.libreoffice.org/43498 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-19CppunitTest_vcl_pdfexport: now we can assert the path segmentsMiklos Vajna
Instead of the bounding box workaround before commit 5352dfbbe22b59983e1b91366908724138b9783a (pdfium: update to 3235, 2017-10-12). Also stop using the deprecated FPDFPage_CountObject(). Change-Id: Iff04b5d5af492b564d7e4e918fb69aa881791b88 Reviewed-on: https://gerrit.libreoffice.org/43523 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins <ci@libreoffice.org>
2017-10-19Avoid throwing C++ exception across libjpeg C framesStephan Bergmann
It causes trouble at least for (non-debug) 32-bit ARM Flatpak builds, where CppunitTest_vcl_filters_test aborts with an uncaught css::uno::RuntimeException. This is a partial revert of 6889fa826eef6bd1074d77507818e71dfe8ba152 "rework jpeg error handling to throw rather than setjmp to avoid leaks", switching back to setjmp/longjmp but trying to keep the leaks fixed by introducing any relevant local variables before the setjmps. Change-Id: Ia5984528ea98be1c89a21aee800b247120f88a89 Reviewed-on: https://gerrit.libreoffice.org/43494 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2017-10-18tdf#107224 use correct bg for notebookbarSzymon Kłos
Change-Id: I26093cb9cf0170aa9ba4ccfc8c8556c2e78086b3 Reviewed-on: https://gerrit.libreoffice.org/43515 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
2017-10-18use std::unique_ptr in PPDCacheNoel Grandin
Change-Id: Ib47ffaa0fe754d8aafdf338d8ec8c2109beb21a5 Reviewed-on: https://gerrit.libreoffice.org/43484 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-18presumably we don't need to recalculate on subsequenct 'show' nowCaolán McNamara
Change-Id: I7e5fdd2b328a7d88e11cc15ba9e1027ef55c5e17 Reviewed-on: https://gerrit.libreoffice.org/43461 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-17tdf#112845 rtl dropdowns in wrong positionCaolán McNamara
for rtl we mirror the position of popdowns, so we need to know their initial desired position before they have actually appeared yet and have a valid maGeometry.nX, so fill in the hoped-for position as the current position Change-Id: Ic22dc3e5d9922f5d48bbbdaad53caabff57188d8 Reviewed-on: https://gerrit.libreoffice.org/43459 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-17tdf#112845 get optimal size before showing popupsCaolán McNamara
because in rtl mode we need to know the final size in order to position it correctly according to the right edge Change-Id: Ia701626968f828fd23ab1637ed6171d0e3367c16 Reviewed-on: https://gerrit.libreoffice.org/43460 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-17gtk3: drop faking initial nTopDecoration size from parentCaolán McNamara
in rtl we change the x pos. To change the x pos we need a y pos to go with it, and taking the y pos before we get the true (0) top decoration size of menu and menu-like widgets means rtl popdowns like the color and highlight popdowns are vertically misplaced there's no reason that a window would share the same decoration value as its parent Change-Id: I8cd1e96bb8ef7b0b728ff1baac5ee069325f9753 Reviewed-on: https://gerrit.libreoffice.org/43458 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-17Fix typoAndrea Gelmini
Change-Id: Ibc13a8c1dbfd6fdfc5e35856b21ea5af310f63db Reviewed-on: https://gerrit.libreoffice.org/43430 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>
2017-10-17use std::unique_ptr in vcl::Animation and vcl::MenuItemListNoel Grandin
Change-Id: I0d682bcf3bd9d5f4852675fd0d6b61f10ea4f7de Reviewed-on: https://gerrit.libreoffice.org/43455 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
2017-10-17ole fuzzer needs more servicesCaolán McNamara
Change-Id: I5b09edb9c3012dfa282077ea537cf8cbe4ce23d0
2017-10-17turn implicit container explicit in buildable notebooksCaolán McNamara
as in interim measure for SfxTabDialogs we throw away the TabPage if its not suitable for reuse Change-Id: Ic5776ca3d2a8cb6bf41f33df01b211f81c62a842 Reviewed-on: https://gerrit.libreoffice.org/43134 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2017-10-16shrink ole fuzzerCaolán McNamara
Change-Id: Iee390bd5e241536d4f55743083468c433417f572
2017-10-16shrink lwp fuzzerCaolán McNamara
Change-Id: I75cbc6c40dfb4d558c3e09bac1a40805c4ade3e3