KD Reports API Documentation
2.2
|
#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 37 of file KDReportsTextDocumentData_p.h.
Enumerator | |
---|---|
Append | |
Modify |
Definition at line 57 of file KDReportsTextDocumentData_p.h.
|
explicit |
Definition at line 23 of file KDReportsTextDocumentData.cpp.
References KDReports::HLineTextObject::registerHLineObjectHandler().
KDReports::TextDocumentData::~TextDocumentData | ( | ) |
Definition at line 34 of file KDReportsTextDocumentData.cpp.
|
delete |
void KDReports::TextDocumentData::aboutToModifyContents | ( | ModificationMode | mode | ) |
Definition at line 53 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::addResourceName | ( | const QString & | resourceName | ) |
Definition at line 400 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::ImageElement::build().
QString KDReports::TextDocumentData::asHtml | ( | ) | const |
QList<KDReports::AutoTableElement *> KDReports::TextDocumentData::autoTableElements | ( | ) |
|
inline |
Definition at line 46 of file KDReportsTextDocumentData_p.h.
|
inline |
Definition at line 50 of file KDReportsTextDocumentData_p.h.
void KDReports::TextDocumentData::layoutWithTextWidth | ( | qreal | w | ) |
Definition at line 175 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 311 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::AutoTableElement::build().
void KDReports::TextDocumentData::registerTable | ( | QTextTable * | table | ) |
Break all tables in the document
Definition at line 234 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::TableElement::build().
void KDReports::TextDocumentData::saveResourcesToFiles | ( | ) |
Definition at line 389 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::scaleFontsBy | ( | qreal | factor | ) |
Definition at line 239 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::setHasResizableImages | ( | ) |
Definition at line 405 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::ImageElement::build().
void KDReports::TextDocumentData::setPageSize | ( | QSizeF | size | ) |
Definition at line 184 of file KDReportsTextDocumentData.cpp.
void KDReports::TextDocumentData::setTextValueMarker | ( | int | pos, |
const QString & | id, | ||
int | valueLength, | ||
bool | html | ||
) |
Definition at line 81 of file KDReportsTextDocumentData.cpp.
Referenced by KDReports::HtmlElement::build(), and KDReports::TextElement::build().
void KDReports::TextDocumentData::setUsesTabPositions | ( | bool | usesTabs | ) |
Definition at line 410 of file KDReportsTextDocumentData.cpp.
|
static |
Definition at line 193 of file KDReportsTextDocumentData.cpp.
References KDReports::ResizableImageProperty.
Referenced by KDReports::ImageElement::build().
void KDReports::TextDocumentData::updatePercentSizes | ( | QSizeF | size | ) |
Definition at line 121 of file KDReportsTextDocumentData.cpp.
References KDReports::ResizableImageProperty.
void KDReports::TextDocumentData::updateTextValue | ( | const QString & | id, |
const QString & | newValue | ||
) |
Definition at line 91 of file KDReportsTextDocumentData.cpp.