KD Reports  1.9
KDReportsHtmlElement.h
1 /****************************************************************************
2 **
3 ** This file is part of the KD Reports library.
4 **
5 ** SPDX-FileCopyrightText: 2007-2020 Klarälvdalens Datakonsult AB, a KDAB Group company <info@kdab.com>
6 **
7 ** SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDAB-KDReports OR LicenseRef-KDAB-KDReports-US
8 **
9 ** Licensees holding valid commercial KD Reports licenses may use this file in
10 ** accordance with the KD Reports Commercial License Agreement provided with
11 ** the Software.
12 **
13 ** Contact info@kdab.com if any conditions of this licensing are not clear to you.
14 **
15 ****************************************************************************/
16 
17 #ifndef KDREPORTSHTMLELEMENT_H
18 #define KDREPORTSHTMLELEMENT_H
19 
20 #include "KDReportsElement.h"
21 #include <QtCore/QString>
22 
23 namespace KDReports {
24 class HtmlElementPrivate;
25 
31 class KDREPORTS_EXPORT HtmlElement : public Element
32 {
33 public:
37  explicit HtmlElement( const QString& html = QString() );
41  ~HtmlElement() override;
42 
47  HtmlElement(const HtmlElement &other);
51  HtmlElement &operator=(const HtmlElement &other);
52 
56  void setHtml( const QString& html );
57 
62  QString html() const;
63 
67  HtmlElement& operator<<( const QString& );
68 
73  void setId( const QString& id );
74 
79  QString id() const;
80 
85  void build( ReportBuilder& builder ) const override;
90  Element* clone() const override;
91 
92 private:
93  HtmlElementPrivate* const d;
94 };
95 
96 }
97 
98 #endif /* KDREPORTSHTMLELEMENT_H */
99 
Definition: KDReportsAbstractTableElement.h:30
Definition: KDReportsElement.h:39
Definition: KDReportsHtmlElement.h:31

Klarälvdalens Datakonsult AB (KDAB)
"The Qt, C++ and OpenGL Experts"
https://www.kdab.com/

https://www.kdab.com/development-resources/qt-tools/kd-reports/