KD Reports API Documentation
2.0
|
#include <KDReportsTextDocumentData_p.h>
Public Types | |
enum | ModificationMode { Append, Modify } |
Public Member Functions | |
TextDocumentData () | |
TextDocumentData (const TextDocumentData &)=delete | |
~TextDocumentData () | |
void | aboutToModifyContents (ModificationMode mode) |
void | addResourceName (const QString &resourceName) |
QString | asHtml () const |
QList< KDReports::AutoTableElement * > | autoTableElements () |
QTextDocument & | document () |
const QTextDocument & | document () const |
void | layoutWithTextWidth (qreal w) |
TextDocumentData & | operator= (const TextDocumentData &)=delete |
void | regenerateAutoTableForModel (QAbstractItemModel *model) |
void | regenerateAutoTables () |
void | registerAutoTable (QTextTable *table, const KDReports::AutoTableElement *element) |
void | registerTable (QTextTable *table) |
void | saveResourcesToFiles () |
void | scaleFontsBy (qreal factor) |
void | setHasResizableImages () |
void | setPageSize (QSizeF size) |
void | setTextValueMarker (int pos, const QString &id, int valueLength, bool html) |
void | setUsesTabPositions (bool usesTabs) |
void | updatePercentSizes (QSizeF size) |
void | updateTextValue (const QString &id, const QString &newValue) |
Static Public Member Functions | |
static void | updatePercentSize (QTextImageFormat &format, QSizeF size) |
Definition at line 56 of file KDReportsTextDocumentData_p.h.
Enumerator | |
---|---|
Append | |
Modify |
Definition at line 84 of file KDReportsTextDocumentData_p.h.
|
explicit |
Definition at line 30 of file KDReportsTextDocumentData.cpp.
References KDReports::HLineTextObject::registerHLineObjectHandler().
KDReports::TextDocumentData::~TextDocumentData | ( | ) |
Definition at line 42 of file KDReportsTextDocumentData.cpp.
|
delete |
void KDReports::TextDocumentData::aboutToModifyContents | ( | ModificationMode | mode | ) |
Definition at line 62 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::addResourceName | ( | const QString & | resourceName | ) |
Definition at line 408 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::ImageElement::build().
QString KDReports::TextDocumentData::asHtml | ( | ) | const |
QList<KDReports::AutoTableElement *> KDReports::TextDocumentData::autoTableElements | ( | ) |
|
inline |
Definition at line 79 of file KDReportsTextDocumentData_p.h.
|
inline |
Definition at line 80 of file KDReportsTextDocumentData_p.h.
void KDReports::TextDocumentData::layoutWithTextWidth | ( | qreal | w | ) |
Definition at line 184 of file KDReportsTextDocumentData.cpp.
|
delete |
void KDReports::TextDocumentData::regenerateAutoTableForModel | ( | QAbstractItemModel * | model | ) |
void KDReports::TextDocumentData::regenerateAutoTables | ( | ) |
void KDReports::TextDocumentData::registerAutoTable | ( | QTextTable * | table, |
const KDReports::AutoTableElement * | element | ||
) |
For autotables, let's also remember the AutoTableElement, to be able to regenerate them (when modifying options in the table breaking dialog)
Definition at line 319 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::AutoTableElement::build().
void KDReports::TextDocumentData::registerTable | ( | QTextTable * | table | ) |
Break all tables in the document
Definition at line 243 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::TableElement::build().
void KDReports::TextDocumentData::saveResourcesToFiles | ( | ) |
Definition at line 397 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::scaleFontsBy | ( | qreal | factor | ) |
Definition at line 248 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::setHasResizableImages | ( | ) |
Definition at line 413 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::ImageElement::build().
void KDReports::TextDocumentData::setPageSize | ( | QSizeF | size | ) |
Definition at line 193 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::setTextValueMarker | ( | int | pos, |
const QString & | id, | ||
int | valueLength, | ||
bool | html | ||
) |
Definition at line 90 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::HtmlElement::build(), and KDReports::TextElement::build().
void KDReports::TextDocumentData::setUsesTabPositions | ( | bool | usesTabs | ) |
Definition at line 418 of file KDReportsTextDocumentData.cpp.
|
static |
Definition at line 202 of file KDReportsTextDocumentData.cpp.
References KDReports::ResizableImageProperty.
Referenced by KDReports::ImageElement::build().
void KDReports::TextDocumentData::updatePercentSizes | ( | QSizeF | size | ) |
Definition at line 130 of file KDReportsTextDocumentData.cpp.
References KDReports::ResizableImageProperty.
void KDReports::TextDocumentData::updateTextValue | ( | const QString & | id, |
const QString & | newValue | ||
) |
Definition at line 100 of file KDReportsTextDocumentData.cpp.