LibreOffice Module chart2 (master) 1
dlg_InsertDataTable.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
11
12namespace chart
13{
15 : GenericDialogController(pWindow, "modules/schart/ui/dlg_InsertDataTable.ui",
16 "InsertDataTableDialog")
17 , m_aDataTablePropertiesResources(*m_xBuilder)
18 , m_xCbShowDataTable(m_xBuilder->weld_check_button("showDataTable"))
19{
20 m_xCbShowDataTable->connect_toggled(LINK(this, InsertDataTableDialog, ShowDataTableToggle));
22}
23
25{
26 changeEnabled();
27}
28
30{
31 bool bEnable = m_xCbShowDataTable->get_active();
33 m_aData.mbShow = bEnable;
34}
35
37{
38 m_aData = rData;
45}
46
48{
49 m_aData.mbShow = m_xCbShowDataTable->get_active();
50
55
56 return m_aData;
57}
58
59} //namespace chart
60
61/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
The dialog to change the data table specific properties.
void init(DataTableDialogData const &rData)
Set the initial state of the data table properties.
DataTablePropertiesResources m_aDataTablePropertiesResources
std::unique_ptr< weld::CheckButton > m_xCbShowDataTable
DataTableDialogData & getDataTableDialogData()
Get the state of the data table properties from the dialog.
InsertDataTableDialog(weld::Window *pParent)
IMPL_LINK_NOARG(SplinePropertiesDialog, SplineTypeListBoxHdl, weld::ComboBox &, void)
The data table properties (data) used by the dialog.