summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2021-01-08 20:09:01 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-01-13 11:59:29 +0100
commite4a454f8a6e757739145689a445a9516f794b972 (patch)
tree596285c73f785dd8efc4c5a57af6240fc16ea89b /include/svx
parent9bbf7a1a1029f780e569b5e8df79e86ba5b8c88e (diff)
devtools: Add left-side tree of the document model
This adds the graoundwork for displaying the DOM of the current document as a left-side tree and implements filling in the paragraphs for Writer. The content of the DOM tree is of course a WIP. Change-Id: I99c75b0c46d9a6a4ca398c46de0af759d459b7f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108976 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/devtools/DevelopmentToolDockingWindow.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/svx/devtools/DevelopmentToolDockingWindow.hxx b/include/svx/devtools/DevelopmentToolDockingWindow.hxx
index a7c39480cf64..656f51a0fa13 100644
--- a/include/svx/devtools/DevelopmentToolDockingWindow.hxx
+++ b/include/svx/devtools/DevelopmentToolDockingWindow.hxx
@@ -18,6 +18,8 @@
#include <com/sun/star/uno/XInterface.hpp>
#include <com/sun/star/uno/Reference.hxx>
+#include <unordered_map>
+
class SAL_WARN_UNUSED SVX_DLLPUBLIC DevelopmentToolChildWindow final : public SfxChildWindow
{
SFX_DECL_CHILDWINDOW_WITHID(DevelopmentToolChildWindow);
@@ -31,6 +33,14 @@ class SAL_WARN_UNUSED SVX_DLLPUBLIC DevelopmentToolDockingWindow final : public
private:
std::unique_ptr<weld::Label> mpClassNameLabel;
std::unique_ptr<weld::TreeView> mpClassListBox;
+ std::unique_ptr<weld::TreeView> mpLeftSideTreeView;
+
+ css::uno::Reference<css::uno::XInterface> mxRoot;
+ OUString msDocumentType;
+
+ std::unordered_map<OUString, css::uno::Reference<css::uno::XInterface>> maUnoObjectMap;
+
+ DECL_LINK(LeftSideSelected, weld::TreeView&, void);
public:
DevelopmentToolDockingWindow(SfxBindings* pBindings, SfxChildWindow* pChildWindow,
@@ -38,8 +48,12 @@ public:
virtual ~DevelopmentToolDockingWindow() override;
+ virtual void dispose() override;
+
virtual void ToggleFloatingMode() override;
+ void inspectDocument();
+
void introspect(css::uno::Reference<css::uno::XInterface> const& xInterface);
};