sfx2: Use XModel3 for DevelopmentToolDockingWindow::mxRoot

Use the XModel3 interface instead of only the very
basic XInterface interface for that member, as the
object in use is known to support that.

This also prepares for switching the return type
of SfxObjectShell::GetBaseModel to a reference of
the concrete SfxBaseModel in an upcoming commit (without
introducing ambiguity due to multi-inheritance from
XInterface in places using only an XInterface
reference).

Change-Id: Ie97eed9dec382ff0da0d3e5ed16ce8401985495b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211051
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
This commit is contained in:
Michael Weghorn
2026-09-17 14:51:16 +02:00
parent a92113ba34
commit 83d27161f4
+1 -1
View File
@@ -37,7 +37,7 @@ private:
std::unique_ptr<weld::Toolbar> mpDomToolbar;
// Reference to the root object for the current document
css::uno::Reference<css::uno::XInterface> mxRoot;
css::uno::Reference<css::frame::XModel3> mxRoot;
// Stores the current selected object in the document
css::uno::Reference<css::uno::XInterface> mxCurrentSelection;
css::uno::Reference<css::view::XSelectionChangeListener> mxSelectionListener;