QAbstractTextDocumentLayout Class Reference

QAbstractTextDocumentLayout Class Referenceabstract

#include <qabstracttextdocumentlayout.h>

Class Description

Definition at line 62 of file qabstracttextdocumentlayout.h.

+ Inheritance diagram for QAbstractTextDocumentLayout:

Classes

struct  PaintContext
 
struct  Selection
 

Signals

void update (const QRectF &=QRectF(0., 0., 1000000000., 1000000000.))
 
void updateBlock (const QTextBlock &block)
 
void documentSizeChanged (const QSizeF &newSize)
 
void pageCountChanged (int newPages)
 
- Signals inherited from QObject
void destroyed (QObject *=0)
 

Public Member Functions

 QAbstractTextDocumentLayout (QTextDocument *doc)
 
 ~QAbstractTextDocumentLayout ()
 
virtual void draw (QPainter *painter, const PaintContext &context)=0
 
virtual int hitTest (const QPointF &point, Qt::HitTestAccuracy accuracy) const =0
 
QString anchorAt (const QPointF &pos) const
 
virtual int pageCount () const =0
 
virtual QSizeF documentSize () const =0
 
virtual QRectF frameBoundingRect (QTextFrame *frame) const =0
 
virtual QRectF blockBoundingRect (const QTextBlock &block) const =0
 
void setPaintDevice (QPaintDevice *device)
 
QPaintDevicepaintDevice () const
 
QTextDocumentdocument () const
 
void registerHandler (int objectType, QObject *component)
 
QTextObjectInterfacehandlerForObject (int objectType) const
 
- Public Member Functions inherited from QObject
Q_INVOKABLE QObject (QObject *parent=0)
 
virtual ~QObject ()
 
virtual bool event (QEvent *)
 
virtual bool eventFilter (QObject *, QEvent *)
 
QString objectName () const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const
 
bool signalsBlocked () const
 
bool blockSignals (bool b)
 
QThreadthread () const
 
void moveToThread (QThread *thread)
 
int startTimer (int interval)
 
void killTimer (int id)
 
template<typename T >
findChild (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QString &aName=QString()) const
 
template<typename T >
QList< T > findChildren (const QRegExp &re) const
 
const QObjectListchildren () const
 
void setParent (QObject *)
 
void installEventFilter (QObject *)
 
void removeEventFilter (QObject *)
 
bool connect (const QObject *sender, const char *signal, const char *member, Qt::ConnectionType type=Qt::AutoConnection) const
 
bool disconnect (const char *signal=0, const QObject *receiver=0, const char *member=0)
 
bool disconnect (const QObject *receiver, const char *member=0)
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const
 
QList< QByteArraydynamicPropertyNames () const
 
void setUserData (uint id, QObjectUserData *data)
 
QObjectUserDatauserData (uint id) const
 
QObjectparent () const
 
bool inherits (const char *classname) const
 

Protected Member Functions

 QAbstractTextDocumentLayout (QAbstractTextDocumentLayoutPrivate &, QTextDocument *)
 
virtual void documentChanged (int from, int charsRemoved, int charsAdded)=0
 
virtual void resizeInlineObject (QTextInlineObject item, int posInDocument, const QTextFormat &format)
 
virtual void positionInlineObject (QTextInlineObject item, int posInDocument, const QTextFormat &format)
 
virtual void drawInlineObject (QPainter *painter, const QRectF &rect, QTextInlineObject object, int posInDocument, const QTextFormat &format)
 
int formatIndex (int pos)
 
QTextCharFormat format (int pos)
 
- Protected Member Functions inherited from QObject
QObjectsender () const
 
int senderSignalIndex () const
 
int receivers (const char *signal) const
 
virtual void timerEvent (QTimerEvent *)
 
virtual void childEvent (QChildEvent *)
 
virtual void customEvent (QEvent *)
 
virtual void connectNotify (const char *signal)
 
virtual void disconnectNotify (const char *signal)
 
 QObject (QObjectPrivate &dd, QObject *parent=0)
 

Friends

class QTextControl
 
class QTextDocument
 
class QTextDocumentPrivate
 
class QTextEngine
 
class QTextLayout
 
class QTextLine
 

Additional Inherited Members

- Public Slots inherited from QObject
void deleteLater ()
 
- Static Public Member Functions inherited from QObject
static bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
 
static bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type=Qt::AutoConnection)
 
static bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *member)
 
static bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &member)
 
static uint registerUserData ()
 
- Protected Attributes inherited from QObject
QScopedPointer< QObjectDatad_ptr
 
- Static Protected Attributes inherited from QObject
static const QMetaObject staticQtMetaObject
 
- Properties inherited from QObject
QString objectName
 

Constructor & Destructor Documentation

QAbstractTextDocumentLayout ( QAbstractTextDocumentLayoutPrivate &  ,
QTextDocument  
)
protected

Member Function Documentation

virtual void draw ( QPainter painter,
const PaintContext context 
)
pure virtual

Implemented in QPlainTextDocumentLayout.

virtual int hitTest ( const QPointF point,
Qt::HitTestAccuracy  accuracy 
) const
pure virtual

Implemented in QPlainTextDocumentLayout.

QString anchorAt ( const QPointF pos) const
virtual int pageCount ( ) const
pure virtual

Implemented in QPlainTextDocumentLayout.

virtual QSizeF documentSize ( ) const
pure virtual

Implemented in QPlainTextDocumentLayout.

virtual QRectF frameBoundingRect ( QTextFrame frame) const
pure virtual

Implemented in QPlainTextDocumentLayout.

virtual QRectF blockBoundingRect ( const QTextBlock block) const
pure virtual

Implemented in QPlainTextDocumentLayout.

void setPaintDevice ( QPaintDevice device)
QPaintDevice* paintDevice ( ) const
QTextDocument* document ( ) const
void registerHandler ( int  objectType,
QObject component 
)
QTextObjectInterface* handlerForObject ( int  objectType) const
void update ( const QRectF = QRectF(0., 0., 1000000000., 1000000000.))
signal
void updateBlock ( const QTextBlock block)
signal
void documentSizeChanged ( const QSizeF newSize)
signal
void pageCountChanged ( int  newPages)
signal
virtual void documentChanged ( int  from,
int  charsRemoved,
int  charsAdded 
)
protectedpure virtual

Implemented in QPlainTextDocumentLayout.

virtual void resizeInlineObject ( QTextInlineObject  item,
int  posInDocument,
const QTextFormat format 
)
protectedvirtual
virtual void positionInlineObject ( QTextInlineObject  item,
int  posInDocument,
const QTextFormat format 
)
protectedvirtual
virtual void drawInlineObject ( QPainter painter,
const QRectF rect,
QTextInlineObject  object,
int  posInDocument,
const QTextFormat format 
)
protectedvirtual
int formatIndex ( int  pos)
protected
QTextCharFormat format ( int  pos)
protected

Friends And Related Function Documentation

friend class QTextControl
friend

Definition at line 125 of file qabstracttextdocumentlayout.h.

friend class QTextDocument
friend

Definition at line 126 of file qabstracttextdocumentlayout.h.

friend class QTextDocumentPrivate
friend

Definition at line 127 of file qabstracttextdocumentlayout.h.

friend class QTextEngine
friend

Definition at line 128 of file qabstracttextdocumentlayout.h.

friend class QTextLayout
friend

Definition at line 129 of file qabstracttextdocumentlayout.h.

friend class QTextLine
friend

Definition at line 130 of file qabstracttextdocumentlayout.h.


The documentation for this class was generated from the following file: