Commit graph

497835 commits

Author SHA1 Message Date
Mike Kaganski
37217909f2 tdf#161979: Render GDI metafile using drawinglayer in XOutBitmap
After the changes related to EMF+ reworking,  much of the code was removed
from VCL, e.g. commit 217ad59a41 (tdf#111486
Removed not used EMF+ code, 2018-12-07).  EMF+ code is now in drawinglayer
(see EmfPlusHelperData::processEmfPlusData).  Unfortunately, we can't make
ImpGraphic::draw in VCL to use drawinglayer for rendering,  because VCL is
lower in dependency tree (it only can use drawinglayercore).

Change-Id: I08f8c8ec66baf3dde1f35481144d5e1819bb5fc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170311
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-10 22:20:00 +02:00
Xisco Fauli
b2cb093d8b python3: fix macosx installer
Since a1295cb177
"python: upgrade to 3.10.14 (master only)"
because the regex expression no longer matches
"error.cpython-310.opt-1.pyc" with two digits after "error.cpython-3"

Change-Id: I78f566da20e6b591bfa76c36dc69ea3125946d82
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170315
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-10 21:48:56 +02:00
Jonathan Clark
c012c74e69 tdf#146081 sw: Fix inconsistent prop line spacing
Previously, when using proportional line spacing <100%, Writer applied
inconsistent height and ascent adjustments to the first and non-first
lines of paragraphs. This caused Writer to render text at inconsistent
vertical offsets.

Height and ascent adjustments are now consistent.

Change-Id: I303d6aa379007f3fa3e8c1ebb981ef205864708a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170307
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
Tested-by: Jenkins
2024-07-10 21:12:49 +02:00
Xisco Fauli
f5b2e0f1eb merge-app-bundles: fix _ctypes.cpython path
Change-Id: I247c9674de88c9b97297d01b24232a562bcade01
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170318
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2024-07-10 20:21:49 +02:00
Rafael Lima
f6c017fe3c tdf#159348 Update Highlight Overlay when window is resized
When the window is not maximized, the highlight overlay outside the current view is not painted when the window is resized. This patch fixes this issue by repainting the overlay when the window is resized.

Change-Id: I4ad35dcdabc0c95fd24c52a7b9cf7bc6f2583c1c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/168192
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
2024-07-10 19:28:17 +02:00
Noel Grandin
115f600374 tsan: ImplB3DPolygon cannot have mutable state
because it lives inside a cow_wrapper, which means multiple threads will
see inconsistent state.

WARNING: ThreadSanitizer: data race (pid=1448100)
  Read of size 1 at 0x7218002d5a48 by thread T333:
0 ImplB3DPolygon::getNormal()
basegfx/source/polygon/b3dpolygon.cxx:998 (libbasegfxlo.so+0xef47a)
1 basegfx::B3DPolygon::getNormal() const
basegfx/source/polygon/b3dpolygon.cxx:1477 (libbasegfxlo.so+0xe1834)
2
drawinglayer::processor3d::DefaultProcessor3D::impRenderPolyPolygonMaterialPrimitive3D(drawinglayer::primitive3d::PolyPolygonMaterialPrimitive3D
const&) const drawinglayer/source/processor3d/defaultprocessor3d.cxx:424
(libdrawinglayerlo.so+0x1ed388)
3
drawinglayer::processor3d::DefaultProcessor3D::processBasePrimitive3D(drawinglayer::primitive3d::BasePrimitive3D
const&) drawinglayer/source/processor3d/defaultprocessor3d.cxx:531
(libdrawinglayerlo.so+0x1edb6f)
4
drawinglayer::processor3d::BaseProcessor3D::process(drawinglayer::primitive3d::Primitive3DContainer
const&) drawinglayer/source/processor3d/baseprocessor3d.cxx:57
(libdrawinglayerlo.so+0x1e91c1)
5
drawinglayer::processor3d::DefaultProcessor3D::processBasePrimitive3D(drawinglayer::primitive3d::BasePrimitive3D
const&) drawinglayer/source/processor3d/defaultprocessor3d.cxx:543
(libdrawinglayerlo.so+0x1edbe4)
6
drawinglayer::processor3d::BaseProcessor3D::process(drawinglayer::primitive3d::Primitive3DContainer
const&) drawinglayer/source/processor3d/baseprocessor3d.cxx:57
(libdrawinglayerlo.so+0x1e91c1)
7
drawinglayer::primitive2d::ScenePrimitive2D::create2DDecomposition(drawinglayer::geometry::ViewInformation2D
const&) const::Executor::doWork()
drawinglayer/source/primitive2d/sceneprimitive2d.cxx:462
(libdrawinglayerlo.so+0x12469f)
8 comphelper::ThreadTask::exec()
comphelper/source/misc/threadpool.cxx:319 (libcomphelper.so+0x2bd587)
9 comphelper::ThreadPool::ThreadWorker::execute()
comphelper/source/misc/threadpool.cxx:85 (libcomphelper.so+0x2c3930)
10 salhelper::Thread::run() salhelper/source/thread.cxx:39
(libuno_salhelpergcc3.so.3+0x5d22)
11 non-virtual thunk to salhelper::Thread::run()
salhelper/source/thread.cxx:? (libuno_salhelpergcc3.so.3+0x5ed9)
12 threadFunc include/osl/thread.hxx:189
(libuno_salhelpergcc3.so.3+0x6b1e)
13 osl_thread_start_Impl(void*) sal/osl/unx/thread.cxx:237
(libuno_sal.so.3+0xfc937)

  Previous write of size 8 at 0x7218002d5a48 by thread T334:
0 operator new(unsigned long)
/home/noel/llvm-project/compiler-rt/lib/tsan/rtl/tsan_new_delete.cpp:64
(discriminator 8) (cppunittester+0x10c8a1)
1 o3tl::cow_wrapper<ImplB3DPolygon,
o3tl::ThreadSafeRefCountingPolicy>::make_unique()
include/o3tl/cow_wrapper.hxx:304 (libbasegfxlo.so+0xfe798)
2 o3tl::cow_wrapper<ImplB3DPolygon,
o3tl::ThreadSafeRefCountingPolicy>::operator->()
include/o3tl/cow_wrapper.hxx:329 (libbasegfxlo.so+0xef0e5)
3 basegfx::B3DPolygon::getNormal() const
basegfx/source/polygon/b3dpolygon.cxx:1477 (libbasegfxlo.so+0xe1825)
4
drawinglayer::processor3d::DefaultProcessor3D::impRenderPolyPolygonMaterialPrimitive3D(drawinglayer::primitive3d::PolyPolygonMaterialPrimitive3D
const&) const drawinglayer/source/processor3d/defaultprocessor3d.cxx:424
(libdrawinglayerlo.so+0x1ed388)
5
drawinglayer::processor3d::DefaultProcessor3D::processBasePrimitive3D(drawinglayer::primitive3d::BasePrimitive3D
const&) drawinglayer/source/processor3d/defaultprocessor3d.cxx:531
(libdrawinglayerlo.so+0x1edb6f)
6
drawinglayer::processor3d::BaseProcessor3D::process(drawinglayer::primitive3d::Primitive3DContainer
const&) drawinglayer/source/processor3d/baseprocessor3d.cxx:57
(libdrawinglayerlo.so+0x1e91c1)
7
drawinglayer::processor3d::DefaultProcessor3D::processBasePrimitive3D(drawinglayer::primitive3d::BasePrimitive3D
const&) drawinglayer/source/processor3d/defaultprocessor3d.cxx:543
(libdrawinglayerlo.so+0x1edbe4)
8
drawinglayer::processor3d::BaseProcessor3D::process(drawinglayer::primitive3d::Primitive3DContainer
const&) drawinglayer/source/processor3d/baseprocessor3d.cxx:57
(libdrawinglayerlo.so+0x1e91c1)
9
drawinglayer::primitive2d::ScenePrimitive2D::create2DDecomposition(drawinglayer::geometry::ViewInformation2D
const&) const::Executor::doWork()
drawinglayer/source/primitive2d/sceneprimitive2d.cxx:462
(libdrawinglayerlo.so+0x12469f)
10 comphelper::ThreadTask::exec()
comphelper/source/misc/threadpool.cxx:319 (libcomphelper.so+0x2bd587)
11 comphelper::ThreadPool::ThreadWorker::execute()
comphelper/source/misc/threadpool.cxx:85 (libcomphelper.so+0x2c3930)
12 salhelper::Thread::run() salhelper/source/thread.cxx:39
(libuno_salhelpergcc3.so.3+0x5d22)
13 non-virtual thunk to salhelper::Thread::run()
salhelper/source/thread.cxx:? (libuno_salhelpergcc3.so.3+0x5ed9)
14 threadFunc include/osl/thread.hxx:189
(libuno_salhelpergcc3.so.3+0x6b1e)
15 osl_thread_start_Impl(void*) sal/osl/unx/thread.cxx:237
(libuno_sal.so.3+0xfc937)

Change-Id: I9a12e2178cfad07f0a23b5dc4c502ce16ef92fb1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170275
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-07-10 19:04:37 +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
Patrick Luby
8e8036491f tdf#160427 native menu changes can only be done on the main thread
Change-Id: I7dbe9913eaa087e143acb95bdae625c69888c3dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170308
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2024-07-10 18:38:44 +02:00
Michael Weghorn
4241f171ad sd: Switch DBG_ASSERT to assert
This fixes Windows/MSVC build errors like the one reported in [1]:

    C:/BuildLO/core/sd/source/ui/view/drawview.cxx(394): error C2220: the
    following warning is treated as an error
    C:\BuildLO\core\sd\source\ui\view\drawview.cxx(372) : warning C6011:
    Dereferencing NULL pointer 'pSheet'. : Lines: 285, 287, 289, 292, 293,
    294, 313, 333, 336, 339, 341, 343, 345, 347, 349, 353, 354, 355, 369,
    373, 372

[1] https://lists.freedesktop.org/archives/libreoffice/2024-July/092158.html

Change-Id: Ib63cc2d48203a4c6ba2f1239feb7dc306de5d11b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170279
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-10 18:19:29 +02:00
Stephan Bergmann
0c2e0ea495 Consolidate common code
Change-Id: Ic24163970fd5b97c2426f0786d9b7d97a1796f87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170309
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-07-10 17:39:24 +02:00
Stephan Bergmann
62a0eb9b08 loplugin:casttovoid
Change-Id: I07f5220c44077ddb7737d00a8dc5e598a00c3c59
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170310
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2024-07-10 17:38:46 +02:00
Jim Raykowski
d9856b2ca5 tdf#161811 related: Fix change manager dialog context popup menu
Sort By > Document Position results

With out the patch installed gtk sorts by the Action column. x11 and qt
also do something other than expected.

Change-Id: Ic36e79cf928e5ba142b7ff435999e806b1d56214
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170059
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-07-10 17:38:09 +02:00
Caolán McNamara
80a6f398eb regain the SvxCharacterMap "pre-run" logic in async mode
since:

commit 6a5ef1a2b0
Date:   Mon Jan 22 12:35:50 2024 +0200

    make charmap dialog async

Change-Id: I5fc13e759eb8f1d1e6ab7c09f39cabc1d4c4ad7e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170276
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-10 17:29:07 +02:00
Caolán McNamara
e6c4d733f1 cid#1556474 COPY_INSTEAD_OF_MOVE
and

cid#1557319 COPY_INSTEAD_OF_MOVE
cid#1557320 COPY_INSTEAD_OF_MOVE
cid#1558101 COPY_INSTEAD_OF_MOVE
cid#1606536 COPY_INSTEAD_OF_MOVE

Change-Id: Ibe10ee3fad7f6ca1f3c5b316fdafe4bf15f0ead7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170280
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-10 17:28:56 +02:00
Jim Raykowski
8afc4d10f9 tdf#161717 Enhancement to identify click on tracked change
This is a followup that fixes tracked change comments are not always
highlighted in the Manage Changes dialog/sidebar panel when the
anchor triangle is clicked on in the document.

Change-Id: I0bf8bebf8133777e79101e908afd268ab44c0d68
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170258
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2024-07-10 17:27:34 +02:00
Olivier Hallot
0862a12208 Update git submodules
* Update helpcontent2 from branch 'master'
  to 1a7045ca49e06f1e84bee74cdac6d8d6a399ddd8
  - tdf#159596 match XLOOKUP Help terms to UI terms
    
    Change-Id: I5c2c7739ae6e6a7413bd99a72fa448981c560b50
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/170312
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-07-10 16:52:05 +02:00
Ilmari Lauhakangas
df9055254c Update git submodules
* Update helpcontent2 from branch 'master'
  to 33ffaf1eaac11bb5770eadce49fac96a4ae4ba86
  - tdf#160197 remove mention of removed GetLocale BASIC function
    
    Change-Id: Icc3223e4f6ceb83abe542beb538f5ade052e495e
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/170313
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
    Tested-by: Jenkins
2024-07-10 16:51:15 +02:00
Stephan Bergmann
b3300387f2 Fix UBSan build of ExternalProject_redland
...after c75c21eef6 "Upgrade raptor to 2.0.16",
where it now started to fail with

> libtool: link: LD_RUN_PATH="/usr/local/lib:" /usr/bin/ccache /home/tdf/lode/opt_private/clang-llvmorg-12.0.1/bin/clang --gcc-toolchain=/opt/rh/gcc-toolset-12/root/usr -fsanitize=address -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=local-bounds -fsanitize-blacklist=/home/tdf/lode/jenkins/workspace/lo_ubsan/sanitize-ubsan-excludelist -fno-sanitize=function -DLIBRDF_INTERNAL=1 -O0 -Wp,-U_FORTIFY_SOURCE -fstrict-aliasing -fstrict-overflow -ggdb2 -gsplit-dwarf -Xclang -debug-info-kind=constructor -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -Wl,-rpath-link -Wl,/home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -Wl,-rpath-link -Wl,/home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program -o .libs/redland-db-upgrade db_upgrade.o  -L/home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/raptor/src/.libs /home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/raptor/src/.libs/libraptor2.so -L/home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/libxml2/.libs /home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/libxml2/.libs/libxml2.so -L/home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/rasqal/src/.libs /home/tdf/lode/jenkins/workspace/lo_ubsan/workdir/UnpackedTarball/rasqal/src/.libs/librasqal.so ../src/.libs/librdf.so
> /opt/rh/gcc-toolset-12/root/usr/bin/ld: /home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libicuuc.so.74: undefined reference to `__ubsan_vptr_type_cache'
> /opt/rh/gcc-toolset-12/root/usr/bin/ld: /home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libicuuc.so.74: undefined reference to `__ubsan_handle_function_type_mismatch_v1'
> /opt/rh/gcc-toolset-12/root/usr/bin/ld: /home/tdf/lode/jenkins/workspace/lo_ubsan/instdir/program/libicuuc.so.74: undefined reference to `__ubsan_handle_dynamic_type_cache_miss'
> clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [Makefile:489: redland-db-upgrade] Error 1

(<https://ci.libreoffice.org/job/lo_ubsan/3239/>) because $(CC) is used to link
a (nominally C-only) executable that links against C++ ICU shared libraries that
in turn require a C++-specific UBSan library to be linked in.  So just use
$(CXX) for linking instead.

Change-Id: If7c61c6ee7e1b43965a928b1560f8ab4ae2b0603
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170277
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-10 16:06:52 +02:00
Xisco Fauli
ff55c7d386 sw: uitest for c519de2296
Change-Id: If5e03591ba4aef6a111268b32bff305e1ec6ba8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170284
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2024-07-10 15:39:06 +02:00
Caolán McNamara
3374417097 cid#1608592 Double lock
since:

commit 9301f4d486
Date:   Thu Feb 16 14:31:25 2023 +0200

    osl::Mutex->std::mutex in ResultSetDataSupplier

Change-Id: I6be50541e00f8f8de3bdebe1690e14e805bee14e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170281
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2024-07-10 14:29:50 +02:00
Henry Castro
4645a85025 lok: sc: fix warning autofilter message box
Do not send the warning dialog to other users.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I53ce2f24a17d853a9e7e6d302e101e4fa9d556dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169205
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 57f781eee6eac7a10210f7b8b539b4b00c6d08e8)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170118
Tested-by: Jenkins
2024-07-10 13:48:38 +02:00
Heiko Tietze
a9e23d1dcd Resolves tdf#161421 - Draw soft hyphen in black on PDF export
Change-Id: I69a19a0919fd31f8ea2fee962e994d61873e51c1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170211
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2024-07-10 13:47:09 +02:00
Christian Lohmaier
d35deb92f8 update credits
Change-Id: If9db88d33699c5cd3c48dca42bc3c86e6f3eea3b
2024-07-10 13:40:33 +02:00
Caolán McNamara
8b84691d5e make query set ins mode dialog async
Change-Id: I1951abc34cca59aaffb85540d38e2f002ddc3f09
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170256
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-10 13:31:50 +02:00
Pierre F
cda866cff5 Update git submodules
* Update helpcontent2 from branch 'master'
  to c2abcb72746a4354ff3e13aa8343c3f123ebc763
  - misc fix scalc/01/data_form. tdf#158426
    
    Change-Id: I18c4e057305daed9ae8bdb23766173a0cbcee6a3
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/169959
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2024-07-10 13:20:35 +02:00
Noel Grandin
3b56051560 add more tsan suppression
Change-Id: I8d937e098fb422c3bf12ef0fa51cb48337e0b0c0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170274
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-10 12:47:48 +02:00
Stephan Bergmann
875997c896 Properly implement cppu::throwException for Emscripten
...by implementing (for now) just enough of the cpp2uno half of the Wasm UNO
bridge to make it work.  In general, that half suffers from the same issue as
the already-implemented uno2cpp half, namely that Wasm doesn't allow to generate
code on the fly (which, in this case, would be needed to implement the vtable
slot trampoline functions).  So, for now just hard-code the few
vtableSlotFunction_* that are needed by the UNO interfaces for
cppuhelper/source/exc_thrower.cxx.  (A proper fix would probably use the same
approach as for the uno2cpp half, and use something like wasmcallgen to generate
at least all the vtableSlotFunction_* needed for udkapi/offapi upfront.)

The RTTI for the exceptions needs to be unique across the executable for
exception catching to actually work (as it compares exception types by RTTI
address rather than by name).  We thus need to export all the relevant RTTI
symbols (which I hacked into the existing wasmcallgen for now, even if that
makes that executable's name a slight misnomer now), and access them with a new
jsGetExportedSymbol.  (This exporting would also be needed by the "classical"
approach of using dlsym on the main module, cf.
<https://gerrit.libreoffice.org/c/core/+/167187> "WIP: Emscripten: Set up
support for dlsym from main module".  And while that dlsym approach would work,
it is much simpler to just use that jsGetExportedSymbol than to use a dlsym
detour, and thereby avoid all the hassle of -sMAIN_MODULE detailed in the commit
message of that Gerrit change.)

It also turned out that including Emscripten's <cxxabi.h> needs
__USING_WASM_EXCEPTIONS__ to be defined, because it uses that in its declaration
of __cxa_throw.  (The source for setting that define internally in Emscripten is
get_cflags in the emsdk's upstream/emscripten/tools/system_libs.py, which
defines __USING_EMSCRIPTEN_EXCEPTIONS__ for the non-Wasm, Emscripten JS
exception mode, and defines __USING_WASM_EXCEPTIONS__ for
--enable-wasm-exceptions, which we use.  The commit message of
f4ec967599 "Fix redefinion of Emscripten
__cxxabiv1::__cxa_exception" documents my prior confusion of when one or the
other would be defined.)

Change-Id: Id08765ab5b4ce1553dc3a61648324526185cb64c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170246
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2024-07-10 12:32:15 +02:00
Michael Stahl
4833f13124 package: ZipFile: don't accept duplicate entries (case insensitive)
This is required for OOXML, but not for ODF.

Unclear if there are use cases for this with ODF, can add some
conditions if it turns out to be a problem.

Change-Id: I3810da5c2273574135d133b4a9bbad98dc97af44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170223
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-07-10 12:08:09 +02:00
Marco Cecchetti
bf972de2c1 lok: expose presentation info and slide render functions
This exposes the (impress only) function to get the current
presentation info in JSON format and the slide rendering functions
that enable rendering of slide layers to a bitmap.

Change-Id: Id0591d5894f730eae48b3edc986ae5d804ce7c81
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170263
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-07-10 11:47:49 +02:00
Patrick Luby
99fda8da4e tdf#161712 invoke ScSimpleUndo::EndUndo() before ShowBlock()
If this is an instance of ScUndoAutoFill, ShowBlock() will invoke
ScTabViewShell::MoveCursorAbs() which will delete this instance
so invoke ScSimpleUndo::EndUndo() first.

Change-Id: I7ef6dfa0444c38974e1d8c5af6672144f045d22d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170254
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2024-07-10 11:16:11 +02:00
Caolán McNamara
63910ad6e5 prefer higher version of "Noto Sans Arabic" of system vs bundled
I have "Noto Sans Arabic" installed system wide:

file: "/usr/share/fonts/google-noto-vf/NotoSansArabic[wght].ttf"(s)

fontversion: 131858(i)(s)

and there is the bundled version:

file: "./instdir/share/fonts/truetype/NotoSansArabic.ttf"(w)

fontversion: 131727(i)(w)

what we generally want to do is pick just one font, the version with the
higher number, but in this case we don't see them as near-duplicates and
so add both of them.

In my case then using any font/glyph fallback for a "en" font suggests
"Noto Sans Arabic", presumably because the bundled one has those glyphs,
but we seem to end up rendering with the system one which doesn't have
them, so font/glyph fallback for fonts that are non explicitly
configured somewhere in fontconfig end up with missing glyph symbol.

So additionally disregard the FC_INDEX and FC_POSTSCRIPT_NAME fields
when comparing fonts to find the higher version.

https://bugzilla.redhat.com/show_bug.cgi?id=2262410 has a similar
sounding problem but in the end I think it is a different issue, but
maybe the same trigger of having "Noto Sans Arabic" at the start of
the list of possibilities.

Change-Id: I500fb9cad793b63d0fbeb8c4bc1246fd68be39fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170251
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2024-07-10 11:05:55 +02:00
Armin Le Grand (allotropia)
1bfebb926d CairoSDPR: Handle FillGraphicPrimitive2D better
Avoid decomposition of it in AnimatedExtractingProcessor2D
by handling there directly. Goal is to find/extract animation
primitives, so only do something when the contained Graphic
is active

Change-Id: I1d168428ddbaaac2c9d5fde7b26be380ba442c30
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170203
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2024-07-10 10:50:31 +02:00
Miklos Vajna
5978063501 tdf#161970 sw content controls: fix PDF export for the ExportNotesInMargin case
Have both a content control and a comment in a document, export to PDF
while "Comments in margin" is enabled, now the default text of the
content control has an incorrect position / size.

The transform for normal writer comment was added in commit
eb1c048005 (Resolves: fdo#36815 enable
printing WYSIWYG sidewindow comments, 2014-04-16), and e.g. the
hyperlink rectangles are transformed correctly, but the content control
PDF export code added in commit 82d90529dc
(sw content controls, rich text: add initial PDF export, 2022-09-12)
missed this.

Fix the problem by extracting the actual transform to a new
SwEnhancedPDFExportHelper::MapSwRectToPDFRect() and then using it in
both SwEnhancedPDFExportHelper::SwRectToPDFRect() (e.g. hyperlinks) and
SwContentControlPortion::DescribePDFControl().

Note that the font size of the PDF widget also needs scaling down, also
fix here.

Change-Id: I9cccbd569070336e1720ba2a82e91793083722f1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170266
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2024-07-10 10:44:37 +02:00
Andrea Gelmini
ffd41d7ae8 Remove duplicated includes
Change-Id: I83eedc544f19999d36da8e2090c0dd55ef432fd2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170224
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-10 09:50:28 +02:00
Andrea Gelmini
a97e624692 Fix typo
Change-Id: Ic166e36a90c09df9cab49f3b2b8092e64730d05f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170245
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-10 09:50:01 +02:00
Andrea Gelmini
180d33c69a Remove duplicated include
Change-Id: Id309c3775e1704ab65cea86ece65e960d1f2cd1a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170264
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-10 09:49:35 +02:00
Andrea Gelmini
1bceae90fc Fix typo
Change-Id: I769aaab7e5a879c99a1db5cc87a0b5118fb42eb4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170265
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2024-07-10 09:49:14 +02:00
Michael Weghorn
c48307b552 icon choice ctrl: Drop unused forward-declaration
Change-Id: I7035f9495b6b2fb0f602f88fef9b3c837417b875
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170250
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-10 09:26:57 +02:00
Michael Weghorn
7a4e4ca888 icon choice ctrl: Drop code for non-autoposition mode
As shown by

    Change-Id: I8d19e15d8c6e95cdc5e797e6b9524d9299dc1fdd
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Jul 9 17:32:01 2024 +0200

        icon choice ctrl: Always use SvxIconChoiceCtrlPositionMode::AutoArrange

, `SvxIconChoiceCtrlPositionMode::AutoArrange` is the only
positioning mode that actually gets used, so simplify the code
by dropping the effectively unused code for
`SvxIconChoiceCtrlPositionMode::Free`.

(`git show --ignore-space-change` can help to see the "actual
changes" more easily.)

Change-Id: Icd5ee30eafefafbf597681e28521d5a566ea0af3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170249
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-10 09:26:49 +02:00
Michael Weghorn
cc2ddc12c3 icon choice ctrl: Always use SvxIconChoiceCtrlPositionMode::AutoArrange
`SvxIconChoiceCtrl_Impl` is only used by `SvtIconChoiceCtrl`
and that one explicitly sets
`SvxIconChoiceCtrlPositionMode::AutoArrange` in its ctor
to override the `SvxIconChoiceCtrlPositionMode::Free` default.

In a first step, default to `SvxIconChoiceCtrlPositionMode::AutoArrange`
and drop the setter, to simplify the code.
Further cleanup will be done in a follow-up commit.

Change-Id: I8d19e15d8c6e95cdc5e797e6b9524d9299dc1fdd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170248
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-10 09:26:34 +02:00
Michael Weghorn
633ad5fd67 icon choice ctrl: Simplify list pos handling
Instead of storing the current list position in
the `SvxIconChoiceCtrlEntry` and having to take
care of updating that when entries are added to
or removed from the `SvxIconChoiceCtrl_Impl` in
order to keep it in sync with the elements in
the vector, just calculate and return the vector
index in `SvxIconChoiceCtrl_Impl::GetEntryListPos` on
demand.

Change-Id: Iec4e700c1ccc1261fde778b1b38af4dbac5a14c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170247
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-10 09:26:26 +02:00
Balazs Varga
46d55cf796 tdf#161964 - sc Fix Lookup functions error with only-row reference
as a lookup_array parameter. ($1:$1)

Regression from commit: 85f733a924
(Related: tdf#160725 - Add horizontal binary search mode for SortedCache)

Change-Id: I3ef7c612e7bc92ecab81a3e52aed9873da907f16
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170221
Reviewed-by: Balazs Varga <balazs.varga.extern@allotropia.de>
Tested-by: Jenkins
2024-07-10 08:47:16 +02:00
Mike Kaganski
982a021bb7 Simplify and flatten a bit
Change-Id: Ida5f925f0c87f27cc5ed3578221959a4d59f3f43
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170240
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-07-10 08:32:46 +02:00
Mike Kaganski
78a6b95b1e Drop redundant code
GetMarkedObjBitmapEx works on BitmapEx now, and does exactly
the same.

Change-Id: Ia7333515996803fcf1ac10515950ce2f96ab01fe
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170239
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2024-07-10 08:32:40 +02:00
Marco Cecchetti
1f0fd06bc0 sd: slideshow render interface and implementation
Interface and implementation to expose the ability to render
the slide's layers to a bitmap.

Change-Id: I3da48585e498354592e163d84bd29659b233c255
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170214
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2024-07-10 08:05:56 +02:00
Noel Grandin
6f96e7720f Revert "tdf#158556 speedup docx load"
This reverts commit ab29c857c6.

As jluth points out, my logic here is wrong.

Change-Id: I8887526a0a96070ad615aa07ef0e77e36214d0d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170252
Reviewed-by: Justin Luth <jluth@mail.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-10 07:33:03 +02:00
Noel Grandin
c9f5f3d4e0 add more tsan suppressions
Change-Id: I3e397763581340d6f0ae5136e0022c939cbf2997
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170216
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2024-07-10 07:32:52 +02:00
Michael Weghorn
0b1bbffe49 icon choice ctrl: Drop unused GRID_NOT_FOUND define
Unused since:

    commit 5db79db0f0
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Wed Jul 3 10:54:48 2024 +0200

        tdf#161853 Drop unused SvxIconChoiceCtrl_Impl::GetPredecessorGrid

Change-Id: I146da489fcc1faa4915d2af5449131729cf042bf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170213
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-10 05:35:25 +02:00
Michael Weghorn
54351d0a5f icon choice ctrl: Drop SvxIconChoiceCtrl_Impl::nMaxVirtWidth
Since

    Change-Id: I52c40acf2024b25b0cd713fd7c91d7e0b59f4663
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Tue Jul 9 11:55:26 2024 +0200

        icon choice ctrl: Drop WB_ALIGN_TOP

, it is only written to, but never read, so drop it.

Change-Id: Iee03649a1ff99bf77383710835995b393cab689e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170212
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2024-07-10 05:35:17 +02:00
Michael Weghorn
c4e8c40815 icon choice ctrl: Update doc on WB_* flags
`WB_NOSELECTION` and `WB_SMART_ARRANGE` were
dropped earlier, so drop their doc as well.

There's no `WB_SMALL_ICON`, but `WB_SMALLICON`,
so adjust the name in the doc as well.

Change-Id: I8eb36d1184743f8e7a3e501f05e3f4b5a374e51d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170210
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2024-07-10 05:35:06 +02:00