QtBase  v6.3.1
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
QTextHtmlParser Class Reference

#include <qtexthtmlparser_p.h>

Inheritance diagram for QTextHtmlParser:
Inheritance graph
[legend]
Collaboration diagram for QTextHtmlParser:
Collaboration graph
[legend]

Public Types

enum  Margin { MarginTop , MarginRight , MarginBottom , MarginLeft }
 

Public Member Functions

 ~QTextHtmlParser ()
 
const QTextHtmlParserNodeat (int i) const
 
QTextHtmlParserNodeoperator[] (int i)
 
int count () const
 
int last () const
 
int depth (int i) const
 
int topMargin (int i) const
 
int bottomMargin (int i) const
 
int leftMargin (int i) const
 
int rightMargin (int i) const
 
int topPadding (int i) const
 
int bottomPadding (int i) const
 
int leftPadding (int i) const
 
int rightPadding (int i) const
 
qreal tableCellBorder (int i, int edge) const
 
QTextFrameFormat::BorderStyle tableCellBorderStyle (int i, int edge) const
 
QBrush tableCellBorderBrush (int i, int edge) const
 
void dumpHtml ()
 
void parse (const QString &text, const QTextDocument *resourceProvider)
 

Static Public Member Functions

static int lookupElement (const QString &element)
 
static Q_GUI_EXPORT QString parseEntity (QStringView entity)
 

Protected Member Functions

QTextHtmlParserNodenewNode (int parent)
 
void parse ()
 
void parseTag ()
 
void parseCloseTag ()
 
void parseExclamationTag ()
 
QString parseEntity ()
 
QString parseWord ()
 
QTextHtmlParserNoderesolveParent ()
 
void resolveNode ()
 
QStringList parseAttributes ()
 
void applyAttributes (const QStringList &attributes)
 
void eatSpace ()
 
bool hasPrefix (QChar c, int lookahead=0) const
 
int margin (int i, int mar) const
 
bool nodeIsChildOf (int i, QTextHTMLElements id) const
 

Protected Attributes

QList< QTextHtmlParserNode * > nodes
 
QString txt
 
int pos
 
int len
 
bool textEditMode
 
const QTextDocumentresourceProvider
 

Detailed Description

Definition at line 275 of file qtexthtmlparser_p.h.

Member Enumeration Documentation

◆ Margin

Enumerator
MarginTop 
MarginRight 
MarginBottom 
MarginLeft 

Definition at line 278 of file qtexthtmlparser_p.h.

Constructor & Destructor Documentation

◆ ~QTextHtmlParser()

QTextHtmlParser::~QTextHtmlParser ( )
inline

Definition at line 284 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

Member Function Documentation

◆ applyAttributes()

void QTextHtmlParser::applyAttributes ( const QStringList attributes)
protected

Definition at line 1609 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ at()

const QTextHtmlParserNode& QTextHtmlParser::at ( int  i) const
inline

Definition at line 289 of file qtexthtmlparser_p.h.

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

◆ bottomMargin()

int QTextHtmlParser::bottomMargin ( int  i) const

Definition at line 623 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ bottomPadding()

int QTextHtmlParser::bottomPadding ( int  i) const
inline

Definition at line 300 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ count()

int QTextHtmlParser::count ( ) const
inline

Definition at line 291 of file qtexthtmlparser_p.h.

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

◆ depth()

int QTextHtmlParser::depth ( int  i) const

Definition at line 588 of file qtexthtmlparser.cpp.

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

◆ dumpHtml()

void QTextHtmlParser::dumpHtml ( )

Definition at line 509 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ eatSpace()

void QTextHtmlParser::eatSpace ( )
protected

Definition at line 630 of file qtexthtmlparser.cpp.

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

◆ hasPrefix()

bool QTextHtmlParser::hasPrefix ( QChar  c,
int  lookahead = 0 
) const
inlineprotected

Definition at line 335 of file qtexthtmlparser_p.h.

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

◆ last()

int QTextHtmlParser::last ( ) const
inline

Definition at line 292 of file qtexthtmlparser_p.h.

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

◆ leftMargin()

int QTextHtmlParser::leftMargin ( int  i) const
inline

Definition at line 296 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ leftPadding()

int QTextHtmlParser::leftPadding ( int  i) const
inline

Definition at line 301 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ lookupElement()

int QTextHtmlParser::lookupElement ( const QString element)
static

Definition at line 470 of file qtexthtmlparser.cpp.

◆ margin()

int QTextHtmlParser::margin ( int  i,
int  mar 
) const
protected

Definition at line 598 of file qtexthtmlparser.cpp.

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

◆ newNode()

QTextHtmlParserNode * QTextHtmlParser::newNode ( int  parent)
protected

Definition at line 519 of file qtexthtmlparser.cpp.

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

◆ nodeIsChildOf()

bool QTextHtmlParser::nodeIsChildOf ( int  i,
QTextHTMLElements  id 
) const
protected

Definition at line 2193 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ operator[]()

QTextHtmlParserNode& QTextHtmlParser::operator[] ( int  i)
inline

Definition at line 290 of file qtexthtmlparser_p.h.

◆ parse() [1/2]

void QTextHtmlParser::parse ( )
protected

Definition at line 636 of file qtexthtmlparser.cpp.

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

◆ parse() [2/2]

void QTextHtmlParser::parse ( const QString text,
const QTextDocument resourceProvider 
)

Definition at line 574 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ parseAttributes()

QStringList QTextHtmlParser::parseAttributes ( )
protected

Definition at line 1583 of file qtexthtmlparser.cpp.

◆ parseCloseTag()

void QTextHtmlParser::parseCloseTag ( )
protected

Definition at line 742 of file qtexthtmlparser.cpp.

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

◆ parseEntity() [1/2]

QString QTextHtmlParser::parseEntity ( )
protected

Definition at line 831 of file qtexthtmlparser.cpp.

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

◆ parseEntity() [2/2]

QString QTextHtmlParser::parseEntity ( QStringView  entity)
static

Definition at line 803 of file qtexthtmlparser.cpp.

◆ parseExclamationTag()

void QTextHtmlParser::parseExclamationTag ( )
protected

Definition at line 785 of file qtexthtmlparser.cpp.

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

◆ parseTag()

void QTextHtmlParser::parseTag ( )
protected

Definition at line 651 of file qtexthtmlparser.cpp.

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

◆ parseWord()

QString QTextHtmlParser::parseWord ( )
protected

Definition at line 857 of file qtexthtmlparser.cpp.

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

◆ resolveNode()

void QTextHtmlParser::resolveNode ( )
protected

Definition at line 1000 of file qtexthtmlparser.cpp.

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

◆ resolveParent()

QTextHtmlParserNode * QTextHtmlParser::resolveParent ( )
protected

Definition at line 902 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ rightMargin()

int QTextHtmlParser::rightMargin ( int  i) const
inline

Definition at line 297 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ rightPadding()

int QTextHtmlParser::rightPadding ( int  i) const
inline

Definition at line 302 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ tableCellBorder()

qreal QTextHtmlParser::tableCellBorder ( int  i,
int  edge 
) const
inline

Definition at line 304 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ tableCellBorderBrush()

QBrush QTextHtmlParser::tableCellBorderBrush ( int  i,
int  edge 
) const
inline

Definition at line 306 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ tableCellBorderStyle()

QTextFrameFormat::BorderStyle QTextHtmlParser::tableCellBorderStyle ( int  i,
int  edge 
) const
inline

Definition at line 305 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

◆ topMargin()

int QTextHtmlParser::topMargin ( int  i) const

Definition at line 616 of file qtexthtmlparser.cpp.

Here is the call graph for this function:

◆ topPadding()

int QTextHtmlParser::topPadding ( int  i) const
inline

Definition at line 299 of file qtexthtmlparser_p.h.

Here is the call graph for this function:

Member Data Documentation

◆ len

int QTextHtmlParser::len
protected

Definition at line 320 of file qtexthtmlparser_p.h.

◆ nodes

QList<QTextHtmlParserNode *> QTextHtmlParser::nodes
protected

Definition at line 318 of file qtexthtmlparser_p.h.

◆ pos

int QTextHtmlParser::pos
protected

Definition at line 320 of file qtexthtmlparser_p.h.

◆ resourceProvider

const QTextDocument* QTextHtmlParser::resourceProvider
protected

Definition at line 362 of file qtexthtmlparser_p.h.

◆ textEditMode

bool QTextHtmlParser::textEditMode
protected

Definition at line 322 of file qtexthtmlparser_p.h.

◆ txt

QString QTextHtmlParser::txt
protected

Definition at line 319 of file qtexthtmlparser_p.h.


The documentation for this class was generated from the following files: