| 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 |
|
| 10 |
#pragma once |
| 11 |
|
| 12 |
#include <vcl/weld.hxx> |
| 13 |
#include "res_DataTableProperties.hxx" |
| 14 |
|
| 15 |
namespace chart |
| 16 |
{ |
| 17 |
/** The data table properties (data) used by the dialog */ |
| 18 |
struct DataTableDialogData |
| 19 |
{ |
| 20 |
bool mbShow = true; |
| 21 |
bool mbHorizontalBorders = false; |
| 22 |
bool mbVerticalBorders = false; |
| 23 |
bool mbOutline = false; |
| 24 |
bool mbKeys = false; |
| 25 |
}; |
| 26 |
|
| 27 |
/** The dialog to change the data table specific properties */ |
| 28 |
class InsertDataTableDialog final : public weld::GenericDialogController |
| 29 |
{ |
| 30 |
private: |
| 31 |
DataTablePropertiesResources m_aDataTablePropertiesResources; |
| 32 |
std::unique_ptr<weld::CheckButton> m_xCbShowDataTable; |
| 33 |
|
| 34 |
DataTableDialogData m_aData; |
| 35 |
|
| 36 |
DECL_LINK(ShowDataTableToggle, weld::Toggleable&, void); |
| 37 |
|
| 38 |
void changeEnabled(); |
| 39 |
|
| 40 |
public: |
| 41 |
InsertDataTableDialog(weld::Window* pParent); |
| 42 |
|
| 43 |
/** Set the initial state of the data table properties */ |
| 44 |
void init(DataTableDialogData const& rData); |
| 45 |
|
| 46 |
/** Get the state of the data table properties from the dialog */ |
| 47 |
DataTableDialogData& getDataTableDialogData(); |
| 48 |
}; |
| 49 |
|
| 50 |
} //namespace chart |
| 51 |
|
| 52 |
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |