tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / inc / dlg_InsertDataTable.hxx
blobcd77099864c477f55fda19fde05d5d4210deaf31
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 <vcl/weld.hxx>
13 #include "res_DataTableProperties.hxx"
15 namespace chart
17 /** The data table properties (data) used by the dialog */
18 struct DataTableDialogData
20 bool mbShow = true;
21 bool mbHorizontalBorders = false;
22 bool mbVerticalBorders = false;
23 bool mbOutline = false;
24 bool mbKeys = false;
27 /** The dialog to change the data table specific properties */
28 class InsertDataTableDialog final : public weld::GenericDialogController
30 private:
31 DataTablePropertiesResources m_aDataTablePropertiesResources;
32 std::unique_ptr<weld::CheckButton> m_xCbShowDataTable;
34 DataTableDialogData m_aData;
36 DECL_LINK(ShowDataTableToggle, weld::Toggleable&, void);
38 void changeEnabled();
40 public:
41 InsertDataTableDialog(weld::Window* pParent);
43 /** Set the initial state of the data table properties */
44 void init(DataTableDialogData const& rData);
46 /** Get the state of the data table properties from the dialog */
47 DataTableDialogData& getDataTableDialogData();
50 } //namespace chart
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */