4#ifndef QTEXTDOCUMENTFRAGMENT_P_H
5#define QTEXTDOCUMENTFRAGMENT_P_H
18#include <QtGui/private/qtguiglobal_p.h>
19#include "QtGui/qtextdocument.h"
20#include "private/qtexthtmlparser_p.h"
21#include "private/qtextdocument_p.h"
22#include "QtGui/qtexttable.h"
23#include "QtCore/qatomic.h"
24#include "QtCore/qlist.h"
25#include "QtCore/qmap.h"
26#include "QtCore/qpointer.h"
27#include "QtCore/qvarlengtharray.h"
28#include "QtCore/qdatastream.h"
42 void appendFragments(
int pos,
int endPos);
43 int appendFragment(
int pos,
int endPos,
int objectIndex = -1);
44 int convertFormatIndex(
const QTextFormat &oldFormat,
int objectIndexToSet = -1);
45 inline int convertFormatIndex(
int oldFormatIndex,
int objectIndexToSet = -1)
46 {
return convertFormatIndex(
src->formatCollection()->format(oldFormatIndex), objectIndexToSet); }
48 {
return dst->formatCollection()->format(convertFormatIndex(
fmt)); }
53 int primaryCharFormatIndex;
79#ifndef QT_NO_TEXTHTMLPARSER
99 Table scanTable(
int tableNodeIdx);
101 enum ProcessNodeResult { ContinueWithNextNode, ContinueWithCurrentNode, ContinueWithNextSibling };
104 bool appendNodeText();
106 ProcessNodeResult processBlockNode();
107 ProcessNodeResult processSpecialNodes();
111 inline List() : listNode(0) {}
128 struct TableCellIterator
132 inline TableCellIterator &operator++() {
149 inline bool atEnd()
const {
return table ==
nullptr ||
row >=
table->rows(); }
157 friend class QTypeInfo<TableCellIterator>;
162 Table() : isTextFrame(
false), rows(0), columns(0), currentRow(0), lastIndent(0) {}
168 TableCellIterator currentCell;
174 struct RowColSpanInfo
177 int rowSpan, colSpan;
188 WhiteSpace compressNextWhitespace;
195 bool forceBlockMerging;
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
uint importedFromPlainText
~QTextDocumentFragmentPrivate()
void insert(QTextCursor &cursor) const
\reentrant \inmodule QtGui
const QTextDocument * resourceProvider
int columnSpan() const
Returns the number of columns this cell spans.
bool isValid() const
Returns true if this is a valid table cell; otherwise returns false.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum format
GLenum GLenum GLsizei void GLsizei void * column
GLenum GLenum GLsizei void * row
GLenum GLenum GLsizei void * table
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
QVideoFrameFormat::PixelFormat fmt