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
qtexthtmlparser.cpp File Reference

(a37ca7c85933979351d99f1bb22191763a78de46)

#include "qtexthtmlparser_p.h"
#include <qbytearray.h>
#include <qstack.h>
#include <qdebug.h>
#include <qthread.h>
#include <qguiapplication.h>
#include "qtextdocument.h"
#include "qtextformat_p.h"
#include "qtextdocument_p.h"
#include "qtextcursor.h"
#include "qfont_p.h"
#include <algorithm>
+ Include dependency graph for qtexthtmlparser.cpp:

Go to the source code of this file.

Classes

struct  QTextHtmlEntity
 
class  QTextHtmlStyleSelector
 

Macros

#define MAX_ENTITY   258
 

Functions

static bool operator< (QStringView entityStr, const QTextHtmlEntity &entity)
 
static bool operator< (const QTextHtmlEntity &entity, QStringView entityStr)
 
static QChar resolveEntity (QStringView entity)
 
static bool operator< (QStringView str, const QTextHtmlElement &e)
 
static bool operator< (const QTextHtmlElement &e, QStringView str)
 
static const QTextHtmlElementlookupElementHelper (QStringView element)
 
static QString quoteNewline (const QString &s)
 
static QTextFrameFormat::BorderStyle toQTextFrameFormat (QCss::BorderStyle cssStyle)
 
static bool setIntAttribute (int *destination, const QString &value)
 
static bool setFloatAttribute (qreal *destination, const QString &value)
 
static void setWidthAttribute (QTextLength *width, const QString &valueStr)
 
static int findAttribute (const QStringList &attributes, const QString &name)
 
QList< QCss::DeclarationstandardDeclarationForNode (const QTextHtmlParserNode &node)
 

Variables

static const struct QTextHtmlEntity entities []
 
static const ushort windowsLatin1ExtendedCharacters [0xA0 - 0x80]
 
static const QTextHtmlElement elements [Html_NumElements]
 

Macro Definition Documentation

◆ MAX_ENTITY

#define MAX_ENTITY   258

Definition at line 27 of file qtexthtmlparser.cpp.

Function Documentation

◆ findAttribute()

static int findAttribute ( const QStringList & attributes,
const QString & name )
inlinestatic

Definition at line 1948 of file qtexthtmlparser.cpp.

◆ lookupElementHelper()

static const QTextHtmlElement * lookupElementHelper ( QStringView element)
static

Definition at line 426 of file qtexthtmlparser.cpp.

References elements, and Html_NumElements.

◆ operator<() [1/4]

static bool operator< ( const QTextHtmlElement & e,
QStringView str )
static

Definition at line 421 of file qtexthtmlparser.cpp.

References QTextHtmlElement::name.

◆ operator<() [2/4]

static bool operator< ( const QTextHtmlEntity & entity,
QStringView entityStr )
static

Definition at line 302 of file qtexthtmlparser.cpp.

References QTextHtmlEntity::name.

◆ operator<() [3/4]

static bool operator< ( QStringView entityStr,
const QTextHtmlEntity & entity )
static

Definition at line 297 of file qtexthtmlparser.cpp.

References QTextHtmlEntity::name.

◆ operator<() [4/4]

static bool operator< ( QStringView str,
const QTextHtmlElement & e )
static

Definition at line 416 of file qtexthtmlparser.cpp.

References QTextHtmlElement::name.

◆ quoteNewline()

static QString quoteNewline ( const QString & s)
static

Definition at line 445 of file qtexthtmlparser.cpp.

◆ resolveEntity()

static QChar resolveEntity ( QStringView entity)
static

Definition at line 307 of file qtexthtmlparser.cpp.

References QTextHtmlEntity::code.

◆ setFloatAttribute()

static bool setFloatAttribute ( qreal * destination,
const QString & value )
static

Definition at line 1615 of file qtexthtmlparser.cpp.

◆ setIntAttribute()

static bool setIntAttribute ( int * destination,
const QString & value )
static

Definition at line 1605 of file qtexthtmlparser.cpp.

◆ setWidthAttribute()

static void setWidthAttribute ( QTextLength * width,
const QString & valueStr )
static

Definition at line 1625 of file qtexthtmlparser.cpp.

◆ standardDeclarationForNode()

◆ toQTextFrameFormat()

static QTextFrameFormat::BorderStyle toQTextFrameFormat ( QCss::BorderStyle cssStyle)
static

Definition at line 1141 of file qtexthtmlparser.cpp.

Variable Documentation

◆ elements

static const QTextHtmlElement elements
static

Definition at line 354 of file qtexthtmlparser.cpp.

Referenced by lookupElementHelper().

◆ entities

static const struct QTextHtmlEntity entities
static

◆ windowsLatin1ExtendedCharacters

static const ushort windowsLatin1ExtendedCharacters
static

Definition at line 317 of file qtexthtmlparser.cpp.

Referenced by QTextHtmlParser::parseEntity().