QtGui/qabstracttextdocumentlayout.h Source File
Go to the documentation of this file.
42 #ifndef QABSTRACTTEXTDOCUMENTLAYOUT_H
43 #define QABSTRACTTEXTDOCUMENTLAYOUT_H
57 class QAbstractTextDocumentLayoutPrivate;
92 virtual int pageCount()
const = 0;
93 virtual QSizeF documentSize()
const = 0;
95 virtual QRectF frameBoundingRect(QTextFrame *frame)
const = 0;
96 virtual QRectF blockBoundingRect(
const QTextBlock &block)
const = 0;
103 void registerHandler(
int objectType, QObject *component);
104 QTextObjectInterface *handlerForObject(
int objectType)
const;
107 void update(
const QRectF & =
QRectF(0., 0., 1000000000., 1000000000.));
108 void updateBlock(
const QTextBlock &block);
109 void documentSizeChanged(
const QSizeF &newSize);
110 void pageCountChanged(
int newPages);
115 virtual void documentChanged(
int from,
int charsRemoved,
int charsAdded) = 0;
121 int formatIndex(
int pos);
125 friend class QTextControl;
127 friend class QTextDocumentPrivate;
128 friend class QTextEngine;
136 class Q_GUI_EXPORT QTextObjectInterface
150 #endif // QABSTRACTTEXTDOCUMENTLAYOUT_H
GLsizei GLsizei GLuint * obj
#define Q_PRIVATE_SLOT(d, signature)
#define QT_BEGIN_NAMESPACE
GLenum GLsizei GLenum format
virtual ~QTextObjectInterface()
QVector< Selection > selections