42 #ifndef QTEXTDOCUMENTLAYOUT_P_H 43 #define QTEXTDOCUMENTLAYOUT_P_H 56 #include "QtGui/qabstracttextdocumentlayout.h" 57 #include "QtGui/qtextoption.h" 58 #include "QtGui/qtextobject.h" 83 void setCursorWidth(
int width);
84 int cursorWidth()
const;
87 void setFixedColumnWidth(
int width);
90 void setViewport(
const QRectF &viewport);
96 int layoutStatus()
const;
97 int dynamicPageCount()
const;
98 QSizeF dynamicDocumentSize()
const;
99 void ensureLayouted(
qreal);
101 qreal idealWidth()
const;
103 bool contentHasAlignment()
const;
113 QRectF doLayout(
int from,
int oldLength,
int length);
114 void layoutFinished();
119 #endif // QTEXTDOCUMENTLAYOUT_P_H The QPainter class performs low-level painting on widgets and other paint devices.
The QTextListFormat class provides formatting information for lists in a QTextDocument.
#define QT_END_NAMESPACE
This macro expands to.
The QTextFrame class represents a frame in a QTextDocument.
virtual void resizeInlineObject(QTextInlineObject item, int posInDocument, const QTextFormat &format)
Sets the size of the inline object item corresponding to the text format.
virtual void drawInlineObject(QPainter *painter, const QRectF &rect, QTextInlineObject object, int posInDocument, const QTextFormat &format)
This function is called to draw the inline object, object, with the given painter within the rectangl...
The QPointF class defines a point in the plane using floating point precision.
virtual void timerEvent(QTimerEvent *)
This event handler can be reimplemented in a subclass to receive timer events for the object...
The QSizeF class defines the size of a two-dimensional object using floating point precision...
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
virtual int pageCount() const =0
Returns the number of pages contained in the layout.
The QTextFormat class provides formatting information for a QTextDocument.
virtual QSizeF documentSize() const =0
Returns the total size of the document's layout.
The QTextBlock class provides a container for text fragments in a QTextDocument.
virtual QRectF frameBoundingRect(QTextFrame *frame) const =0
Returns the bounding rectangle of frame.
virtual QRectF blockBoundingRect(const QTextBlock &block) const =0
Returns the bounding rectangle of block.
The QTimerEvent class contains parameters that describe a timer event.
The QTextInlineObject class represents an inline object in a QTextLayout.
The QAbstractTextDocumentLayout::PaintContext class is a convenience class defining the parameters us...
#define Q_AUTOTEST_EXPORT
The QTextDocument class holds formatted text that can be viewed and edited using a QTextEdit...
virtual void positionInlineObject(QTextInlineObject item, int posInDocument, const QTextFormat &format)
Lays out the inline object item using the given text format.
#define Q_DECLARE_PRIVATE(Class)
virtual int hitTest(const QPointF &point, Qt::HitTestAccuracy accuracy) const =0
Returns the cursor postion for the given point with the specified accuracy.
virtual void documentChanged(int from, int charsRemoved, int charsAdded)=0
This function is called whenever the contents of the document change.
virtual void draw(QPainter *painter, const PaintContext &context)=0
Draws the layout with the given painter using the given context.
The QAbstractTextDocumentLayout class is an abstract base class used to implement custom layouts for ...