Use correct object
[LibreOffice.git] / cui / source / inc / DiagramDialog.hxx
bloba612e092a8e7cd46b19a63643653667cb8721220
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
12 #include <tools/link.hxx>
13 #include <vcl/weld.hxx>
15 class SdrObjGroup;
17 /** Edit Diagram dialog */
18 class DiagramDialog : public weld::GenericDialogController
20 public:
21 DiagramDialog(weld::Window* pWindow, SdrObjGroup& rDiagram);
22 virtual ~DiagramDialog() override;
24 private:
25 SdrObjGroup& m_rDiagram;
26 sal_uInt32 m_nUndos;
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: */