Commit Graph
513450 Commits
Author SHA1 Message Date
Tor Lillqvist e022e99557 Revert "Fixes for Python cross-compilation, Linux to Linux at least"
Nah, this is too complicated, and I am not interested enough.

This reverts commit 942afbd439.

Change-Id: I436236e17cd3d2387b905a02c972b70e2456929d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198153
Tested-by: Tor Lillqvist <tml@iki.fi>
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-01-26 18:25:48 +01:00
Mike Kaganski 26aa5db062 tdf#170477 follow-up: reimplement the fix by cleaning up code
This is an alternative fix to the bug. The idea is, that we shouldn't
call MoveFwd in SwTabFrame::MakeAll in case of floating tables.

In commit 45574624ff (tdf#120262 sw
floattable: no split when none of first row fits the vert space,
2023-07-19) a code was added, that made sure that for floating tables
MoveFwd was called with bMoveAlways = true. Obviously, for that bug,
this code path was used at that time. However, the unit test for that
but doesn't pass the code path these days.

What happens inside MoveFwd for a floating table is:
1. MoveFwd calls GetLeaf, which in turn calls GetNextFlyLeaf;
2. GetNextFlyLeaf splits the anchor (the new frame isn't yet moved),
   and creates a follow fly, which is still on the same page;
3. MoveFwd moves the whole table to the new fly, making the old fly
   empty;
4. The old fly calls its DelEmpty, breaking precede/follow chain and
   making the new fly standalone.

In the end, the situation after the call is fundamentally the same
as before, with exception of new garbage (empty fly) to clean later,
and the split anchor that needs a join.

This change avoids calling MoveFwd for floating tables in this case.
It keeps all unit tests working, so hopefully this cleanup could be
an improvement by simplifying code, and by avoiding a call to
SwLayouter::InsertMovedFwdFrame, which itself is manual override of
the normal layout process (IMO, the less it's used, the better).

If it turns out problematic, it may be simply reverted (that's the
idea of merging it only after the more conservative fix).

Change-Id: I606976de629bb5514edafd1430704901241876cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198135
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-26 16:30:56 +01:00
Samuel MehrbrodtandBanobe Pascal 705dcfe362 Add a Notebookbar widget for theme colors
Co-authored-by: Banobe Pascal <banobe.pascal@collabora.com>
Change-Id: I1becca9852745b9972d270e280f386d1803d2731
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190867
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198151
Tested-by: Jenkins
2026-01-26 16:25:39 +01:00
Samuel Mehrbrodt c0693ef135 tdf#165732 Fix misaligned text when text box is too small
Change-Id: Iaabc61c545d579edd02cdcb5685e8417a387b99c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198147
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-26 16:14:45 +01:00
Miklos Vajna d188260af5 svx: prefix members of SvxIMapDlg
See tdf#94879 for motivation.

Change-Id: Ib72635f52a33e3bb6212b6f0545d4aa75dc72998
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198121
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-01-26 15:41:44 +01:00
Heiko Tietze ed0c84dcc7 Resolves tdf#170428 - Add NBSP at quotation for fr-ch
Reverts 8d7ec20395

Change-Id: I436236e17cd3d2387b905a02c972b70e2456929c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198126
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-01-26 15:09:07 +01:00
Mike Kaganski 204117b21d Fix non-pch Windows build
... after commit c880d2bec8
(Fix some non self contained headers in module sw, 2026-01-25).

The change in sw/inc/ndtxt.hxx created circular dependency:

- sw/source/core/access/parachangetrackinginfo.cxx
  - #include <wrong.hxx> (executes #pragma once, will not be included again)
    - #include <ndtxt.hxx> (at the beginning of wrong.hxx, only on Windows;
      before its classes are read)
      - #include "../source/core/inc/wrong.hxx" (ignored because of #pragma once)
      - #include "../source/core/inc/SwGrammarMarkUp.hxx" (needs access to
        definitions in wrong.hxx, yet unavailable)

Resulting in

C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(36): error C2504: 'SwWrongList': base class undefined
C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(46): error C3668: 'SwGrammarMarkUp::~SwGrammarMarkUp': method with override specifier 'override' did not override any base class methods
C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(47): error C3668: 'SwGrammarMarkUp::Clone': method with override specifier 'override' did not override any base class methods
C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(48): error C3668: 'SwGrammarMarkUp::CopyFrom': method with override specifier 'override' did not override any base class methods
C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(42): error C2065: 'WRONGLIST_GRAMMAR': undeclared identifier
C:\lo\core\sw\inc\../source/core/inc/SwGrammarMarkUp.hxx(42): error C2614: 'SwGrammarMarkUp': illegal member initialization: 'SwWrongList' is not a base or member
Change-Id: I868902d6d0552832c4db3aefdba8ee76fa19bce1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198124
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-26 14:10:13 +01:00
Noel Grandin 7fb279341f enum SvxSpecialLineSpace is dead
since
  commit ff055c9e1e
  Author: Mike Kaganski <mike.kaganski@collabora.com>
  Date:   Mon Jun 9 07:33:36 2025 +0200
  SvxLineSpacingItem does not need to be an SfxEnumItemInterface

Change-Id: I11b50fc19f0bdae3cd41f4d84a10696c43a2fb20
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198129
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-01-26 13:40:49 +01:00
Noel Grandin 7d6f84c624 loplugin:constantparam OutChar
always has pSuccess == nullptr

And is also not used outside of filter anymore, so remove from header file.

Change-Id: I9ea0f58941d301ec024e8c8d0ed8cf0ae354b950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198123
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-26 13:40:39 +01:00
Stephan Bergmann ad040f7a8f NotebookBarAddonsItem appears to be required to be a complete type here
...contrary to what 96cb87ca01 "tdf#146619 Use
more forward declarations in include/vcl/[a-o]" apparently assumed, as seen at
least with recent Clang 23 trunk against recent libstdc++ 16 trunk,

> In file included from vcl/source/window/builder.cxx:14:
> In file included from ~/gcc/inst/lib/gcc/x86_64-pc-linux-gnu/16.0.1/../../../../include/c++/16.0.1/memory:80:
> ~/gcc/inst/lib/gcc/x86_64-pc-linux-gnu/16.0.1/../../../../include/c++/16.0.1/bits/unique_ptr.h:90:16: error: invalid application of 'sizeof' to an incomplete type 'NotebookBarAddonsItem'
>    90 |         static_assert(sizeof(_Tp)>0,
>       |                       ^~~~~~~~~~~
> ~/gcc/inst/lib/gcc/x86_64-pc-linux-gnu/16.0.1/../../../../include/c++/16.0.1/bits/unique_ptr.h:398:4: note: in instantiation of member function 'std::default_delete<NotebookBarAddonsItem>::operator()' requested here
>   398 |           get_deleter()(std::move(__ptr));
>       |           ^
> include/vcl/builder.hxx:59:80: note: in instantiation of member function 'std::unique_ptr<NotebookBarAddonsItem>::~unique_ptr' requested here
>    59 |                std::unique_ptr<NotebookBarAddonsItem> pNotebookBarAddonsItem = nullptr);
>       |                                                                                ^
> include/vcl/builder.hxx:44:8: note: forward declaration of 'NotebookBarAddonsItem'
>    44 | struct NotebookBarAddonsItem;
>       |        ^

Change-Id: I81537c4c7f774bb1f9e7e3bdbf85af9786c9e016
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198131
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-26 13:39:46 +01:00
Xisco Fauli 715ce5478d harfbuzz: upgrade to 12.3.2
Downloaded from https://github.com/harfbuzz/harfbuzz/releases/download/12.3.2/harfbuzz-12.3.2.tar.xz

Change-Id: I19ce75272862266f8d410cf204c7fc314e9609bb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198133
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-01-26 13:34:27 +01:00
Noel Grandin 73fa9ad58c loplugin:constantparam OutputDevice::CopyArea
always has bWindowInvalidate == false

Change-Id: I4c911d4f38930242cd2a26117e55f9e158434548
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198122
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-26 12:32:16 +01:00
Miklos Vajna 5d101c9919 cool#13988 DOCX import: fix missing delete flag on deleted comments with ranges
The bugdoc has commented text range inside a deletion. The import result
doesn't mark the comment as deleted.

Comments with a single anchor point work fine, since commit
419b70b5d4 (tdf#105485 DOCX: import
deleted comments as deleted, 2019-08-26).

Fix the problem by invoking CheckRedline() in
DomainMapper_Impl::PopAnnotation() in the range case as well, that
correctly creates the delete redline for the comment anchor.

This is shared code for any redlines, so fixes inserts, too.

Change-Id: I620e1419cee79ab729ea7be248f1ad079a9fc536
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198125
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-01-26 12:24:58 +01:00
Vladislav Tarakanov b6bec20772 tdf#158394 Automatic scaling of icons for navigation bar
Added handling for the viewAdded and
viewChanged events, which cause navigation bar
icons to change if they don't fit the current
presentation area size.

This handler is only applied when automatic
scaling of the navigation bar is enabled, so it
shouldn't impact performance when the bar isn't
used or a fixed size is selected.

Icon sizes:
XLarge for UHD and above
Large for FHD and up
Small for anything smaller than FHD

Change-Id: I9f6599291d57aca9991c8d2dd2969d1edb36080e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196157
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
2026-01-26 10:59:04 +01:00
Mike Kaganski a583258169 tdf#170477: detect MoveFwd oscillation in SwTabFrame::MakeAll
In the specific bug document, some constellation of factors created
the case where the last inner floating table tries to move forward,
in the process creates a split fly on the same page (subject to move
forward later, when outer table formats), moves to it (leaving the
old fly empty), which recreates the same layout as before; and that
oscillated infinitely.

The fix implemented here is to detect when MoveFwd call created the
described situation, and then use SwLayouter::InsertMovedFwdFrame
to break the oscillation.

I was not able to reproduce this problem anew; test document was
simplified from the original, with the aim to minimize instability
(but still, the resulting layout in Writer differs from Word's,
which makes the test likely to stop testing the intended code path
in the future - sigh).

Change-Id: Iaa796a169cb9f97d5a6b3dd7ebf1cf5b726ca568
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198116
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-26 10:25:57 +01:00
Stephan Bergmann bec1cfb664 Even more CppunitTests need the ASan hack now
...from e854abe076 "Avoid external processes
picking up instdir/program/libnspr4.so"

Change-Id: Ifd549cf39cda038c3c6f3ba694bbb6363bc906d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198119
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-26 09:32:48 +01:00
Noel Grandin b4a5e55585 loplugin:constantparam in SimpleFillPropertiesContext
Change-Id: I4034d87f42f194669dc438333b53397034185ee6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198024
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-01-26 08:35:20 +01:00
Noel Grandin be30ca42e4 loplugin:constantparam in XclExpXmlStream
Change-Id: I2a8264e920766d2d46adad027cf1fccf4910aae5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198023
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-01-26 08:35:11 +01:00
Noel Grandin 237e54bed9 loplugin:constantparam in GetReferencedTextNode
Change-Id: Iff28dcb71391ee54fd85ce673fbefb3dbdbaf2f9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198022
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-01-26 08:35:02 +01:00
Stephan Bergmann f6dc303ef5 missing include (for USHRT_MAX)
Change-Id: I1f923f34368f06d0d3cfda037b2a607fd364882d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198113
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-26 08:14:08 +01:00
Stephan Bergmann 53e932da93 -Werror,-Wunused-variable
...after 0e7de7e614 "tdf#167883 use
appendTextPortion to construct svx text object"

Change-Id: I3882d6a3852b4e4d30e3406ea5f0b2703afa8f8f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198112
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2026-01-26 08:13:55 +01:00
Stephan Bergmann 28951381c6 No more need for ReservedId::isInLokIncludeFile special casing
...after 5bc9425900 "Avoid illegal names also for
the LibreOfficeKitGtk structs" removed the remaining offenders

Change-Id: I274486459dfc109c4d2e103d7ec41b0655657e77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198111
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-26 08:13:43 +01:00
Mike Kaganski 669a69f5e5 Move variable into its scope
Any variable in too broad scope may cause headaches; but for methods
like SwTabFrame::MakeAll (more than a thousand lines), it easily hits
with "the variable hides earlier one" errors.

Change-Id: I6b8e2137b777698a4f82d1032ceac6daed6a7eba
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198117
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-26 08:12:55 +01:00
Tor Lillqvist 5bc9425900 Avoid illegal names also for the LibreOfficeKitGtk structs
Change-Id: If8b5987e0779ece9518384f88a0363a3c596d7ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197937
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins
2026-01-25 22:33:22 +01:00
Julien Nabet 369e23441e Following [API CHANGE] tdf#49602: Remove legacy osl/profile Implementation
Change-Id: Iae5d6709bb7c9a3e98eb6de5ff9a041b841bfb55
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198039
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-01-25 18:59:49 +01:00
Gabor Kelemen c880d2bec8 Fix some non self contained headers in module sw
Change-Id: I9d6e3fbf5e1cdfe6818662823b5ef6cd25fb96d9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/196638
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-25 18:56:12 +01:00
Mike Kaganski a06f0cf848 Use std::as_const instead of static_cast
Makes the intent more explicit.

Change-Id: I5654d2138e4fc1865c4db12349622694a8302b98
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198062
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-25 14:38:23 +01:00
Gabor Kelemen f8dad0daf9 tdf#146619 Use more forward declarations in include/vcl/svapp.hxx
this was skipped in previous runs, since it contains some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: If1e3e3c7c0fc14ed6e8b51174a0e7f1220fdbc8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197496
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-25 13:31:57 +01:00
Regina Henschel 709bb398d0 tdf#159544 use top of parameter stack for COUNTIFS
The evaluation of the fooIFS functions attempts to reduce the range to be
examined so that empty cells at the end of a range are not examined. To
do this, it uses the range at the bottom of the parameter stack. That
works well, for example, with SUMIFS and AVERAGEIFS, because this range
does not have an associated criterion, but instead contains the data to
be summed up.

In the case of COUNTIFS, however, all ranges have an associated criterion
and such might query for empty cells. At the point in the process when
the reduction takes place, the criteria are not yet known. Therefore,
when the criteria are later resolved, the reduction is reversed in case
the criterion queries for empty cells.

The evaluation of ranges and criteria starts at the top of the parameter
stack and goes then backwards. That means that the reduction was based
on the range at the bottom of the stack, but the reversal of the
reduction was based on the criterion at the top of the stack.

The solution is to use the range of the parameter at the top of the
stack to calculate the range reduction in the case of the COUNTIFS
function.

Change-Id: Ia451312b83ab73f52020edd204fb2e37997714e5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198058
Tested-by: Jenkins
Reviewed-by: Regina Henschel <rb.henschel@t-online.de>
2026-01-25 13:29:16 +01:00
Mike Kaganski ba0876bdca Drop unneeded cast
FindAnchorCharFrame is a method of SwAnchoredObject, so pFly
can be used just as well.

Change-Id: Iee763119dd4bee6ec407d91363c0e27a3fb70d2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198061
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-25 11:59:35 +01:00
Mike Kaganski 9b5b99a8ff Some small tidy-up
Change-Id: I36c149bfc024f522f70dd486c5ff0197ee45bdc7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198060
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-25 11:41:55 +01:00
Mike Kaganski bddf848aec Use Updater::getBuildID() instead of manual expansion
Change-Id: Ib97920bfb56ee28a6c9ffade8fc84440724c68eb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198059
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-25 11:41:45 +01:00
Mike Kaganski 9f65398bb9 Deduplicate some code, and provide dialog parent
Change-Id: I2b6ed8b87bbd0f0ca786f5edeee55c90fa841fb0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198057
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-25 09:23:56 +01:00
Justin Luth dc6316b449 tdf#165359 writerfilter: import graphic into richText, not plainText
This patch replaces the previous one.
It is more generic

make CppunitTest_sw_ooxmlexport25 \
    CPPUNIT_TEST_NAME=testTdf165359_SdtWithDrawing
make CppunitTest_sw_ooxmlexport25 \
    CPPUNIT_TEST_NAME=testTdf165359_SdtWithInline

Change-Id: Ic1533a71fbaaaa4e28e7e00976f5c8f747cf2d6b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198049
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-01-24 22:58:33 +01:00
Caolán McNamara a9aabf92da cid#1680364 silence Overflowed constant
Change-Id: I108c14edd596360eb883e0bb166ef686d8c58d72
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198037
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2026-01-24 20:32:03 +01:00
Caolán McNamara 4fb7d83362 cid#1680369 silence Unintended sign extension
and

cid#1680362 Unintended sign extension

Change-Id: I07e9d3ae1fdbe59b4c625e5ce0db235a77285294
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198035
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
2026-01-24 20:31:56 +01:00
Caolán McNamara f564cb4305 cid#1680644 Uncaught exception
and

cid#1401474 Uncaught exception

Change-Id: I8e13132f730c6ad6f4af5499226f0e3f4b7c22d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198034
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
2026-01-24 20:31:49 +01:00
Mike Kaganski 6a992f99fe Drop typedef IDataObjectPtr
It doesn't make much sense.

Change-Id: If44de0379e14bf65f4fd4fb40917c7b391768636
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198048
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 19:43:52 +01:00
Patrick Luby 2cddb7f648 Related: Use macOS Tahoe's native control bounds for macOS 26.2
Builds on pre-Tahoe macOS versions still render the pre-Tahoe style
so further adjustments are needed when running on macOS Tahoe.

Change-Id: Idef3555680020c1862b8d8c8c8b03a80497050a3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197411
Reviewed-by: Patrick Luby <guibomacdev@gmail.com>
Tested-by: Jenkins
2026-01-24 19:16:33 +01:00
Xisco Fauli 743932030f sd: use SAL_RET_MAYBENULL in GetViewShell()
Change-Id: I0572c6534457e5b768a92fe03da5f44ecfb845c7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197763
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-01-24 18:50:50 +01:00
Mike Kaganski ed98a5519e Drop some more typedefs
Makes the code more clear.

Change-Id: I5336503ab929b7d24701b831e3ad687fd84583bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198047
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 18:49:15 +01:00
Mike Kaganski 3b5d452ae2 Drop a typedef used only once
Change-Id: Ifd1fff885d308e5376f600e617a26c90c093ab4e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198045
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-24 18:40:21 +01:00
Mike Kaganski 0a0b3a14dd Use TOpenDialogImpl for folder picker, too
Its only difference from its base is getResult, which also tries
to use IFileOpenDialog::GetSelectedItems/GetResults, which is OK
for folder picker.

Change-Id: I6acbcb64a2de4025dcac8022b26355d6444f5082
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198044
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 18:00:13 +01:00
Mike Kaganski dbfc645ad8 Simplify a bit
Change-Id: I350162e56f403fd0a28a5df7da304f0ae31f21d5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198043
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-24 17:17:42 +01:00
Mike Kaganski a6e0ba8386 Use some more IID_PPV_ARGS_Helper to avoid reinterpret_cast
It was already used in commits like e2bfc34d14
(Reimplement OleComponentNative_Impl to use IGlobalInterfaceTable, 2024-03-11).

Change-Id: I8fd60d8eab3ce2d16bfd6766b7fcdcb8b0b182ab
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198041
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 16:24:54 +01:00
Mike Kaganski b801ea3788 Fix Windows build
C:/lo/core/editeng/qa/unit/core-ttest.cxx(2447): error C2672: 'CppUnit::assertEquals':
no matching overloaded function found

Change-Id: I9ff0a59fc3ee6de00ba3a54442f66feb66a9d25e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198042
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-01-24 16:24:41 +01:00
Ilmari Lauhakangas 1faebcc113 sw: dispose Insert Database Columns dialog not only upon OK
Pressing Cancel in the dialog caused an assert in debug builds:

include/vcl/vclptr.hxx:123: VclPtr<reference_type>::~VclPtr()
[with reference_type = AbstractSwInsertDBColAutoPilot]: Assertion
`(!m_rInnerRef.get() || m_rInnerRef->isDisposed() || m_rInnerRef->getRefCount()
> 1) && "someone forgot to call dispose()"' failed.

After:
commit 137df7cd67
Author: Noel Grandin <noel.grandin@collabora.co.uk>
Date:   Wed Jan 31 13:10:52 2024 +0200

    make insert-db-col-auto-pilot dialog async

To reach the dialog:

1. Open Writer
2. View - Data Sources (Ctrl+Shift+F4)
3. Expand Bibliography until you see biblio
4. Click on a row indicator to the left of the data
5. Now the "Data to Text" button is enabled, click it

Change-Id: If2c4a1024afec666589b4b4c1932d5a661b964f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198036
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-01-24 16:17:36 +01:00
Mike Kaganski 36f7e34baa Simplify some usages of COMReference
Use less IUnknown::QueryInterface, and more COMReference::QueryInterface.
No need to use COMReference default ctor in member initializers.

Change-Id: I28cd07d16dc294d598580f353a4ec7efe82bc480
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198040
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-24 16:09:19 +01:00
Mike Kaganski 3a54d9870f Simplify use of COMReference a bit
1. Avoid explicitly specifying COM_QUERY in calls to QueryInterface
   (it is implied from the name).
2. Drop redundant ctor and set() that duplicate QueryInterface.
3. Allow ThrowIfFailed without a message.

Change-Id: I75b545e534efb7e57da131dfd40a2a49d204efac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198033
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-01-24 13:36:50 +01:00
Gabor Kelemen 6178cb8e6f tdf#146619 Use more forward declarations in include/vcl/pdfread.hxx
this was skipped in previous runs, since it contains some code behind #if

After inspecting these, it seems like the removals should not cause trouble.

Change-Id: I8b856cbf7ded7c62634286a53f1ef41e99adb286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197495
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-01-24 13:23:19 +01:00