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/.
10 #ifndef INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
11 #define INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
13 #include <tools/link.hxx>
14 #include <vcl/weld.hxx>
16 class DiagramDataInterface
;
18 /** Edit Diagram dialog */
19 class DiagramDialog
: public weld::GenericDialogController
22 DiagramDialog(weld::Window
* pWindow
, std::shared_ptr
<DiagramDataInterface
> pDiagramData
);
23 virtual ~DiagramDialog() override
;
26 std::shared_ptr
<DiagramDataInterface
> mpDiagramData
;
27 std::unique_ptr
<weld::Button
> mpBtnOk
;
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(OnAddClick
, weld::Button
&, void);
35 DECL_LINK(OnRemoveClick
, weld::Button
&, void);
37 void populateTree(const weld::TreeIter
* pParent
, const OUString
& rParentId
);
40 #endif // INCLUDED_CUI_SOURCE_INC_DIAGRAMDIALOG_HXX
42 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */