LibreOffice Module chart2 (master) 1
res_DataTableProperties.hxx
Go to the documentation of this file.
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
15namespace chart
16{
19{
20private:
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
26public:
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: */
The shared UI elements for the data table properties.
std::unique_ptr< weld::CheckButton > m_xCbOutilne
std::unique_ptr< weld::CheckButton > m_xCbHorizontalBorder
std::unique_ptr< weld::CheckButton > m_xCbVerticalBorder
bool writeToItemSet(SfxItemSet &rOutAttrs) const
DataTablePropertiesResources(weld::Builder &rBuilder)
std::unique_ptr< weld::CheckButton > m_xCbKeys
void initFromItemSet(SfxItemSet const &rInAttrs)