KReport

KReportLabelElement.shared.h
1/* This file is part of the KDE project
2 * Copyright (C) 2001-2007 by OpenMFG, LLC (info@openmfg.com)
3 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
4 * Copyright (C) 2010-2015 Jarosław Staniek <staniek@kde.org>
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef KREPORTLABELELEMENT_H
21#define KREPORTLABELELEMENT_H
22
23#include "KReportElement.h"
24#include "KReportLineStyle.h"
25
26#include <QFont>
27
28/*!
29 * @brief The KReportLabelElement class represents a label element of a report design
30 * @warning This API is currently private.
31 */
32class KREPORT_EXPORT KReportLabelElement : public KReportElement //SDC: explicit operator== virtual_dtor
33{
34public:
35 /*!
36 @getter
37 @return element's name.
38 @setter
39 Sets the element's name to @a name.
40 */
41 QString text; //SDC:
42
43 /*!
44 @getter
45 @return element's font.
46 @setter
47 Sets the element's font to @a font.
48 */
49 QFont font; //SDC:
50
51 /*!
52 @getter
53 @return element's text alignment. Default value is Qt::AlignLeft|Qt::AlignVCenter.
54 @setter
55 Sets the element's text alignment to @a alignment.
56 */
57 Qt::Alignment alignment; //SDC: default=Qt::AlignLeft|Qt::AlignVCenter
58
59 /*!
60 @getter
61 @return element's border style.
62 @setter
63 Sets the element's border style to @a borderStyle.
64 */
66
67 //! Constructs a label with text @a text.
68 explicit KReportLabelElement(const QString &text)
69 : KReportElement(new Data)
70 {
71 setText(text);
72 }
73};
74
75#endif // KREPORTLABELELEMENT_H
The KReportElement class represents a functional visual element of a report design.
The KReportLabelElement class represents a label element of a report design.
KReportLabelElement(const QString &text)
Constructs a label with text text.
The KReportLineStyle class represents line style.
typedef Alignment
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:06:04 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.