8825 Commits
Author SHA1 Message Date
Justin Luth 72d2a706a3 tdf#173510 sc: prevent crash when table style deselected
This fixes a 26.8 regression from
commit 4fb31ea85f.

Format - AutoFormat Styles and Ctrl-click to de-select the style.

Change-Id: I94961ec11932d76fc945fbb11031f22174111459
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211929
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-10-07 13:20:15 +02:00
Justin Luth 327a555d56 tdf#173510 svx: update preview when table style is de-selected
This fixes a 26.8 regression from
commit 4fb31ea85f

Change-Id: Ifbd749eccbf6a5bb5f292100d0d16c6eb9246109
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211926
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-10-07 04:09:57 +02:00
Justin Luth f74731de65 tdf#173510 svx: prevent a third crash when table style deselected
This fixes a 26.8 regression from
commit 4fb31ea85f.

It looks like it was a mistake to not include it here in the first place,
but doubly so when a table style is deselected (via Ctrl-click).
In that case, if the user pressed the edit button,
LibreOffice would crash because of an attempted -1 index access.

Change-Id: I98038dad3693fba26d17022bec75bd201340c1cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211923
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-10-07 04:07:44 +02:00
Justin Luth c08511c560 tdf#173510 svx: prevent another crash when table style deselected
This fixes a regression from
commit 4fb31ea85f

When you de-select a table style in Table - AutoFormat Styles,
then the checkboxes below were left enabled despite a -1 index,
so the rename and renew buttons would crash.

Change-Id: I3c9601476f874116e43387ee40e934932a44b311
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211922
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-10-07 04:07:13 +02:00
Justin Luth dc7f772380 tdf#173510 svx: prevent crash when table style deselected
This fixes a 26.8 regression from
commit 4fb31ea85f.

When Table - AutoFormat styles has the style de-selected (via a Ctrl-click),
then SelFormatHdl would call UpdateChecks and crash
when GetData tried to access an index of -1.

Change-Id: I2302436d19ef99584cdb7c4e41738894756e9e8a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211921
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-10-07 04:03:01 +02:00
Noel Grandin fcf0bcc0f9 Hold EditTextObject by value in OutlinerParaObjData, not by pointer
OutlinerParaObjData is already ref-counted data, no need
for further indirection.

Unfortunately, this sets off a larger chain of changes
than I would have preferred, but we end up storing
EditTextObject on the stack much more than before, so
that worked out well.

Change-Id: Ie7d0ccfbfeec4e6935f2ed6b8ad48aadfe1bac20
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10973
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit fbf7d1bc7142d3f0e4e5f959983dea065afc5ea3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210927
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-14 16:27:02 +02:00
Andrea Gelmini 4ee0d493d0 Fix typos in code + comments
Change-Id: I66a422f3519dceed4f5e253a2895eb2e0d943662
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210574
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-09-11 02:53:38 +02:00
Andreas Heinisch 52fe6ff648 tdf#97354 - Keep formula bar content visible while a ref dialog is open
Still clear the formula bar content when the view itself is no longer
active.

Change-Id: I2aab4c320c342676fc547b8879fc2e6986d88ce8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208862
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
2026-09-07 11:30:08 +02:00
Heiko Tietze c3844e912e Resolve tdf#171925 - Remove uno:SendFeedback / SID_SEND_FEEDBACK
Change-Id: I0a65e7a4ba1cd37fb28299c324027b31c41daacf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210340
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-09-02 06:05:11 +02:00
Andrea Gelmini 3fd741a421 Fix typos
Change-Id: Id916dd1f70e8296ebef37da2844cf94822d553dc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210193
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 16:25:13 +02:00
Caolán McNamara ecd9ee7aa1 pass a referer through setSvxBrushItemAsFillAttributesToTargetSet
SvxBrushItem::GetGraphic wants the name of the document the brush came
from, so take it as an argument and hand in SwDoc::GetLinkReferer
wherever a document is at hand, the Writer style, frame and background
shell paths included.

The dialog and example-window callers pass the name of the active
document shell through a new svx helper getActiveDocumentLinkReferer.

The hand-rolled copies of the GetPersist, HasName, GetMedium GetName
sequence elsewhere in sw now call SwDoc::GetLinkReferer too.

Change-Id: I8693d27869baed79962b2d5bdcb7b7e2c63227bb
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/8200
Reviewed-by: Stephan Bergmann <stephan.bergmann@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 18f91ac71710027479dfe9f206ae2207bad8f2b7)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209827
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-25 11:16:39 +02:00
Mike Kaganski 71afdd2a6a CreateAlphaMask + CreateColorBitmap -> SplitIntoColorAndAlpha
See commit f7b67e6c8c5981790fb9ac162dcc68e470b53112 (pdfexport: reduce
the number of times we split images, 2026-08-19) for rationale.

Change-Id: I1a541a9cb977cde63b89b5e838fa0e77e3116c45
Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9513
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 349f60f1c3f425bf3ec4a7b85e053c372a166e4a)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209522
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-23 13:28:50 +02:00
Mike Kaganski 7161748dcd CreateAlphaMask + CreateColorBitmap -> SplitIntoColorAndAlpha
See commit f7b67e6c8c5981790fb9ac162dcc68e470b53112 (pdfexport: reduce
the number of times we split images, 2026-08-19) for rationale.

Change-Id: I899590dca6d00f7d5bf850d3ee0329215caaf2f6
Signed-off-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/9517
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 235b590828ebcc3167bb9b56f7acbf5c8300d4db)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209510
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-08-23 13:27:40 +02:00
Justin Luth de2bca4105 tdf#157286 srchdlg: just SetSearchLabel("") even if isEmpty
Change-Id: Ia6c64a1df0bcd0f0941db887fcd6a015bc3ef2f5
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208903
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-08-01 00:05:08 +02:00
Michael Weghorn a81cc28ba6 sfx2: Pass SfxDockingWindow's SfxBindings param by ref
With the refactoring from previous commits in place, it's
clear that all callers pass a non-null SfxBindings*
param.
Switch the param to a reference, to make that clear
and prepare for further refactoring.

Change-Id: Id9f1487dba4b84860f9afa52ff9ffb4dd7b1d2c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208387
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 23:21:34 +02:00
Michael Weghorn c8fcda3cb9 svx: Pass SvxFontWorkDialog's SfxBindings param by ref
Change-Id: If1a983973ac611ead862e8bbe0abd14d603144b9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208380
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 15:39:51 +02:00
Michael Weghorn a9ff204b12 svx: Pass SvxBmpMask's SfxBindings param by ref
That makes clear it's non-null and therefore
the unconditional dereferencing done previously
was unproblematic.

Change-Id: I85e5f1a226396865cc6a835bc63170ccfc479162
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208379
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 15:39:42 +02:00
Michael Weghorn 08d5c60a02 sfx2: Pass SfxDockingWindow::Initialize param by ref
With refactoring from previous commits in place, it's
now clear that all callers pass a non-null
SfxChildWinInfo*. Pass by reference instead to make
that clear, which also allows to drop some null
checks.

Change-Id: I39bfe179c68afecf9b7aa209feb69d33e57e5388
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208371
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 15:38:45 +02:00
Michael Weghorn 2aeb583c16 Switch SfxChildWinCtor's SfxBindings param to ref
Switch the parameter from a pointer to a reference.

The only 2 callers in SfxChildWindow::CreateChildWindow
always pass a non-null param.

Using a reference makes clear that the param is always
non-null and makes clear that those implementations previously
unconditionally dereferencing the pointer were unproblematic.

Change-Id: Ia2b893aac6c94c3b0e1024cc5500da2463bf9996
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208312
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 09:23:23 +02:00
Michael Weghorn b0ca6c6301 sfx2: Pass SfxModelessDialogController::Initialize param by ref
All callers pass a non-null SfxChildWinInfo*.
Switch the param to ref, which also allows to drop
a null check.

Change-Id: I47d38ddc26800668112619eb4fb512834060f7b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208310
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 09:23:02 +02:00
Justin Luth b43bc41063 tdf#74078 srchdlg.cxx: re-add Page Style to Attributes search
This reverts 27.2 commit d63a0b60fb.

Although Page Style existed in Attributes, it never worked AFAICS.

Using the clues from 'Page Break' in tdf#158011
the key is to simply have an 'invalid' RES_PAGEDESC
in the sw ItemSet. Then ANY Page Style matches... Perfect!

'Attributes' is a find-only piece,
so the SfxToSwPageDescAttr in the two bReplace blocks
didn't need to be restored in the revert
(as well as some other miscellaneous bits).

Change-Id: I7578afae4272e56aafd091d5725ac1ff0390a231
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208503
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-23 03:16:46 +02:00
Michael Weghorn 00a19be1dc Switch SfxChildWinCtor's SfxChildWinInfo param to ref
Switch the parameter from a pointer to a reference.

The only 2 callers in SfxChildWindow::CreateChildWindow
always pass a non-null param.

Using a reference makes clear that the param is always
non-null, allows dropping some null checks and makes
clear that those implementations previously unconditionally
dereferencing the pointer were unproblematic.

Change-Id: I6734dfe6fe4fa1cb6aa80f4e67eb69603e8d86fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208300
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-22 07:48:29 +02:00
Justin Luth f6d9c40207 tdf#39881 srchdlg: no need for AllSheets to call ModifyHdl_Impl
Prior to 2013, the Search All button was disabled
when All Sheets was enabled,
so toggling it off meant that the search buttons
need to be re-evaluated - thus the call to ModifyHdl_Impl.

But with patch 09a546ed1f nothing was being disabled,
so there is no longer any reason to call ModifyHdl_Impl AFAICS.

Change-Id: I669e81d61fdbe0e98577155fda32189488d4aa84
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208206
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-18 13:29:13 +02:00
Justin Luth 9966db0cbe tdf#39881 srchdlg: don't hide search buttons if 'search by styles'
I triggered this in Calc.
When 'Cell Styles' is enabled, then clicking on 'All Sheets'
was disabling all of the search buttons.

This could happen with anything that called ModifyHdl
(which doesn't seem to be anything except styles and AllSheets).

Not sure why AllSheets needs to call ModifyHdl.
Changed for tdf#39881. Prior to that SearchAll was disabled
when AllSheets was checked.
So then it makes sense to call it (to re-enable the buttons).
But now it no longer makes any sense.

Change-Id: I809a99aaddfad4add5a4017db60715d88944eb70
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208205
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-18 13:28:27 +02:00
Justin Luth ce4939aeac tdf#53290 srchdlg: only set SearchItem RegExp if button is visible
Draw and Impress were using the user options
to enable searching as a regular expression
even though the dialog tried to avoid that
by not making the regex checkbox available.

Now, we don't want to affect the user options,
so we can't just set the checkbox to false.

Change-Id: I0c3797368669099ace1fb2080da9f11fb07d7949
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208121
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-15 00:21:30 +02:00
Khaled Hosny ef3c39851d vcl: Rename Font::Set/GetAverageFontWidth to Set/GetFontWidth
It is a misnomer now, so return to the original name.

Also drop the redundant private Font::GetAverageFontSize().

Change-Id: I67495fa675091b459a4e90ac09665489cc61fdd9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207991
Tested-by: Jenkins
Reviewed-by: Khaled Hosny <khaled@libreoffice.org>
2026-07-14 00:16:59 +02:00
Justin Luth 5525f5e89b tdf#151688 srchdlg: on open, repopulate Replace as well as Search
When the dialog is opened, the last searched for string
(from the session, not from stored config) was already restored.
However, no attempt was made to restore the last replace string.

Although it might feel a little dangerous to provide a restore value,
it isn't really dangerous, because the user has to hit the
replace button in order for it to do anything.

The bug report is worried about replacing with 'nothing' by accident,
so I guess the 'danger' goes both ways.

Personally, I would like having both last values restored
in case I accidentally closed the dialog
(or closed it to get it out of the way while I manually made changes
and then restarted it to continue my replace task).

Only Writer replaces the 'search' content with a user's selection.
In this case it seems very wise to clear the replacement string.

Change-Id: Id9f40c01724978a2e51f685a60b9e3e75c21135a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207901
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-10 23:55:38 +02:00
Michael Weghorn f1f6a505a0 weld: Pass weld::TextWidget& in text change callback/handler
Switch the weld::Entry and weld::TextView handlers
that are called when the text changes due to user
interaction to pass a weld::TextWidget& param
instead of a weld::Entry& and weld::TextView&
one respectively.
Adjust related methods across the code base accordingly.

This unifies the behavior for both of these
weld::TextWidget subclasses and prepares for
deduplicating the logic and moving it to the
common base class in an upcoming commit.

That will also ensure they stay in sync.
(Change also motivated by the fact that their behavior was
differing before

    Change-Id: I03d2a13cd84d53d806eb9e363f49c4b6be28d938
    Author: Michael Weghorn <m.weghorn@posteo.de>
    Date:   Thu Jul 9 13:08:58 2026 +0200

        tdf#130857 weld: Don't signal about programmatic TextView text change
.)

Change-Id: I5572fc88caf577fae9a23a39f1ec4f2179935a99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207936
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-10 18:17:27 +02:00
Justin Luth 09086ecab8 related tdf#126275 srchdlg: resize dialog after NoFormat search
This started in LO 5.2
with commit beeef93480
tdf#98417, tdf#98539: DIALOG: Improvements to the Find & Replace dialog
    Reviewed-on: https://gerrit.libreoffice.org/23057

If the replace label had a description,
then both the search and replace labels were shown.
So if you remove the search label first,
then that space would not be recovered,
not even when the replace label was cleared.
[You would need to again set and clear the Attribute label.]

Noticed by a code read, and then confirmed by unexpected results
from my previous patch.

Change-Id: I74bef84dcf006a6bfed85b6236ed1e8179053e13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207899
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-10 12:15:17 +02:00
Justin Luth b00fb3ee0c NFC related tdf#126275 srchdlg: remove dead code: sDesc is always empty
This was introduced in LO 5.2
by commit beeef93480
tdf#98417, tdf#98539: DIALOG: Improvements to the Find & Replace dialog
    Reviewed-on: https://gerrit.libreoffice.org/23057

Using sDesc was confusing to me as I was reading through the code.
Just use an empty string if you want to clear a label,
instead of using an uninitialized, named OUString.

Change-Id: Ia5b5ebd6cdc423b6595f83db8b35ee94d657ab3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207898
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-10 12:13:33 +02:00
Justin Luth 0f9a60c115 tdf#126275 srchdlg: reset m_bFormat when m_xSearchAttrText isEmpty
There was a bit of inconsistency when all enabled Attributes
were then removed - leaving an empty description.

Specifically, the 'Paragraph Styles' label was re-enabled
even though TemplateHdl_Impl returns early if m_bFormat is set.

Additionally, the NoFormat button was disabled - preventing the user
from properly clearing the attribute field.

So the best course of action seemed to be to just call the
NoButton handler - which clears, hides, and resizes.

Change-Id: I65f88ed97e692a0ff9e162c2c8b9b85c9971ea58
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207897
Reviewed-by: Justin Luth <jluth@mail.com>
Tested-by: Jenkins
2026-07-10 12:12:50 +02:00
Justin Luth 8624e67503 tdf#128419 srchdlg: stop losing user's 'replace backwards' choice
Every time the user called a different command (find/findprev/findall)
the 'replace backwards' checkbox was being reset
to some seemingly random state.

That random state was 'whatever the checkbox was
the last time that "Replace" was called'.

Instead, it should retain the last state that the user provided.
[Fortunately, I found a couple of examples to guide me.
 since m_pSearchOpt isn't reliable
 as the 'Find Previous' button can also SetBackward.]

With this patch, the user's selection is:
-the sole controller of the checkbox
-saved and restored between sessions (wasn't restored earlier)
  [ClickHdl_Impl calls SaveToModule_Impl - so immediately saved]

Change-Id: I1364c97f6a853989cb9b2706ec4a03a5e4c0ca13
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207696
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-06 23:51:07 +02:00
Justin Luth b68f735f5c tdf#90558 sw: disable 'Replace' when 'Current selection only'
When there is already a user selection,
it is a little bit ambiguous about what will happen
when the replace button is pressed.
At least in Writer, the user is never SHOWN what has happened
for that first 'Replace' attempt.
But there isn't much we can do about that.
(Calc at least highlights the cell,
while Draw/Impress does no replace, but just the next find.)

It is worse when the user requests to replace something
only in the current selection.
At that point the user kind of expects that the next replace
will just continue within his selection,
but the very act of finding changes the selection.

So, simply disable the replace button for 'current selection only'.
The user can either replace-all,
or else Find the first instance they want and then replace-all
(since only one instance will be in the current selection only).
At the end of the replace-all, there is no selection,
and that re-enables the replace button (via a short timer).

I suppose this might be 'bad training' since using replace-all
is generally a very bad idea.
But the alternatives are worse.

Change-Id: I4349a47702be8671f25b67c816956bb0fb6bcf4a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207592
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-06 15:44:04 +02:00
Justin Luth d63a0b60fb tdf#74078 srchdlg.cxx: remove non-working Page Style
Page Style is not a 'on or off' kind of attribute.
In order to compare a Page Style, you need a name to match,
and the attribute dialog has no ability to specify a name.

Change-Id: Ifd7e85bd7e0cc80e2ee9fbda87520c60045364f3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207619
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-07-05 02:17:49 +02:00
Michael Weghorn 2dca1c0f02 weld: Rename TreeView *_column_clicked methods to *_column_header_clicked
Rename weld::TreeView::connect_column_clicked
and weld::TreeView::signal_column_clicked to make
clear that they are not about a click anywhere in a
column, but about the column *header* being clicked.

The GTK 4 doc for the corresponding
GtkTreeViewColumn::clicked signal [1] by which the API
was apparently inspired is clear about this:

> Emitted when the column’s header has been clicked.

[1] https://docs.gtk.org/gtk4/signal.TreeViewColumn.clicked.html

Change-Id: I0b4b337b5ca938bb1526d9857ed2b0b244daf23c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207591
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-03 22:26:00 +02:00
Michael Weghorn 35e2a8f8c6 tdf#130857 weld: Add default param for TreeView::enable_toggle_buttons
Most callers use weld::ColumnToggleType::Check
and only a few use weld::ColumnToggleType::Radio.

Add a default param of weld::ColumnToggleType::Check
and drop the explicit param for callers passing this.

This prepares for moving setting the toggle button
type to a separate method in an upcoming commit to
clarify what it actually does.
(It doesn't only set the toggle button type of the
special "expander toggle column" enabled by
weld::TreeView::enable_toggle_buttons, but of *all*
toggle buttons used in any of the cells of the
whole table.)

Change-Id: I65edb7cd5f79c59222c1c415f118b8adbdec0271
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207249
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-25 18:23:42 +02:00
Xisco Fauli 667fe200a9 Revert "[API CHANGE] remove deprecated XSpell1 and XSupportedLanguages"
This reverts commit bce4b4af9d.

Reason for revert: Revert it for now until there is a policy
for removal of published APIs

Change-Id: Ia1cbcfcd6b953be48a60d8ef67333b1e3265e563
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207150
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-23 10:58:29 +02:00
Michael Stahl a50e3188a3 svx,sw,xmloff: split no-first-page-header-flag in 2
In Word only the first-page-shared flag is shared between header and
footer, while the existence of header and footer is independent.

Split into core flags `DisableFirstHeader` / `DisableFirstFooter`,
properties `HeaderNoFirst` / `FooterNoFirst` (which allows removing some
special checks as the name prefix checks now cover these).

`SectionPropertyMap::setHeaderFooterProperties()` had some special code
to turn off a header but not a footer, add that to do it consistently.

Also rename the ODF attributes, `is-first-page-header-enabled` better
describes the values than `is-first-page-header-shared`.

Signed-off-by: Michael Stahl <michael.stahl@collabora.com>
Change-Id: Ieee9cb7a8f7b4fb7e66352c95142d8ccb06f9cb5
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4383
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit a443891f1a6480421fa08c311526c1a9d4bdd642)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206703
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-18 12:17:26 +02:00
Oliver Specht 5dd328effe Support of page styles without header/footer on first page
Import/export to/from docx/rtf supported.
Unit test available.

Change-Id: I12065ba4fb050d7dfc013eda704ebe2acb53c88e
Signed-off-by: Oliver Specht <oliver.specht@cib.de>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/3580
Tested-by: Michael Stahl <michael.stahl@collabora.com>
Reviewed-by: Michael Stahl <michael.stahl@collabora.com>
(cherry picked from commit b8af8f046a098c67d7caf44dc70d1db5cabf24e2)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206698
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-18 12:17:01 +02:00
Noel Grandin bce4b4af9d [API CHANGE] remove deprecated XSpell1 and XSupportedLanguages
in favour of their replacements XSpell and XSupportedLocales

Change-Id: I3ad20d0c6c3bf0a00d7ef3947705059027a1ff6f
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/4228
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 35842d441f2e82204ce77ba8c53735be3f18dc78)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/206467
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-06-16 14:55:20 +02:00
Michael Weghorn f26084217a weld: Move weld::Button to own header/Rename weld.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses.

By now, weld::Widget and almost all subclasses have
been moved to separate headers, to make it easier
to keep the overview and to avoid having to
recompile ~all UI code when one class changes.

By now, only weld::Button is left in weld.hxx.
Rename the header to Button.hxx.
Drop weld.hxx includes and instead add Button.hxx
includes (or weld::Button forward declarations) where
weld::Button is used.
(Don't simply replace all weld.hxx includes with
Button.hxx ones, since many of them were for the
use of other widgets that have since been moved
to their own headers.)

Add further includes where needed now that the
(direct or transitive) includes of weld.hxx were removed.

Change-Id: I8ea6201446a418d5e38b46337059dcd517ee29d7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205937
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-05 07:58:07 +02:00
Michael Weghorn 8b5a46a0e0 weld: Move weld::toId and weld::fromId to weldutils.hxx
In the past, weld.hxx used to contain the class
definitions for weld::Widget and all subclasses,
as well as a few helpers.

By now, weld::Widget and almost all subclasses have
been moved to separate headers, to make it easier
to keep the overview and to avoid having to
recompile ~all UI code when anything in weld.hxx
changes.

Move the weld::toId and weld::fromId helpers from
weld.hxx to weldutils.hxx, in preparation of getting
rid of weld.hxx altogether in an upcomcing commit.

Change-Id: I408fe20a74ff104cbfe07bde3105317a1922ff61
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205936
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-04 14:37:13 +02:00
Michael Weghorn 0c4f814e72 weld: Move weld::TimeFormatter to own header/source
This makes it easier to keep an overview and reduces
what needs to be recompiled if the class changes in
the future.

Change-Id: I16f988657fb183c9701cd14fd953fae6026e5bd1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205931
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-04 08:39:47 +02:00
Michael Weghorn 8f7cf9c32c weld: Move weld::CheckButton to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Add missing includes/forward declarations in places
previously depending on transitive includes that
are now dropped.

Change-Id: I3215b358e0fa45ffce08756218c386e1a4d7ebc6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205928
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-04 08:39:19 +02:00
Michael Weghorn da1c7a5459 weld: Move weld::RadioButton to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: I34876c5bef75e30e758029b0fe5afeecc92d509d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205903
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-03 23:19:54 +02:00
Michael Weghorn 911a89ddeb weld: Move weld::WaitObject to own header/source
Move the class out of weld.hxx into its own header and
source file, in order to make it easier to keep an overview
and to avoid having to recompile ~all UI code when the class
is modified.

Change-Id: I91bae842e5b18a83db45de12150c21f75e537fb9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205900
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-06-03 23:19:30 +02:00
Michael Weghorn 243bb112ec weld: Move weld::Container to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Adjust includes in files that were implicitly depending
on transitive includes that are no longer present because
the more specific include/weld/Container.hxx is included
further down now instead of include/weld/weld.hxx.

Change-Id: I04e6bb72ce446b746dfdf88b45c7df9d0ccda473
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205899
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-06-03 23:19:22 +02:00
Xisco Fauli f436c1cd89 drop isLOKMobilePhone
follow-up of
commit 8b90f2cd18
Author: Heiko Tietze <tietze.heiko@gmail.com>
Date:   Thu May 28 09:05:55 2026 +0200

    Remove wordcount-mobile dialog

This commit also reverts
commit 5eec86d6c4
Author: Caolán McNamara <caolan.mcnamara@collabora.com>
Date:   Tue May 6 16:38:57 2025 +0100

    no searchicon (or searchbox) in mobile version of search dialog

Change-Id: I7dd37f5e6575f2f1b7748ce6c1bd6ddadb8c3e77
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205826
Tested-by: Xisco Fauli <xiscofauli@libreoffice.org>
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-29 13:38:32 +02:00
Michael Weghorn 336f70f966 weld: Move weld::Label to own header
Move the class out of weld.hxx into its own header, in
order to make it easier to keep an overview and to avoid
having to recompile ~all UI code when the class is
modified.

Change-Id: Ide86f35543468a88288a068cc9f89eaf381ac52f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205763
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-05-27 22:24:37 +02:00
Xisco Fauli a7852eb32d svx: fix build with --enable-breakpad
/home/tdf/lode/jenkins/workspace/lo_gerrit/tb/src_master/svx/source/dialog/crashreportdlg.hxx:28:27: error: ‘LinkButton’ is not a member of ‘weld’
   28 |     std::unique_ptr<weld::LinkButton> mxLinkButton;

Change-Id: If364ca8d2208b997902d19557bb12597defdb506
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/205629
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-05-24 22:36:54 +02:00