From e4a454f8a6e757739145689a445a9516f794b972 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 8 Jan 2021 20:09:01 +0900 Subject: devtools: Add left-side tree of the document model MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- include/svx/devtools/DevelopmentToolDockingWindow.hxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include') 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 #include +#include + 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 mpClassNameLabel; std::unique_ptr mpClassListBox; + std::unique_ptr mpLeftSideTreeView; + + css::uno::Reference mxRoot; + OUString msDocumentType; + + std::unordered_map> 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 const& xInterface); }; -- cgit