diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-25 12:19:42 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-04-25 20:36:19 +0200 |
commit | 15d19cb69db25f99f7225c2708cda4a17cc7a053 (patch) | |
tree | 8b3840146b6ff6ac82d8b005a2856c87381f000a /sfx2 | |
parent | d8d2a68271b5263777d3be8afd0bd39bd076bb87 (diff) |
Move ObjectInspectorWidgets code into cxx file
having this much code in a header file is not a good idea
Change-Id: Ic21eca651335bb282ebbf9434811ae591b7e0b18
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166620
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/Library_sfx.mk | 1 | ||||
-rw-r--r-- | sfx2/source/devtools/ObjectInspectorWidgets.cxx | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/sfx2/Library_sfx.mk b/sfx2/Library_sfx.mk index 5013ebc7a318..c34a48f1e515 100644 --- a/sfx2/Library_sfx.mk +++ b/sfx2/Library_sfx.mk @@ -174,6 +174,7 @@ $(eval $(call gb_Library_add_exception_objects,sfx,\ sfx2/source/devtools/DevelopmentToolDockingWindow \ sfx2/source/devtools/DocumentModelTreeHandler \ sfx2/source/devtools/ObjectInspectorTreeHandler \ + sfx2/source/devtools/ObjectInspectorWidgets \ sfx2/source/dialog/alienwarn \ sfx2/source/dialog/basedlgs \ sfx2/source/dialog/checkin \ diff --git a/sfx2/source/devtools/ObjectInspectorWidgets.cxx b/sfx2/source/devtools/ObjectInspectorWidgets.cxx new file mode 100644 index 000000000000..eef505ed9e2d --- /dev/null +++ b/sfx2/source/devtools/ObjectInspectorWidgets.cxx @@ -0,0 +1,40 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + */ + +#include <sfx2/devtools/ObjectInspectorWidgets.hxx> + +ObjectInspectorWidgets::ObjectInspectorWidgets(const std::unique_ptr<weld::Builder>& rxBuilder) + : mpClassNameLabel(rxBuilder->weld_label("class_name_value_id")) + , mpInterfacesTreeView(rxBuilder->weld_tree_view("interfaces_treeview_id")) + , mpServicesTreeView(rxBuilder->weld_tree_view("services_treeview_id")) + , mpPropertiesTreeView(rxBuilder->weld_tree_view("properties_treeview_id")) + , mpMethodsTreeView(rxBuilder->weld_tree_view("methods_treeview_id")) + , mpToolbar(rxBuilder->weld_toolbar("object_inspector_toolbar")) + , mpNotebook(rxBuilder->weld_notebook("object_inspector_notebookbar")) + , mpTextView(rxBuilder->weld_text_view("object_inspector_text_view")) + , mpPaned(rxBuilder->weld_paned("object_inspector_paned")) +{ +} + +ObjectInspectorWidgets::~ObjectInspectorWidgets() +{ + // dispose welded objects + mpClassNameLabel.reset(); + mpInterfacesTreeView.reset(); + mpServicesTreeView.reset(); + mpPropertiesTreeView.reset(); + mpMethodsTreeView.reset(); + mpToolbar.reset(); + mpNotebook.reset(); + mpTextView.reset(); + mpPaned.reset(); +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |