LibreOffice Module sfx2 (master) 1
ObjectInspectorWidgets.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 */
10
11#pragma once
12
13#include <vcl/weld.hxx>
14
16{
17 ObjectInspectorWidgets(const std::unique_ptr<weld::Builder>& rxBuilder)
18 : mpClassNameLabel(rxBuilder->weld_label("class_name_value_id"))
19 , mpInterfacesTreeView(rxBuilder->weld_tree_view("interfaces_treeview_id"))
20 , mpServicesTreeView(rxBuilder->weld_tree_view("services_treeview_id"))
21 , mpPropertiesTreeView(rxBuilder->weld_tree_view("properties_treeview_id"))
22 , mpMethodsTreeView(rxBuilder->weld_tree_view("methods_treeview_id"))
23 , mpToolbar(rxBuilder->weld_toolbar("object_inspector_toolbar"))
24 , mpNotebook(rxBuilder->weld_notebook("object_inspector_notebookbar"))
25 , mpTextView(rxBuilder->weld_text_view("object_inspector_text_view"))
26 , mpPaned(rxBuilder->weld_paned("object_inspector_paned"))
27 {
28 }
29
31 {
32 // dispose welded objects
33 mpClassNameLabel.reset();
35 mpServicesTreeView.reset();
37 mpMethodsTreeView.reset();
38 mpToolbar.reset();
39 mpNotebook.reset();
40 mpTextView.reset();
41 mpPaned.reset();
42 }
43
44 std::unique_ptr<weld::Label> mpClassNameLabel;
45 std::unique_ptr<weld::TreeView> mpInterfacesTreeView;
46 std::unique_ptr<weld::TreeView> mpServicesTreeView;
47 std::unique_ptr<weld::TreeView> mpPropertiesTreeView;
48 std::unique_ptr<weld::TreeView> mpMethodsTreeView;
49 std::unique_ptr<weld::Toolbar> mpToolbar;
50 std::unique_ptr<weld::Notebook> mpNotebook;
51 std::unique_ptr<weld::TextView> mpTextView;
52 std::unique_ptr<weld::Paned> mpPaned;
53};
54
55/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< weld::Toolbar > mpToolbar
std::unique_ptr< weld::TextView > mpTextView
std::unique_ptr< weld::TreeView > mpPropertiesTreeView
ObjectInspectorWidgets(const std::unique_ptr< weld::Builder > &rxBuilder)
std::unique_ptr< weld::TreeView > mpInterfacesTreeView
std::unique_ptr< weld::TreeView > mpMethodsTreeView
std::unique_ptr< weld::Paned > mpPaned
std::unique_ptr< weld::Notebook > mpNotebook
std::unique_ptr< weld::TreeView > mpServicesTreeView
std::unique_ptr< weld::Label > mpClassNameLabel