summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2016-09-01For Valgrind, zero out alignment bytes of 24-bit bitmap, tooStephan Bergmann
...caused false warnings in CppunitTest_sw_filters_test testing sw/qa/core/exportdata/html/pass/cp1000068.odt Change-Id: I48943d5d4999e1b8c9a7ab50e39e65b2171b1b94
2016-09-01Looks like the menu highlight handler is now unusedMaxim Monastirsky
Change-Id: I75ff4bce35e7940e07b760f672e08ffe0dd208f8 Reviewed-on: https://gerrit.libreoffice.org/28580 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-09-01std::list<sal_Int32> to dequeNoel Grandin
Change-Id: I28942e35cf240b83ad49def6252f2709baf525a9
2016-09-01std::list<sal_Unicode> to vectorNoel Grandin
Change-Id: If437d2588c75c76fdf03413c074f4f49f93a12f4
2016-09-01std::list<sal_Int32> to vectorNoel Grandin
Change-Id: I991fba4593665035df26a0e13f0219029f2eb917
2016-09-01std::list<int> to vectorNoel Grandin
Change-Id: I018eec4fa6647e76c5f4d6a08350acda2950b33e
2016-09-01std::list<int> to vectorNoel Grandin
Change-Id: I05d4531ac6d3daa8c996db374bc2a2425215dde8
2016-09-01convert RefDevMode to scoped enumNoel Grandin
and fix the bForceZeroExtleadBug TODO Change-Id: Iac9295c6ce31112d69a870e3a229823eb1e9a4f2
2016-08-31loplugin:countusersofdefaultparamsNoel Grandin
Change-Id: I697b9081424acdc61107709392baa8af8ce29028 Reviewed-on: https://gerrit.libreoffice.org/28497 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-31opengl: remove unsused "bitmap ops" in GL backendTomaž Vajngerl
Change-Id: I188570d11349a5344753f3948daedf0e17806c6c Reviewed-on: https://gerrit.libreoffice.org/28536 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2016-08-31gtk3: Implement menubar hidingMaxim Monastirsky
Change-Id: Ia772f05daa74453fc3dc8fe0c257fdac358cd5c6 Reviewed-on: https://gerrit.libreoffice.org/28490 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
2016-08-30default dtors are fine hereCaolán McNamara
Change-Id: I503f954a2729aa2737d783ed8c72f62d8a68da4c
2016-08-30silence coverity#1371204 Missing move assignment operatorCaolán McNamara
and silence coverity#1371210 Missing move assignment operator Change-Id: I6d7a59fd789c16ee11a27d50ba8fd14f17ae77e0
2016-08-30default assignment and ctor are fine hereCaolán McNamara
Change-Id: I50edc71ee8bb4398764f2e15180a0269aac233ce
2016-08-30Disable CppunitTest_vcl_wmf_test under --enable-merglibs for nowStephan Bergmann
...the problems caused by that test having the vcl objects linked into both the test's library and the mergedlib (which the test's library links against) are just not manageable. Change-Id: I6976407275f1f8d8cebfe2dfc6c09656a3936200
2016-08-30loplugin:stringconstant: adapt to improved OUStringLiteral1 (vcl)Stephan Bergmann
Change-Id: Ic04f33413713b592c10ebf27c1e3460a44e3794f
2016-08-30Hack for shaky VCL test under ASanStephan Bergmann
Change-Id: I0c89d1c23ddc1d0d6cd98d95ef31622a30d4862b
2016-08-30default dtor and assignment are ok hereCaolán McNamara
Change-Id: Ic349222f29b302fbd44907c2d21c993b59341107
2016-08-30can declare default dtor as virtual now I beliveCaolán McNamara
Change-Id: I48005f1e8b405b4fa374edfd0d6ff69ffac437d7
2016-08-30tdf#99402: fix Metafile Font handlingMike Kaganski
1. For DEFAULT_CHARSET/OEM_CHARSET, use correct encoding based on LibreOffice Default Language for Documents setting (Tools->Options...->Language Settings->Languages). For that, two functions added to tencinfo.h, that map language names to corresponding Windows ANSI/OEM encodings. 2. If charset is DEFAULT_CHARSET/OEM_CHARSET for Symbol font, then always use RTL_TEXTENCODING_SYMBOL. Unit test is included. Change-Id: Ibff63e7a03dec42a9d2a74399936d6bc04f2ff1a Reviewed-on: https://gerrit.libreoffice.org/28322 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2016-08-29CairoFontsCache is only used in cairotextrender.cxxStephan Bergmann
...so move it there and remove the VCL_DLLPUBLIC Change-Id: I1fc75984f8a9935e34cd9ac36d878809b538bd1e
2016-08-29Toolbar popups need explicit deactivationMaxim Monastirsky
... if based on MenuBarManager, because unlike context menus, we reuse the same menu instead of creating from scratch each time, so that it suffers from the same "double activation" problem as in tdf#97665. Note that for GtkSalMenu the problem is only for the top level popup menu, as the Deactivate callback is properly called when sub menus are closed. The non-native case also had this problem, but only when closing the menu by selecting one of its items, and was fixed already in b41deb2ef057c3bd43fa61448bb4d7299138c8d4. Change-Id: Iee037f7baba0f80c32fb3a45f16511f8585c203e
2016-08-29cid#1371168 Missing move assignment operatorNoel Grandin
Change-Id: I986b94df4aa8158f3e0623ab6cb392c178a820ce
2016-08-29cid#1371235 Missing move assignment operatorNoel Grandin
Change-Id: If5fc8d783211a131711b5961d6b076c24dd64412
2016-08-29cid#1371170 Missing move assignment operatorNoel Grandin
Change-Id: Iaf02d5bd3090190b6b9ad15a884d3f0444983297
2016-08-29cid#1371176 Missing move assignment operatorNoel Grandin
Change-Id: I57df53df6933e1945fabc0e4a7f0e1c5815aeaca
2016-08-29cid#1371144 Missing move assignment operatorNoel Grandin
Change-Id: Ice8c22324700d51b86696fc3df140bb9f84973cb
2016-08-28coverity#1371444 Uninitialized scalar fieldCaolán McNamara
Change-Id: I3a6c7c4aa688722a318271d5416313baf65db78e
2016-08-28loplugin:defaultparamsJochen Nitschke
Change-Id: I9e6b81855e421186af92e53c71f5ba9bd8005319 Reviewed-on: https://gerrit.libreoffice.org/28433 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
2016-08-28screenshot: added functionality to dialogArmin Le Grand
Moved code to cui, added abstraction for AbstractDialog, adapted rendering, changed selection, added better selection visualization, added save ressources and dialog, creating pure screenshot with annotation display Change-Id: I533d9f559ee17cd46105b934bcf4beef87b96168
2016-08-28screenshot: develop interactive screenshot dialogArmin Le Grand
Implemented a first version of an interactive screenshot dialog that supports annotations, text excerpts for these and allows to create a screenshot file How to use: * enable experimental features in Tools->Options * open any random dialog * open context menu - there's now a 'Screenshot' entry * click that, screenshot dialog pops open, mouse over the grayed-out screenshot to highlight controls * click once to highlight, click a 2nd time to unselect Change-Id: I3bcd76b96ad023e11421e4fcfac866ebf4f5ff78
2016-08-27put StreamMode masks in scope of enum classJochen Nitschke
Change-Id: I77682f7e289a59b986bb84edf014029a20266470 Reviewed-on: https://gerrit.libreoffice.org/28420 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-25Resolves: coverity#1371769 'Constant' variable guards dead codeCaolán McNamara
Change-Id: I95e829ecc685603e147e68b44cb403d4f010e320
2016-08-25-Werror,-Wswitch (clang-cl)Stephan Bergmann
Change-Id: I874e103486dd77842a2299e0f20fe42ef6a7eaf5
2016-08-25-Werror,-Winconsistent-missing-override (clang-cl)Stephan Bergmann
Change-Id: Ie06e9ba94697c40fa03a535ad3f03c5ff181266e
2016-08-25loplugin:countusersofdefaultparamsNoel Grandin
Change-Id: I7150494a56abc6ec9c7fba39cefe3967a475f073
2016-08-25GSoC notebookbar: container with context supportSzymon Kłos
+ added sfxlo-ContextVBox + notebookbar's .ui file must contain control implementing NotebookbarContextControl interface with id "ContextContainer" Change-Id: Ice81e23c4ba742564ebceeda95be120ea3f58c99 Reviewed-on: https://gerrit.libreoffice.org/28247 Tested-by: Jenkins <ci@libreoffice.org> Tested-by: Yousuf Philips <philipz85@hotmail.com> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-08-25BigToolBox: fixed drawing with gtk2Szymon Kłos
Button's width was equal to icon width when gtk2 was used Change-Id: I34e5c5c36653365ac422667a69d89aa6a91340a1 Reviewed-on: https://gerrit.libreoffice.org/28361 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2016-08-23[loplugin]Mike Kaganski
Change-Id: Ie10af82c5c6e0cb5bb727fa95f92cc590e05b8fa Reviewed-on: https://gerrit.libreoffice.org/28342 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-08-23[loplugin:staticcall] follow-upMike Kaganski
Change-Id: Id7d6baf412aa2f663ead04ed5778bdb1bb2aa8e7 Reviewed-on: https://gerrit.libreoffice.org/28341 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
2016-08-23[loplugin:staticcall]Mike Kaganski
Change-Id: Ib78adbae9be5fd3330445ea13d90b03328fa7ba6 Reviewed-on: https://gerrit.libreoffice.org/28339 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Tomaž Vajngerl <quikee@gmail.com>
2016-08-23vcl: Adds backend tests to check for correct renderingTomaž Vajngerl
Collection of test that check rendering of VCL backend. This works by rendering primitives to the VirtualDevice, outputing the result to a Bitmap and checking the rendering by comparing pixels. This should warn when the primitive is drawn to a wrong position or if it is the wrong size or color. It also test some rendering tricks like XOR drawing. Currently this is not implemented as a CPPUnit test but separately, as its own executable file so we can check the results visually. The idea is also to add the tests into LO for the user to test or automatically to test the backend on first start (especially useful to test the OpenGL backend as some drivers could have unexpected behaviour). Change-Id: I2a565b9986ca68850e2752466e3cd5fc71991ba6
2016-08-19Some clang-tidy misc-move-constructor-initStephan Bergmann
...by turning the relevant ctor parameters into "const &". Change-Id: Ia8d0aba5da10ad6b25f8689e2281e45b3d71c1fc
2016-08-18loplugin:defaultparamsTor Lillqvist
Change-Id: I738fa9270337b17c9373186cdcbc2e7f8cbc32d4
2016-08-18coverity#1371123 Unchecked return valueCaolán McNamara
Change-Id: I892b4b0531d456f73777d81cb47847cde2ed7364
2016-08-18coverity#1371444 Uninitialized scalar fieldCaolán McNamara
Change-Id: I3e4294f3459ab069f4bd5a8233cbd8a4c1dd2beb
2016-08-18coverity#1371129 'Constant' variable guards dead codeCaolán McNamara
since commit 920d4463f6e59b815852c173e2974ffc7b4bb284 Author: Noel Grandin <noel@peralex.com> Date: Thu Jun 23 13:13:28 2016 +0200 loplugin:singlevalfields in vcl(part1) Change-Id: I7bba52453a57832e5c6d2f54d36c18cf04568ed0
2016-08-18Resolves: tdf#91533 (rhbz#1364335) Tooltips are truncatedrpmbuild
Change-Id: Id9ec91ed9652f491e4e2a0556eeed27bf6517002
2016-08-18cppcheck: noCopyConstructorCaolán McNamara
Change-Id: Id5323cb6f52666f85965e11b07e4f2bca8af4e78
2016-08-18cppcheck: nullPointerRedundantCheckCaolán McNamara
Change-Id: I2f8e3b4315cf63335ec4ab0c51bbf81f9c8a06f7