42 #ifndef QABSTRACTTEXTDOCUMENTLAYOUT_H 43 #define QABSTRACTTEXTDOCUMENTLAYOUT_H 45 #include <QtCore/qobject.h> 46 #include <QtGui/qtextlayout.h> 47 #include <QtGui/qtextdocument.h> 48 #include <QtGui/qtextcursor.h> 49 #include <QtGui/qpalette.h> 92 virtual int pageCount()
const = 0;
107 void update(
const QRectF & =
QRectF(0., 0., 1000000000., 1000000000.));
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);
150 #endif // QABSTRACTTEXTDOCUMENTLAYOUT_H The QPainter class performs low-level painting on widgets and other paint devices.
The QTextCharFormat class provides formatting information for characters in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
QRectF rect() const
Returns the line's bounding rectangle.
QTextCharFormat format
the format of the selection
The QTextFrame class represents a frame in a QTextDocument.
The QPointF class defines a point in the plane using floating point precision.
The QTextLine class represents a line of text inside a QTextLayout.
#define Q_PRIVATE_SLOT(d, signature)
QTextCursor cursor
the selection's cursor
static QSize documentSize(QTextControl *control)
The QString class provides a Unicode character string.
QPalette palette
the default color that is used for the text, when no color is specified.
The QVector class is a template class that provides a dynamic array.
The QObject class is the base class of all Qt objects.
int cursorPosition
the position within the document, where the cursor line should be drawn.
The QSizeF class defines the size of a two-dimensional object using floating point precision...
#define Q_DECLARE_INTERFACE(IFace, IId)
The QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a ...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
The QTextFormat class provides formatting information for a QTextDocument.
The QTextCursor class offers an API to access and modify QTextDocuments.
The QTextBlock class provides a container for text fragments in a QTextDocument.
QRectF clip
a hint to the layout specifying the area around paragraphs, frames or text require painting...
static qreal component(const QPointF &point, unsigned int i)
The QTextObjectInterface class allows drawing of custom text objects in QTextDocument.
The QTextLayout class is used to lay out and render text.
The QTextInlineObject class represents an inline object in a QTextLayout.
The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters us...
virtual ~QTextObjectInterface()
Destroys this QTextObjectInterface.
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
#define Q_DECLARE_PRIVATE(Class)
QVector< Selection > selections
the collection of selections that will be rendered when passing this paint context to QAbstractTextDo...
The QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for ...
The QPalette class contains color groups for each widget state.