10 #ifndef GUARD_REPORTBUILDER_H_INCLUDE
11 #define GUARD_REPORTBUILDER_H_INCLUDE
13 #include <reportbuilder/reportbuilder-config.h>
15 #include <QTextStream>
30 F_STARTED = 0x00000001,
32 F_INSERT = 0x01000000,
36 F_TABLE_HEADER = 0x00020000,
37 F_TABLE_FOOTER = 0x00040000,
38 F_TABLE_ALL = F_TABLE | F_TABLE_HEADER | F_TABLE_FOOTER
56 QList<quint32> foreground_;
57 QList<quint32> background_;
58 QList<QString> font_name_;
59 QList<int> font_size_;
61 QList< QList<QString> > table_buffer;
67 QString s_stream_error_;
81 const QString & s_file);
90 const QString & s_title) {
97 return s_stream_error_;
118 quint32 background = 0);
125 const QString & s_value,
130 const QString & s_value);
134 const QString & s_value);
138 const QString & s_value);
148 const QString & s_label = QString(),
149 quint32 background = 0,
150 quint32 foreground = 0,
151 int border_size = 1);
160 bool with_header =
false,
161 bool with_footer =
false);
167 const QString & s_value);
177 flags_ = flags_ | flg;
183 flags_ = flags_ & (~flg);
189 return (flags_ & flg) == flg;
198 const QList<QString> & l_row,
199 const QString & s_col_header,
200 const QString & s_col_footer);
208 #endif // GUARD_REPORTBUILDER_H_INCLUDE
A report builder.
Definition: reportbuilder.h:19
void setDocumentTitle(const QString &s_title)
write the header if not already there
Definition: reportbuilder.h:89
bool isOK()
Everything all right up until this point?
Definition: reportbuilder.h:102
const QString & errorString()
The last error.
Definition: reportbuilder.h:96