![]() |
Qt 6.x
The Qt SDK
|
#include "qtextdocumentlayout_p.h"
#include "qtextdocument_p.h"
#include "qtextimagehandler_p.h"
#include "qtexttable.h"
#include "qtextlist.h"
#include "qtextengine_p.h"
#include "private/qguiapplication_p.h"
#include "qabstracttextdocumentlayout_p.h"
#include "qcssparser_p.h"
#include <qpainter.h>
#include <qmath.h>
#include <qrect.h>
#include <qpalette.h>
#include <qdebug.h>
#include <qvarlengtharray.h>
#include <limits.h>
#include <qbasictimer.h>
#include "private/qfunctions_p.h"
#include <qloggingcategory.h>
#include <algorithm>
#include "moc_qtextdocumentlayout_p.cpp"
Go to the source code of this file.
Classes | |
class | QTextFrameData |
struct | QTextLayoutStruct |
struct | EdgeData |
class | QTextTableData |
struct | QCheckPoint |
class | QTextDocumentLayoutPrivate |
struct | BorderPaginator |
|
inlinestatic |
Definition at line 1260 of file qtextdocumentlayout.cpp.
References QCss::BottomEdge, QTextTableCell::column(), QTextTableCell::columnSpan(), QCss::LeftEdge, QCss::RightEdge, QTextTableCell::row(), QTextTableCell::rowSpan(), and QCss::TopEdge.
Referenced by axisEdgeData(), QTextDocumentLayoutPrivate::drawTableCellBorder(), and prioritizedEdgeAnchorOffset().
|
inlinestatic |
Definition at line 1234 of file qtextdocumentlayout.cpp.
References QCss::BottomEdge, QCss::LeftEdge, QCss::NumEdges, QCss::RightEdge, and QCss::TopEdge.
Referenced by axisEdgeData(), and isSameAxis().
|
static |
Definition at line 976 of file qtextdocumentlayout.cpp.
References QTextTableCell::firstPosition(), QTextFormat::FullWidthSelection, i, QTextCursor::KeepAnchor, QTextTableCell::lastPosition(), and QAbstractTextDocumentLayout::PaintContext::selections.
Referenced by QTextDocumentLayoutPrivate::drawFrame().
|
inlinestatic |
Definition at line 1370 of file qtextdocumentlayout.cpp.
References adjacentCell(), adjacentEdge(), QTextTableData::borderCollapse, QCss::BottomEdge, cellEdgeData(), QTextTableCell::isValid(), QCss::LeftEdge, Q_ASSERT, qMax(), QCss::RightEdge, sharesAxis(), and QCss::TopEdge.
Referenced by QTextTableData::cellBorderWidth(), cellClipTest(), checkJoinedEdge(), drawCellBorder(), and QTextDocumentLayoutPrivate::layoutCell().
|
inlinestatic |
Definition at line 1202 of file qtextdocumentlayout.cpp.
References QCss::BottomEdge, QCss::LeftEdge, QCss::RightEdge, QTextFormat::TableCellBottomBorder, QTextFormat::TableCellLeftBorder, QTextFormat::TableCellRightBorder, QTextFormat::TableCellTopBorder, QCss::TopEdge, and QTextFormat::UserProperty.
Referenced by cellEdgeData().
|
inlinestatic |
Definition at line 1218 of file qtextdocumentlayout.cpp.
References QCss::BottomEdge, QCss::LeftEdge, QCss::RightEdge, QTextFormat::TableCellBottomBorderStyle, QTextFormat::TableCellLeftBorderStyle, QTextFormat::TableCellRightBorderStyle, QTextFormat::TableCellTopBorderStyle, QCss::TopEdge, and QTextFormat::UserProperty.
Referenced by cellEdgeData().
|
static |
Definition at line 1010 of file qtextdocumentlayout.cpp.
References QRectF::adjust(), axisEdgeData(), QTextFrameData::border, QTextTableData::borderCollapse, QCss::BottomEdge, QAbstractTextDocumentLayout::PaintContext::clip, QRectF::intersects(), QRectF::isValid(), QCss::LeftEdge, Q_UNUSED, QCss::RightEdge, QCss::TopEdge, and QFixed::toReal().
Referenced by QTextDocumentLayoutPrivate::drawFrame().
|
inlinestatic |
Definition at line 1332 of file qtextdocumentlayout.cpp.
References borderPropertyForEdge(), borderStylePropertyForEdge(), QCss::BottomEdge, EdgeData::ClassExplicit, EdgeData::ClassGrid, EdgeData::ClassNone, EdgeData::ClassTableBorder, QTextTableCell::column(), QTextTableCell::columnSpan(), QTextTableData::drawGrid, QTextTableCell::format(), QTextTableCell::isValid(), QCss::LeftEdge, QTextFormat::property(), QCss::RightEdge, QTextTableCell::row(), QTextTableCell::rowSpan(), QVariant::toDouble(), QCss::TopEdge, and QTextFormat::toTableCellFormat().
Referenced by axisEdgeData(), and findWidestOutermostBorder().
|
inlinestatic |
Definition at line 1422 of file qtextdocumentlayout.cpp.
References axisEdgeData(), EdgeData::edge, isSameAxis(), isVerticalAxis(), and EdgeData::width.
Referenced by prioritizedEdgeAnchorOffset().
|
inlinestatic |
Definition at line 1445 of file qtextdocumentlayout.cpp.
Referenced by drawCellBorder(), and prioritizedEdgeAnchorOffset().
|
static |
Definition at line 292 of file qtextdocumentlayout.cpp.
Referenced by data().
|
inlinestatic |
Definition at line 303 of file qtextdocumentlayout.cpp.
References createData().
|
inlinestatic |
Definition at line 1561 of file qtextdocumentlayout.cpp.
References axisEdgeData(), Qt::black, QTextTableData::borderCollapse, QTextFrameFormat::BorderStyle_None, QCss::BottomEdge, QRectF::bottomLeft(), QRectF::bottomRight(), EdgeData::cell, EdgeData::ClassExplicit, collapseOffset(), QTextTableCell::column(), QTextTableData::drawGrid, EdgeData::edge, EdgeData::edgeClass, fmt, QTextTableCell::format(), QCss::LeftEdge, Qt::NoBrush, p1, p2, painter, prioritizedEdgeAnchorOffset(), qCeil(), qDrawEdge(), qFloor(), QCss::RightEdge, QCss::TopEdge, QRectF::topLeft(), QRectF::topRight(), QTextFormat::toTableCellFormat(), and EdgeData::width.
Referenced by QTextDocumentLayoutPrivate::drawTableCellBorder().
|
static |
Definition at line 457 of file qtextdocumentlayout.cpp.
References Qt::ConicalGradientPattern, Qt::LinearGradientPattern, QGradient::LogicalMode, and rect.
Referenced by QTextDocumentLayoutPrivate::drawBlock(), QTextDocumentLayoutPrivate::drawFrameDecoration(), QTextDocumentLayoutPrivate::drawTableCell(), QPlainTextEdit::paintEvent(), and QGraphicsWidget::paintWindowFrame().
|
inlinestatic |
Definition at line 2346 of file qtextdocumentlayout.cpp.
References cellEdgeData().
Referenced by QTextDocumentLayoutPrivate::layoutTable().
|
static |
Definition at line 2249 of file qtextdocumentlayout.cpp.
References flowPosition().
Referenced by QTextDocumentLayoutPrivate::layoutFlow().
|
static |
Definition at line 2232 of file qtextdocumentlayout.cpp.
References QFixed::fromReal(), it, layout, and QTextBlock::layout().
Referenced by firstChildPos(), and QTextDocumentLayoutPrivate::layoutTable().
|
inlinestatic |
Definition at line 3386 of file qtextdocumentlayout.cpp.
References QTextBlockFormat::FixedHeight, QFixed::fromReal(), line, QTextBlockFormat::lineHeight(), QTextBlockFormat::lineHeightType(), QTextBlockFormat::MinimumHeight, qCeil(), and qMax().
Referenced by QTextDocumentLayoutPrivate::layoutBlock().
|
inlinestatic |
Definition at line 362 of file qtextdocumentlayout.cpp.
References QTextBlock::isValid(), QTextFrame::lastPosition(), QTextBlock::length(), and QTextBlock::position().
Referenced by QTextDocumentLayoutPrivate::drawFlow(), and QTextDocumentLayoutPrivate::layoutFlow().
|
inlinestatic |
Definition at line 341 of file qtextdocumentlayout.cpp.
References QTextFrame::iterator::atEnd(), QTextFormat::BackgroundBrush, QTextFormat::BlockTrailingHorizontalRulerWidth, QTextFrame::iterator::currentFrame(), QTextFrame::firstPosition(), QTextBlock::isValid(), QTextBlock::length(), and QTextBlock::position().
Referenced by QTextDocumentLayoutPrivate::drawBlock(), QTextDocumentLayoutPrivate::drawFlow(), QTextDocumentLayoutPrivate::hitTest(), isEmptyBlockBeforeTable(), and QTextDocumentLayoutPrivate::layoutFlow().
|
inlinestatic |
Definition at line 353 of file qtextdocumentlayout.cpp.
References QTextBlock::blockFormat(), isEmptyBlockBeforeTable(), it, and next.
|
static |
Definition at line 311 of file qtextdocumentlayout.cpp.
Referenced by QTextDocumentLayoutPrivate::drawFlow(), QTextDocumentLayoutPrivate::hitTest(), and QTextDocumentLayoutPrivate::layoutFrame().
|
inlinestatic |
Definition at line 371 of file qtextdocumentlayout.cpp.
References QString::at(), QTextBlock::isValid(), QTextFrame::lastPosition(), QTextBlock::length(), QChar::LineSeparator, QTextBlock::position(), and QTextBlock::text().
Referenced by QTextDocumentLayoutPrivate::layoutFlow().
|
inlinestatic |
Definition at line 1250 of file qtextdocumentlayout.cpp.
References adjacentEdge().
Referenced by checkJoinedEdge().
|
inlinestatic |
Definition at line 1255 of file qtextdocumentlayout.cpp.
References e.
Referenced by checkJoinedEdge(), prioritizedEdgeAnchorOffset(), and sharesAxis().
|
static |
Definition at line 3730 of file qtextdocumentlayout.cpp.
References QList< T >::at(), QTextFrame::childFrames(), QTextFrame::firstPosition(), i, QTextFrame::lastPosition(), markFrames(), qMax(), and QList< T >::size().
Referenced by markFrames().
|
static |
Definition at line 452 of file qtextdocumentlayout.cpp.
References pos, and QCheckPoint::positionInFrame.
|
static |
Definition at line 447 of file qtextdocumentlayout.cpp.
References QCheckPoint::y.
|
inlinestatic |
Definition at line 1487 of file qtextdocumentlayout.cpp.
References adjacentCell(), QTextTableData::borderCollapse, checkJoinedEdge(), collapseOffset(), EdgeData::edge, QTextTableCell::isValid(), isVerticalAxis(), sharesAxis(), QCss::TopEdge, and EdgeData::width.
Referenced by drawCellBorder().
Q_DECLARE_TYPEINFO | ( | QCheckPoint | , |
Q_PRIMITIVE_TYPE | |||
) |
|
inlinestatic |
Definition at line 1306 of file qtextdocumentlayout.cpp.
References QCss::BottomEdge, QTextTableCell::column(), QTextTableCell::columnSpan(), isVerticalAxis(), QCss::LeftEdge, Q_ASSERT, QCss::RightEdge, QTextTableCell::row(), QTextTableCell::rowSpan(), and QCss::TopEdge.
Referenced by axisEdgeData(), and prioritizedEdgeAnchorOffset().