summaryrefslogtreecommitdiff
path: root/include/vcl
AgeCommit message (Collapse)AuthorFilesLines
2015-10-02loplugin:unusedmethods in vclNoel Grandin1-4/+2
Change-Id: Ib404310761fd555b033ab6594ba8636d37f23463 Reviewed-on: https://gerrit.libreoffice.org/19074 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-10-01desktop, vcl: support transparency in VirtualDevices with user-provided memoryMiklos Vajna1-0/+2
Change-Id: I65c31995c02a644aa436aecd065255fab38045e4
2015-10-01tdf#39080 Interactive hide-whitespace modeAshod Nakashian1-1/+3
Support for enabling and disabling hide-whitespace by clicking between page frames. Disabled header and footer decorators when hide-whitepsace is enabled, and page size is trimmed to the contents of each page. Experimental/suggestive mouse pointers added but only tested on Windows. Change-Id: Ia2faeeda9e3e783ffaf5340aa69303a4218892a7 Reviewed-on: https://gerrit.libreoffice.org/18156 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-30vcl: even in the newfangled OpenGL world, initializing members is ...Michael Stahl1-0/+3
... still a good idea. Change-Id: Iecbc9dc8481b0ccc85f1fb82d9e9884bdba61b28
2015-09-30maSvgDataArray only populates a uno::Sequence, so use that insteadCaolán McNamara1-5/+3
Change-Id: I335d5ee70e95e1a3b204d34f6df4cb62f3fb3cad
2015-09-30Fix typosAndrea Gelmini4-4/+4
Change-Id: I8e9c6c72c89411d8de04e5edd9317cd54f7c472a Reviewed-on: https://gerrit.libreoffice.org/18958 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-30Fix typosAndrea Gelmini1-1/+1
Change-Id: I44bdb63bef76e9686e995661a24a3bef7cd50ab7 Reviewed-on: https://gerrit.libreoffice.org/18959 Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
2015-09-29loplugin:removeunusedmethods, remove unused stuffNoel Grandin6-43/+0
Change-Id: I35456b2a3ad2a84a1d045f09cdfb29e4c19b8350
2015-09-29coverity#708213 ditch the empty ctor/dtorsCaolán McNamara1-7/+0
which should silence "708213 Uninitialized pointer field" Change-Id: I0e16a0b02f3d48c4da324f371cae2234ad4cb6e2
2015-09-29XFrame parameter to SetMenuBar() is actually never used.Jan Holesovsky2-3/+2
Change-Id: I9413f575c0964d6cbf8a32d0b85c9f2c686bb8fc
2015-09-29lok: add Document::getPartPageRectangles()Miklos Vajna1-0/+8
Change-Id: I20acd44f7a81471982ba96ad3894a9124e035c5f
2015-09-24convert Link<> to typedNoel Grandin1-2/+2
Change-Id: I280473a7a9069a86388f608bddc8e48879771bc9 Reviewed-on: https://gerrit.libreoffice.org/18815 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-24convert Link<> to typedNoel Grandin2-5/+6
Change-Id: I59d325c3b051690303a5841907317122fa1ec98b Reviewed-on: https://gerrit.libreoffice.org/18825 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-23memleak:clear self referring VclPtr in *Field and *Box classesDennis Francis1-0/+11
Clears self referring VclPtr called mpField via FormatterBase in : 1. MetricField, PatternField, NumericField, CurrencyField, DateField, TimeField 2. PatternBox, NumericBox, CurrencyBox, DateBox, TimeBox via respective dispose() methods. Change-Id: I7f92fefd49756cabe7db7d240781260a2d4cd298 Reviewed-on: https://gerrit.libreoffice.org/18701 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-22remove unused Link<> fieldNoel Grandin1-3/+0
Change-Id: Ia07a1db94bacad8c1d9c108ee6e2ac2f82b6581f
2015-09-22convert Link<> to typedNoel Grandin1-6/+2
and drop an unused parameter Change-Id: I2f3bc15e4168103a6cb2d19807d291d8da24387e
2015-09-22remove some unused paramsNoel Grandin3-20/+12
Change-Id: Id4f6da92526cea3e9b01bd23f6569843dfb17d89
2015-09-22convert Link<> to typedNoel Grandin2-5/+6
Change-Id: I92df586295c11bc9e9276770656901c2e4e714b9
2015-09-22convert Link<> to typedNoel Grandin1-10/+4
and remove unused UserEvent class Change-Id: Ic61c5eef75c36393dbbaa92d93163eab89021ee3
2015-09-21hide ScopedPtr::reset and add disposeAndClearCaolán McNamara1-1/+12
Change-Id: I55d6e789abd408b8478a2b9ae141d8899af2c309 Reviewed-on: https://gerrit.libreoffice.org/18745 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-21convert Link<> to typedNoel Grandin3-5/+5
Change-Id: If3e2b00092440ebd42ae5b73ae2b0e44c3702683
2015-09-21Use SfxViewFrame::Current()Miklos Vajna1-8/+0
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523
2015-09-21vcl::ITiledRenderable: add getCurrentViewShell() and implement it for WriterMiklos Vajna1-0/+10
Change-Id: Ic936746f3d473e15f5a1589cba35173778b442c6
2015-09-20convert Link<> to typedNoel Grandin2-3/+4
Change-Id: I10b050dc4aae45e646761a82520caa96969bc511 Reviewed-on: https://gerrit.libreoffice.org/18700 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-20convert Link<> to typedNoel Grandin1-2/+1
Change-Id: I86bf78c69251b5cd4d18edf3542e70eb2e8f32e1 Reviewed-on: https://gerrit.libreoffice.org/18699 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-20convert Link<> to typedNoel Grandin1-2/+2
Change-Id: If7fdd97d3c317a8e31641cc096c2c2639c1e012e Reviewed-on: https://gerrit.libreoffice.org/18698 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
2015-09-18fixes memleak : clear self referring VclPtr in MetricBoxDennis Francis1-0/+2
Clears self referring VclPtr called mpField in MetricBox (inherited from FormatterBase class) via dispose() method of MetricBox. Change-Id: I375e03e814de3c6e47c36b1fc6f625b04521a5e2 Reviewed-on: https://gerrit.libreoffice.org/18674 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-17make CalcMaskShift a verifiable operationCaolán McNamara1-27/+20
and check it on untrusted data Change-Id: I7c97a27d70f91b9686adf9dcb8b68c5aa25c2b4c Reviewed-on: https://gerrit.libreoffice.org/18637 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-17convert Link<> to typedNoel Grandin1-3/+3
Change-Id: I3d35a0bb75b6989dd13371543d1bdf3ef5f47641
2015-09-17WaE: this method can be declared static ColorMaskElement::CalcMaskShiftTor Lillqvist1-4/+4
[loplugin:staticmethods]. And then 'const' makes no sense. Also, fix fallout warning: calling static member function through member call syntax, use 'ColorMaskElement::CalcMaskShift' instead [loplugin:staticcall]. But actually I wonder if this should be a non-static member function that operates on 'this' (and takes no parameter) instead? Also, the return value is unused. Change-Id: I24949b74bd43eb90499e3c881941b102a3622f92
2015-09-16move CalcMaskShift to ColorMaskElementCaolán McNamara1-35/+32
Change-Id: I6ed7e9bfea8b4500724866214fabd179fba20f20 Reviewed-on: https://gerrit.libreoffice.org/18636 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-16move mask into ColorMaskElement tooCaolán McNamara1-36/+35
Change-Id: I1bd5e2ee71aba088ed8b395a31977e7b567d8b48 Reviewed-on: https://gerrit.libreoffice.org/18635 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-16split out shared rgb components into structsCaolán McNamara1-45/+51
Change-Id: I125e0525f918e68714c1027c5b7144d8f914a575 Reviewed-on: https://gerrit.libreoffice.org/18634 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-16tdf#94281 - don't mix legacy and VCL OpenGLContext's.Michael Meeks1-0/+5
Each has rather different assumptions about how life should be. Change-Id: I85fffc77d14f3a5335a077fcb541a2b31c372043
2015-09-16loplugin:cstylecastStephan Bergmann1-1/+1
Change-Id: I17fb91376839bd036be27546118dfdb794bf067a
2015-09-16tdf#94228 vcl: replace BOOST_PP with templatesDaniel Robertson1-10/+9
Replace BOOST_PP macros in Bitmap Checksum to Bitmap Checksum Octet Array with templates. Change-Id: Ia7cbc20c90b4d99d54760580e3db10afac9020f3 Reviewed-on: https://gerrit.libreoffice.org/18597 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
2015-09-16GL paint-flushing guard re-work.Michael Meeks1-3/+15
Unfortunately, since we can have 2x SalGraphics' on a OutputDevice, and one of these can be a printer - things got very confused around which context to glFlush. This de-tangles the various reference-counts. Change-Id: I1062be0b02a91fc9009deaa3ec29c5dbb227df20 Reviewed-on: https://gerrit.libreoffice.org/18604 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-16convert Link<> to typedNoel Grandin1-2/+2
Change-Id: I8275f9a100e5ed93f44596fe428a39e902c12dfc
2015-09-16clean up VclEventListeners and VclEventListeners2Noel Grandin2-42/+2
Move them inside the vcl module. there is no need to expose their implementation. Make the VclEventListeners2 implementation similar to the VclEventListeners implemenation - I can't see the benefit of this extra complication with invalidated iterators, given the very small number of listeners typically on such a list. Change-Id: I040ddd24b10d2109af13ee25b5181703af17a109
2015-09-16convert Link<> to typedNoel Grandin1-1/+1
Change-Id: If6334d32abbec379acbb9def98fdf6cb5144238b
2015-09-16convert Link<> to typedNoel Grandin1-1/+1
Change-Id: I628de57f87b4ba20a797d345bdf71cf10cf148fc
2015-09-15tdf#93814: Added support for caching shader program binaries.Marco Cecchetti2-8/+16
Change-Id: I21c844b47282f6b3eec443933a86421a074e24df Reviewed-on: https://gerrit.libreoffice.org/18555 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
2015-09-15convert Link<> to typedNoel Grandin1-2/+2
Change-Id: I5c4021c9cb3fdeace7f7d99d580dc7fe2f7c354a
2015-09-15remove Link<> field that is never Call()'edNoel Grandin1-1/+0
Change-Id: I416734c7c42709438e3bdcdb8922ce4ec576c95a
2015-09-14convert Link<> to typedNoel Grandin2-3/+3
Change-Id: I1c501671d72edd5b998e80c7fa1e91dbeb507af8
2015-09-14ImplCallEventListeners and FireVclEvent can take referencesNoel Grandin2-2/+2
Change-Id: Ibfb5ae40edd0db1f6b99bd5178d4d871ede37d7d
2015-09-14list->vectorNoel Grandin1-1/+1
since we are copying these before iterating over them, we don't need the iterator guarantees of std::list Change-Id: I9cb2048e1527f37104c3077e69b5f3b827f08c7b
2015-09-13boost->stdCaolán McNamara2-6/+6
Change-Id: I9b4f884c6313a53fea543ea6f93175205351ad14 Reviewed-on: https://gerrit.libreoffice.org/18517 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-09-11windows opengl: make sure mpLastContext is indeed the current contextMiklos Vajna1-0/+2
There were two problems here: 1) The OpenGLContext ctor registered the instance on the list of contexts, but platform-specific call (e.g. wglMakeCurrent()) was only made later. Add a registerAsCurrent() member function that helps ensuring that the last item in the context list is indeed the current context. 2) OpenGLContext::prepareForYield() is called without the solar mutex being locked, but it still assumes that the last context in the context list is the thread's current context, which may not be true. The result is that during JunitTest_sd_unoapi, we end up in a situation like: debug:4640:5240: OpenGLContext::registerAsCurrent: wglGetCurrentContext() is 00010001, pSVData->maGDIData.mpLastContext is 00FA65F8 debug:4640:7944: OpenGLContext::registerAsCurrent: wglGetCurrentContext() is 000D0003, pSVData->maGDIData.mpLastContext is 00FA6C70 debug:4640:5240: OpenGLContext::prepareForYield: start, wglGetCurrentContext() is 00010001, pSVData->maGDIData.mpLastContext is 00FA6C70 I.e. one thread registers as current, an other registers as current, too (while the other thread has the solar mutex), then once the original thread wants to release the solar mutex, the real current context and the last item in the context list won't match, so the assert at the end of prepareForYield() will fail. Fix this by releasing the GL context in WinSalInstance::DestroyFrame(). With this, JunitTest_sd_unoapi passes on Windows with GL enabled. Change-Id: Icfb9c65c871586b5df69b5a2ab3aa91843dfc799 Reviewed-on: https://gerrit.libreoffice.org/18473 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
2015-09-11convert Link<> to typedNoel Grandin2-7/+2
Change-Id: I70d7c7ae4fc68d2f36a00d7c1b6eba71f63872d7