Commit Graph
17064 Commits
Author SHA1 Message Date
Justin Luth ecb92a32f3 tdf#107230 dinfdlg: no 'Save preview image' if !GenerateThumbnails
Disable the checkbox to save preview image
if the expert config says thumbnails are not allowed to be generated.

Change-Id: I5c2cceffb3f0ac301814b347ce0d3a6eff0cc79f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210639
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-09-10 15:44:53 +02:00
Justin Luth 96dee50f31 tdf#157087 dinfdlg: recognize when SfxDocumentInfoItem changes
Since SfxDocumentInfoItem didn't compare m_bUseThumbnailSave
in operator==, it didn't notice that putting *pInfoItem
was different from the previous value.

It also isn't checking m_bUseUserData,
but that doesn't seem to matter in the current implementation
so I'll just leave that absent for now.

Change-Id: Ibd1e5b161a92f659c72b235885a7f01fdd9e4115
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210634
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
2026-09-10 02:40:31 +02:00
Caolán McNamara 890f388a78 move isScriptURLAllowed onto SfxObjectShell
it was private to sfx2's eventsupplier.hxx, so nothing outside sfx2
could run the AllowedDocumentEventURLs test

Change-Id: I814a965cafc245eb7b7f2d8fb18a81d1f7b7e50f
Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10920
Reviewed-by: Noel Grandin <noel.grandin@collabora.com>
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
(cherry picked from commit 4a5b2dd74b4e82b183961ca8f50d80bd485d5359)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210591
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
2026-09-09 12:59:48 +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
Noel Grandin 7b0729cd8b UpdateAllLinks pParent parameter is always nullptr
Change-Id: I67b9bc9cb235d66ffb4eef1d6a01535664b30bc7
Signed-off-by: Noel Grandin <noel.grandin@collabora.co.uk>
Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/10464
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
(cherry picked from commit 178ec8504f2fe78725c2f9bff78f1db698b8fca3)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210286
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-08-31 15:56:24 +02:00
Andrea Gelmini 73bad15553 Fix typos
Change-Id: Ia92e533b8753709937e87c94ada04a3e3064ea90
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210191
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-29 13:34:56 +02:00
Andrea Gelmini 7dcc068124 Fix typos
Change-Id: I170af8cd8bcbc969631ee603f20efcf40b68e517
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210038
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 15:00:22 +02:00
Andrea Gelmini cdca504f29 Fix typos
Change-Id: Ia7dd97cbf467603797cb3d073a2b6fa0251ce7b8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210077
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Jenkins
2026-08-27 14:10:49 +02:00
Andrea Gelmini dd7fa7563e Fix typos
Change-Id: I9895f3ba33682fa5d2eb040458579679e5a90f8b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/210076
Tested-by: Jenkins
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-27 13:58:25 +02:00
Andrea Gelmini 201b68ecfe Fix typos
Change-Id: I3f6e4a97ef61596bcdaf9abb1bcddf2ab0530974

Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209798
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 15:27:44 +02:00
Andrea Gelmini aae006522f Fix typos
Change-Id: I9d41f9ab9cf8d9d547159de79bd7eaebba55491b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209912
Tested-by: Julien Nabet <serval2412@yahoo.fr>
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-25 10:40:57 +02:00
ApurvR20 510f4c48a5 tdf#170270 Replace copy_if by ranges::copy_if
Change-Id: Ifed54b1b00c25b4a74ae8c4b71b0f746ea8a1e1e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209535
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-23 15:09:34 +02:00
Andrea Gelmini 335726898d Fix typos
Change-Id: Idab619de99649c2fb0a1920844cb07e5ede9691c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209474
Reviewed-by: Julien Nabet <serval2412@yahoo.fr>
Tested-by: Julien Nabet <serval2412@yahoo.fr>
2026-08-22 10:25:17 +02:00
Saburo Yoshida fb02e9d1fc tdf#167549 fix:Read Only option does not work
add FILEOPEN_READONLY_VERSION_FILTEROPTIONS
Retained FILEOPEN_READONLY_VERSION just in case.

Change-Id: Ie03ab09bfeea94682461ff0015432f1e1030f101
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207509
Tested-by: Jenkins
Reviewed-by: Ilmari Lauhakangas <ilmari.lauhakangas@libreoffice.org>
2026-08-15 14:02:57 +02:00
Heiko Tietze 9956982284 Resolves tdf#128005 - Hide uno:MenuBar on macOS
Command is not working on macOS

Change-Id: Ice4dcee4f149e3220e7bae6a5a64ec09e32eee3c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209104
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
2026-08-13 13:04:55 +02:00
Andrea Gelmini 39fbe6e337 Fix typo
Change-Id: Ia1f8e7b920c56229b431ee1990757729d9351bae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208994
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
Tested-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
2026-08-04 00:53:21 +02:00
Christopher Sherlock 9a0a7de89e sfx2: make SfxBaseController::dispose() safely idempotent
Jenkins buildbots occasionally fail with a SIGSEGV during UITest
teardown in test_tdf117039_preview_signed_document. The crash is
triggered by a race condition between an asynchronous Print Preview
view-shell closure on the main thread and xDesktop.terminate()
invoked by the Python test harness.

When XFrameImpl::implts_checkSuicide() has its initial frame close
vetoed (e.g., frame is mid-load), it auto-retries once the lock count
drops. This can cause the framework to invoke SfxBaseController::dispose()
a second time on the same controller.

Because SfxBaseController::dispose() lacked a strict idempotency guard,
it would unconditionally re-run disposeAndClear() on its listener
container. Walking already-freed listeners results in a use-after-free
crash inside BaseReference::iquery.

This patch adds an early return if m_pData->m_bDisposing is already
true. This safely intercepts the double-dispose and adds a SAL_WARN
to track when this teardown race is caught.

Change-Id: Ifa68e2f113cad24a05f8b64c19eabec60cdbd0b6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208046
Tested-by: Jenkins
Reviewed-by: Dan Williams <dcbw@libreoffice.org>
2026-08-03 16:13:29 +02:00
Jim Raykowski 28312cdf17 Remove 2 repeated lines of code
These were mistakenly added in commit
afee30ce81
'tdf#167949 Allow for independently toggling style filters'

Change-Id: Ia098d7ca95ea3d323d9a5632a09034f1704779d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208979
Tested-by: Jenkins
Reviewed-by: Jim Raykowski <raykowj@gmail.com>
2026-08-03 07:50:43 +02:00
Neil Roberts 95959da85b tdf#172199: Don’t skip disabling read-only when already in read-only mode
When a read-only document is saved to a new file using the SaveAs
command it is supposed to become editable. The commit below added a
check whether the document is currently read-only before proceeding to
remove the read-only status. The patch also makes the read-only method
true if the document has restricted fonts, so presumably the intention
was to avoid removing the read-only status in that case. However it
ended up making the condition so that read-only status is only removed
if the document isn’t read-only, which of course doesn’t make sense.

This patch instead extracts the part from IsReadOnly that checks whether
the document has restricted fonts and only checks for that instead.

commit fdd24dabb6
Author: Mike Kaganski <mike.kaganski@collabora.com>
Date:   Mon Aug 11 17:55:27 2025 +0500

    tdf#145967: Initial support for docs with restricted embedded fonts

Change-Id: I7e59bf53e759110a636c398dc8f5af56b1e2da8c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208746
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-08-01 13:22:58 +02:00
Michael Weghorn b6c6d25dc2 sfx2: Drop obsolete LibreOfficeKit checks in SfxNotebookBar
The comphelper::LibreOfficeKit::isActive() case in
SfxNotebookBar was only relevant for Collabora Online,
see e.g.

    commit 6bf428d354
    Date:   Sat Nov 4 12:05:16 2023 +0100

        lok: notebookbar: handle multiple sessions

That one isn't using this repo anymore, so drop these
now obsolete checks.

Change-Id: I3d364b17aa77eeb0b416b7de1f8db34bef6e86ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208657
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-28 23:20:00 +02:00
Michael Weghorn d9606662e5 sfx2: Drop duplicate LOK check in SfxNotebookBar::StateMethod
Since

    commit 8754a75d98
    Date:   Tue Jun 2 14:47:57 2026 +0200

        vcl: drop WeldedTabbedNotebookbar

, the if block that this code is in is only entered for the
`!bIsLOK" case`, so there is no need to check that inside
of the block again.

Drop the duplicate check.

Change-Id: If0f769ca4204b5219be3d4434f04651352410f2a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208656
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-28 23:19:41 +02:00
Michael Weghorn 24ce1d9341 sfx2: Avoid duplicate string concatenation in SfxNotebookBar::StateMethod
Local variable `sNewFile` already holds the string
concatenated from `rUIFile` and `sFile`, so reuse
that one instead of having `aBuf` as another local
variable with the same value.

Make a few local vars const to make clear that
the values are indeed the same and the vars
can't have changed in the meantime.

Change-Id: I8eae7912eae037c94c095886eded2b0fea65df93
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208655
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-28 23:19:33 +02:00
Michael Weghorn 2dbe94054f sfx2: Pass SfxWorkWindow::{Create,Remove}ChildWin_Impl param by ref
This makes clear it's always non-null and therefore
safe to dereference.

Change-Id: I4d371720bab174a5d656da714cf8229ab3e66380
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208390
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 23:21:49 +02:00
Michael Weghorn ab163614b2 sfx2: Switch SfxDockingWindow::m_pBindings to reference
... and rename accordingly.
This makes clear it's always non-null.

Change-Id: Idbb24dc0d36a9152d1d638b6e6ee62a00ec9eae0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208388
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 23:21:42 +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 552ea86469 sfx2: Pass DevelopmentToolDockingWindow's SfxBindings param by ref
Change-Id: Ie6476b0bbe99612ce544b884b51c222a3b57e25f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208377
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 15:39:23 +02:00
Michael Weghorn bfbef60178 sfx2: Pass SfxPartDockWnd_Impl's SfxBindings param by ref
Change-Id: I14fc8f5ed5d09e63e50b717e0f019d15c6bfe6e0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208375
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 15:39:08 +02:00
Michael Weghorn 0c17eeb856 sfx2: Switch SidebarDockingWindow's SfxBindings param to ref
This also allows dropping a check/assert that it's non-null.

Change-Id: I866c8edf3df1b38469fdb13c7146a0417d69d076
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208374
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 15:39:00 +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 1b2ff9ccf3 sfx2: Switch SfxDockingWrapper' SfxChildWinInfo param to ref
Change-Id: I4e45cc922f651f5c2ffbec04b3f2effe1ceb49e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208370
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 15:38:37 +02:00
Michael Weghorn c7bb774d50 sfx2: Switch 2 SfxNavigator ctor params to ref
Change-Id: I11324ba8191f3c07396e99238cc98b0199cc434a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208369
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 15:38:29 +02:00
Michael Weghorn e0ce9042d4 sfx2: Switch SfxQuickFind's SfxChildWinInfo param to ref
Change-Id: I4ab3fdeb0f75805e8d612d1c2ea0a13620004a25
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208365
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 15:37:55 +02:00
Michael Weghorn 546c52a713 sfx2: Switch SfxQuickFind's SfxBindings param to ref
Change-Id: Ia188ddbcc3e53f68542c0b4e05b678fcf41d8acd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208363
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 09:25:24 +02:00
Michael Weghorn b6853338b6 sfx2: Pass SfxTitleDockingWindow's SfxBindings param by ref
Change-Id: I283d377c6b0d491de454cfc5b187b10454968536
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208357
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 09:24:19 +02:00
Michael Weghorn 591d640677 sfx2: Switch SfxDockingWrapper's SfxBindings param to ref
Change-Id: I31b6fc2720454a6850a5af604c8910297cf69802
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208356
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 09:24:08 +02:00
Michael Weghorn 61bc8d1e14 sfx2: Switch SfxRecordingFloat_Impl ctor's bindings param to ref
Change-Id: I19797001cb5c7f3fa0ffe5dd2ddc74949fd1559e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208355
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 09:23:58 +02:00
Michael Weghorn 1f97f2f1c9 sfx2: Switch SfxRecordingFloatWrapper_Impl::pBindings to ref
Rename accordingly, and also add the usual "m_" naming
prefix for member variables.

Change-Id: I8c7527a2285dae83f44ba43e74230331f9022e74
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208354
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 09:23:48 +02:00
Michael Weghorn a938e61f35 sfx2: Switch SfxInfoBarContainerChild::m_pBindings to reference
... and rename accordingly.

Change-Id: Ie447e60bd9000e7af25f33c853abbdf26f732ccd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208353
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-23 09:23:40 +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 7b13d36c15 sfx2: Merge SfxModelessDialogController::Init into ctor
Change-Id: I8c7467ac298ac073100f7319c1572832c201341a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208311
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-23 09:23:12 +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
Neil Roberts f213860e49 basic/sbxmod: Combine two impls of CutLines into helper method
Previously there were two copies of a function called CutLines which
were used to remove a method from a string containing BASIC source code.
These have both been replaced with a helper method on SbModule that
returns the source without the given method.

Change-Id: I70c4a4ffe40085bd090ee6823c46154c057468e4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/207062
Tested-by: Jenkins
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
2026-07-22 15:59:07 +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
Caolán McNamara 4aba7e41c1 put calc external data mappings under link update control
register each mapping as a LinkManager link, so its refresh goes through
the same update control as sheet links and area links. Wait until after
the infobar-controlled update mode is known to update.

Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Change-Id: I6710d4bdf3de6e002365d75c911b69076a054da8
Reviewed-on: https://gerrit.collaboraoffice.com/c/core/+/7058
Tested-by: Jenkins CPCI <releng@collaboraoffice.com>
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
(cherry picked from commit b72d760465c857eb5dd10cdc45b107c49bb0caec)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208319
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
2026-07-21 08:59:06 +02:00
Michael Weghorn c8c367b31a Use vcl::WindowData instead of string for window state in more places
vcl::WindowData is used to manage/store various state
information for windows. It can be (de)serialized to/from string.

So far, both the weld::Window API to get/set window state
as well as the SvtViewOptions API were based on the string
representation.

Switch those and various related places to using vcl::WindowData
instead to use a stronger/more specific type than just OUString
in various places across the code base.

Do the string (de)serialization where necessary, but otherwise
prefer to use vcl::WindowData directly.

Calling weld::Window::set_window_state with a WindowData
param that doesn't indicate that anything should be set
(i.e. whose mask is vcl::WindowDataMask::NONE) should
have no effect, so drop extra checks that were previously
checking whether the string representation was empty
and skipping the call to weld::Window::set_window_state in
that case.

No change in user-observable behavior intended or
seen in a quick test.

Change-Id: I5bc4caeb49d0ab2bbc4fa597a5ef19d86d3aac2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208125
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-15 14:45:49 +02:00
Michael Weghorn 312aac710b Move SvtViewOptions from unotools to svtools
The SvtViewOptions class is used to store the state
of windows/dialogs.

So far, SvtViewOptions::SetWindowState and
SvtViewOptions::GetWindowState are string-based
and the callers are responsible for (de)serializing
the vcl::WindowData to/from string.

This will be changed to become the responsibility
of SvtViewOptions in an upcoming commit.

Since unotools is below vcl in the module
dependency chain, it cannot make use of vcl,
i.e. vcl::WindowData couldn't be used there.

Therefore, move SvtViewOptions from unotools
to svtools, which is above vcl in the module
dependencies.
(svtools/README.md summarizes the purpose of the
module as "Tools on the Top of VCL", which seems
an appropriate place for helper code to manage
the state/options for dialogs, tab pages,...)

Change-Id: If849224c35c7ac895659ddb7c17e6d17061d61a4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208124
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-15 14:45:41 +02:00
Michael Weghorn b64dfb0408 sfx2: Prefix SfxChildWindow members with "m_"
Use the usual "m_" naming prefix for class members,
to distinguish them from local variables.

Change-Id: I4bdf9e274d43a87e93c558dda3c942fe0c7d707f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208120
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-15 14:45:24 +02:00
Michael Weghorn 6427a84e90 sfx2: Prefix SfxDockingWindow members with "m_"
Use the usual naming prefix for class members,
to distinguish them from local variables.

Change-Id: I7f2ab60cb32d7166c3e05ad34bb5820363c98066
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208118
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-15 14:45:08 +02:00
Michael Weghorn 008d353453 sfx2: Pass SfxChildWindow::CreateChildWindow bindings param by ref
The only caller passes non-null SfxBindings.
Switch the param from pointer to ref, which
allows to drop some logic handling the null case.

Change-Id: I05fa77dafcbeac804dd0b70d2fd28bb25a83dadf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208117
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
2026-07-15 14:44:59 +02:00
Michael Weghorn 08e9d83ba6 sfx2: Drop SfxStatBar_Impl struct with only a single member
The SfxStatBar_Impl struct only has a single StatusBarId
member. Use StatusBarId directly instead and drop the
struct.

Change-Id: Icc56290e3024baf83ae3e08da82749cec1b7b675
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208115
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-07-15 14:44:50 +02:00