1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <vcl/weld.hxx>
13 #include "res_DataTableProperties.hxx"
17 /** The data table properties (data) used by the dialog */
18 struct DataTableDialogData
21 bool mbHorizontalBorders
= false;
22 bool mbVerticalBorders
= false;
23 bool mbOutline
= false;
27 /** The dialog to change the data table specific properties */
28 class InsertDataTableDialog final
: public weld::GenericDialogController
31 DataTablePropertiesResources m_aDataTablePropertiesResources
;
32 std::unique_ptr
<weld::CheckButton
> m_xCbShowDataTable
;
34 DataTableDialogData m_aData
;
36 DECL_LINK(ShowDataTableToggle
, weld::Toggleable
&, void);
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();
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */