diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2021-02-08 11:49:03 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2021-02-11 12:53:48 +0100 |
commit | 9afdfc80a39f85b440bf753daa52832532ee1e8c (patch) | |
tree | 7ae7d19cba2d2d2c6ca53c01d5edae1557954ab8 /include | |
parent | 6f7e48c00fc879158576c36c4bfcfdc0440f201d (diff) |
devtools: inspect selected object when DevTools are started
When DevTools window is started, we check if there is a selected
object and inspect that one automatically, else use the root
document object.
Change-Id: I1b8b5031c4ac67300bcc15d176b86bac0a4c5d4f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110732
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 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/svx/devtools/DevelopmentToolDockingWindow.hxx b/include/svx/devtools/DevelopmentToolDockingWindow.hxx index b6fe26e67ea4..cdb20c081ba4 100644 --- a/include/svx/devtools/DevelopmentToolDockingWindow.hxx +++ b/include/svx/devtools/DevelopmentToolDockingWindow.hxx @@ -18,6 +18,7 @@ #include <com/sun/star/uno/XInterface.hpp> #include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/view/XSelectionChangeListener.hpp> +#include <com/sun/star/frame/XController.hpp> #include <svx/devtools/DocumentModelTreeHandler.hxx> @@ -44,6 +45,7 @@ private: void inspectDocument(); void updateSelection(); + void inspectSelectionOrRoot(css::uno::Reference<css::frame::XController> const& xController); void clearObjectInspectorChildren(weld::TreeIter const& rParent); |