4#ifndef QABSTRACTTEXTDOCUMENTLAYOUT_H
5#define QABSTRACTTEXTDOCUMENTLAYOUT_H
7#include <QtGui/qtguiglobal.h>
8#include <QtCore/qobject.h>
9#include <QtGui/qtextlayout.h>
10#include <QtGui/qtextdocument.h>
11#include <QtGui/qtextcursor.h>
12#include <QtGui/qpalette.h>
86 int formatIndex(
int pos);
IOBluetoothDevice * device
void pageCountChanged(int newPages)
This signal is emitted when the number of pages in the layout changes; newPages is the updated page c...
virtual QRectF frameBoundingRect(QTextFrame *frame) const =0
Returns the bounding rectangle of frame.
void documentSizeChanged(const QSizeF &newSize)
This signal is emitted when the size of the document layout changes to newSize.
virtual int pageCount() const =0
Returns the number of pages contained in the layout.
virtual QRectF blockBoundingRect(const QTextBlock &block) const =0
Returns the bounding rectangle of block.
void updateBlock(const QTextBlock &block)
virtual void documentChanged(int from, int charsRemoved, int charsAdded)=0
This function is called whenever the contents of the document change.
virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const =0
Returns the cursor position for the given point with the specified accuracy.
void update(const QRectF &=QRectF(0., 0., 1000000000., 1000000000.))
This signal is emitted when the rectangle rect has been updated.
virtual void draw(QPainter *painter, const PaintContext &context)=0
Draws the layout with the given painter using the given context.
virtual QSizeF documentSize() const =0
Returns the total size of the document's layout.
The QPainter class performs low-level painting on widgets and other paint devices.
The QPalette class contains color groups for each widget state.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
\reentrant \inmodule QtGui
\reentrant \inmodule QtGui
The QTextObjectInterface class allows drawing of custom text objects in \l{QTextDocument}s.
virtual void drawObject(QPainter *painter, const QRectF &rect, QTextDocument *doc, int posInDocument, const QTextFormat &format)=0
Draws this text object using the specified painter.
virtual QSizeF intrinsicSize(QTextDocument *doc, int posInDocument, const QTextFormat &format)=0
The intrinsicSize() function returns the size of the text object represented by format in the given d...
Combined button and popup list for selecting options.
#define Q_DECLARE_INTERFACE(IFace, IId)
GLint GLsizei GLsizei GLenum format
static qreal component(const QPointF &point, unsigned int i)
#define Q_DECLARE_TYPEINFO(TYPE, FLAGS)
\reentrant \inmodule QtGui
QList< Selection > selections
\variable QAbstractTextDocumentLayout::PaintContext::cursorPosition