KD Reports  1.8
KDReportsHtmlElement.h
1 /****************************************************************************
2 ** Copyright (C) 2007-2020 Klaralvdalens Datakonsult AB. All rights reserved.
3 **
4 ** This file is part of the KD Reports library.
5 **
6 ** Licensees holding valid commercial KD Reports licenses may use this file in
7 ** accordance with the KD Reports Commercial License Agreement provided with
8 ** the Software.
9 **
10 **
11 ** This file may be distributed and/or modified under the terms of the
12 ** GNU Lesser General Public License version 2.1 and version 3 as published by the
13 ** Free Software Foundation and appearing in the file LICENSE.LGPL.txt included.
14 **
15 ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
16 ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
17 **
18 ** Contact info@kdab.com if any conditions of this licensing are not
19 ** clear to you.
20 **
21 **********************************************************************/
22 
23 #ifndef KDREPORTSHTMLELEMENT_H
24 #define KDREPORTSHTMLELEMENT_H
25 
26 #include "KDReportsElement.h"
27 #include <QtCore/QString>
28 
29 namespace KDReports {
30 class HtmlElementPrivate;
31 
37 class KDREPORTS_EXPORT HtmlElement : public Element
38 {
39 public:
43  explicit HtmlElement( const QString& html = QString() );
47  virtual ~HtmlElement();
48 
53  HtmlElement(const HtmlElement &other);
57  HtmlElement &operator=(const HtmlElement &other);
58 
62  void setHtml( const QString& html );
63 
68  QString html() const;
69 
73  HtmlElement& operator<<( const QString& );
74 
79  void setId( const QString& id );
80 
85  QString id() const;
86 
91  void build( ReportBuilder& builder ) const;
96  Element* clone() const;
97 
98 private:
99  HtmlElementPrivate* const d;
100 };
101 
102 }
103 
104 #endif /* KDREPORTSHTMLELEMENT_H */
105 
Definition: KDReportsAbstractTableElement.h:36
Definition: KDReportsElement.h:45
Definition: KDReportsHtmlElement.h:37

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/