summaryrefslogtreecommitdiff
path: root/vcl
AgeCommit message (Collapse)Author
2015-04-13loplugin:redundantcast: redundant const_cast followed by implicit upcastStephan Bergmann
Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
2015-04-09more verbose debug message from WMFWriter::WriteRecordsAndras Timar
Change-Id: Iebdc66d1c994e3702efa5609fb36b5b2b9273c86 Reviewed-on: https://gerrit.libreoffice.org/15217 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Andras Timar <andras.timar@collabora.com>
2015-04-09Change tools::Time::GetSystemTicks to sal_uInt64Stephan Bergmann
...as follow-up clean-up after 71fefe1dc2bcda3a4cc18d71e1acaf161cc059f2 "Change 'blink times' to be of type sal_uInt64 and thus consistent with Timer::Get/SetTimeout since 9c7016b5b530ca212b1275f44f9e2fc0527109ee 'Scheduler: Changed uLong to uInt32/uInt64.'" Transitively meant to change quite a number of further time-related places from sal_uLong/sal_uIntPtr to consistently use sal_uInt64. Change-Id: I38eb493943906356138bf58eb098d2f54a3dee34 Reviewed-on: https://gerrit.libreoffice.org/15214 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
2015-04-09Resolves: tdf#90384 queue_resize needs to Invalidate the optimal cache sizeCaolán McNamara
but the PanelLayout didn't Change-Id: I38a8975f1488fa2a2ffe91b66745e1a1c6c48a28
2015-04-09Resolves: tdf#90481 fix cropped buttonsCaolán McNamara
this reverts commit f0ee8ed43528b17e9ea6d83388fbaab0a645b677 Author: Caolán McNamara <caolanm@redhat.com> see if we can merge floating window and dialog child size/pos setting seeing as we apparently can't merge them the way that tried to do Change-Id: I25fb741c9ae73375124b469f98bf1eecd76ff3c1
2015-04-09NSAppKitVersionNumber is always greater than NSAppKitVersionNumber10_7Robert Antoni Buj Gelonch
Change-Id: I9e2b9388c5df1b3a5fc0b2deb570b6f63e59b8eb Reviewed-on: https://gerrit.libreoffice.org/14637 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2015-04-07Remove dead INetProtocol::VimStephan Bergmann
...which removes the need to abstract over the standard URI '%' escape prefix vs. the silly vim '=' special case invention. Change-Id: I54a52dd912c3aafc38275a0ac2466a6daeec328f
2015-04-07fix gtk3 buildCaolán McNamara
Change-Id: If6e9a4a26ff31eb192e054f68398287c18768fcb
2015-04-07invalid index on load of ooo86460-1.xlsCaolán McNamara
because TextLayoutCache took an OUString arg, passing reinterpret_cast<const UChar *>(rArgs.mpStr) as an input created a temp string from mpStr, but ctor stops at first NULL of course unless length arg is passed and input string contains nulls. Just take a sal_Unicode* as input. Change-Id: I452cf6fa61155456fbeceeda105e2e15557a21b3
2015-04-07Change "blink times" to be of type sal_uInt64Stephan Bergmann
...and thus consistent with Timer::Get/SetTimeout since 9c7016b5b530ca212b1275f44f9e2fc0527109ee "Scheduler: Changed uLong to uInt32/uInt64." Otherwise, at least JunitTest_forms_unoapi on 32-bit Linux would stay busy forever in vcl::Cursor::ImplTimerHdl, alternating among ImplRestore() and ImplDraw(). Change-Id: Ic3fd349344c105078b52749ca85559fce485d0c4
2015-04-07vcl tiled rendering: don't do anything with disabled mapmode and mm100 mapunitMiklos Vajna
Turns out Impress wants an mm100 -> twips conversion in this case, while Calc wants a pixel -> twips one, so there isn't anything here that can be abstracted in VCL. Change-Id: Ieb961afa97affbf682e13c0a56585396ae09f552
2015-04-07vcl tiled rendering: fix Writer/Impress invalidation rectangleMiklos Vajna
Both Writer and Impress disable map mode during tiled rendering, i.e. IsMapModeEnabled() always returns false. Nevertheless, using GetMapMode(), it's possible to query what was the map unit before disabling the map mode, which is twips for Writer and mm100 for Impress. If Calc needs anything special here, that's better to be done in ScGridWindow::LogicInvalidate(). Change-Id: I2c10df47d32b80d2cef2b6e6587872fe4126a3f5
2015-04-07sc tiled editing: Invalidate graphic selection.Henry Castro
When dragging shapes the MapMode is disabled, so the coordinates are wrong values converted to twip unit. Change-Id: Idf1e40963cf124fd20dbdf8633487bc71786c6cf
2015-04-04callcatcher: update unusedcodeCaolán McNamara
mostly changed due to loplugin:constantfunction Change-Id: Ib677c78db256f8032a99b3f02a3e363fee68ebcc
2015-04-04Pointless to have a macro that is used just onceTor Lillqvist
Change-Id: Ieead62bcbfab5a96b5350bf30fbbb712f981f10c
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