[Libreoffice-commits] core.git: include/sfx2 sfx2/source
Tomaž Vajngerl (via logerrit)
logerrit at kemper.freedesktop.org
Thu Feb 11 14:45:39 UTC 2021
include/sfx2/devtools/DocumentModelTreeHandler.hxx | 8 +-------
include/sfx2/devtools/ObjectInspectorTreeHandler.hxx | 8 +-------
sfx2/source/devtools/DocumentModelTreeHandler.cxx | 9 +++++++++
sfx2/source/devtools/ObjectInspectorTreeHandler.cxx | 10 ++++++++++
4 files changed, 21 insertions(+), 14 deletions(-)
New commits:
commit 5a3b9b4b34984f86b14050eb8ece2350b54b5b8e
Author: Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Tue Feb 9 17:43:42 2021 +0900
Commit: Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Thu Feb 11 15:43:21 2021 +0100
devtools: move constructors implementation into cxx
Change-Id: Ic1b0b88bebe076e99107f6ae0eb379bb2d2db09f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110735
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
diff --git a/include/sfx2/devtools/DocumentModelTreeHandler.hxx b/include/sfx2/devtools/DocumentModelTreeHandler.hxx
index 5b752b172b4e..03f5ed274aa4 100644
--- a/include/sfx2/devtools/DocumentModelTreeHandler.hxx
+++ b/include/sfx2/devtools/DocumentModelTreeHandler.hxx
@@ -28,13 +28,7 @@ private:
public:
DocumentModelTreeHandler(std::unique_ptr<weld::TreeView>& pDocumentModelTree,
- css::uno::Reference<css::uno::XInterface> const& xDocument)
- : mpDocumentModelTree(pDocumentModelTree)
- , mxDocument(xDocument)
- {
- mpDocumentModelTree->connect_expanding(
- LINK(this, DocumentModelTreeHandler, ExpandingHandler));
- }
+ css::uno::Reference<css::uno::XInterface> const& xDocument);
DECL_LINK(ExpandingHandler, const weld::TreeIter&, bool);
diff --git a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
index aa6e353e6549..69769cc261d9 100644
--- a/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
+++ b/include/sfx2/devtools/ObjectInspectorTreeHandler.hxx
@@ -26,13 +26,7 @@ private:
public:
ObjectInspectorTreeHandler(std::unique_ptr<weld::TreeView>& pObjectInspectorTree,
- std::unique_ptr<weld::Label>& pClassNameLabel)
- : mpObjectInspectorTree(pObjectInspectorTree)
- , mpClassNameLabel(pClassNameLabel)
- {
- mpObjectInspectorTree->connect_expanding(
- LINK(this, ObjectInspectorTreeHandler, ExpandingHandler));
- }
+ std::unique_ptr<weld::Label>& pClassNameLabel);
DECL_LINK(ExpandingHandler, const weld::TreeIter&, bool);
diff --git a/sfx2/source/devtools/DocumentModelTreeHandler.cxx b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
index e29ce03ad47a..a170e3551bc5 100644
--- a/sfx2/source/devtools/DocumentModelTreeHandler.cxx
+++ b/sfx2/source/devtools/DocumentModelTreeHandler.cxx
@@ -566,6 +566,15 @@ public:
} // end anonymous namespace
+DocumentModelTreeHandler::DocumentModelTreeHandler(
+ std::unique_ptr<weld::TreeView>& pDocumentModelTree,
+ css::uno::Reference<css::uno::XInterface> const& xDocument)
+ : mpDocumentModelTree(pDocumentModelTree)
+ , mxDocument(xDocument)
+{
+ mpDocumentModelTree->connect_expanding(LINK(this, DocumentModelTreeHandler, ExpandingHandler));
+}
+
uno::Reference<uno::XInterface> DocumentModelTreeHandler::getObjectByID(OUString const& rID)
{
uno::Reference<uno::XInterface> xObject;
diff --git a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
index d69f8130f82b..98e92fb46cbf 100644
--- a/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
+++ b/sfx2/source/devtools/ObjectInspectorTreeHandler.cxx
@@ -428,6 +428,16 @@ public:
} // end anonymous namespace
+ObjectInspectorTreeHandler::ObjectInspectorTreeHandler(
+ std::unique_ptr<weld::TreeView>& pObjectInspectorTree,
+ std::unique_ptr<weld::Label>& pClassNameLabel)
+ : mpObjectInspectorTree(pObjectInspectorTree)
+ , mpClassNameLabel(pClassNameLabel)
+{
+ mpObjectInspectorTree->connect_expanding(
+ LINK(this, ObjectInspectorTreeHandler, ExpandingHandler));
+}
+
IMPL_LINK(ObjectInspectorTreeHandler, ExpandingHandler, weld::TreeIter const&, rParent, bool)
{
OUString sID = mpObjectInspectorTree->get_id(rParent);
More information about the Libreoffice-commits
mailing list