summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)AuthorFilesLines
2016-08-28coverity#1371444 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I3a6c7c4aa688722a318271d5416313baf65db78e
2016-08-28loplugin:defaultparamsJochen Nitschke1-6/+3
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 Grand3-563/+13
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 Grand3-0/+715
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 Nitschke5-7/+7
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 McNamara1-1/+1
Change-Id: I95e829ecc685603e147e68b44cb403d4f010e320
2016-08-25-Werror,-Wswitch (clang-cl)Stephan Bergmann1-0/+1
Change-Id: I874e103486dd77842a2299e0f20fe42ef6a7eaf5
2016-08-25-Werror,-Winconsistent-missing-override (clang-cl)Stephan Bergmann1-1/+1
Change-Id: Ie06e9ba94697c40fa03a535ad3f03c5ff181266e
2016-08-25loplugin:countusersofdefaultparamsNoel Grandin1-2/+2
Change-Id: I7150494a56abc6ec9c7fba39cefe3967a475f073
2016-08-25GSoC notebookbar: container with context supportSzymon Kłos3-26/+14
+ 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łos1-1/+5
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 Kaganski1-7/+7
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 Kaganski1-6/+6
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 Kaganski1-24/+24
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ž Vajngerl15-0/+2007
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 Bergmann1-1/+1
...by turning the relevant ctor parameters into "const &". Change-Id: Ia8d0aba5da10ad6b25f8689e2281e45b3d71c1fc
2016-08-18loplugin:defaultparamsTor Lillqvist1-2/+2
Change-Id: I738fa9270337b17c9373186cdcbc2e7f8cbc32d4
2016-08-18coverity#1371123 Unchecked return valueCaolán McNamara1-1/+1
Change-Id: I892b4b0531d456f73777d81cb47847cde2ed7364
2016-08-18coverity#1371444 Uninitialized scalar fieldCaolán McNamara1-0/+1
Change-Id: I3e4294f3459ab069f4bd5a8233cbd8a4c1dd2beb
2016-08-18coverity#1371129 'Constant' variable guards dead codeCaolán McNamara1-10/+4
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 truncatedrpmbuild2-0/+12
Change-Id: Id9ec91ed9652f491e4e2a0556eeed27bf6517002
2016-08-18cppcheck: noCopyConstructorCaolán McNamara8-0/+29
Change-Id: Id5323cb6f52666f85965e11b07e4f2bca8af4e78
2016-08-18cppcheck: nullPointerRedundantCheckCaolán McNamara1-1/+1
Change-Id: I2f8e3b4315cf63335ec4ab0c51bbf81f9c8a06f7
2016-08-18add CVE-2016-3301 testcaseCaolán McNamara1-0/+0
Change-Id: Ia8c1cd93bc6734a7066eb483100bf73af43b7ca0
2016-08-18add CVE-2016-3303 testcaseCaolán McNamara1-0/+0
Change-Id: I3917f55a4086820393a1cfbf8ba63c5fe4b77b40
2016-08-18add CVE-2016-3304 testcaseCaolán McNamara1-0/+0
Change-Id: Iecfefeb1bb463dc2590ccaadcbad5c60790ede77
2016-08-18loplugin:redundantcastStephan Bergmann1-1/+1
Change-Id: I1b1c348311930499e9ee971b87257db40f3873b3
2016-08-18screenshots: fix sc screenshot testfeature/dialog-screenshotsArmin Le Grand1-0/+1
Seems to need a new document Change-Id: I644d2fcb9fe4ec66e964192d3dda61ca331acece
2016-08-18screenshots: add new global make targetArmin Le Grand1-1/+2
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 Grand1-13/+57
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 Grand1-74/+2
Change-Id: Ia1e79216d9537c65f8b7362778a2e1ad3ec6c2c2
2016-08-18screenshots: add dialog test cases for vclArmin Le Grand4-0/+266
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 Behrens1-0/+2
Change-Id: Ida0d3179726896b32b0876b1855b1f0be12d3b48
2016-08-18screenshots: kill work-around for pseudo-headless modeKatarina Behrens1-1/+1
Start test with use_vcl_non_headless_with_windows instead Change-Id: Id6ff9c6f15ec927e1cbe2c599c526857982a76d2
2016-08-18screenshots: added support for minimal Screenshot ifcArmin Le Grand2-0/+96
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 Grand1-0/+1
Change-Id: Icc219fd6d2d8fc555f8e54d1fd0116e5976c5f7b
2016-08-18screenshots: added more virtualization/abstractionArmin Le Grand2-8/+10
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 Grand4-1/+73
Change-Id: I1886d832bb9474371ea27d4d36f0446b221246d0
2016-08-17Nah, just check for iOS explicitly for nowTor Lillqvist1-1/+1
Fixes build breakage on Linux with a system cairo. Change-Id: I4ef52fbd4a95f72c78433038654571d59efe8996
2016-08-17Massage ifdefs etc for iOS to avoid undefinedsTor Lillqvist6-31/+28
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łos1-20/+61
+ 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 Grandin3-7/+6
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>
2016-08-15mbInitialLayoutDone is unusedCaolán McNamara2-4/+0
Change-Id: Ic660ba53b450071ad222a3c1adb13e908dbf0023
2016-08-15Resolves: tdf#92906 badly rendered elements dock after hide+showCaolán McNamara1-1/+2
The show after hide is seen as "InitShow" which find the optimal size for its contents. That's ok if it was a toplevel dialog, but its not in this circumstance of a docked docking window and has to live with the given size. This seems to have basically come unstuck with commit 05d4077b724f91fca736d3c3fd64f28e304d7172 Author: Caolán McNamara <caolanm@redhat.com> Date: Mon Sep 1 07:17:09 2014 +0100 rearrange matters to get FloatingWindows working loaded from .ui Change-Id: If47bb392c8235d946bb2fd07448c6f48479a5163
2016-08-15loplugin:unusedenumconstants in unotools..xmlhelpNoel Grandin3-5/+1
Change-Id: Id7ddc0fc1f57c5e8e7fb002e31d54fb8e9f8ffab Reviewed-on: https://gerrit.libreoffice.org/28050 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-14loplugin:overrideparamStephan Bergmann1-1/+1
Change-Id: I78513a531f93f6578290107b1d71977820dac965
2016-08-14tdf#100965: Restart on initialisation-time OpenCL crashTor Lillqvist1-0/+8
Add a flag to the OpenCLZone indicating whether we are performing the first-start OpenCL functionality verification, so that if we run into a crash that is caught by the VCL VCLExceptionSignal_impl() handler, we terminate the process with the EXITHELPER_NORMAL_RESTART status after first having disabled OpenCL use. The wrapper process will then restart soffice.bin. This is for Windows only so far. This matches what we do if OpenGL fails early during start of LibreOffice. Change-Id: Ibb9bf3a86b7521bf16728de2a118ad4323be674b Reviewed-on: https://gerrit.libreoffice.org/28086 Reviewed-by: Tor Lillqvist <tml@collabora.com> Tested-by: Tor Lillqvist <tml@collabora.com>
2016-08-12fix windows buildNoel Grandin1-1/+1
after commit 500a3be0 "loplugin:countusersofdefaultparams in vcl..xmlsecurity" Change-Id: I09b07f241dc45f2d23370addfb1bc10aa2caedc4
2016-08-12loplugin:countusersofdefaultparams in vcl..xmlsecurityNoel Grandin21-30/+30
Change-Id: I538596a99e632178d928ff7e66ad45c71b73c6fd Reviewed-on: https://gerrit.libreoffice.org/28018 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2016-08-11Resolves: tdf#100250 scrollbar has no bgCaolán McNamara1-0/+5
Change-Id: I48e26b775337809759f8a76be7a9c457c94cd5c9