/src/libreoffice/chart2/source/controller/inc/res_DataTableProperties.hxx
Line | Count | Source |
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 <svl/itemset.hxx> |
13 | | #include <vcl/weld/Builder.hxx> |
14 | | #include <vcl/weld/weld.hxx> |
15 | | |
16 | | namespace chart |
17 | | { |
18 | | /** The shared UI elements for the data table properties */ |
19 | | class DataTablePropertiesResources final |
20 | | { |
21 | | private: |
22 | | std::unique_ptr<weld::CheckButton> m_xCbHorizontalBorder; |
23 | | std::unique_ptr<weld::CheckButton> m_xCbVerticalBorder; |
24 | | std::unique_ptr<weld::CheckButton> m_xCbOutilne; |
25 | | std::unique_ptr<weld::CheckButton> m_xCbKeys; |
26 | | |
27 | | public: |
28 | | DataTablePropertiesResources(weld::Builder& rBuilder); |
29 | | |
30 | | void initFromItemSet(SfxItemSet const& rInAttrs); |
31 | | bool writeToItemSet(SfxItemSet& rOutAttrs) const; |
32 | | void setChecksSensitive(bool bSensitive); |
33 | | |
34 | 0 | bool getHorizontalBorder() { return m_xCbHorizontalBorder->get_active(); } |
35 | 0 | void setHorizontalBorder(bool bActive) { m_xCbHorizontalBorder->set_active(bActive); } |
36 | | |
37 | 0 | bool getVerticalBorder() { return m_xCbVerticalBorder->get_active(); } |
38 | 0 | void setVerticalBorder(bool bActive) { m_xCbVerticalBorder->set_active(bActive); } |
39 | | |
40 | 0 | bool getOutline() { return m_xCbOutilne->get_active(); } |
41 | 0 | void setOutline(bool bActive) { m_xCbOutilne->set_active(bActive); } |
42 | | |
43 | 0 | bool getKeys() { return m_xCbKeys->get_active(); } |
44 | 0 | void setKeys(bool bActive) { m_xCbKeys->set_active(bActive); } |
45 | | }; |
46 | | |
47 | | } //namespace chart |
48 | | |
49 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |