11 #ifndef KDREPORTSTEXTDOCUMENTDATA_P_H
12 #define KDREPORTSTEXTDOCUMENTDATA_P_H
16 #include <QTextCursor>
17 #include <QTextDocument>
55 void setUsesTabPositions(
bool usesTabs);
56 void saveResourcesToFiles();
62 void aboutToModifyContents(ModificationMode mode);
63 void updateTextValue(
const QString &
id,
const QString &newValue);
64 void layoutWithTextWidth(qreal w);
65 void setPageSize(QSizeF size);
66 void scaleFontsBy(qreal factor);
67 void updatePercentSizes(QSizeF size);
68 void setTextValueMarker(
int pos,
const QString &
id,
int valueLength,
bool html);
73 void registerTable(QTextTable *table);
81 void addResourceName(
const QString &resourceName);
82 void setHasResizableImages();
84 static void updatePercentSize(QTextImageFormat &format, QSizeF size);
88 void setFontSizeHelper(QTextCursor &lastCursor,
int endPosition, qreal pointSize, qreal factor);
90 void dumpTextValueCursors()
const;
92 QTextDocument m_document;
101 ElementType elementType;
105 QMultiMap<QString, TextValueData> m_textValueCursors;
109 typedef QHash<QTextTable *, KDReports::AutoTableElement> AutoTablesMaps;
110 AutoTablesMaps m_autoTables;
112 bool m_usesTabPositions;
113 bool m_hasResizableImages =
false;
const QTextDocument & document() const
void regenerateAutoTables()
void regenerateAutoTableForModel(QAbstractItemModel *model)
TextDocumentData(const TextDocumentData &)=delete
TextDocumentData & operator=(const TextDocumentData &)=delete
QTextDocument & document()
QList< KDReports::AutoTableElement * > autoTableElements()