summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-04-02loplugin:redundantcastStephan Bergmann
Change-Id: I6095d1209f2339387e8562074daa32779089a018
2015-04-02Change INetProtocol enumerators to CamelCaseStephan Bergmann
...to avoid clashes with macros and poor warnings about hiding global FILE Change-Id: I444e8b958f029201b228937e088efabc4b6d3050
2015-04-02Resolves: tdf#86399 don't clobber cluster start caret posCaolán McNamara
with other cluster element bounds Change-Id: I2cc976eb6a0ef42a2678be80637c7220e2247921
2015-04-02Change INetProtocol to scoped enumerationStephan Bergmann
...and fix o3tl::enumarray::operator [] const overload Change-Id: I749b1b9d68686b03a97074253478d9d2d9d32b0b
2015-04-02vcl: [loplugin:staticcall]Michael Stahl
Change-Id: I7e3bb7f33e5b5d4d831ae1389b8ef64e160a94ff
2015-04-02fix crash with ooo71962-1.odtCaolán McNamara
script run ends after chunk we are rendering Change-Id: Idbfe11c385db72a80d3d204f8638d67395580d1b
2015-04-02loplugin:staticmethodsNoel Grandin
Change-Id: Ibf0c73ac17ec19ed672f66907db47057920babca
2015-04-01loplugin:staticfunctionNoel Grandin
Change-Id: I909cf7e77f9d7194575636248196fda311fffdb6
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
Change-Id: I3269d005634c66929e092d6a8fb33d71819b6971
2015-03-31tdf#63905: fix regression by using paper size set in printer propertiesClément Lassieur
Change-Id: I51407c4b7ebbe3782539e1cb6f3c8294ae29566e Reviewed-on: https://gerrit.libreoffice.org/13763 Reviewed-by: Katarina Behrens <bubli@bubli.org> Tested-by: Katarina Behrens <bubli@bubli.org>
2015-03-31tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfoMichael Stahl
When a SwTxtFormatInfo is created to format a paragraph, pre-compute the result of vcl::ScriptRun::next() and cache it for future calls to OutputDevice::GetTextBreak() and GetTextWidth(). This requires adapting a bunch of methods to pass the additional parameter, and some classes to backup and restore the cache when they replace the text of the SwTxtFormatInfo. There is some code in vcl OutputDevice::ImplPrepareLayoutArgs() to modify the passed string and replace digits depending on "meTextLanguage" member; try to set it to the correct value when creating the layout cache (unfortunately it's not possible if the user sets the CTL Numerals config to the non-default "Context" value). Another issue is the check in OutputDevice::ImplLayout() if there is a mpConversion member on the font; apparently this is used to translate between different Symbol fonts, so not very important; just ignore the cache in this case. This reduces vcl::ScriptRun::next() from 11 to 0.36 billion callgrind cycles when built with GCC 4.9.2 -m32 -Os (which is still 16% of the formatting). Change-Id: I61fb8530333f2e7a9199f767c00cf2181ba49951 Reviewed-on: https://gerrit.libreoffice.org/14732 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-31vcl: WinSalGraphics: don't crash if there's no fontMichael Stahl
The CairoTextRender::GetTextLayout() also handles non-existing fonts gracefully, so adapt this for consistency. Change-Id: I89cd9ad6aa64e3b320da83bd4290e4c0b57d08bc
2015-03-31tdf#81813: Typing to select value in dropdown resets after space characterJulien Nabet
Change-Id: I6972cdad9708a46bb8338590312196e55c4f8778 Reviewed-on: https://gerrit.libreoffice.org/15024 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-31V597: introduce a rtl_secureZeroMemoryCaolán McNamara
Change-Id: Id28046eb318cd3b2ed0b813fd266617547cf6ee2
2015-03-31Reduce to static_cast any reinterpret_cast from void pointersStephan Bergmann
Change-Id: I65d76524847b57dcb17ee3f66e156ec1fd51b239
2015-03-31-fsanitize=functionStephan Bergmann
Change-Id: I47bb1acebf409f0d391a06ca7a7399d8654ff143
2015-03-31cppcheck: can add explicit to ctorCaolán McNamara
Change-Id: I9b626a8c5674157033f62f5aff10259136d21a42
2015-03-31cppcheck: value that is never usedCaolán McNamara
Change-Id: If4707a661a447e5053df83c431ac9f4dab8ff5ae
2015-03-31cppcheck: scope can be reducedCaolán McNamara
Change-Id: I62e1c203e5224e69b4864f321287f2fcbe3db08f
2015-03-30Scanlines on Windows seem to be padded to DWORD multiplesTor Lillqvist
Change-Id: I806744fed51f451f17e6f493555f81cc38e2d71e
2015-03-30coverity#1292225 variable guards dead codeCaolán McNamara
Change-Id: Ie00be7806b5bce3599c47654585246edf6f8cc90
2015-03-30don't attempt X internals for gtk3 plug window used by avmediaCaolán McNamara
Change-Id: I3694decc417627fe8ea95642b7e1444e5140304f
2015-03-30vcl: fix GCC buildMiklos Vajna
Change-Id: Iceb274718ee2a15dcb3129d2623844e38b51bf8e
2015-03-30Introduce vcl::IsWindowSystemAvailable()Tor Lillqvist
Change-Id: I6e3f804833db7487ddf7ba75c43d15017dcbe1ba
2015-03-30Bootstrap.initVCL is not used by our Android app any moreTor Lillqvist
Change-Id: Id1e58547cf2b0786d7a2ca29eae8bbcdd644fdd5
2015-03-30Covertiy#1292224: Probably this is what was meant...Stephan Bergmann
Change-Id: Idf7b28e9c49ebe06a44b95dd284aa28c16a30c1c
2015-03-30vcl tiled rendering: fix invalidation callback in ImpressMiklos Vajna
Even if map mode is disabled, we have to check if the map mode is 100th mm, and if so, do the mm100 -> twips conversion. This was not visible previously due to the full repaints fixed by commit 7b8a59807806dbf6ec759a836c873b435e09e907 (sd: when tiled rendering, disable map mode early, 2015-03-20). Change-Id: I57862b43cc45ef864d7ec05c47b136e534ba2d54
2015-03-30Don't crash if no screens available (no access to the window system)Tor Lillqvist
Fixes a crash when running gengal on OS X in a ssh session when not logged in through the window system at the same time. Change-Id: I6a47666aeac43fc140f52ae2d62b36eadc976246
2015-03-29Fix test on non-LinuxStephan Bergmann
Change-Id: I0852c732d580d85ebad629ca26c28ede1576b957
2015-03-29loplugin:cstylecastStephan Bergmann
Change-Id: I999ec56219a7d9a9dc8c1e9310cc74dccd0ac099
2015-03-29vcl: cleanup pngreader, use unique_ptr for pImplTomaž Vajngerl
Change-Id: I36fb35338d8635e4bf1ac7c60e0f09da401406db
2015-03-29vcl: test for bitmap convert, use scoped read/write accessTomaž Vajngerl
Change-Id: I702d3e1ced356efce28ebfec141776f07645b2f9
2015-03-28Revert "tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfo"Norbert Thiebaud
This reverts commit 1efe5fe38031f7bc23150c35e4c68940621a1d5b. which broke windows.
2015-03-29This SAL_WARN is hit every time Writer is opened it can't be that importantTor Lillqvist
Change-Id: I89922b2b3e7415275e7d91c037733537bc45e336
2015-03-28The pExceptionHandler variable can be staticTor Lillqvist
Change-Id: I83f2531e092eaa610cf887937c803e11c6120e55
2015-03-28Clean up C-style casts from pointers to voidStephan Bergmann
Change-Id: Iad602cece6e328c7f5d5f36adb294c97b152ade3
2015-03-28tdf#89666: vcl: speed up HbLayoutEngine with cache in SwTxtFormatInfoMichael Stahl
When a SwTxtFormatInfo is created to format a paragraph, pre-compute the result of vcl::ScriptRun::next() and cache it for future calls to OutputDevice::GetTextBreak() and GetTextWidth(). This requires adapting a bunch of methods to pass the additional parameter, and some classes to backup and restore the cache when they replace the text of the SwTxtFormatInfo. There is some code in vcl OutputDevice::ImplPrepareLayoutArgs() to modify the passed string and replace digits depending on "meTextLanguage" member; try to set it to the correct value when creating the layout cache (unfortunately it's not possible if the user sets the CTL Numerals config to the non-default "Context" value). Another issue is the check in OutputDevice::ImplLayout() if there is a mpConversion member on the font; apparently this is used to translate between different Symbol fonts, so not very important; just ignore the cache in this case. This reduces vcl::ScriptRun::next() from 11 to 0.36 billion callgrind cycles when built with GCC 4.9.2 -m32 -Os (which is still 16% of the formatting). Change-Id: I61fb8530333f2e7a9199f767c00cf2181ba49951 Reviewed-on: https://gerrit.libreoffice.org/14732 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-03-28Make console-only mode a proper subset of headless modeTor Lillqvist
Let's not make the mode space too complex. Do we really want to have to ponder what it means to be console-only but not headless? Make it so that turning on console-only mode also turns on headless mode (with dialogsAreFatal turned on, too). Change-Id: I630cb1bc605c1fb1787ace58180125509ef8789b
2015-03-27gnome#745909 grab/ungrab keyboard for menusCaolán McNamara
Change-Id: Id0593e1c9af79084ae798f26a0be37c57d254227
2015-03-27more std::min and std::max fixesNoel Grandin
Change-Id: I4e654419221b39dfd64d85a18ae0919bbe2fab5a
2015-03-27fix OSX build after my StandardButtonType changes - part2Noel Grandin
Change-Id: Ifb5d85866d35cdd1c4150ea841194ee5ca8a496e
2015-03-27fix OSX build after my StandardButtonType changesNoel Grandin
Change-Id: I2a2e8094aba0d227a9b60902133092cc33f1f586
2015-03-27fix std::min issueNoel Grandin
some tinderboxes are complaining with: could not deduce template argument for 'std::initializer_list<_Elem>' from 'int' Change-Id: Ib6bb1c9958a86fd7bb98d5ce855764f381d2ba43
2015-03-27fix macro and enum name collision using CamelCaseNoel Grandin
so that the enum names remain consistent Change-Id: I656069b484038d3bf17ecbb4f3e26395ca5a1b6d
2015-03-27work around Windows and OSX macro collisions with enum valuesNoel Grandin
Change-Id: I3d14b96b6b51e497bde33f0177b377e7fe3dbad9
2015-03-27fix tb56 buildNoel Grandin
Change-Id: I453d6e1840445a03c6918173dc93f32e3028ea74 error: no matching function for call to 'max(int, sal_Int32&)'
2015-03-27convert SymbolAlign to enum classNoel Grandin
Change-Id: Iecc1400809212f56915cad56b739378cda49b90f
2015-03-27convert BUTTON_ constants to enum classNoel Grandin
Change-Id: I0fd391a6b2850e5d7dcbf2cb95cfa39ee5561bd9
2015-03-27convert ProminentEntry to enum classNoel Grandin
Change-Id: I51578e83a6a44beece174792c9e3e59f7f8c5fef
2015-03-27vcl: stack blur implementation + basic test & performance testTomaž Vajngerl
Change-Id: I793ed80a07d9488c5f75b3abdca6db344d80d3d8