Debian Codegraph @

chart2/source/controller/inc/res_DataTableProperties.hxx

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