diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-03-16 23:12:51 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-03-17 00:27:11 +0100 |
commit | a873ef61534353df3251dd879f8deabde9295145 (patch) | |
tree | 85e4b72564c001b7619a67d8e475f291a34e726f /include/sfx2 | |
parent | 8ba384f47a26404a6b81390095e10d793e4b218c (diff) |
devtools: add refresh button for the DocumentObjectTreeView
Change-Id: I4fea7dd2a12bc04649ff62e0d04e3058cf09c884
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112579
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/devtools/DevelopmentToolDockingWindow.hxx | 2 | ||||
-rw-r--r-- | include/sfx2/devtools/DocumentModelTreeHandler.hxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx b/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx index 1c4826f975f6..171ff96ad5fb 100644 --- a/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx +++ b/include/sfx2/devtools/DevelopmentToolDockingWindow.hxx @@ -38,6 +38,7 @@ private: std::unique_ptr<ObjectInspectorWidgets> mpObjectInspectorWidgets; std::unique_ptr<weld::TreeView> mpDocumentModelTreeView; std::unique_ptr<weld::ToggleButton> mpSelectionToggle; + std::unique_ptr<weld::Toolbar> mpDomToolbar; // Reference to the root object for the current document css::uno::Reference<css::uno::XInterface> mxRoot; @@ -53,6 +54,7 @@ private: DECL_LINK(DocumentModelTreeViewSelectionHandler, weld::TreeView&, void); DECL_LINK(SelectionToggled, weld::ToggleButton&, void); + DECL_LINK(DomToolbarButtonClicked, const OString&, void); void updateSelection(); diff --git a/include/sfx2/devtools/DocumentModelTreeHandler.hxx b/include/sfx2/devtools/DocumentModelTreeHandler.hxx index 17b853b36c6f..c63986ad1476 100644 --- a/include/sfx2/devtools/DocumentModelTreeHandler.hxx +++ b/include/sfx2/devtools/DocumentModelTreeHandler.hxx @@ -33,6 +33,9 @@ private: // identified by the input tree iter. void clearChildren(weld::TreeIter const& rParent); + // Clear all tree view nodes. + void clearAll(); + public: DocumentModelTreeHandler(std::unique_ptr<weld::TreeView>& pDocumentModelTree, css::uno::Reference<css::uno::XInterface> const& xDocument); |