67 Commits
Author SHA1 Message Date
Noel Grandin 704f61b1bd remove canvas/cairo and canvas/gdi and canvas/directx backends
These were originally created to better support alpha/transparency
in slideshows, but vcl can do that these days.

Mostly, removing these makes the path to better backends (e.g. GDI+)
in vcl considerably easier.

If regressions are detected, it would be better to improve vcl
to perform better, or render better, since that will both fix
the regression and improve other output from LibreOffice.

Also remove various bits of vcl backend that were only being
used by the canvas stuff.

Change-Id: Ic5276d57e696f3dcbeaed2cc149b8fc09c5816f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181843
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-02-19 17:04:28 +01:00
Noel Grandin c4edd3e223 remove dithering from Windows GDI backend
This has not been necessary for some years now. In the unlikely
event that we run on a 256-color display, the OS and the graphics
driver will do the dithering for us.

Change-Id: I23c7a3ded6ea63fcd0a5239bbf2a2cc91bba306f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181143
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-02-05 06:15:10 +01:00
Noel Grandin eba3c7d18b sort members of WinSalGraphics
Change-Id: Ie9593c47141772395cf4c35bd3a3a20170787155
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181099
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-04 17:03:48 +01:00
Noel Grandin 3214c8de3d document raster operation code
Change-Id: I093ae6abcc2256bc422640887a572dcdda5541dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181087
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-04 12:20:28 +01:00
Noel Grandin 7dd7ac0311 flatten some windows GDI code
Change-Id: I9dd2d795803c588da235d9ae9baf213abd208ff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/181086
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-02-04 10:43:03 +01:00
Noel Grandin ff3c9428e7 tdf#164799 Tooltips appear empty
regression from
    commit e0d4d178ca
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Mon Jan 13 15:03:05 2025 +0200
    Change alpha behavour of OutputDevice::SetFillColor

where DrawColorWallpaper is not correctly saving/restoring the
fill color.
Previously this worked because GetFillColor would return a
transparent color if no fill color was set, and a transparent
fill color would be interpreted as "no color" when drawing.

Change-Id: I63e1ba2df0a5e2088d018068fe0a0e45453b7c77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180928
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-01-30 11:52:36 +01:00
Noel Grandin a525438eb6 fix GDI and Quartz backends
regression from
    commit 828a0dcdf6
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu Jan 16 08:23:19 2025 +0200
    ScanlineDirection is unnecessary

Change-Id: I5bc9dc8fc1ad74fb75a2656a97f5c994e9be5bc3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180568
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-01-22 10:54:03 +01:00
Noel Grandin 13183013f1 tighten up WinSalBitmap::Create* methods
One of the paths cannot be hit, so remove it.
Add asserts in other places to catch conditions that
should not happen.

Change-Id: I401a0ffea2587d8bbcb313edef06e766d65c3eee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180533
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-01-21 10:25:33 +01:00
Noel Grandin 2da756e0a8 avoid some casting in WinSalBitmap
Change-Id: I0f18baf52131f229edb5be4bab723e954ba36cab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180532
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2025-01-21 08:17:34 +01:00
Noel Grandin 668dbfd99a tdf#162815 Greyscale images not corrrectly exported to PDF
regression from commit 21734247d5
"drop internal support for 1-bit images"

This only works on Linux because the HasGreyPaletteAny() check
is returning false on Linux, because on linux the swap in/out is more aggressive, and after it is has gone through the swap in/out process,
the image palette is no longer one that matches anything that HasGreyPaletteAny() checks for (it contains 256 entries, but only 2 of them are used)

I'm not exactly sure why the greyscale bitmap generation code
is generating bad PDF data, but the RGB code works great, so
lets just use that rather.

Change-Id: Ibb9e837540d5ed567c706e21e7ff93fe92118580
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177329
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-26 17:29:19 +01:00
Noel Grandin 6d6d11a2d2 use more concrete UNO type in connectivity::ado
Change-Id: I4a23e8847496166f1f9668830b97c71a248dd143
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176206
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-11-07 14:31:13 +01:00
Noel Grandin 8d0a0bc4d4 use more concrete UNO type in connectivity::ado
Change-Id: Ia9bc0e4aade832373def4460e44750be4415967d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176205
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-11-07 14:31:03 +01:00
Noel Grandin d2c4108dca tdf#144702 Base Fields in Report Label Display Clipped
This is probably not an ideal fix, I'm not sure where exactly the
positioning is off, but this does the job for now.

regression from
    commit 95ccc26ba7
    Author: Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>
    Date:   Fri May 22 18:07:45 2015 +0900

Change-Id: I2f02e68418b7adf2cba8dfa4e4e51d4416a91389
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/175417
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-23 07:47:34 +02:00
Noel Grandin bb8fb01dde fix skia m117 sha value
so I messed up and uploaded skia m117 twice. But now there are two
copies of skia m117 in various CDN caches, with different sha256
output (no idea how that happened).

So upload a THIRD COPY with a new name, and then I can fix the
sha256 value in download.lst in a way that doesn't break the build for
someone.

Change-Id: I297ff4d9fa3a0edd902c85f2d674950945249a5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174590
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-10-07 13:19:59 +02:00
Noel Grandin b7b1013fa7 fix skia crash (tdf#160646 related)
while testing the document attached to this bug I get a repeatable
skia crash (only skia is in native mode, not software rendering).

This reveals that there a couple of data structures that need to
be cleaned up while holding the SolarMutex.

Change-Id: I3ff460a4febf1ffcb27ad904224e1594ead4aa3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170612
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-17 12:49:36 +02:00
Noel Grandin ac431b399f make MSVC /analyze a configure option
My debug build is slow enough already, no need to make it worse.

People who want it, can turn it on explicitly.

Change-Id: I8677534d8f0142699baa6b95a249ae5f70c5cc3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170269
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-10 19:04:00 +02:00
Noel Grandin 302a221856 tdf#161198 tdf#161322 fix selection overlays
revert
    commit 7b1405689d
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Apr 19 22:56:04 2024 +0200
    reduce the number of drawing primitives we create in
    OverlaySelection

Change-Id: I868540aadb3a75582990ae4491807991617215b1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168253
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-06-01 10:22:55 +02:00
Noel Grandin c87077f653 fix Windows incremental build
after
    commit 4c86718e78
    Author: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
    Date:   Thu Apr 18 12:45:01 2024 +0200
    initial support for running autogen.sh inside wsl from git-bash

otherwise we end up with mixed cygwin/windows paths in our .d
files, which the make executable we use will not like.

Change-Id: Ia1325793f47657a23774c216df319ae6afd6d638
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167269
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2024-05-07 14:40:58 +02:00
Noel Grandin 7d1242b01d move opencl check at startup inside its own thread
shaves 30% off the startup time for me.

Change-Id: Ibabb2a6b283243aaaaafb8257e99e82e2ef112c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167100
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-07 08:46:47 +02:00
Noel Grandin 49ebf692a0 fix jenkins Windows build
after
    commit defc7a9206
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Fri May 3 09:20:04 2024 +0200
    replace createFromAscii with OUString literals in vcl::pdf::BuildinFont

my local version of Visual Studio seems to have better support
for constinit than the jenkins one.

Change-Id: If6aec53e8280c5afbd27bf53b7ac0cd1a5e742b0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167185
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-06 11:41:40 +02:00
Noel Grandin 02ce80ca2d fix Windows build
probably since
    commit 51f3916a10
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Thu May 2 14:39:14 2024 +0200
    replace createFromAscii with OUString literals in SwFormat

Change-Id: I0d1c7498cd646931db511b197cfc4f694107d521
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167125
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 20:12:42 +02:00
Noel Grandin b7d3e9ce25 speedup configmgr::Access on Windows
std::multiset seems to be pretty slow to construct and
destruct, even if we ~never put anything into these listener
lists, so rather use o3tl::sorted_vector, which has more
predictable performance.
Shaves 10% off startup time for me.

Change-Id: I13afcbe3cb63522e4efe61c64f773e1ffbec9683
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167101
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-05-04 12:27:49 +02:00
Noel Grandin 5edaca5c89 use boost::small_vector in cppuhelper
shaves 5% off startup time

Change-Id: I901e1112727eb7a50f70d1853386e0696fee7e5e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167000
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-05-03 09:00:41 +02:00
Noel Grandin 62ee743d3c fix non-PCH windows build
after
    commit a7f8882e49
    Author: Noel Grandin <noelgrandin@collabora.co.uk>
    Date:   Mon Apr 29 14:31:15 2024 +0200
    convert HeapAlloc to make_unique

Change-Id: Idb2e67285018eeb3373ba11c464df5a00b54a87b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166925
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-30 16:00:25 +02:00
Noel Grandin a7f8882e49 convert HeapAlloc to make_unique
which means we don't have to explicitly handle OOM, and the resulting
code is much cleaner

Change-Id: I958d6678bb2d6878dda9de6bf82c5314f168db17
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166855
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-04-30 11:11:38 +02:00
Noel Grandin 645a7ae677 skip more tests on hi-dpi windows
Change-Id: Ic8a88e112f413a9ec0a77e3be5d8a586312cfe0e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165301
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-26 13:51:42 +01:00
Noel Grandin c469e786be skip more tests on hi-dpi windows
Change-Id: I41368325959e69f016289d8e43775e05087f1be5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165159
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-22 17:45:46 +01:00
Noel Grandin 7979508e43 Simplify some basegfx::fTools::*orEqual calls
Comparing with zero is simple - the implementation of basegfx::fTools::moreOrEqual
calls rtl_math_approxEqual eventually, which special-zases zero.

Change-Id: I62f10f63f103d91a201dfeb20e5b3f9010f377c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-07 12:53:27 +01:00
Noel Grandin 66fefd9a7d Fix Windows --enable-mergelibs=more build
after

    commit 68f55fc9a1
    Author: Vasily Melenchuk <vasily.melenchuk@cib.de>
    Date:   Wed Oct 25 22:26:14 2023 +0300
    vcl:  interface for WinAPI FlashWindow() function

and

    commit 621e162053
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Fri Mar 1 15:58:23 2024 +0200
    add UNLESS_MERGELIBS_MORE and use to reduce symbol visibility

Change-Id: I32660173d255b4b49a346c56fadf998968580a61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164416
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-03-05 13:00:03 +01:00
Noel Grandin e986447db7 fix Windows release build
no idea why this only started warning now

Change-Id: I61c1de875c825a55d2ec41a358503354688183bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163933
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-26 16:51:20 +01:00
Noel Grandin c9fc7f25a3 SAL_CALL is not necessary here
these symbols are only used internally

Change-Id: Ib4dff4c8724649608a3d328e47127cd2e1f1cc21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163649
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-20 16:45:20 +01:00
Noel Grandin 0426cb5bcc fix Windows build
after
    commit 191e3f8d89
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Mon Feb 19 15:48:38 2024 +0200
    merge textconv_dict into i18npool

The first build would work, but subsequent builds would fail.

I'm not sure why this patch fixes it, but it does. Somehow the sed
command was affecting other generated files?

Change-Id: I1550709b6555c838c0371e31b5eb2c90f5065e10
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163648
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-20 16:45:09 +01:00
Noel Grandin 34a09df2d1 fix windows --enable-mergelibs build
after
    commit b663d94cf6
    Author: Noel Grandin <noel.grandin@collabora.co.uk>
    Date:   Mon Feb 5 08:50:24 2024 +0200
    create --enable-mergelibs=more

Change-Id: Ib9f0b3b28df70a9bab10d9bb0aa77a2b2decc616
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163308
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-13 18:53:21 +01:00
Noel Grandin 29c9587df7 fix --enable-mergelibs=more build on Windows
I was over-enthusiastic adding these to the merged list, they
are DLLs with their own DllMain functions

Change-Id: I78a4e026e746f9688bc982ea7c899b05cf8f441d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163309
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-02-13 18:13:46 +01:00
Noel Grandin 21dd07f95d tdf#159131 Calc is laggy when moving a line (row)
revert 	69910b540a and
add a couple of pre-emptive reserve calls, to prevent repeated
resizing.

I'm not sure why the above commit causes trouble on Windows, but
not Linux, something in the std::vector::reserve implementation
no doubt.

Change-Id: I858303a0a1e12d204fd3bbccc6c6c7ce57564e5b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/162746
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-01-30 20:12:06 +01:00
Noel Grandin 956dc23fb1 no need to allocate these on the heap
Change-Id: Ic8a2bd941fa0f6b66e5ec386de5d15a38e6c75da
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160899
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-12-18 11:26:02 +01:00
Noel Grandin def8f76996 tdf#158094 Can't remove trusted certificate in Macro Security
regression from
   commit 6ed8c5a0f1
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Sun Jul 25 21:35:05 2021 +0200
    use officecfg for security options

where I accidentally dropped the chunk of code that removes
existing entries.

Change-Id: I0b183d3c4dc55d5671b4f172e02afd2e4422a37e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159431
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-15 12:03:47 +01:00
Noel Grandin 07dfeffae8 tdf#127547 Freeze in Microsoft Print to PDF dialog
Change-Id: I7a6ef85fae637c8359a96df1bd31d7e8f0b36512
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159369
Tested-by: Hossein <hossein@libreoffice.org>
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-11-13 14:02:59 +01:00
Noel Grandin 9b5a00d228 fix erase logic in SkiaSalBmp::BlendWith
regression from
    commit 81994cb2b8
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Fri Apr 16 20:33:10 2021 +0200
    Convert internal vcl bitmap formats transparency->alpha (II)

Change-Id: I5cefa51c96d412f43f73277b590fd861397eb1a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158526
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-27 21:16:30 +02:00
Noel Grandin 505c5821d6 small steps to getting ASAN on Windows working
Change-Id: Ie8941a7cc87cb5c5dba62e9356e960e45f5560d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158416
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-10-25 12:48:28 +02:00
Noel Grandin 8863ca276e increase space around tabbed pane titles
Tabbed pane titles are currently incredibly cramped,
increase the space a little to make them match better
with current OS layouts (all of the different OSes
we support use quite a lot of space around the
titles)

Change-Id: If9c7b4df81f8d206556e7c75097650ae21508384
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153733
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-06-29 11:10:22 +02:00
Noel Grandin bcd233e45f improve windows backtrace_to_string
I want to know the symbol address we actually capture, since
we seem to getting duplicates in the output of SymFromAddr, I
want to know if the fault is in SymFromAddr, or the backtrace
capture call.

Change-Id: Iece9c204abb780ae6b67a11e6ba77db816351e8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151254
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-05-02 10:37:53 +02:00
Noel Grandin 209e859c3e no need to allocate these separately
Change-Id: Icc24e0aaf1762e5b318b8364dd9fdb496edfb77c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150279
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-13 10:04:42 +02:00
Noel Grandin 00f73472c1 try to fix CppunitTest_framework_dispatch on windows
I see occasional failures here, possibly they are a threading
issue since we are touching these fields from multiple threads.
Add a mutex to see if it helps.

Change-Id: I7277e96d07d292a6bc1d333dabec7a82fc607465
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150281
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-13 07:57:16 +02:00
Noel Grandin 5944f8dc9a mpMouseLeaveTimer has been dead
ever since it was added in
    commit 8229967979
    Date:   Thu Sep 20 15:23:39 2007 +0000
    INTEGRATION: CWS os2port01 (1.2.2); FILE ADDED
    2006/11/29 14:34:20 ydario 1.2.2.1: Initial OS/2 import.

Change-Id: Ic1bbf9f9167f9a7146f3c7d18b6fdb69c1f44e0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150275
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-12 16:01:26 +02:00
Noel Grandin 9cfa99594c use more unique_ptr in SalData
Change-Id: Ib6e5131bff38b55b2dbf0805b63ca3554c5ee349
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/150278
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-04-12 15:47:03 +02:00
Noel Grandin 2604dae572 osl::Mutex->std::mutex in CDOTransferable
Change-Id: I44e9305ec4127f9567fb51ce7bf8c26f17727787
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148974
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-16 16:21:14 +00:00
Noel Grandin 45946d9465 osl::Mutex->std::mutex in CMtaOleClipboard
Change-Id: If19fe618de0c316ffa6d74432b03c507b960a891
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148953
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-16 16:21:04 +00:00
Noel Grandin 5f661a2334 BaseMutex->std::mutex in CWinClipboard
Change-Id: Icabb28d58af5a1e2c5f44513fbbe18da3fd69b03
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148908
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-15 09:22:33 +00:00
Noel Grandin be1c0c1951 osl::Mutex->std::mutex in dtrans::GenericClipboard
Change-Id: I5a4bbb9a445ec73422bca167ca658550eac26b7b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148638
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-12 07:00:12 +00:00
Noel Grandin 5e05c18a44 osl::Mutex->std::mutex in dtrans::ClipboardManager
Change-Id: I94cf2557c8b3ddac111a606361647697c8852b20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148639
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-12 07:00:01 +00:00
Noel Grandin 770580ba8e osl::Mutex->std::mutex in avmedia::win::Window
Change-Id: I4e6e7fd03c4aa7847edbc48bccac88ec361c8237
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/148637
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-03-11 05:54:26 +00:00
Noel Grandin 9027920783 improve reliability of CppunitTest_sw_uiwriter3
something in the paste stuff seems to need UI events to be
processed

Change-Id: Idf10a240ff049bd52873296619f8f820142fda7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147918
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-02-27 17:23:36 +00:00
Noel Grandin 0e123c297a fix test for non-default DPI
Change-Id: Id3b39535ae18a5b38e57d9cacb7e3662a9c3468c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/147498
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-02-23 10:55:16 +00:00
Noel Grandin 7c035ff679 osl::Mutex->std::mutex in ExceptionInfos
Change-Id: Ic947b58b9aba121c605b6795c7cd9aa0b16b180e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146455
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-02-01 17:09:12 +00:00
Noel Grandin f025dcc44c XUnoTunnel->dynamic_cast in connectivityy
Change-Id: Ibe5e87a1ef1bdc11451e8fe240d017f1ef60dfe6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145556
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-16 10:19:16 +00:00
Noel Grandin 1fd4e669a9 XUnoTunnel->dynamic_cast in X509Certificate_MSCryptImpl
Change-Id: If61114df98f4096798281a28ffcdf58168ff7fdc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145475
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-13 15:52:33 +00:00
Noel Grandin 817dc69bb6 XUnoTunnel->dynamic_cast in SecurityEnvironment_MSCryptImpl
Change-Id: Idb013bd71b2a90cd6fb8927b199eb36e9bfd9c06
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145474
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2023-01-13 15:52:25 +00:00
Noel Grandin e96be4156d fix warning C4701: potentially uninitialized local variable 'bBool' used
seen on jenkins

Change-Id: I9d514580a80534eff45578c9b6cfdaf45fb7285f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142234
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-03 18:35:00 +01:00
Noel Grandin 1a4151dcdf tdf#54857 elide more dynamic_cast
re-arrange so we do the cheap checks before the expensive dynamic_cast

Change-Id: Ief10b42894d15ab948e64c1189e0e7abf2c5a107
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142177
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-02 19:47:02 +01:00
Noel Grandin 69910b540a tdf#54857 improve resizing of columns
repeated calls to resize() means we bypass the normal doubling behaviour
of the vector, so rather let it do it's own thing.

Change-Id: I7b4273d20b6cdcac6aeddd61395fbe64de004c9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142176
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-02 18:46:40 +01:00
Noel Grandin e9920a6788 tdf#54857 elide dynamic_cast
shaves 2% off load time of this ppt

Change-Id: I025bae9dbc6a01cd193e2a4721f50cf60ac08dc5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142112
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-11-01 15:54:24 +01:00
Noel Grandin 1ea0ea19f1 tdf#133768 speed up temp file creation
Use DELETE_ON_CLOSE attribute, so we can avoid calling osl_removeFile.
Shaves 5% off the export time.

Change-Id: I4fef8f181ef7a92c4805cc5996c3a17800a22602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141718
Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-10-24 10:10:54 +02:00
Noel Grandin 09dfee8a1c tdf#133767 use more TempFileFastService
Change-Id: I58728f0b7971e3247cd555dd701461824707d15d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141627
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-10-21 20:48:43 +02:00
Noel Grandin 4668bfe4f6 give main thread a name
to make it easier to find in profilers and debuggersy

Change-Id: Ie376186d623957ae71c3e5bcea36888fcdf85d80
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141625
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-10-21 17:28:24 +02:00
Noel Grandin 449117499e workaround VisualStudio2022 compile error
only seems to hit with --disable-pch

Change-Id: I20533aa8516bd92a2cef295ce8c3b4e9a0ab72c5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141546
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-10-20 11:04:28 +02:00
Noel Grandin 8b4ac8c35d improve setup/teardown handling in VBAMacrosTest
do the same thing that the other UnoApiTest subclasses are doing,
seems to fix the problem for me

Change-Id: I0d5288b638a5c8d6994fae5ae5d99f2f29bcf377
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141155
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2022-10-10 17:10:31 +02:00