1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
12 #include <tools/link.hxx>
13 #include <vcl/weld.hxx>
17 /** Edit Diagram dialog */
18 class DiagramDialog
: public weld::GenericDialogController
21 DiagramDialog(weld::Window
* pWindow
, SdrObjGroup
& rDiagram
);
22 virtual ~DiagramDialog() override
;
25 SdrObjGroup
& m_rDiagram
;
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
;
34 DECL_LINK(OnAddCancel
, weld::Button
&, void);
35 DECL_LINK(OnAddClick
, weld::Button
&, void);
36 DECL_LINK(OnRemoveClick
, weld::Button
&, void);
38 void populateTree(const weld::TreeIter
* pParent
, const OUString
& rParentId
);
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */