1
0
Fork 0
libreoffice/chart2/source/controller/inc/res_DataTableProperties.hxx
Daniel Baumann 8e63e14cf6
Adding upstream version 4:25.2.3.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-22 16:20:04 +02:00

48 lines
1.6 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <svl/itemset.hxx>
#include <vcl/weld.hxx>
namespace chart
{
/** The shared UI elements for the data table properties */
class DataTablePropertiesResources final
{
private:
std::unique_ptr<weld::CheckButton> m_xCbHorizontalBorder;
std::unique_ptr<weld::CheckButton> m_xCbVerticalBorder;
std::unique_ptr<weld::CheckButton> m_xCbOutilne;
std::unique_ptr<weld::CheckButton> m_xCbKeys;
public:
DataTablePropertiesResources(weld::Builder& rBuilder);
void initFromItemSet(SfxItemSet const& rInAttrs);
bool writeToItemSet(SfxItemSet& rOutAttrs) const;
void setChecksSensitive(bool bSensitive);
bool getHorizontalBorder() { return m_xCbHorizontalBorder->get_active(); }
void setHorizontalBorder(bool bActive) { m_xCbHorizontalBorder->set_active(bActive); }
bool getVerticalBorder() { return m_xCbVerticalBorder->get_active(); }
void setVerticalBorder(bool bActive) { m_xCbVerticalBorder->set_active(bActive); }
bool getOutline() { return m_xCbOutilne->get_active(); }
void setOutline(bool bActive) { m_xCbOutilne->set_active(bActive); }
bool getKeys() { return m_xCbKeys->get_active(); }
void setKeys(bool bActive) { m_xCbKeys->set_active(bActive); }
};
} //namespace chart
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */