Qt 4.8
|
Public Types | |
enum | HitPoint { PointBefore, PointAfter, PointInside, PointExact } |
Public Types inherited from QObjectPrivate | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Functions | |
QFixed | blockIndent (const QTextBlockFormat &blockFormat) const |
void | drawBlock (const QPointF &offset, QPainter *painter, const QAbstractTextDocumentLayout::PaintContext &context, QTextBlock bl, bool inRootFrame) const |
void | drawBorder (QPainter *painter, const QRectF &rect, qreal topMargin, qreal bottomMargin, qreal border, const QBrush &brush, QTextFrameFormat::BorderStyle style) const |
void | drawFlow (const QPointF &offset, QPainter *painter, const QAbstractTextDocumentLayout::PaintContext &context, QTextFrame::Iterator it, const QList< QTextFrame *> &floats, QTextBlock *cursorBlockNeedingRepaint) const |
void | drawFrame (const QPointF &offset, QPainter *painter, const QAbstractTextDocumentLayout::PaintContext &context, QTextFrame *f) const |
void | drawFrameDecoration (QPainter *painter, QTextFrame *frame, QTextFrameData *fd, const QRectF &clip, const QRectF &rect) const |
void | drawListItem (const QPointF &offset, QPainter *painter, const QAbstractTextDocumentLayout::PaintContext &context, QTextBlock bl, const QTextCharFormat *selectionFormat) const |
void | drawTableCell (const QRectF &cellRect, QPainter *painter, const QAbstractTextDocumentLayout::PaintContext &cell_context, QTextTable *table, QTextTableData *td, int r, int c, QTextBlock *cursorBlockNeedingRepaint, QPointF *cursorBlockOffset) const |
void | ensureLayouted (QFixed y) const |
void | ensureLayoutedByPosition (int position) const |
void | ensureLayoutFinished () const |
QFixed | findY (QFixed yFrom, const QTextLayoutStruct *layoutStruct, QFixed requiredWidth) const |
void | floatMargins (const QFixed &y, const QTextLayoutStruct *layoutStruct, QFixed *left, QFixed *right) const |
QRectF | frameBoundingRectInternal (QTextFrame *frame) const |
QTextFrame::Iterator | frameIteratorForTextPosition (int position) const |
QTextFrame::Iterator | frameIteratorForYPosition (QFixed y) const |
HitPoint | hitTest (QTextFrame *frame, const QFixedPoint &point, int *position, QTextLayout **l, Qt::HitTestAccuracy accuracy) const |
HitPoint | hitTest (QTextFrame::Iterator it, HitPoint hit, const QFixedPoint &p, int *position, QTextLayout **l, Qt::HitTestAccuracy accuracy) const |
HitPoint | hitTest (QTextTable *table, const QFixedPoint &point, int *position, QTextLayout **l, Qt::HitTestAccuracy accuracy) const |
HitPoint | hitTest (QTextBlock bl, const QFixedPoint &point, int *position, QTextLayout **l, Qt::HitTestAccuracy accuracy) const |
void | layoutBlock (const QTextBlock &bl, int blockPosition, const QTextBlockFormat &blockFormat, QTextLayoutStruct *layoutStruct, int layoutFrom, int layoutTo, const QTextBlockFormat *previousBlockFormat) |
QTextLayoutStruct | layoutCell (QTextTable *t, const QTextTableCell &cell, QFixed width, int layoutFrom, int layoutTo, QTextTableData *tableData, QFixed absoluteTableY, bool withPageBreaks) |
void | layoutFlow (QTextFrame::Iterator it, QTextLayoutStruct *layoutStruct, int layoutFrom, int layoutTo, QFixed width=0) |
QRectF | layoutFrame (QTextFrame *f, int layoutFrom, int layoutTo, QFixed parentY=0) |
QRectF | layoutFrame (QTextFrame *f, int layoutFrom, int layoutTo, QFixed frameWidth, QFixed frameHeight, QFixed parentY=0) |
void | layoutStep () const |
QRectF | layoutTable (QTextTable *t, int layoutFrom, int layoutTo, QFixed parentY) |
void | pageBreakInsideTable (QTextTable *table, QTextLayoutStruct *layoutStruct) |
void | positionFloat (QTextFrame *frame, QTextLine *currentLine=0) |
QTextDocumentLayoutPrivate () | |
qreal | scaleToDevice (qreal value) const |
QFixed | scaleToDevice (QFixed value) const |
void | setCellPosition (QTextTable *t, const QTextTableCell &cell, const QPointF &pos) |
Public Functions inherited from QAbstractTextDocumentLayoutPrivate | |
QSizeF | _q_dynamicDocumentSizeSlot () const |
int | _q_dynamicPageCountSlot () const |
void | _q_handlerDestroyed (QObject *obj) |
QAbstractTextDocumentLayoutPrivate () | |
void | setDocument (QTextDocument *doc) |
Public Functions inherited from QObjectPrivate | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Additional Inherited Members | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Definition at line 420 of file qtextdocumentlayout.cpp.
Enumerator | |
---|---|
PointBefore | |
PointAfter | |
PointInside | |
PointExact |
Definition at line 466 of file qtextdocumentlayout.cpp.
QTextDocumentLayoutPrivate::QTextDocumentLayoutPrivate | ( | ) |
Definition at line 516 of file qtextdocumentlayout.cpp.
QFixed QTextDocumentLayoutPrivate::blockIndent | ( | const QTextBlockFormat & | blockFormat | ) | const |
Definition at line 791 of file qtextdocumentlayout.cpp.
Referenced by layoutBlock().
void QTextDocumentLayoutPrivate::drawBlock | ( | const QPointF & | offset, |
QPainter * | painter, | ||
const QAbstractTextDocumentLayout::PaintContext & | context, | ||
QTextBlock | bl, | ||
bool | inRootFrame | ||
) | const |
Definition at line 1249 of file qtextdocumentlayout.cpp.
Referenced by drawFlow().
void QTextDocumentLayoutPrivate::drawBorder | ( | QPainter * | painter, |
const QRectF & | rect, | ||
qreal | topMargin, | ||
qreal | bottomMargin, | ||
qreal | border, | ||
const QBrush & | brush, | ||
QTextFrameFormat::BorderStyle | style | ||
) | const |
Definition at line 810 of file qtextdocumentlayout.cpp.
Referenced by drawFrameDecoration(), and drawTableCell().
void QTextDocumentLayoutPrivate::drawFlow | ( | const QPointF & | offset, |
QPainter * | painter, | ||
const QAbstractTextDocumentLayout::PaintContext & | context, | ||
QTextFrame::Iterator | it, | ||
const QList< QTextFrame *> & | floats, | ||
QTextBlock * | cursorBlockNeedingRepaint | ||
) | const |
Definition at line 1172 of file qtextdocumentlayout.cpp.
Referenced by drawFrame(), and drawTableCell().
void QTextDocumentLayoutPrivate::drawFrame | ( | const QPointF & | offset, |
QPainter * | painter, | ||
const QAbstractTextDocumentLayout::PaintContext & | context, | ||
QTextFrame * | f | ||
) | const |
Definition at line 930 of file qtextdocumentlayout.cpp.
Referenced by drawFlow().
void QTextDocumentLayoutPrivate::drawFrameDecoration | ( | QPainter * | painter, |
QTextFrame * | frame, | ||
QTextFrameData * | fd, | ||
const QRectF & | clip, | ||
const QRectF & | rect | ||
) | const |
Definition at line 854 of file qtextdocumentlayout.cpp.
Referenced by drawFrame().
void QTextDocumentLayoutPrivate::drawListItem | ( | const QPointF & | offset, |
QPainter * | painter, | ||
const QAbstractTextDocumentLayout::PaintContext & | context, | ||
QTextBlock | bl, | ||
const QTextCharFormat * | selectionFormat | ||
) | const |
Definition at line 1343 of file qtextdocumentlayout.cpp.
Referenced by drawBlock().
void QTextDocumentLayoutPrivate::drawTableCell | ( | const QRectF & | cellRect, |
QPainter * | painter, | ||
const QAbstractTextDocumentLayout::PaintContext & | cell_context, | ||
QTextTable * | table, | ||
QTextTableData * | td, | ||
int | r, | ||
int | c, | ||
QTextBlock * | cursorBlockNeedingRepaint, | ||
QPointF * | cursorBlockOffset | ||
) | const |
Definition at line 1082 of file qtextdocumentlayout.cpp.
Referenced by drawFrame().
void QTextDocumentLayoutPrivate::ensureLayouted | ( | QFixed | y | ) | const |
Definition at line 3100 of file qtextdocumentlayout.cpp.
void QTextDocumentLayoutPrivate::ensureLayoutedByPosition | ( | int | position | ) | const |
Definition at line 3116 of file qtextdocumentlayout.cpp.
|
inline |
Definition at line 506 of file qtextdocumentlayout.cpp.
QFixed QTextDocumentLayoutPrivate::findY | ( | QFixed | yFrom, |
const QTextLayoutStruct * | layoutStruct, | ||
QFixed | requiredWidth | ||
) | const |
Definition at line 2777 of file qtextdocumentlayout.cpp.
Referenced by layoutBlock(), layoutFlow(), and positionFloat().
void QTextDocumentLayoutPrivate::floatMargins | ( | const QFixed & | y, |
const QTextLayoutStruct * | layoutStruct, | ||
QFixed * | left, | ||
QFixed * | right | ||
) | const |
Definition at line 2755 of file qtextdocumentlayout.cpp.
Referenced by findY(), layoutBlock(), layoutFlow(), and positionFloat().
QRectF QTextDocumentLayoutPrivate::frameBoundingRectInternal | ( | QTextFrame * | frame | ) | const |
Definition at line 3161 of file qtextdocumentlayout.cpp.
Referenced by drawFlow().
QTextFrame::Iterator QTextDocumentLayoutPrivate::frameIteratorForTextPosition | ( | int | position | ) | const |
Definition at line 548 of file qtextdocumentlayout.cpp.
Referenced by frameIteratorForYPosition(), and layoutFlow().
QTextFrame::Iterator QTextDocumentLayoutPrivate::frameIteratorForYPosition | ( | QFixed | y | ) | const |
Definition at line 529 of file qtextdocumentlayout.cpp.
Referenced by drawFrame(), and hitTest().
QTextDocumentLayoutPrivate::HitPoint QTextDocumentLayoutPrivate::hitTest | ( | QTextFrame * | frame, |
const QFixedPoint & | point, | ||
int * | position, | ||
QTextLayout ** | l, | ||
Qt::HitTestAccuracy | accuracy | ||
) | const |
Definition at line 576 of file qtextdocumentlayout.cpp.
Referenced by hitTest().
QTextDocumentLayoutPrivate::HitPoint QTextDocumentLayoutPrivate::hitTest | ( | QTextFrame::Iterator | it, |
HitPoint | hit, | ||
const QFixedPoint & | p, | ||
int * | position, | ||
QTextLayout ** | l, | ||
Qt::HitTestAccuracy | accuracy | ||
) | const |
Definition at line 668 of file qtextdocumentlayout.cpp.
QTextDocumentLayoutPrivate::HitPoint QTextDocumentLayoutPrivate::hitTest | ( | QTextTable * | table, |
const QFixedPoint & | point, | ||
int * | position, | ||
QTextLayout ** | l, | ||
Qt::HitTestAccuracy | accuracy | ||
) | const |
Definition at line 704 of file qtextdocumentlayout.cpp.
QTextDocumentLayoutPrivate::HitPoint QTextDocumentLayoutPrivate::hitTest | ( | QTextBlock | bl, |
const QFixedPoint & | point, | ||
int * | position, | ||
QTextLayout ** | l, | ||
Qt::HitTestAccuracy | accuracy | ||
) | const |
Definition at line 740 of file qtextdocumentlayout.cpp.
void QTextDocumentLayoutPrivate::layoutBlock | ( | const QTextBlock & | bl, |
int | blockPosition, | ||
const QTextBlockFormat & | blockFormat, | ||
QTextLayoutStruct * | layoutStruct, | ||
int | layoutFrom, | ||
int | layoutTo, | ||
const QTextBlockFormat * | previousBlockFormat | ||
) |
Definition at line 2538 of file qtextdocumentlayout.cpp.
Referenced by layoutFlow().
QTextLayoutStruct QTextDocumentLayoutPrivate::layoutCell | ( | QTextTable * | t, |
const QTextTableCell & | cell, | ||
QFixed | width, | ||
int | layoutFrom, | ||
int | layoutTo, | ||
QTextTableData * | tableData, | ||
QFixed | absoluteTableY, | ||
bool | withPageBreaks | ||
) |
Definition at line 1499 of file qtextdocumentlayout.cpp.
Referenced by layoutTable().
void QTextDocumentLayoutPrivate::layoutFlow | ( | QTextFrame::Iterator | it, |
QTextLayoutStruct * | layoutStruct, | ||
int | layoutFrom, | ||
int | layoutTo, | ||
QFixed | width = 0 |
||
) |
Definition at line 2191 of file qtextdocumentlayout.cpp.
Referenced by layoutCell(), and layoutFrame().
QRectF QTextDocumentLayoutPrivate::layoutFrame | ( | QTextFrame * | f, |
int | layoutFrom, | ||
int | layoutTo, | ||
QFixed | parentY = 0 |
||
) |
Definition at line 2041 of file qtextdocumentlayout.cpp.
Referenced by layoutFlow().
QRectF QTextDocumentLayoutPrivate::layoutFrame | ( | QTextFrame * | f, |
int | layoutFrom, | ||
int | layoutTo, | ||
QFixed | frameWidth, | ||
QFixed | frameHeight, | ||
QFixed | parentY = 0 |
||
) |
Definition at line 2065 of file qtextdocumentlayout.cpp.
void QTextDocumentLayoutPrivate::layoutStep | ( | ) | const |
Definition at line 3128 of file qtextdocumentlayout.cpp.
QRectF QTextDocumentLayoutPrivate::layoutTable | ( | QTextTable * | t, |
int | layoutFrom, | ||
int | layoutTo, | ||
QFixed | parentY | ||
) |
Definition at line 1576 of file qtextdocumentlayout.cpp.
Referenced by layoutFrame().
void QTextDocumentLayoutPrivate::pageBreakInsideTable | ( | QTextTable * | table, |
QTextLayoutStruct * | layoutStruct | ||
) |
void QTextDocumentLayoutPrivate::positionFloat | ( | QTextFrame * | frame, |
QTextLine * | currentLine = 0 |
||
) |
Definition at line 1979 of file qtextdocumentlayout.cpp.
Referenced by layoutBlock(), and layoutFlow().
Definition at line 3270 of file qtextdocumentlayout.cpp.
Referenced by layoutFrame(), and layoutTable().
Definition at line 3277 of file qtextdocumentlayout.cpp.
void QTextDocumentLayoutPrivate::setCellPosition | ( | QTextTable * | t, |
const QTextTableCell & | cell, | ||
const QPointF & | pos | ||
) |
QVector<QCheckPoint> QTextDocumentLayoutPrivate::checkPoints |
Definition at line 499 of file qtextdocumentlayout.cpp.
Referenced by drawFlow(), frameIteratorForYPosition(), and layoutFlow().
QRectF QTextDocumentLayoutPrivate::clipRect |
Definition at line 436 of file qtextdocumentlayout.cpp.
Referenced by drawBlock().
bool QTextDocumentLayoutPrivate::contentHasAlignment |
Definition at line 447 of file qtextdocumentlayout.cpp.
Referenced by layoutFlow(), and QTextDocumentLayoutPrivate().
|
mutable |
Definition at line 438 of file qtextdocumentlayout.cpp.
Referenced by layoutFlow().
int QTextDocumentLayoutPrivate::cursorWidth |
Definition at line 432 of file qtextdocumentlayout.cpp.
Referenced by drawBlock(), and drawFrame().
int QTextDocumentLayoutPrivate::fixedColumnWidth |
Definition at line 431 of file qtextdocumentlayout.cpp.
Referenced by layoutBlock().
qreal QTextDocumentLayoutPrivate::idealWidth |
Definition at line 446 of file qtextdocumentlayout.cpp.
Referenced by layoutFrame(), and QTextDocumentLayoutPrivate().
uint QTextDocumentLayoutPrivate::insideDocumentChange |
Definition at line 443 of file qtextdocumentlayout.cpp.
Referenced by QTextDocumentLayoutPrivate().
int QTextDocumentLayoutPrivate::lastPageCount |
Definition at line 445 of file qtextdocumentlayout.cpp.
QSizeF QTextDocumentLayoutPrivate::lastReportedSize |
Definition at line 434 of file qtextdocumentlayout.cpp.
QBasicTimer QTextDocumentLayoutPrivate::layoutTimer |
Definition at line 440 of file qtextdocumentlayout.cpp.
|
mutable |
Definition at line 439 of file qtextdocumentlayout.cpp.
Referenced by layoutFlow().
uint QTextDocumentLayoutPrivate::showLayoutProgress |
Definition at line 442 of file qtextdocumentlayout.cpp.
Referenced by QTextDocumentLayoutPrivate().
|
mutable |
Definition at line 441 of file qtextdocumentlayout.cpp.
QRectF QTextDocumentLayoutPrivate::viewportRect |
Definition at line 435 of file qtextdocumentlayout.cpp.
QTextOption::WrapMode QTextDocumentLayoutPrivate::wordWrapMode |
Definition at line 426 of file qtextdocumentlayout.cpp.