Commit Graph
503053 Commits
Author SHA1 Message Date
Laurent Balland 4e8775bfa4 tdf#164617 Fix Focus Impress template
Change styles of objects of first slide to automatic styles.
It preserves styles when affecting Master Page.

Change-Id: I3c54284477d6a4cd84369204a556f123b36b0ba7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179970
Tested-by: Jenkins
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
2025-01-09 07:50:58 +01:00
Laurent Balland d2c3b27a05 tdf#164617 Fix Ligths Impress template
Change styles of objects of first slide to automatic styles.
It preserves styles when affecting Master Page.

Change-Id: I43b8d8354c7c7c63f1b6f460e20c6376a76dcc02
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179971
Reviewed-by: Laurent Balland <laurent.balland@mailo.fr>
Tested-by: Jenkins
2025-01-09 07:50:02 +01:00
Stephan Bergmann 325945a544 Fix rudimentary Emscripten Qt6 copy -> paste support
...following up on 5a4ca3ce93 "Rudimentary
Emscripten copy -> paste support" (which had addressed both Qt5 and Qt6, in
general)

Change-Id: I45dbea5cf852c126cdf0509f9cdef7218d2a8eda
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179962
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-08 19:33:25 +01:00
Michael Stahl b57f1f7be1 xmlsecurity: fix --without-system-nss build
signing2.cxx:71: error: undefined reference to 'NSS_OptionSet'

(regression from commit f0efcb9170)

Change-Id: Idad3f7d5d1a2cb642ac3485a750cdc7631fbf4df
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179954
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
Tested-by: Jenkins
2025-01-08 16:48:37 +01:00
Mike Kaganski 9e4114e2cc Simplify a bit
WinLaunchChild takes the same kind of argv as execv, terminated by
a null pointer; so no need to pass argc.

Change-Id: I280c8da0c613a7d0d1a208831a87f0e4648719f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179952
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 16:10:03 +01:00
Mike Kaganski 3b89850b80 Use o3tl::toW instead of c-style cast
Change-Id: Id027978cbe6188fecafe71f6566dd8501ffdabe2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179950
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-08 15:04:31 +01:00
Michael Stahl e28c5a2c93 poppler: upgrade to release 25.01
Fixes CVE-2024-56378

- remove disable-nss-and-gpgmepp.patch.1 and instead build
  CryptoSignBackend.cc which appears to have working ifdefs now
- run the update_pch script
- add clang-std-rotate.patch.1 because jenkins failed

Change-Id: I7fcdd10766287e83dc666041644f129378584d91
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179903
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-01-08 15:00:00 +01:00
Stephan Bergmann aa95ece9d8 Revert "Revert "Revert "stronger typing for SwClient::GetRegisteredIn"" and fix SwIterator cast"
This reverts commit d8e29e2697.

Reason for revert: It causes CppunitTest_sw_rtfexport2 to fail with

> /sw/inc/calbck.hxx:428:18: runtime error: downcast of address 0x6060004d0fd8 which does not point to an object of type 'sw::ClientBase<SwModify>'
> 0x6060004d0fc0: note: object is base class subobject at offset 24 within object of type 'SwFormatHeader'
>  00 00 00 00  90 c6 d3 ea 6e 7f 00 00  01 00 00 00 66 00 48 01  a0 11 00 00 88 be be be  10 c7 d3 ea
>               ^                                                                          ~~~~~~~~~~~
>                                                                                          vptr for 'sw::ClientBase<SwFrameFormat>' base class of 'SwFormatHeader'
>     #0 0x7f6edd5beb5e in SwIterator<sw::ClientBase<SwModify>, SwModify, (sw::IteratorMode)0>::First() /sw/inc/calbck.hxx:428:18
>     #1 0x7f6edd5b6d69 in SwModify::CallSwClientNotify(SfxHint const&) const /sw/source/core/attr/calbck.cxx:237:35
>     #2 0x7f6edd5b7c45 in sw::BroadcastingModify::CallSwClientNotify(SfxHint const&) const /sw/source/core/attr/calbck.cxx:259:15
>     #3 0x7f6edd5b49c6 in SwModify::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/attr/calbck.cxx:229:5
>     #4 0x7f6edd605e7b in SwFormat::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/attr/format.cxx:309:19
>     #5 0x7f6ee039738b in SwFrameFormat::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/layout/atrfrm.cxx:2849:15
>     #6 0x7f6edd5b8189 in sw::ClientNotifyAttrChg(SwModify&, SwAttrSet const&, SwAttrSet&, SwAttrSet&) /sw/source/core/attr/calbck.cxx:268:13
>     #7 0x7f6edd610879 in SwFormat::SetFormatAttr(SfxItemSet const&) /sw/source/core/attr/format.cxx:604:13
>     #8 0x7f6ee6495964 in FillHdFt(SwFrameFormat*, SfxItemSet const&) /sw/source/uibase/utlui/uitool.cxx:239:14
>     #9 0x7f6ee64914e7 in ItemSetToPageDesc(SfxItemSet const&, SwPageDesc&) /sw/source/uibase/utlui/uitool.cxx:340:13
>     #10 0x7f6ee43fe5b4 in SwDocStyleSheet::SetItemSet(SfxItemSet const&, bool, bool) /sw/source/uibase/app/docstyle.cxx:1894:13
>     #11 0x7f6ee304306c in SwXPageStyle::SetPropertyValues_Impl(com::sun::star::uno::Sequence<rtl::OUString> const&, com::sun::star::uno::Sequence<com::sun::star::uno::Any> const&) /sw/source/core/unocore/unostyle.cxx:3157:33
>     #12 0x7f6ee304d9b9 in SwXPageStyle::setPropertyValue(rtl::OUString const&, com::sun::star::uno::Any const&) /sw/source/core/unocore/unostyle.cxx:3453:5
>     #13 0x7f6e9b369897 in writerfilter::dmapper::DomainMapper_Impl::PushPageHeaderFooter(writerfilter::dmapper::PagePartType, writerfilter::dmapper::PageType) /sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx:3910:25
>     #14 0x7f6e9b445050 in writerfilter::dmapper::DomainMapper_Impl::substream(unsigned int, tools::SvRef<writerfilter::Reference<writerfilter::Stream> > const&) /sw/source/writerfilter/dmapper/DomainMapper_Impl.cxx:10046:13
>     #15 0x7f6e9b101b9d in writerfilter::dmapper::DomainMapper::lcl_substream(unsigned int, tools::SvRef<writerfilter::Reference<writerfilter::Stream> > const&) /sw/source/writerfilter/dmapper/DomainMapper.cxx:4746:14
>     #16 0x7f6e9b877f73 in writerfilter::LoggedStream::substream(unsigned int, tools::SvRef<writerfilter::Reference<writerfilter::Stream> > const&) /sw/source/writerfilter/dmapper/LoggedResources.cxx:272:5
>     #17 0x7f6e9ad35daf in writerfilter::rtftok::RTFDocumentImpl::resolveSubstream(unsigned long, unsigned int, rtl::OUString const&) /sw/source/writerfilter/rtftok/rtfdocumentimpl.cxx:381:14
>     #18 0x7f6e9ad33bc1 in writerfilter::rtftok::RTFDocumentImpl::resolveSubstream(unsigned long, unsigned int) /sw/source/writerfilter/rtftok/rtfdocumentimpl.cxx:356:5
>     #19 0x7f6e9ad48f49 in writerfilter::rtftok::RTFDocumentImpl::sectBreak(bool) /sw/source/writerfilter/rtftok/rtfdocumentimpl.cxx:705:9
>     #20 0x7f6e9adcd3b7 in writerfilter::rtftok::RTFDocumentImpl::popState() /sw/source/writerfilter/rtftok/rtfdocumentimpl.cxx:3695:13
>     #21 0x7f6e9afd2595 in writerfilter::rtftok::RTFTokenizer::resolveParse() /sw/source/writerfilter/rtftok/rtftokenizer.cxx:2011:37
>     #22 0x7f6e9ad4ef4f in writerfilter::rtftok::RTFDocumentImpl::resolve(writerfilter::Stream&) /sw/source/writerfilter/rtftok/rtfdocumentimpl.cxx:844:27
>     #23 0x7f6e9bd39f91 in (anonymous namespace)::RtfFilter::filter(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /sw/source/writerfilter/filter/RtfFilter.cxx:164:20
>     #24 0x7f6ef659a6a4 in SfxObjectShell::ImportFrom(SfxMedium&, com::sun::star::uno::Reference<com::sun::star::text::XTextRange> const&) /sfx2/source/doc/objstor.cxx:2719:34
>     #25 0x7f6ef654cf40 in SfxObjectShell::DoLoad(SfxMedium*) /sfx2/source/doc/objstor.cxx:767:23
>     #26 0x7f6ef67df024 in SfxBaseModel::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /sfx2/source/doc/sfxbasemodel.cxx:1991:36
>     #27 0x7f6ef703d0f0 in (anonymous namespace)::SfxFrameLoader_Impl::load(com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&) /sfx2/source/view/frmload.cxx:725:28
>     #28 0x7f6ec073ee16 in framework::LoadEnv::impl_loadContent() /framework/source/loadenv/loadenv.cxx:1180:37
>     #29 0x7f6ec0735cb2 in framework::LoadEnv::start() /framework/source/loadenv/loadenv.cxx:415:20
>     #30 0x7f6ec072e172 in framework::LoadEnv::startLoading(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&, com::sun::star::uno::Reference<com::sun::star::frame::XFrame> const&, rtl::OUString const&, int, LoadEnvFeatures) /framework/source/loadenv/loadenv.cxx:311:5
>     #31 0x7f6ec0729554 in framework::LoadEnv::loadComponentFromURL(com::sun::star::uno::Reference<com::sun::star::frame::XComponentLoader> const&, com::sun::star::uno::Reference<com::sun::star::uno::XComponentContext> const&, rtl::OUString const&, rtl::OUString const&, int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /framework/source/loadenv/loadenv.cxx:167:14
>     #32 0x7f6ec07fe176 in framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /framework/source/services/desktop.cxx:592:16
>     #33 0x7f6ec07fe396 in non-virtual thunk to framework::Desktop::loadComponentFromURL(rtl::OUString const&, rtl::OUString const&, int, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /framework/source/services/desktop.cxx
>     #34 0x7f6ed3d9c8c9 in unotest::MacrosTest::loadFromDesktop(rtl::OUString const&, rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /unotest/source/cpp/macros_test.cxx:72:62
>     #35 0x7f6ef13e8d62 in UnoApiTest::loadWithParams(rtl::OUString const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) /test/source/unoapi_test.cxx:126:19
>     #36 0x7f6ef13e7e98 in UnoApiTest::loadFromURL(rtl::OUString const&, char const*) /test/source/unoapi_test.cxx:108:5
>     #37 0x7f6efe61e0c7 in SwModelTestBase::loadURL(rtl::OUString const&, char const*) /sw/qa/unit/swmodeltestbase.cxx:384:5
>     #38 0x7f6efe632c07 in SwModelTestBase::createSwDoc(char const*, char const*) /sw/qa/unit/swmodeltestbase.cxx:433:9
>     #39 0x7f6efe0c635f in (anonymous namespace)::testAllGapsWord::TestBody() /sw/qa/extras/rtfexport/rtfexport2.cxx:771:5

(<https://ci.libreoffice.org/job/lo_ubsan/3418/>)

Change-Id: I70bd88050887c8b6c747707f2ea3b89802c7b468
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179946
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-08 12:48:47 +01:00
Stephan Bergmann bea1ab84b2 Revert "convert RES_ATTRSET_CHG to SfxHint"
This reverts commit 404fbec257.

Reason for revert: It's follow-up fix bbb53997c3
"fix ubsan failure" had to be reverted (because it conflicted with a revert of
cc56bf56e1 "convert RES_OBJECTDYING to SfxHint",
which in turn is known broken and thus needed to be reverted for now), so revert
this known-broken commit for now as well.

Change-Id: I4e65c7113e1e5bfdb9841c98bee3712a1beb12ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179941
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-08 12:48:40 +01:00
Stephan Bergmann 0d71b29e34 Revert "convert RES_OBJECTDYING to SfxHint"
This reverts commit cc56bf56e1.

Reason for revert: It causes CppunitTest_sw_uwriter
CPPUNIT_TEST_NAME=SwDocTest::test64kPageDescs to fail with

> /sw/source/core/attr/format.cxx:273:29: runtime error: downcast of address 0x6140000e1840 which does not point to an object of type 'SwFormat'
> 0x6140000e1840: note: object is of type 'SwModify'
>  00 00 00 00  b0 e1 74 97 df 7f 00 00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  00 00 00 00
>               ^~~~~~~~~~~~~~~~~~~~~~~
>               vptr for 'SwModify'
>     #0 0x7fdf8a31ca65 in SwFormat::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/attr/format.cxx:273:29
>     #1 0x7fdf8d066efe in SwFrameFormat::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/layout/atrfrm.cxx:2766:19
>     #2 0x7fdf8a2d51f2 in SwModify::CallSwClientNotify(SfxHint const&) const /sw/source/core/attr/calbck.cxx:231:18
>     #3 0x7fdf8a2d2c5a in SwModify::SwClientNotify(SwModify const&, SfxHint const&) /sw/source/core/attr/calbck.cxx:222:5
>     #4 0x7fdf8a2d07bd in SwModify::~SwModify() /sw/source/core/attr/calbck.cxx:145:15
>     #5 0x7fdf89b267c5 in sw::BroadcastingModify::~BroadcastingModify() /sw/inc/calbck.hxx:242:59
>     #6 0x7fdf8a319f52 in SwFormat::~SwFormat() /sw/source/core/attr/format.cxx:208:1
>     #7 0x7fdf8d064426 in SwFrameFormat::~SwFrameFormat() /sw/source/core/layout/atrfrm.cxx:2705:1
>     #8 0x7fdf8d0644d8 in SwFrameFormat::~SwFrameFormat() /sw/source/core/layout/atrfrm.cxx:2677:1
>     #9 0x7fdf8b42be68 in std::default_delete<SwFrameFormat>::operator()(SwFrameFormat*) const /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unique_ptr.h:95:2
>     #10 0x7fdf8b454cc4 in std::__uniq_ptr_impl<SwFrameFormat, std::default_delete<SwFrameFormat> >::reset(SwFrameFormat*) /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unique_ptr.h:203:4
>     #11 0x7fdf8b38aa7e in std::unique_ptr<SwFrameFormat, std::default_delete<SwFrameFormat> >::reset(SwFrameFormat*) /opt/rh/gcc-toolset-12/root/usr/lib/gcc/x86_64-redhat-linux/12/../../../../include/c++/12/bits/unique_ptr.h:501:7
>     #12 0x7fdf8b3434a6 in SwDoc::~SwDoc() /sw/source/core/doc/docnew.cxx:625:23
>     #13 0x7fdf8abc1dd5 in SwDoc::release() /sw/source/core/doc/doc.cxx:136:9
>     #14 0x7fdf8c2cbc16 in rtl::Reference<SwDoc>::clear() /include/rtl/ref.hxx:193:19
>     #15 0x7fdf9102a534 in SwDocShell::RemoveLink() /sw/source/uibase/app/docshini.cxx:445:16
>     #16 0x7fdf910295bd in SwDocShell::~SwDocShell() /sw/source/uibase/app/docshini.cxx:373:5
>     #17 0x7fdf9102a728 in SwDocShell::~SwDocShell() /sw/source/uibase/app/docshini.cxx:363:1
>     #18 0x7fdfda648fca in cppu::OWeakObject::release() /cppuhelper/source/weak.cxx:230:9
>     #19 0x7fdf89b2801f in rtl::Reference<SwDocShell>::clear() /include/rtl/ref.hxx:193:19
>     #20 0x7fdf89ac3f0c in SwDocTest::tearDown() /sw/qa/core/uwriter.cxx:1977:17

(<https://ci.libreoffice.org/job/lo_ubsan/3425/>)

Change-Id: Ib4866bcfc71e2e3358a8f860cc19efa3f6349885
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179925
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-08 12:48:32 +01:00
Stephan Bergmann 0c966d6f6d Revert "fix ubsan failure"
This reverts commit bbb53997c3.

Reason for revert: It conflicts with a revert of
cc56bf56e1 "convert RES_OBJECTDYING to SfxHint",
which in turn is known broken and thus needs to be reverted for now (see comment
at
<https://gerrit.libreoffice.org/c/core/+/179781/6#message-65721cd380de7681cd9ade644da755e6549e23f7>
"convert RES_OBJECTDYING to SfxHint")

Change-Id: I8212d8ca609b45a4d9399e492727b364fa0a7b50
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179940
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-08 12:48:25 +01:00
Xisco Fauli 9a8234e081 libpng: upgrade to 1.6.45
All three patches are upstreamed.

Downloaded from https://kumisystems.dl.sourceforge.net/project/libpng/libpng16/1.6.45/libpng-1.6.45.tar.xz?viasf=1

Change-Id: I61d336704b96e2a25d92b4512507cc168648ddec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179930
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2025-01-08 12:32:23 +01:00
Mike Kaganski e143c83b1c Simplify using designated initializers
Change-Id: I73d666a0aa4a41e8e73cb701161be1da6fd59d0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179942
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 11:37:08 +01:00
Mike Kaganski f468593d90 Close handles properly
Change-Id: If8620229d41ae9b6c0a1714967a8bb6d51d3ba0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179939
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 11:37:01 +01:00
Gökay Şatır 9884f7aa79 In dark mode, configuration of master page is checked for auto color.
This works for standart pages. But notes pages don't have a style property in their master pages.
This commit, when libreofficeKit is active, uses corresponding standart page's master page properties for notes pages.

Used only for background colors.

Change-Id: Ib1115a4fbc87ecd94f9bb44b43268b9578734950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179929
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-01-08 11:31:44 +01:00
Xisco Fauli 892c0d2ef0 python3: update python3_EXTENSION_MODULES
Change-Id: Ia636690f0dd9497e62ac9fd7a1ed4d00e71cc299
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179896
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2025-01-08 10:56:32 +01:00
Olivier Hallot 0819a1e6b3 Update git submodules
* Update helpcontent2 from branch 'master'
  to 703c344328b4751e2c6a6477323798848c5594d7
  - tdf#164549 PDF/UA requires tagged PDF
    
    + Improve "How to get"
    
    Change-Id: Iaa8591f5ff65ddb687436c1e3b18191620c36bff
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/179915
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2025-01-08 10:45:36 +01:00
Michael Stahl aa94faf493 sdext: adapt xpdfwrapper to poppler 24.12
Change-Id: Ia47edf2ac821e3ef5c40f7582253f894eac74060
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179902
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-01-08 10:18:17 +01:00
Miklos Vajna 8f16b069d0 sw: stop including .cxx files in Writer tests
The remaining 2 classes are not used in multiple .cxx files, so just
move them closer to their only user.

Change-Id: I7c7b295e21ea97acf33d7f4a60a61b25788ab5c2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179926
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-01-08 09:58:28 +01:00
Michael Weghorn bcc518102a tdf#130857 qt weld: Introduce QtInstanceToolbar
Introduce QtInstanceToolbar as the native Qt implementation
for weld::Toolbar that uses a QToolBar widget.

This mostly adds the basic structure and lets Qt{,Instance}Builder
create an instance of the class when encountering a
"GtkToolbar" object in a .ui file.

The actual logic for the QtInstanceToolbar methods
still needs to be implemented. Calling them currently
triggers an assert.

Change-Id: I2734e5b931d5cb9608ec4d01222634a8ffada299
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179883
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2025-01-08 09:52:01 +01:00
Shantanu Oak 11c4fb22b4 Update git submodules
* Update dictionaries from branch 'master'
  to 259e906688a224e25ce12c48efb5ca7037a84760
  - added Marathi hyphenation and thesaurus
    
    Change-Id: Ic6e08de69edf376612d5d4fd275baa04e68a0a5d
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/179872
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
    Reviewed-by: Marco Pinto <marcoagpinto@sapo.pt>
2025-01-08 09:35:52 +01:00
Caolán McNamara c2f6f23097 Resolves: tdf#158669 round long currency to decimal digits in use
as its predecessor did before:

commit 0c85d1ee06
CommitDate: Wed Jul 15 10:26:16 2020 +0200

    weld LongCurrencyControl

Change-Id: I251c976b9b3025a0faddd0f75cd303c29b1a33c8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179917
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-01-08 09:28:50 +01:00
Mike Kaganski 158e43c438 Fix naming of the argument
Change-Id: Ice5ab90ddfee0e1273e0607cb1c3251b1435b6dd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179924
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 07:31:40 +01:00
Oliver Specht fa9d3f5706 tdf#164621 Fix regression from 3e9658a201
Change-Id: I1026ae18bf9bb86b506e4ef1782b9f3aa5ae7125
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179874
Tested-by: Jenkins
Reviewed-by: Oliver Specht <oliver.specht@cib.de>
2025-01-08 07:19:14 +01:00
Mike Kaganski b76d703382 tdf#164600: Return true from IsNumeric for booleans in VBASupport mode
Change-Id: Ib68f237001389c8f7b9d2771d5162a583b544b83
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179866
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 06:02:48 +01:00
Mike Kaganski f8ac9d3311 tdf#164599: Allow space between sign and number in VBASupport mode
Change-Id: Ib9e8c8770f8c2d1b348ff032502467915829c4f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179865
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-08 06:02:43 +01:00
Mike Kaganski 20db60030e Use sal_Int32 for string length
Change-Id: Ie069c20b7d91631cb3b5d39e1a52f09cc13e8a22
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179864
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 06:02:37 +01:00
Mike Kaganski bb86627216 tdf#154284: check if ImpScan found a number at all
Change-Id: Iddc87bd0d04f9b0212b03d63f3177b17bb07d278
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179863
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-08 06:02:30 +01:00
Armin Le Grand (Collabora) 6700b31131 tdf#164434 Correct SvgSymbolNode SVG import
The embedding cannot rely on SVG providing all
values of x/y/w/h, so added fallbacks to real
geometric size. Also removed double-adding
geometry.

Change-Id: I1914ed0c3e1e42ba899db4f3eb9193fd29e9c4be
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179831
Tested-by: Jenkins
Reviewed-by: Armin Le Grand <Armin.Le.Grand@me.com>
2025-01-07 22:09:44 +01:00
Caolán McNamara 1469320426 cid#1557414 Unguarded read
Change-Id: I4b0bd74d0841989905dd8034a9352b6d59b40dad
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/177189
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-01-07 22:01:54 +01:00
Stephan Bergmann 8b2f6b4fba Fix UBSan build of ExternalProject_raptor
Using an autogen.input somewhat different from what I usually use for ASan/UBSan
builds, that caused

> libtool: link: /home/sberg/llvm/inst/bin/clang -fdiagnostics-color=always -fsanitize=address -fsanitize-address-globals-dead-stripping -fsanitize-address-use-after-return=always -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=local-bounds -fsanitize=nullability -fno-sanitize=function -O0 -Wp,-U_FORTIFY_SOURCE -fstrict-aliasing -fstrict-overflow -ggdb2 -gsplit-dwarf -Xclang -debug-info-kind=constructor -ggnu-pubnames -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -Wl,-rpath-link -Wl,/home/sberg/lo-asanubsan/core/instdir/program -o .libs/rapper rapper.o  ../src/.libs/libraptor2.so -Wl,-rpath -Wl,/usr/local/lib
> /usr/bin/ld: /home/sberg/lo-asanubsan/core/instdir/program/libicuuc.so.75: undefined reference to `__ubsan_vptr_type_cache'
> /usr/bin/ld: /home/sberg/lo-asanubsan/core/instdir/program/libicuuc.so.75: undefined reference to `__ubsan_handle_dynamic_type_cache_miss'
> clang: error: linker command failed with exit code 1 (use -v to see invocation)
> make[3]: *** [Makefile:540: rapper] Error 1
> make[3]: *** Waiting for unfinished jobs....
> libtool: link: /home/sberg/llvm/inst/bin/clang -fdiagnostics-color=always -fsanitize=address -fsanitize-address-globals-dead-stripping -fsanitize-address-use-after-return=always -fsanitize=undefined -fsanitize=float-divide-by-zero -fsanitize=local-bounds -fsanitize=nullability -fno-sanitize=function -O0 -Wp,-U_FORTIFY_SOURCE -fstrict-aliasing -fstrict-overflow -ggdb2 -gsplit-dwarf -Xclang -debug-info-kind=constructor -ggnu-pubnames -Wl,-z -Wl,origin -Wl,-rpath -Wl,\$ORIGIN -Wl,-rpath-link -Wl,/home/sberg/lo-asanubsan/core/instdir/program -o .libs/rdfdiff rdfdiff.o  ../src/.libs/libraptor2.so -Wl,-rpath -Wl,/usr/local/lib
> /usr/bin/ld: /home/sberg/lo-asanubsan/core/instdir/program/libicuuc.so.75: undefined reference to `__ubsan_vptr_type_cache'
> /usr/bin/ld: /home/sberg/lo-asanubsan/core/instdir/program/libicuuc.so.75: undefined reference to `__ubsan_handle_dynamic_type_cache_miss'
> clang: error: linker command failed with exit code 1 (use -v to see invocation)

It appears that different configurations cause different libraries to be created
in ExternalProject_raptor, so that's why I never ran into this before, but the
solution is the same as in b3300387f2 "Fix UBSan
build of ExternalProject_redland".

Change-Id: I8bf955632af8c6490d9bd66a1d7dcd19b623c305
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179898
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2025-01-07 19:37:59 +01:00
Noel Grandin bbb53997c3 fix ubsan failure
since
    commit 404fbec257
    Author: Noel Grandin <noelgrandin@gmail.com>
    Date:   Sat Jan 4 16:20:57 2025 +0200
    convert RES_ATTRSET_CHG to SfxHint

where the code is incorrectly continuing, and thus doing
an invalid downcast

Change-Id: I04f69e73fc14c7ba04ef619ef7647320931d9a51
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179890
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2025-01-07 18:08:00 +01:00
Stephan Bergmann 5a4ca3ce93 Rudimentary Emscripten copy -> paste support
...with two hacks, so that at least copying text from LO and pasting it back
into LO works (instead of the copying step either hitting the

>         assert(pTrans);

in QtClipboard::getContents in --enable-assert-always-abort builds or doing
nothing in --disable-assert-always-abort builds)

Change-Id: I246986fa1beaf17a8390eccb404408605e121630
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179894
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2025-01-07 17:56:12 +01:00
Miklos Vajna 2af0a128b5 sw: move ViewCallback to Library_swqahelper
Towards not including .cxx files in Writer tests.

Change-Id: I42c6dba93599819ff93c92444a91a7ddc29ece38
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179885
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2025-01-07 17:56:00 +01:00
Henry Castro c0392315ba tdf#164130: ensure valid column and row values
Sometimes the range mark has not valid col/row values.

Signed-off-by: Henry Castro <hcastro@collabora.com>
Change-Id: I29cf70c8c2a4e832f1ee65abac0ff55e49295fc1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179563
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2025-01-07 17:19:14 +01:00
Jonathan Clark 1afdda6bca tdf#164493 Update script change algorithm to always make progress
Fixes ofz#385256118 Timeout on ImpEditEngine::InitScriptTypes.

Previously, the script assignment algorithm could backtrack in certain
cases where a script run ends with weak characters that should be
included in the following run. Fuzz testing unearthed a case involving
right-to-left override and a CJK combining mark, which caused the
algorithm to make no progress and hang.

The algorithm now always makes progress on each iteration.

Change-Id: I4da138c51d391c152afcee2428c21dc762a2dafc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179888
Tested-by: Jenkins
Reviewed-by: Jonathan Clark <jonathan@libreoffice.org>
2025-01-07 16:44:06 +01:00
Michael Stahl f0efcb9170 xmlsecurity: fix CppunitTest_xmlsecurity_xmlsec with F41 system NSS
xmlsecurity/qa/xmlsec/xmlsec.cxx:102:(anonymous namespace)::testInsertPrivateKey::TestBody
    equality assertion failed
    - Expected: 1
    - Actual  : 0

Just copying the NSS setup code from the other tests lets the test pass.

Also sync all the copies of the setup code while at it.

Change-Id: Idcaebec4dff29f37e0ed0f05d6d7d62782947325
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179893
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2025-01-07 16:40:07 +01:00
Christian Lohmaier 98d5b87832 Update git submodules
* Update translations from branch 'master'
  to c0a323a8e6bf862e47a6f93909ddef6aaaef35dc
  - update translations for master
    
    and force-fix errors using pocheck
    
    Change-Id: I5f9bfb155d155c02685c11c39083e5d13d57c9f2
2025-01-07 15:07:20 +01:00
Sahil Gautam c007449ec3 tdf#164393 Change themes UI as per UX feedback
- inlined the controls for color/image with the labels. also inlined
  the image stretched/tiled radio buttons.

- There were plans to change the default theme's name from
  "Automatic" to "Default", but due to string freeze for 25-2,
  moved that to a separate patch which won't be backported to 25-2.

Change-Id: I8470dbf1c42d1b402d17f0feeec12d190e879ca6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179405
Reviewed-by: Sahil Gautam <sahil.gautam.extern@allotropia.de>
Tested-by: Jenkins
2025-01-07 14:15:02 +01:00
Patrick Luby 7ef881c76e tdf#161480 use BmpScaleFlag::NearestNeighbor when upscaling on macOS
On macOS, due to Retina window scaling, it is very common to
have Skia surfaces that are 2 times the size of their respective
output device sizes so upscaling is often the default state.

But when upscaling bitmaps on macOS with either Skia/Metal or
Skia/Raster, some distortion to color and/or alpha values is
introduced and only BmpScaleFlag::NearestNeighbor will upscale
the bitmap correctly.

Change-Id: I9cf02d3acace82751fa6e114aaecf23cbbb85c65
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179848
Tested-by: Jenkins
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
2025-01-07 13:29:43 +01:00
Olivier Hallot 2f870ac44b Update git submodules
* Update helpcontent2 from branch 'master'
  to 00bbe2a984f64dd23c44ccc63d74021b99d4e0d4
  - Fix XML tag position
    
    Change-Id: Iab81f4d3cd86848412c53639cce5c84fc73a646d
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/179880
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2025-01-07 13:25:15 +01:00
Mike Kaganski 61c12dd1c8 tdf#164619: bite the bullet, and write the correct ODF version
The problem was the inconsistency between ODF versions for the forms
in the package and the form's content.xml. The check
for consistency was introduced in version 5.4 in commit
0a0f205775 (tdf#105686 - fixed wrongly
imported named expressions:, 2017-03-21). In version 7.0, commit
9fdf8c0a5c (Also consider saved
exceptions when terminating parse, 2019-11-16) made the exception
from that check fatal.

Commit 519d96fd8b (tdf#134582 sfx2:
when storing, set Version on embedded object storage, 2020-07-10)
started to write the embedded object versions to package manifest,
and commit 16de54a5c4 (tdf#138209 ODF
export: work around forms problem in LO < 7.0, 2021-05-10) created
an exception for forms, to workaround the problem in older versions.
But the latter commit created the reverse inconsistency, where the
newer versions started to write older ODF version in manifest.xml,
but newer ODF version in content.xml.

This change restores the correct version written to the manifest.
It is already messy in the already-released versions; it doesn't
look possible to restore sanity retroactively, so just make it
correct from now on, and accept the problem in older versions.

Change-Id: If5d07b6000b9f08b33844db48b815881bed2915b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179867
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2025-01-07 12:26:38 +01:00
Sahil Gautam 242b8a9540 tdf#164393 [API CHANGE] ThemeColors refactor part 3
- add functions like IsThemeEnabled(), IsThemeDisabled(), GetThemeState(),
  SetThemeState() to check/change registry (theme state) values so that
  code outside ThemeColors class remains unaffected from any API changes,
  and use enums like ENABLED and DISABLED to represent int values from
  registry.

Change-Id: I6067cb5b0fa40d6c038e398229ef8ba93d26ca92
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179404
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-07 12:24:40 +01:00
Sahil Gautam 6929168584 tdf#164393 ThemeColors refactor part 2
- rename IsThemeLoaded() to IsThemeCached() (similar for setter) because
  it's not loading but caching colors in ThemeColors::m_aThemeColors.
  ColorConfig_Impl::Load() loads themes.

Change-Id: If65302bc77d50f637176beaac47b43dff949368b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179854
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-07 12:24:26 +01:00
Stephan Bergmann b20d18054c Move setting of LD_LIBRARY_PATH closer to invocation of cppunittester
At least for a Linux build of mine, `make CppunitTest_vcl_gtk3_a11y` would fail
with something like

> workdir/LinkTarget/Executable/cppunittester X11 error: Can't open display:
>    Set DISPLAY environment variable, use -display option
>    or check permissions of your X-Server
>    (See "man X" resp. "man xhost" for details)

apparently because that test adds an invocation of xvfb-run to ICECREAM_RUN,
which appeared on the command line after gb_CppunitTest_CPPTESTPRECOMMAND
(which, on Linux, sets up LD_LIBRARY_PATH to include instdir/program), so that
the execution of xvfb-run picked up libraries from instdir/program instead of
from the system (at least libpixman-1.so.0, it appears), which then apparently
caused things to not work well.

So move the contents of gb_CppunitTest_CPPTESTPRECOMMAND further down on the
command line (which then requires an invocation of `env`).  (This still leaves
me with a `make CppunitTest_vcl_gtk3_a11y` that fails in a different way now,
but that's something for another day...)

Change-Id: Ic53dd8f87e3fa548a998363f5489819a02b2bf8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179862
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
Tested-by: Jenkins
2025-01-07 11:33:08 +01:00
Miklos Vajna fa5be641bc cool#10630 doc sign: fix Impress sign line, to be able to finish signing again
Open a PDF for signing on the desktop, insert a signature line, click
the "finish signing" button on the infobar, Draw first asks if you want
to save your modified document as ODG, then crashes.

The first problem is that opening a PDF for signing and adding a
signature line / visual signature didn't result in a modified doc model,
but that now happens since commit
aca32a5545 (tdf#146547 sfx2: allow
read-only documents to be modified, 2023-06-16). Probably we want to
keep this feaature that read-only documents can be modified in some
cases, so explicitly mark the PDF document as not-modified before
signing in SfxObjectShell::SignDocumentContentUsingCertificate().

The other problem is that visual signing tried to reload the document:
this is handy, as it shows if our PDF export worked correctly, but
reloading is problematic since the signing code moved to async and it
assumes that the underlying object shell is never deleted, so callbacks
can have a pointer to it without worrying about the lifecycle. Fix this
problem by not reloading, but clearing the marker on the signature shape
and invalidating the signature status, instead of reloading, in
SfxObjectShell::ExecFile_Impl().

With this, visual signing of an existing PDF file works again in desktop
Draw.

Change-Id: I743983947d4607aa06674a1329bc8efb5af8a6d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179856
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2025-01-07 10:52:50 +01:00
Caolán McNamara 410653b9f6 crashtesting: raw & exported unescaped to xl/externalLinks/externalLink1.xml
seen on reimport of xlsx export of forum-mso-en4-136321.xlsx as:

XmlFilterBase::importFragment - XML parser failed in fragment 'xl/externalLinks/externalLink1.xml'
com.sun.star.xml.sax.SAXParseException message: "[xl/externalLinks/externalLink1.xml line 2]: xmlParseEntityRef: no name

Change-Id: I71f2d5b01905349bedff7c66fc4b087358569bd0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179845
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2025-01-07 09:25:36 +01:00
Sahil Gautam c398498fe1 tdf#164393 ThemeColors refactor part 1
- Use a single `ThemeColors::VclPluginCanUseThemeColors()` check instead of
  `ThemeColors::IsThemeLoaded()` and then checking if the current scheme
  is Automatic or not

Change-Id: I96294c3b4b75b5f2cee02c72a8b0dd1a85bedec4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179853
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-07 09:19:23 +01:00
Sahil Gautam 7970a121a8 tdf#164393 Format the code to make clang-format happy
Change-Id: I1a07935757752c64e86e779a6f3b3c925774c6d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/179852
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2025-01-07 09:19:13 +01:00
Shantanu Oak c8aca254f9 Update git submodules
* Update dictionaries from branch 'master'
  to e7b61087d7d42eba51425eae74643ea5623c574a
  - Add Marathi & Bengali
    
    Change-Id: I18bfa668abba41b9ac494584dbca7a40920e2e6b
    Reviewed-on: https://gerrit.libreoffice.org/c/dictionaries/+/179851
    Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
    Tested-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2025-01-07 08:10:19 +01:00