summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
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
2016-08-18add CVE-2016-3301 testcaseCaolán McNamara
Change-Id: Ia8c1cd93bc6734a7066eb483100bf73af43b7ca0
2016-08-18add CVE-2016-3303 testcaseCaolán McNamara
Change-Id: I3917f55a4086820393a1cfbf8ba63c5fe4b77b40
2016-08-18add CVE-2016-3304 testcaseCaolán McNamara
Change-Id: Iecfefeb1bb463dc2590ccaadcbad5c60790ede77
2016-08-18loplugin:redundantcastStephan Bergmann
Change-Id: I1b1c348311930499e9ee971b87257db40f3873b3
2016-08-18screenshots: fix sc screenshot testfeature/dialog-screenshotsArmin Le Grand
Seems to need a new document Change-Id: I644d2fcb9fe4ec66e964192d3dda61ca331acece
2016-08-18screenshots: add new global make targetArmin Le Grand
Up to now the screenshot creation was added/dependent of target slowcheck. Since quite some modules have added screenshot creations now, I added an own target 'screenshot' to allow to keep current slowcheck and screenshot creation separated Change-Id: I80a49a0db607edf8e0405672d570f624d29912e7
2016-08-18screenshots: clang plugin & tabpage usage fixesArmin Le Grand
Adapted clang compiler results, made TabDialog implementaions of ScreenShot API work with real UXMLDescription names, including a solution for using multiple tabPages with the same *.ui file Change-Id: I56df878b3db3bcc18fa2b4713b7ad72d42e8eb30
2016-08-18screenshots: unify dumping of dialog test batch fileArmin Le Grand
Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
2016-08-18screenshots: add dialog test cases for vclArmin Le Grand
All *.ui files create a screenshot, but not all look useful Change-Id: Ie189030767feb0acafa879d6d3912851d0d6db5a
2016-08-18screenshots: use new bootstrap fixture in sc and sdKatarina Behrens
Change-Id: Ida0d3179726896b32b0876b1855b1f0be12d3b48
2016-08-18screenshots: kill work-around for pseudo-headless modeKatarina Behrens
Start test with use_vcl_non_headless_with_windows instead Change-Id: Id6ff9c6f15ec927e1cbe2c599c526857982a76d2
2016-08-18screenshots: added support for minimal Screenshot ifcArmin Le Grand
For simple TabDialogs with minimal interface. That works, but found out that for SD it's using a TabDialog with two TabPages with the same *.ui file. To avoid problems for now, adapted to use PageIDs again, marked in the code as to-be-changed. Change-Id: I30af6367f4d3c1e9097b1fe3d2b230ab4eab5ed7
2016-08-18screenshots: added stuff for Linux buildArmin Le Grand
Change-Id: Icc219fd6d2d8fc555f8e54d1fd0116e5976c5f7b
2016-08-18screenshots: added more virtualization/abstractionArmin Le Grand
TabPabe Identification to UI-File names. Isolated some data initialization constructs. Added more dialogs to dump. Should dump on all systems now Change-Id: I7ee07309e0bf88064f789c13bcbff93c17370f77
2016-08-18screenshots: extend default paths where stuff gets writtenArmin Le Grand
Change-Id: I1886d832bb9474371ea27d4d36f0446b221246d0
2016-08-17Nah, just check for iOS explicitly for nowTor Lillqvist
Fixes build breakage on Linux with a system cairo. Change-Id: I4ef52fbd4a95f72c78433038654571d59efe8996
2016-08-17Massage ifdefs etc for iOS to avoid undefinedsTor Lillqvist
I think it's best to not use cairo on iOS, even if we do use it on Android. We probably want to use native APIs for the functionality that cairo would provide. Just like we do on OS X. No idea whether the resulting TiledLibreOffice will still work like it used to in May last year, when I last tried. Change-Id: Ie15cad6918d7a66e2aff7faabfcade7f3246b060
2016-08-17GSoC notebookbar: BigToolBoxSzymon Kłos
+ New container: sfxlo-BigToolBox + Writer: Paste button with dropdown menu Change-Id: I8fa9ff2cbf594078cc2347bef790b8647ce4e6ea Reviewed-on: https://gerrit.libreoffice.org/28156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <s.mehrbrodt@gmail.com>
2016-08-16new loplugin to check for static OUStringsNoel Grandin
that are better declared as OUStringLiteral Change-Id: Ifb5d9a12bb31a68641940bec16971a8181a46567 Reviewed-on: https://gerrit.libreoffice.org/27377 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>