Files
libreoffice/cui/source/dialogs/DiagramDialog.cxx
Grzegorz Araminowicz 5457ddf2f5 SmartArt: add Edit Diagram dialog
Currently it displays only text representation of diagram.

Change-Id: I3ff12c4abf2ed32f68ea9d7437905afc13279e62
Reviewed-on: https://gerrit.libreoffice.org/77873
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
2019-08-23 09:53:09 +02:00

28 lines
974 B
C++

/* -*- 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/.
*/
#include <DiagramDialog.hxx>
#include <svx/DiagramDataInterface.hxx>
DiagramDialog::DiagramDialog(weld::Window* pWindow,
std::shared_ptr<DiagramDataInterface> pDiagramData)
: GenericDialogController(pWindow, "cui/ui/diagramdialog.ui", "DiagramDialog")
, mpDiagramData(pDiagramData)
, mpBtnOk(m_xBuilder->weld_button("btnOk"))
, mpBtnCancel(m_xBuilder->weld_button("btnCancel"))
, mpTextDiagram(m_xBuilder->weld_text_view("textDiagram"))
{
mpTextDiagram->set_text(mpDiagramData->getString());
}
DiagramDialog::~DiagramDialog() {}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */