LibreOffice Module cui (master) 1
DiagramDialog.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#pragma once
11
12#include <tools/link.hxx>
13#include <vcl/weld.hxx>
14
15class SdrObjGroup;
16
19{
20public:
21 DiagramDialog(weld::Window* pWindow, SdrObjGroup& rDiagram);
22 virtual ~DiagramDialog() override;
23
24private:
26 sal_uInt32 m_nUndos;
27
28 std::unique_ptr<weld::Button> mpBtnCancel;
29 std::unique_ptr<weld::Button> mpBtnAdd;
30 std::unique_ptr<weld::Button> mpBtnRemove;
31 std::unique_ptr<weld::TreeView> mpTreeDiagram;
32 std::unique_ptr<weld::TextView> mpTextAdd;
33
34 DECL_LINK(OnAddCancel, weld::Button&, void);
35 DECL_LINK(OnAddClick, weld::Button&, void);
36 DECL_LINK(OnRemoveClick, weld::Button&, void);
37
38 void populateTree(const weld::TreeIter* pParent, const OUString& rParentId);
39};
40
41/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Edit Diagram dialog.
std::unique_ptr< weld::Button > mpBtnRemove
std::unique_ptr< weld::TextView > mpTextAdd
std::unique_ptr< weld::TreeView > mpTreeDiagram
SdrObjGroup & m_rDiagram
DiagramDialog(weld::Window *pWindow, SdrObjGroup &rDiagram)
std::unique_ptr< weld::Button > mpBtnAdd
void populateTree(const weld::TreeIter *pParent, const OUString &rParentId)
virtual ~DiagramDialog() override
sal_uInt32 m_nUndos
DECL_LINK(OnAddClick, weld::Button &, void)
DECL_LINK(OnRemoveClick, weld::Button &, void)
DECL_LINK(OnAddCancel, weld::Button &, void)
std::unique_ptr< weld::Button > mpBtnCancel