tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / chart2 / source / controller / inc / res_DataTableProperties.hxx
blob4b2aaa4f2ef7f5ce38c088cfda57dad45ec6b935
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #pragma once
12 #include <svl/itemset.hxx>
13 #include <vcl/weld.hxx>
15 namespace chart
17 /** The shared UI elements for the data table properties */
18 class DataTablePropertiesResources final
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;
26 public:
27 DataTablePropertiesResources(weld::Builder& rBuilder);
29 void initFromItemSet(SfxItemSet const& rInAttrs);
30 bool writeToItemSet(SfxItemSet& rOutAttrs) const;
31 void setChecksSensitive(bool bSensitive);
33 bool getHorizontalBorder() { return m_xCbHorizontalBorder->get_active(); }
34 void setHorizontalBorder(bool bActive) { m_xCbHorizontalBorder->set_active(bActive); }
36 bool getVerticalBorder() { return m_xCbVerticalBorder->get_active(); }
37 void setVerticalBorder(bool bActive) { m_xCbVerticalBorder->set_active(bActive); }
39 bool getOutline() { return m_xCbOutilne->get_active(); }
40 void setOutline(bool bActive) { m_xCbOutilne->set_active(bActive); }
42 bool getKeys() { return m_xCbKeys->get_active(); }
43 void setKeys(bool bActive) { m_xCbKeys->set_active(bActive); }
46 } //namespace chart
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */