/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #pragma once #include #include class DiagramDataInterface; /** Edit Diagram dialog */ class DiagramDialog : public weld::GenericDialogController { public: DiagramDialog(weld::Window* pWindow, std::shared_ptr pDiagramData); virtual ~DiagramDialog() override; private: std::shared_ptr mpDiagramData; std::unique_ptr mpBtnOk; std::unique_ptr mpBtnCancel; std::unique_ptr mpBtnAdd; std::unique_ptr mpBtnRemove; std::unique_ptr mpTreeDiagram; std::unique_ptr mpTextAdd; DECL_LINK(OnAddClick, weld::Button&, void); DECL_LINK(OnRemoveClick, weld::Button&, void); void populateTree(const weld::TreeIter* pParent, const OUString& rParentId); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */