1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
12 #include <svl/itemset.hxx>
13 #include <vcl/weld.hxx>
17 /** The shared UI elements for the data table properties */
18 class DataTablePropertiesResources final
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
;
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
); }
48 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */