Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtextdocument.cpp File Reference

(6fb39ca2cbb111469ce09c8342997eb5375e3239)

#include "qtextdocument.h"
#include <qtextformat.h>
#include "qtextcursor_p.h"
#include "qtextdocument_p.h"
#include "qtextdocumentlayout_p.h"
#include "qtextdocumentfragment.h"
#include "qtextdocumentfragment_p.h"
#include "qtexttable.h"
#include "qtextlist.h"
#include <qdebug.h>
#include <qloggingcategory.h>
#include <qvarlengtharray.h>
#include <qthread.h>
#include <qcoreapplication.h>
#include <qmetaobject.h>
#include "qtexthtmlparser_p.h"
#include "qpainter.h"
#include <qfile.h>
#include <qfileinfo.h>
#include <qdir.h>
#include "qfont_p.h"
#include "private/qdataurl_p.h"
#include <private/qabstracttextdocumentlayout_p.h>
#include "qpagedpaintdevice.h"
#include "private/qpagedpaintdevice_p.h"
#include <limits.h>
#include "moc_qtextdocument.cpp"
+ Include dependency graph for qtextdocument.cpp:

Go to the source code of this file.

Functions

Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt (unsigned int n)
 \inmodule QtCore \title Global Qt Declarations
 
template<typename T>
static bool mightBeRichTextImpl (T text)
 
static bool mightBeRichTextImpl (QUtf8StringView text)
 
static bool findInBlock (const QTextBlock &block, const QString &expression, int offset, QTextDocument::FindFlags options, QTextCursor *cursor)
 
static void printPage (int index, QPainter *painter, const QTextDocument *doc, const QRectF &body, const QPointF &pageNumberPos)
 
static QTextFormat formatDifference (const QTextFormat &from, const QTextFormat &to)
 
static QString colorValue (QColor color)
 
static QStringList resolvedFontFamilies (const QTextCharFormat &format)
 
static QLatin1StringView richtextBorderStyleToHtmlBorderStyle (QTextFrameFormat::BorderStyle style)
 
static bool isOrderedList (int style)
 
bool qHasPixmapTexture (const QBrush &brush)
 

Function Documentation

◆ colorValue()

static QString colorValue ( QColor color)
static

Definition at line 2365 of file qtextdocument.cpp.

◆ findInBlock()

static bool findInBlock ( const QTextBlock & block,
const QString & expression,
int offset,
QTextDocument::FindFlags options,
QTextCursor * cursor )
static

Definition at line 1346 of file qtextdocument.cpp.

◆ formatDifference()

static QTextFormat formatDifference ( const QTextFormat & from,
const QTextFormat & to )
static

Definition at line 2352 of file qtextdocument.cpp.

References QPainter::end().

+ Here is the call graph for this function:

◆ isOrderedList()

static bool isOrderedList ( int style)
static

Definition at line 3050 of file qtextdocument.cpp.

◆ mightBeRichTextImpl() [1/2]

static bool mightBeRichTextImpl ( QUtf8StringView text)
static

Definition at line 132 of file qtextdocument.cpp.

◆ mightBeRichTextImpl() [2/2]

template<typename T>
static bool mightBeRichTextImpl ( T text)
static

Definition at line 73 of file qtextdocument.cpp.

◆ printPage()

static void printPage ( int index,
QPainter * painter,
const QTextDocument * doc,
const QRectF & body,
const QPointF & pageNumberPos )
static

Definition at line 1921 of file qtextdocument.cpp.

◆ qHasPixmapTexture()

bool qHasPixmapTexture ( const QBrush & brush)
extern

Definition at line 87 of file qbrush.cpp.

◆ qt_int_sqrt()

Q_CORE_EXPORT Q_DECL_CONST_FUNCTION unsigned int qt_int_sqrt ( unsigned int n)

\inmodule QtCore \title Global Qt Declarations

The <QtGlobal> header file includes an assortment of other headers.

Up to Qt 6.5, most Qt header files included <QtGlobal>. Before Qt 6.5, <QtGlobal> defined an assortment of global declarations. Most of these have moved, at Qt 6.5, to separate headers, so that source code can include only what it needs, rather than the whole assortment. For now, <QtGlobal> includes those other headers (see next section), but future releases of Qt may remove some of these headers from <QtGlobal> or condition their inclusion on a version check. Likewise, in future releases, some Qt headers that currently include <QtGlobal> may stop doing so. The hope is that this will improve compilation times by avoiding global declarations when they are not used.

Definition at line 99 of file qglobal.cpp.

References qt_int_sqrt().

Referenced by qt_int_sqrt().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ resolvedFontFamilies()

static QStringList resolvedFontFamilies ( const QTextCharFormat & format)
static

Definition at line 2395 of file qtextdocument.cpp.

◆ richtextBorderStyleToHtmlBorderStyle()

static QLatin1StringView richtextBorderStyleToHtmlBorderStyle ( QTextFrameFormat::BorderStyle style)
static

Definition at line 2861 of file qtextdocument.cpp.