42 #ifndef QTEXTDOCUMENTFRAGMENT_P_H 43 #define QTEXTDOCUMENTFRAGMENT_P_H 56 #include "QtGui/qtextdocument.h" 57 #include "private/qtexthtmlparser_p.h" 58 #include "private/qtextdocument_p.h" 59 #include "QtGui/qtexttable.h" 60 #include "QtCore/qatomic.h" 61 #include "QtCore/qlist.h" 62 #include "QtCore/qmap.h" 63 #include "QtCore/qpointer.h" 64 #include "QtCore/qvarlengtharray.h" 65 #include "QtCore/qdatastream.h" 116 #ifndef QT_NO_TEXTHTMLPARSER 136 Table scanTable(
int tableNodeIdx);
138 enum ProcessNodeResult { ContinueWithNextNode, ContinueWithCurrentNode, ContinueWithNextSibling };
141 bool appendNodeText();
175 if (column >= table->columns()) {
179 }
while (row < table->rows() && table->cellAt(row, column).row() != row);
184 inline bool atEnd()
const {
return table == 0 || row >= table->rows(); }
196 Table() : isTextFrame(false), rows(0), columns(0), currentRow(0), lastIndent(0) {}
234 #endif // QT_NO_TEXTHTMLPARSER 236 #endif // QTEXTDOCUMENTFRAGMENT_P_H QPointer< QTextList > list
QMap< int, int > objectIndexMap
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
The QTextListFormat class provides formatting information for lists in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
QTextFormatCollection & formatCollection
void appendFragments(int pos, int endPos)
The QAtomicInt class provides platform-independent atomic operations on integers. ...
WhiteSpace compressNextWhitespace
TableCellIterator & operator++()
QTextDocumentPrivate * dst
TableCellIterator currentCell
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
The QString class provides a Unicode character string.
QTextFormat format(int idx) const
The QVector class is a template class that provides a dynamic array.
const QString originalText
QTextHtmlParserNode::WhiteSpaceMode wsm
#define QT_BEGIN_NAMESPACE
This macro expands to.
QTextTableCell cell() const
The QTextFormat class provides formatting information for a QTextDocument.
The QTextCursor class offers an API to access and modify QTextDocuments.
int convertFormatIndex(int oldFormatIndex, int objectIndexToSet=-1)
QTextFormatCollection * formatCollection()
int primaryCharFormatIndex
The QStringList class provides a list of strings.
QTextCopyHelper(const QTextCursor &_source, const QTextCursor &_destination, bool forceCharFormat=false, const QTextCharFormat &fmt=QTextCharFormat())
int convertFormatIndex(const QTextFormat &oldFormat, int objectIndexToSet=-1)
The QTextTable class represents a table in a QTextDocument.
~QTextDocumentFragmentPrivate()
The QTextTableCell class represents the properties of a cell in a QTextTable.
int appendFragment(int pos, int endPos, int objectIndex=-1)
The QTextBlockFormat class provides formatting information for blocks of text in a QTextDocument...
bool isValid() const
Returns true if this is a valid table cell; otherwise returns false.
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
const QTextHtmlParserNode * currentNode
int columnSpan() const
Returns the number of columns this cell spans.
QTextFormat convertFormat(const QTextFormat &fmt)
TableCellIterator(QTextTable *t=0)
QPointer< QTextFrame > frame
QTextDocumentPrivate * src
uint importedFromPlainText