40 #ifndef QTEXTDOCUMENTFRAGMENT_P_H
41 #define QTEXTDOCUMENTFRAGMENT_P_H
54 #include <QtGui/private/qtguiglobal_p.h>
55 #include "QtGui/qtextdocument.h"
56 #include "private/qtexthtmlparser_p.h"
57 #include "private/qtextdocument_p.h"
58 #include "QtGui/qtexttable.h"
59 #include "QtCore/qatomic.h"
60 #include "QtCore/qlist.h"
61 #include "QtCore/qmap.h"
62 #include "QtCore/qpointer.h"
63 #include "QtCore/qvarlengtharray.h"
64 #include "QtCore/qdatastream.h"
78 void appendFragments(
int pos,
int endPos);
79 int appendFragment(
int pos,
int endPos,
int objectIndex = -1);
80 int convertFormatIndex(
const QTextFormat &oldFormat,
int objectIndexToSet = -1);
81 inline int convertFormatIndex(
int oldFormatIndex,
int objectIndexToSet = -1)
82 {
return convertFormatIndex(
src->formatCollection()->format(oldFormatIndex), objectIndexToSet); }
84 {
return dst->formatCollection()->format(convertFormatIndex(fmt)); }
89 int primaryCharFormatIndex;
115 #ifndef QT_NO_TEXTHTMLPARSER
135 Table scanTable(
int tableNodeIdx);
137 enum ProcessNodeResult { ContinueWithNextNode, ContinueWithCurrentNode, ContinueWithNextSibling };
140 bool appendNodeText();
142 ProcessNodeResult processBlockNode();
143 ProcessNodeResult processSpecialNodes();
147 inline List() : listNode(0) {}
164 struct TableCellIterator
168 inline TableCellIterator &operator++() {
185 inline bool atEnd()
const {
return table ==
nullptr ||
row >=
table->rows(); }
193 friend class QTypeInfo<TableCellIterator>;
198 Table() : isTextFrame(
false), rows(0), columns(0), currentRow(0), lastIndent(0) {}
204 TableCellIterator currentCell;
210 struct RowColSpanInfo
213 int rowSpan, colSpan;
224 WhiteSpace compressNextWhitespace;
231 bool forceBlockMerging;
The QAtomicInt class provides platform-independent atomic operations on int.
The QString class provides a Unicode character string.
The QStringList class provides a list of strings.
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument....
The QTextCharFormat class provides formatting information for characters in a QTextDocument....
QTextCopyHelper(const QTextCursor &_source, const QTextCursor &_destination, bool forceCharFormat=false, const QTextCharFormat &fmt=QTextCharFormat())
The QTextCursor class offers an API to access and modify QTextDocuments.
uint importedFromPlainText
~QTextDocumentFragmentPrivate()
void insert(QTextCursor &cursor) const
QTextDocumentFragmentPrivate(const QTextCursor &cursor=QTextCursor())
The QTextDocument class holds formatted text.
The QTextFormat class provides formatting information for a QTextDocument. \inmodule QtGui.
QTextHtmlImporter(QTextDocument *_doc, const QString &html, ImportMode mode, const QTextDocument *resourceProvider=nullptr)
const QTextDocument * resourceProvider
The QTextListFormat class provides formatting information for lists in a QTextDocument....
The QTextTableCell class represents the properties of a cell in a QTextTable. \inmodule QtGui.
The QTextTable class represents a table in a QTextDocument. \inmodule QtGui.
#define Q_DISABLE_COPY_MOVE(Class)
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLenum GLenum GLsizei void * table
Q_DECLARE_TYPEINFO(QTextHtmlImporter::List, Q_RELOCATABLE_TYPE)