55 class QTextObjectPrivate;
57 class QTextDocumentPrivate;
76 int formatIndex()
const;
78 QTextDocument *document()
const;
80 int objectIndex()
const;
82 QTextDocumentPrivate *docHandle()
const;
90 friend class QTextDocumentPrivate;
93 class QTextBlockGroupPrivate;
102 virtual void blockInserted(
const QTextBlock &block);
103 virtual void blockRemoved(
const QTextBlock &block);
104 virtual void blockFormatChanged(
const QTextBlock &block);
113 friend class QTextDocumentPrivate;
118 virtual ~QTextFrameLayoutData();
121 class QTextFramePrivate;
135 int firstPosition()
const;
136 int lastPosition()
const;
153 friend class QTextDocumentLayoutPrivate;
165 bool atEnd()
const {
return !cf && cb == e; }
185 friend class QTextDocumentPrivate;
208 inline bool isValid()
const {
return p != 0 &&
n != 0; }
214 int position()
const;
216 bool contains(
int position)
const;
221 int blockFormatIndex()
const;
223 int charFormatIndex()
const;
236 int userState()
const;
237 void setUserState(
int state);
239 int revision()
const;
240 void setRevision(
int rev);
242 bool isVisible()
const;
243 void setVisible(
bool visible);
245 int blockNumber()
const;
246 int firstLineNumber()
const;
248 void setLineCount(
int count);
249 int lineCount()
const;
252 const QTextDocumentPrivate *
p;
264 bool atEnd()
const {
return n == e; }
289 friend class QTextDocumentPrivate;
300 inline QTextFragment(
const QTextDocumentPrivate *priv,
int f,
int fe) :
p(priv),
n(f), ne(fe) {}
311 int position()
const;
313 bool contains(
int position)
const;
316 int charFormatIndex()
const;
319 #if !defined(QT_NO_RAWFONT)
324 const QTextDocumentPrivate *
p;
335 #endif // QTEXTOBJECT_H
void setFormat(const QTextFormat &format)
QTextFormat format() const
QObjectUserData * userData(uint id) const
QTextBlock previous() const
bool operator==(const QTextBlock &o) const
QTextFragment(const QTextFragment &o)
bool operator!=(const iterator &o) const
QTextBlock(QTextDocumentPrivate *priv, int b)
Q_DECLARE_TYPEINFO(QTextFrame::iterator, Q_MOVABLE_TYPE)
QTextFrame * parentFrame() const
#define QT_BEGIN_NAMESPACE
QTextFrameFormat frameFormat() const
bool operator==(const iterator &o) const
GLsizei GLsizei GLenum GLenum const GLvoid * data
friend class QTextDocumentPrivate
GLenum GLsizei GLenum format
bool operator!=(const QTextFragment &o) const
bool operator!=(const iterator &o) const
bool operator<(const QTextBlock &o) const
bool operator==(const iterator &o) const
QTextBlock(const QTextBlock &o)
QTextDocument * document() const
QTextFragment & operator=(const QTextFragment &o)
GLuint GLuint GLsizei count
GLuint GLsizei GLsizei * length
iterator(const iterator &o)
QTextBlock & operator=(const QTextBlock &o)
bool operator!=(const QTextBlock &o) const
QTextDocumentPrivate * docHandle() const
QTextFrameFormat toFrameFormat() const
bool operator<(const QTextFragment &o) const
void setUserData(uint id, QObjectUserData *data)
bool operator==(const QTextFragment &o) const
QTextFragment(const QTextDocumentPrivate *priv, int f, int fe)
int fragmentIndex() const