LibreOffice Module sfx2 (master) 1
DevelopmentToolDockingWindow.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 <sfx2/dllapi.h>
14#include <sfx2/dockwin.hxx>
15#include <vcl/weld.hxx>
16
20
21#include <com/sun/star/uno/XInterface.hpp>
22#include <com/sun/star/uno/Reference.hxx>
23#include <com/sun/star/view/XSelectionChangeListener.hpp>
24#include <com/sun/star/view/XSelectionSupplier.hpp>
25
32{
33private:
34 std::unique_ptr<ObjectInspectorWidgets> mpObjectInspectorWidgets;
35 std::unique_ptr<weld::TreeView> mpDocumentModelTreeView;
36 std::unique_ptr<weld::Toolbar> mpDomToolbar;
37
38 // Reference to the root object for the current document
39 css::uno::Reference<css::uno::XInterface> mxRoot;
40 // Stores the current selected object in the document
41 css::uno::Reference<css::uno::XInterface> mxCurrentSelection;
42 css::uno::Reference<css::view::XSelectionChangeListener> mxSelectionListener;
43 css::uno::Reference<css::view::XSelectionSupplier> mxSelectionSupplier;
44
45 // Handler for the DOM tree
47 // Handler for the object inspector tree
49
50 DECL_DLLPRIVATE_LINK(DocumentModelTreeViewSelectionHandler, weld::TreeView&, void);
51 DECL_DLLPRIVATE_LINK(DomToolbarButtonClicked, const OUString&, void);
52
53 void updateSelection();
54
55public:
57 vcl::Window* pParent);
58
59 virtual ~DevelopmentToolDockingWindow() override;
60
61 void dispose() override;
62
63 void ToggleFloatingMode() override;
64
65 // Signals that the selected object in the document changes
66 void selectionChanged(css::uno::Reference<css::uno::XInterface> const& xInterface);
67
68 // Signals to change to the current selected object in the object inspector
69 void changeToCurrentSelection();
70};
71
72/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Development tool main docking window.
DECL_DLLPRIVATE_LINK(DomToolbarButtonClicked, const OUString &, void)
css::uno::Reference< css::view::XSelectionChangeListener > mxSelectionListener
DocumentModelTreeHandler maDocumentModelTreeHandler
std::unique_ptr< ObjectInspectorWidgets > mpObjectInspectorWidgets
std::unique_ptr< weld::Toolbar > mpDomToolbar
ObjectInspectorTreeHandler maObjectInspectorTreeHandler
DECL_DLLPRIVATE_LINK(DocumentModelTreeViewSelectionHandler, weld::TreeView &, void)
css::uno::Reference< css::uno::XInterface > mxRoot
css::uno::Reference< css::view::XSelectionSupplier > mxSelectionSupplier
css::uno::Reference< css::uno::XInterface > mxCurrentSelection
std::unique_ptr< weld::TreeView > mpDocumentModelTreeView
Document model tree handler.
Object inspector tree handler.
virtual void ToggleFloatingMode() override
Definition: dockwin.cxx:529
virtual void dispose() override
Definition: dockwin.cxx:1032
#define SFX2_DLLPUBLIC
Definition: dllapi.h:29
virtual DECL_LISTENERMULTIPLEXER_END void SAL_CALL selectionChanged(const css::lang::EventObject &aEvent) override