diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-01-27 21:35:47 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-02-01 07:50:51 +0100 |
commit | b58747e7dbfdb4ded3d774e850b4fcf6940c998e (patch) | |
tree | b0287c409e6a7776fc1f6fa855410365de0d3b22 /include | |
parent | c81f3aec1ae17c6a1c6a5702cf5e42fbbad4e4b1 (diff) |
devtools: add "Current Selection" to the left-side tree view
"Current Selection" shows in the object inspector the current
selected object in the document.
Change-Id: I944759b03b3b875e062de0d4555d93012eb48317
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110117
Tested-by: Tomaž Vajngerl <quikee@gmail.com>
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/svx/devtools/DevelopmentToolDockingWindow.hxx | 2 | ||||
-rw-r--r-- | include/svx/devtools/DocumentModelTreeHandler.hxx | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/svx/devtools/DevelopmentToolDockingWindow.hxx b/include/svx/devtools/DevelopmentToolDockingWindow.hxx index 03ca8a387000..98a805a22716 100644 --- a/include/svx/devtools/DevelopmentToolDockingWindow.hxx +++ b/include/svx/devtools/DevelopmentToolDockingWindow.hxx @@ -50,6 +50,8 @@ public: virtual void ToggleFloatingMode() override; void introspect(css::uno::Reference<css::uno::XInterface> const& xInterface); + + void selectionChanged(css::uno::Reference<css::uno::XInterface> const& xInterface); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/svx/devtools/DocumentModelTreeHandler.hxx b/include/svx/devtools/DocumentModelTreeHandler.hxx index ca7cab62b0b2..731c733015e0 100644 --- a/include/svx/devtools/DocumentModelTreeHandler.hxx +++ b/include/svx/devtools/DocumentModelTreeHandler.hxx @@ -23,6 +23,7 @@ class DocumentModelTreeHandler private: std::unique_ptr<weld::TreeView>& mpDocumentModelTree; css::uno::Reference<css::uno::XInterface> mxDocument; + OUString msCurrentSelectionID; void clearChildren(weld::TreeIter const& rParent); @@ -39,6 +40,7 @@ public: DECL_LINK(ExpandingHandler, const weld::TreeIter&, bool); void inspectDocument(); + void setCurrentSelectedObject(css::uno::Reference<css::uno::XInterface> xObject); static css::uno::Reference<css::uno::XInterface> getObjectByID(OUString const& rID); void dispose(); |