26class QTextTablePrivate :
public QTextFramePrivate
28 Q_DECLARE_PUBLIC(QTextTable)
30 QTextTablePrivate(QTextDocument *document) : QTextFramePrivate(document), nRows(0), nCols(0), dirty(
true), blockFragmentUpdates(
false) {}
32 static QTextTable *createTable(QTextDocumentPrivate *,
int pos,
int rows,
int cols,
const QTextTableFormat &tableFormat);
33 void fragmentAdded(QChar type, uint fragment) override;
34 void fragmentRemoved(QChar type, uint fragment) override;
38 int findCellIndex(
int fragment)
const;
43 mutable QList<
int> cellIndices;
44 mutable std::vector<
int> grid;
48 bool blockFragmentUpdates;
uint importedFromPlainText
~QTextDocumentFragmentPrivate()
void insert(QTextCursor &cursor) const
QTextDocumentFragmentPrivate(const QTextCursor &cursor=QTextCursor())
QTextHtmlImporter(QTextDocument *_doc, const QString &html, ImportMode mode, const QTextDocument *resourceProvider=nullptr)
static void getText(QString &text, QTextDocumentPrivate *priv, const QString &docText, int pos, int end)
static void setBlockCharFormatHelper(QTextDocumentPrivate *priv, int pos1, int pos2, const QTextCharFormat &format, QTextDocumentPrivate::FormatChangeMode changeMode)
#define QTextBeginningOfFrame
Q_DECLARE_TYPEINFO(QTextHtmlImporter::Table, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QTextHtmlImporter::TableCellIterator, Q_PRIMITIVE_TYPE)
Q_DECLARE_TYPEINFO(QTextHtmlImporter::RowColSpanInfo, Q_PRIMITIVE_TYPE)
Q_DECLARE_TYPEINFO(QTextHtmlImporter::List, Q_RELOCATABLE_TYPE)