Commit Graph
513674 Commits
Author SHA1 Message Date
Stephan Bergmann e8cd1878f6 Lets see if an empty sanitize-ubsan-excludelist is enough these days
...after 50f1498332 "Remove ten year old file that
is unused" removed it completely and thus broke
<https://ci.libreoffice.org/job/lo_ubsan/3808/>.  (And if an empty file turns
out to be enough, we can either remove it completely in a second step, from both
core and lode, or keep it around in case we ever need to add new content into
it.)

Change-Id: Ieedc93de5e98b76e754dcd9393e66ee64fbf42cd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198581
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-02-03 10:23:20 +01:00
Miklos Vajna ef623651aa cool#13988 sw redline render mode: handle moves
Open the bugdoc, switch to a non-standard redline render mode (omit
inserts or omit deletes), it's expected to see red-gray or gray-green
pairs of text (for delete and insert), but instead double underline was
shown for some inserts.

This comes from the insert part of moves, which is wanted for the
stanard redline render mode, where an author-specific color is used,
then green (on top of that) means a move.

Fix the problem by avoiding the move-specific rendering for the
non-standard redline render mode case, similar to what the
officecfg::Office::Writer::Comparison::DisplayMovedTextInGreen setting
does.

This required extending the metafile dumper a bit, since underlines were
not exposed in the XML dump.

Change-Id: I717eb0925c1959f787701ef9778ddb704b28031a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198583
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
2026-02-03 10:21:27 +01:00
Mike Kaganski f439bbcd20 Simplify the calculation
What happens here is simple assignment of nTotalRows.

Change-Id: I2a95b9377d1bbb168d39ecfaeed1d104baa1217c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198582
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-03 10:19:59 +01:00
Noel Grandin 2b0502bf9c tdf#79654 shave some time off hot loop
Change-Id: Ib947c10c7595cbb79bf06c968ef5e210e2484bcd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198567
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-03 07:13:55 +01:00
Michael Weghorn f984b7f6de tdf#130857 qt weld: Support Calc "Create Scenario" dialog
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

The dialog can be triggered like this:

* start Calc
* select multiple cells, e.g. A1:B2
* "Tools" -> "Scenarios..."

Change-Id: I690302f660bd31fd1703355cfbd5389d4e293d00
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198566
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-03 00:29:49 +01:00
Michael Weghorn aa66d24ecf sc: Resave scenariodialog.ui with glade 3.40
Resave with glade 3.40, but manually restore the

    <property name="label" translatable="no"></property>

for a GtkMenuButton that would go missing on resave.

The dialog can be triggered like this:

* start Calc
* select multiple cells, e.g. A1:B2
* "Tools" -> "Scenarios..."

Change-Id: Ic735a9d895e92132c63edaf454c346fd13ba8ad8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198565
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-03 00:29:40 +01:00
Michael Weghorn 371078d1ad tdf#130857 qt weld: Support "Manage Conditional Formatting" dlg
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

The dialog can be triggered like this:

* start Calc
* "Format" -> "Conditional" -> "Manage..."

Change-Id: Id811f6c77f804096fb9e6a7032db0be36fb426ea
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198563
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-03 00:29:32 +01:00
Michael Weghorn 182e7433b9 sc: Resave condformatmanager.ui with glade 3.40
The dialog can be started like this:

* start Calc
* "Format" -> "Conditional" -> "Manage..."

Change-Id: I3f0249d09bcb31cd25db599705c9241755a21dec
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198562
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-03 00:29:24 +01:00
Michael Weghorn 8b0d372f35 tdf#130857 qt weld: Support sc "Share Document" dialog
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

The dialog can be triggered like this:

* start Calc
* "Tools" -> "Share Spreadsheet..."

Change-Id: I9a425751d5b4f811886f94ee17164b3f5e0dadce
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198561
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-03 00:29:16 +01:00
Michael Weghorn db2cbf6f2d tdf#130857 qt weld: Support Impress "Interaction" dialog
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

The dialog can be triggered like this:

* start Impress
* type something for the title
* with the title text field selected, right-click to
  open the context menu
* activate the "Interaction..." context menu entry

Change-Id: I613b75441844eabe57ab3194bdeecf8cf4e3db44
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198560
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-03 00:29:09 +01:00
Stephan Bergmann 0c54c3f77a Point appears to be required to be a complete type here
...contrary to what c511c65434 "tdf#146619 Use
more forward declarations in include/tools" apparently assumed, as seen at least
with recent Clang 23 trunk against recent libstdc++ 16 trunk,

> In file included from tools/source/generic/poly2.cxx:22:
> In file included from tools/inc/poly.h:22:
> 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:131:18: error: invalid application of 'sizeof' to an incomplete type 'Point'
>   131 |           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:684:4: note: in instantiation of function template specialization 'std::default_delete<Point[]>::operator()<Point>' requested here
>   684 |           get_deleter()(__ptr);
>       |           ^
> tools/inc/poly.h:33:21: note: in instantiation of member function 'std::unique_ptr<Point[]>::~unique_ptr' requested here
>    33 |                     ImplPolygon() : mnPoints(0) {}
>       |                     ^
> include/tools/poly.hxx:60:7: note: forward declaration of 'Point'
>    60 | class Point;
>       |       ^

Change-Id: I0b96222dcec7e98b974151004248a91ba1854e60
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198573
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
2026-02-02 22:31:40 +01:00
Xisco Fauli c28ae7b32c SwHtmlDomExportTest: drop ExportToHTML
just use save

Change-Id: Id7e3e2034a8b9d274cc73ce712c922c9b1e01a45
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198568
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-02 20:55:18 +01:00
Heiko Tietze 29ad5237a8 Resolves tdf#169767 - More informative label for Clone Formatting
Change-Id: I1d6453662210c4d281ce125eac17904dc100c050
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198288
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-02-02 17:43:10 +01:00
Heiko Tietze c7728bf944 Resolves tdf#169766 - Make UNO command labeled "New" more informative
Change-Id: I58584e486b344e44eaf9d4bbb3bde62bbaae7386
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198286
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Tested-by: Jenkins
2026-02-02 17:41:15 +01:00
siddhisalunkhe1998 1c6eb5324d tdf#147630 Transform Hyperlink dialog into a standard SfxTabDialog
Adds new hyperlinkdialog ( class HyperlinkDialog : public SfxTabDialogController )
and tab pages - internet, mail, document, new document

Change-Id: I1d8c27d4da340f22f76df9046ab781d94477121f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195201
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-02-02 17:35:21 +01:00
Christian Lohmaier ab214fc9f3 uunxapi.cxx: add pre/postmac headers for sandboxed build
side-effect of dec1441f716c7631622b9b3e32fdbc666502c006 that removed
unnecessary Carbon.h headers and along with that the premac one that
would have been applied also to sal/osl/unx/uunxapi.cxx

Change-Id: I058e074d3ba7fb42d1ca70e497c6219820597119
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198551
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2026-02-02 17:03:12 +01:00
Xisco Fauli ba6cab4beb UnoApiTest: call validate from saveWithParams
Some tests call saveWithParams directly

Change-Id: I5a0cfaaa0693c6a7a41d69a8863d90f209021abc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198549
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-02-02 16:45:22 +01:00
Jean-Pierre Ledure 1952c85f9c ScriptForge fix tdf#169176 comma in file names
Per
  https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#file-and-directory-names
the comma and the semicolon are not
reserved characters in folder or file
names.

Not in Windows, and also not in Linux.

The regular expressions used to filter
valid file names have been reviewed
accordingly in the
  ScriptForge.SF_String
module.

No impact on user scripts, except a better
tolerance.
No impact on user documentation.

Change-Id: I4970c6d8334d717e5642782d3b5385731aa98717
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198545
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2026-02-02 15:09:31 +01:00
Tor Lillqvist 50f1498332 Remove ten year old file that is unused
Whatever workflow it was used for back in the days does probably not
exist any longer.

Change-Id: I4e29e1acde2a630e461d43b3f4b2b7fa6abd5031
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198538
Tested-by: Jenkins
Reviewed-by: Tor Lillqvist <tml@iki.fi>
2026-02-02 14:46:56 +01:00
Noel Grandin 38ad366d69 loplugin:unusedmethods
Change-Id: Ic00fb2aceef3156c3cff442908374daac3861e7f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198535
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-02-02 14:34:52 +01:00
Xisco Fauli d982e56ab3 tdf#170554: sw: Add UItest
Change-Id: Ic54ae1f56f369f3c13853fa084d12343e295a394
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198528
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-02 14:26:35 +01:00
Andrea Gelmini d36fa03f8d Fix typo
Change-Id: I9d916cc5b58877bc5c3a3baad40cda5cff914209
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198517
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-02-02 14:21:45 +01:00
Noel Grandin d5483115cd loplugin:unusedfields
Change-Id: I24bdc3a0f0df439ad745151b3943ce1f8bf5da9c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198534
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-02 13:11:30 +01:00
Miklos Vajna ba5a6c007d sw: fix crash in SwFrameControlsManager::SetContentControlAliasButton()
gdb backtrace on the crashreport's core dump:

	#8  SwView::GetWrtShell (this=<optimized out>) at sw/inc/view.hxx:433
	#9  SwFrameControlsManager::SetContentControlAliasButton (this=this@entry=0x53674d00, pContentControl=0x536d7210, aTopLeftPixel=...)
	    at sw/source/uibase/docvw/FrameControlsManager.cxx:192
        ...
	#19 0x000071084f165009 in SwWrtShell::GotoFieldmark (this=this@entry=0x552f4880, pMark=0x536d7e00)
	    at sw/source/uibase/wrtsh/wrtsh3.cxx:227
	#20 0x000071084f15d56b in SwWrtShell::SwWrtShell (this=this@entry=0x552f4880, rDoc=..., _pWin=<optimized out>, rShell=..., pViewOpt=pViewOpt@entry=0x7ffcab7ca2f0)
	    at sw/source/uibase/wrtsh/wrtsh1.cxx:2118
	#21 0x000071084e4a542c in SwView::SwView (this=this@entry=0x552f5180, _rFrame=..., pOldSh=pOldSh@entry=0x0)
	    at include/rtl/ref.hxx:203
	...
	#29 0x000071085b272a05 in framework::LoadEnv::loadComponentFromURL (xLoader=..., xContext=..., sURL=..., sTarget=..., nSearchFlags=nSearchFlags@entry=0, lArgs=...)
	    at framework/source/loadenv/loadenv.cxx:167

I.e. the document on load may have form protection on, in which case it
jumps to the first fillable form, and if that happens to be inside a
content control that has an alias/title defined, we hit this, probably.

The problem is that the SwView ctor is not finished at this stage, so
the view has no writer shell:

	(gdb) frame
	#9  SwFrameControlsManager::SetContentControlAliasButton (this=this@entry=0x53674d00, pContentControl=0x536d7210, aTopLeftPixel=...)
	    at sw/source/uibase/docvw/FrameControlsManager.cxx:192
	192             const SwViewOption* pViewOpt = m_pEditWin->GetView().GetWrtShell().GetViewOptions();
	(gdb) print m_pEditWin.m_rInnerRef.m_pBody.m_rView.m_pWrtShell
	$5 = std::unique_ptr<SwWrtShell> = {get() = 0x0}

Fix the problem by not assuming that the view has a writer shell set,
which is usually true, except when the view creation is in progress.

Change-Id: Ic7254e1ccbb9fdcafd94c04b829fae21a2322123
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198530
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2026-02-02 13:11:17 +01:00
Mike Kaganski 8580cf5d03 This test is now expected to work independent of DPI
After commit fb52efb4ae (tdf#163194: Make
width of comments in margin fixed on print / PDF export, 2026-01-31),
which made explicit changes to make width of comments in margins stable
regardless of DPI, this test should produce consistent results. At least
that is the hope :-)

Change-Id: I4aff11c53e42e05cc2acbef150a1c9220633262e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198519
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Tested-by: Jenkins
2026-02-02 11:54:06 +01:00
Xisco Fauli 79631c2369 expat: upgrade to 2.7.4
Downloaded from https://github.com/libexpat/libexpat/releases/download/R_2_7_4/expat-2.7.4.tar.xz

Change-Id: I7058df85bf0fbac6608b83967b635382859e4db6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198521
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-02-02 11:39:39 +01:00
Samuel Mehrbrodt 984e8adab1 Add UNO command for 'Add Theme'
Change-Id: I0a2b5dcab5a889717082825e124e181527dadc19
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198130
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
(cherry picked from commit 90910c7db4ba787595ae17f26710e1c6206f3ce4)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198515
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@collabora.com>
Tested-by: Jenkins
2026-02-02 10:27:15 +01:00
Bogdan Buzea 0c896483f5 Update git submodules
* Update helpcontent2 from branch 'master'
  to 4bdde7c8ebaa039363c0370366029a7dfaaa8748
  - tdf#170144 Wrong example for SUMIF
    
    Change-Id: Idd2ab258b57365a2fd3d1c582f1edd009f1c429c
    Reviewed-on: https://gerrit.libreoffice.org/c/help/+/198514
    Tested-by: Jenkins
    Reviewed-by: Olivier Hallot <olivier.hallot@libreoffice.org>
2026-02-02 10:23:06 +01:00
Miklos Vajna 726b1151e2 svx: prefix members of SvxIMapDlgItem
See tdf#94879 for motivation.

Change-Id: Ie75dce4fc7f16696d316c9d5a4eec1769e4e30bc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198513
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2026-02-02 10:12:10 +01:00
Mike Kaganski a99a6e7e17 Use ScopedConfigValue
These tests used ad-hoc structs for the required configuration values,
instead of direct use of officecfg headers.

Change-Id: I26353b0523d3607e84181de44a702ec007445c8d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198508
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-02 10:02:34 +01:00
Mike Kaganski a85beb8036 Replace SetAbsolute with ScopedConfigValue
Change-Id: I911b105c8dca2db2161d858d6bc09bbc962f0d46
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198507
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-02 10:02:25 +01:00
Mike Kaganski 95f974c26b Use ScopedConfigValue
testTdf115005_FallBack_Images didn't restore the manually set value.
It previously also tested if the setting was read-only; this change
drops that check (if it were read-only, the test would fail anyway).
If for some reason, testing the read-only status will prove needed,
it should be restored as a condition to skip the test.

Change-Id: I7376ec4263a0ecefb4c87fbeedefba21e68ee3b3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198506
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-02 10:02:18 +01:00
Mike Kaganski 4ed617ea72 Use ScopedConfigValue in places where the values weren't restored
The config changes that didn't restore initial values could potentially
affect other tests in the same test suite, so that could create test
order dependency.

Change-Id: I53cc2fe4e545852d0bcec865da31f2e2a7896d40
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198505
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-02 10:02:08 +01:00
Mike Kaganski 9d51fa1028 Use ScopedConfigValue instead of manual configuration management
Use of the RAII method is more robust, including restoration of the
correct previous values (in many cases, the restored values are
hardcoded, which could get out-of-sync in case of changing defaults).

Change-Id: I4f8f5109116c621aae3412171db8bded2b066ffa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198504
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-02 08:43:17 +01:00
Mike Kaganski 6437d0c99f Drop SwExportFormFieldsGuard, and use ScopedConfigValue instead
Change-Id: I1c0582ba9f4851096c9ffd138cd8b36a6822446d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198503
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-02 08:43:08 +01:00
Mike Kaganski 9fe65e5c3e Fix setting nullopt to the optional autocorrect entries
Trying to replace the manual management of settings in testTdf151801
with ScopedConfigValue, I found out that it broke other tests there:

 C:/lo/core/sw/qa/extras/autocorrect/autocorrect.cxx(64) : error : Assertion
 Test name: testTdf38394::TestBody
 equality assertion failed
 - Expected: l’« 
 - Actual  : l‹ »

 C:/lo/core/sw/qa/extras/autocorrect/autocorrect.cxx(45) : error : Assertion
 Test name: testTdf92029::TestBody
 equality assertion failed
 - Expected: Ik ben ’s morgens opgestaan
 - Actual  : Ik ben ›s morgens opgestaan

It looked like restoring the settings in ScopedConfigValue dtor had
no effect. But manually testing the restored values using officecfg
demonstrated that it worked as expected: the optional value appeared
empty, as before the test.

It turned out, that the problem was in SvxBaseAutoCorrCfg::Load: it
listened to the registry changes, but only loaded new value, when
it was not empty, meaning that setting a non-empty value, and then
resetting it back to empty would keep the last non-empty value in
SvxAutoCorrCfg.

This change modifies SvxBaseAutoCorrCfg::Load to properly handle
empty values. Booleans are now checked using Any::operator==(bool),
which checks the type. For other values, the usual operator >>= is
used, which is simply no-op for empty Any.

testTdf151801 is modified to use ScopedConfigValue.

Change-Id: Ia3f413583541cde482db234fe73d7f665be507ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198502
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-02 08:33:09 +01:00
Andreas Heinisch 4c7a6870fc tdf#170392 - Align file name format constants with translate constants
Automated test in order to check if the file name fields are the same
after a reload.

Change-Id: I6c67a8d84a044fe13b6dd81bd1f867422cbdaca0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198501
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
2026-02-02 07:55:46 +01:00
Michael Weghorn 189ac50fc1 tdf#130857 sw: Avoid invalid tree view indices in redline dialog
Ensure to not use a row index larger than the current
number of top-level children when inserting a new entry into
the tree view. The new entry can at most be inserted at the
very end, where it will have an index matching the child count
before the insertion happened.

This prevents a crash seen with the native Qt implementation
in a WIP branch where support for native Qt widgets is declared
for that dialog, seen in the following scenario:

* start Writer
* type "Hello"
* enable "Edit" -> "Track Changes" -> "Record"
* select "Hello" in the document
* type "Something else" in the document
* "Edit" -> "Track Changes" -> "Manage"
* switch to "Filter" tab
* check the "Date" checkbox, select "since" and set some date in the future, e.g. 2027-01-01
* switch to the "List" tab

(The call to SwRedlineAcceptDlg::InsertChildren later
in the loop can result in the new entry to get removed
again, so the treeview is empty again in the next
loop iteration.)

Change-Id: Ie7c80faa71b577deb62766290b1cabc6759e245b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198481
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-02 07:29:38 +01:00
Michael Weghorn f2cb68df44 svx: Resave .ui files for Manage Changes dialog with glade 3.40
Resave those .ui files with glade 3.40, but
manually restore the

    <property name="label" translatable="no"></property>

that would get lost on resave, to avoid any potential
unwanted side effects.

These .ui files are used by the dialog that can be
triggered like this:

* start Writer
* enable "Edit" -> "Track Changes" -> "Record"
* type something in the document
* "Edit" -> "Track Changes" -> "Manage"

Change-Id: I6f08d61e58e9635d624cc2195f17bb3205baaf2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198480
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-02 07:29:29 +01:00
Gabor Kelemen eadbdfcb1a Presenter console: simplify configuration access (PresenterScreenFullScreen)
for key
officecfg::Office::Impress::Misc::Start::PresenterScreenFullScreen

Change-Id: I0bb82f799de46398b9ff30d63dde29decfab253f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198068
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-01 22:04:41 +01:00
Mike Kaganski d0e23db89a Drop MacrosTest::Resetter, and use comphelper::ScopeGuard
Change-Id: I2214724567a58174b175a17fbabec7a5249e4df8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198482
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-01 19:38:44 +01:00
Andrea Gelmini 046daed2e1 Fix typo
Change-Id: I494b149e1d933a08525673bb058edc0692ef4c2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198466
Tested-by: Jenkins
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-02-01 14:36:50 +01:00
Noel Grandin 6bdf3b5eb9 fix deadlock seen on ubsan build
Change-Id: I57996c0df31b435ef6680cc19ff224c5e6b028ac
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198483
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
2026-02-01 13:40:23 +01:00
Mike Kaganski 3a9f1198ab Introduce ScopedConfigValue for easier scoped officecfg manipulation
Helps to reliably restore the correct previous value of a setting:
in many cases, the old restoration code used hardcoded values, which
could get out of sync with current defaults. Also, makes the code
easier to read.

Change-Id: Ia60b4e42192009c16bdbe58c540980c13626d5d8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198479
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
2026-02-01 12:21:11 +01:00
Mike Kaganski d4c50dd103 Add missing @since tag
The method was added in commit 0446f73d27
(tdf#153519 use new IdleTask::waitUntilIdleDispatched, 2023-10-26).

Change-Id: Ife3bd0e8273e52d37af740eb426351bc7f09c9cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198477
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2026-02-01 10:04:15 +01:00
Vladislav Tarakanov e46314fa13 tdf#170554 Do not call SetTableStyle for None style
SwFEShell::SetTableStyle should not be called if
"None" was selected, which is not a real table style.

Change-Id: I8a5cd4fd0ee111e4fcf657edf32918e66af69056
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198468
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
Tested-by: Jenkins
2026-02-01 09:24:43 +01:00
Gabor Kelemen c511c65434 tdf#146619 Use more forward declarations in include/tools
Change-Id: Iab2938f82a9fd7ef3334d69c4fd07a9d963a9e24
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198237
Tested-by: Jenkins
Reviewed-by: Gabor Kelemen <gabor.kelemen@collabora.com>
2026-02-01 09:23:01 +01:00
Michael Weghorn a39863f20c tdf#130857 qt weld: Support comment dialog
This means that native Qt widgets are used for that dialog
now when using the qt5 or qt6 VCL plugin and starting LO with
environment variable SAL_VCL_QT_USE_WELDED_WIDGETS=1 set.

The dialog can be triggered like this:

* start Writer
* enable "Edit" -> "Track Changes" -> "Record"
* type something in the document
* "Edit" -> "Track Changes" -> "Manage"
* right-click on the entry in the treeview and select
  the "Edit Comment..." context menu entry

Change-Id: Idf898b8d0ae16515a5b29aa15f985d02ddc5ba5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198476
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-02-01 09:13:49 +01:00
Michael Weghorn cbd19ac0c0 cui: Resave comment.ui with glade 3.40
The dialog can be triggered like this:

* start Writer
* enable "Edit" -> "Track Changes" -> "Record"
* type something in the document
* "Edit" -> "Track Changes" -> "Manage"
* right-click on the entry in the treeview and select
  the "Edit Comment..." context menu entry

Change-Id: Ifbd0360ba2b59005f958d6e9bc77c5b4a6f6990e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198475
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-01 09:13:41 +01:00
Michael Weghorn f6c75c2f1a svx: Rename RedlinTable -> RedlineTable etc.
Rename some classes and members to spell out "Redline"
instead of using "Redlin".

Change-Id: I23d47a109e14ce8a7034e01d8e4f78fbee364d56
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/198474
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-02-01 09:13:32 +01:00