Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDomBuilder Class Reference

#include <qdomhelpers_p.h>

+ Collaboration diagram for QDomBuilder:

Public Member Functions

 QDomBuilder (QDomDocumentPrivate *d, QXmlStreamReader *r, QDomDocument::ParseOptions options)
 
 ~QDomBuilder ()
 
bool endDocument ()
 
bool startElement (const QString &nsURI, const QString &qName, const QXmlStreamAttributes &atts)
 
bool endElement ()
 
bool characters (const QString &characters, bool cdata=false)
 
bool processingInstruction (const QString &target, const QString &data)
 
bool skippedEntity (const QString &name)
 
bool startEntity (const QString &name)
 
bool endEntity ()
 
bool startDTD (const QString &name, const QString &publicId, const QString &systemId)
 
bool parseDTD (const QString &dtd)
 
bool comment (const QString &characters)
 
bool externalEntityDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool notationDecl (const QString &name, const QString &publicId, const QString &systemId)
 
bool unparsedEntityDecl (const QString &name, const QString &publicId, const QString &systemId, const QString &notationName)
 
void fatalError (const QString &message)
 
QDomDocument::ParseResult result () const
 
bool preserveSpacingOnlyNodes () const
 

Detailed Description

Definition at line 34 of file qdomhelpers_p.h.

Constructor & Destructor Documentation

◆ QDomBuilder()

QDomBuilder::QDomBuilder ( QDomDocumentPrivate d,
QXmlStreamReader *  r,
QDomDocument::ParseOptions  options 
)

Definition at line 26 of file qdomhelpers.cpp.

References Q_ASSERT.

◆ ~QDomBuilder()

QDomBuilder::~QDomBuilder ( )

Definition at line 34 of file qdomhelpers.cpp.

Member Function Documentation

◆ characters()

bool QDomBuilder::characters ( const QString characters,
bool  cdata = false 
)

Definition at line 121 of file qdomhelpers.cpp.

References QDomNodePrivate::appendChild(), QDomDocumentTypePrivate::appendChild(), characters, QDomDocumentPrivate::createCDATASection(), QDomDocumentPrivate::createEntityReference(), QDomDocumentPrivate::createTextNode(), QDomDocumentPrivate::doctype(), e, QString::isEmpty(), and Q_UNUSED.

+ Here is the call graph for this function:

◆ comment()

bool QDomBuilder::comment ( const QString characters)

Definition at line 187 of file qdomhelpers.cpp.

References QDomNodePrivate::appendChild(), characters, QDomDocumentPrivate::createComment(), and QDomNodePrivate::setLocation().

+ Here is the call graph for this function:

◆ endDocument()

bool QDomBuilder::endDocument ( )

Definition at line 36 of file qdomhelpers.cpp.

◆ endElement()

bool QDomBuilder::endElement ( )

Definition at line 112 of file qdomhelpers.cpp.

References QDomNodePrivate::parent().

+ Here is the call graph for this function:

◆ endEntity()

bool QDomBuilder::endEntity ( )

Definition at line 181 of file qdomhelpers.cpp.

References QString::clear().

+ Here is the call graph for this function:

◆ externalEntityDecl()

bool QDomBuilder::externalEntityDecl ( const QString name,
const QString publicId,
const QString systemId 
)

Definition at line 207 of file qdomhelpers.cpp.

References unparsedEntityDecl().

+ Here is the call graph for this function:

◆ fatalError()

void QDomBuilder::fatalError ( const QString message)

◆ notationDecl()

bool QDomBuilder::notationDecl ( const QString name,
const QString publicId,
const QString systemId 
)

Definition at line 213 of file qdomhelpers.cpp.

References QDomDocumentTypePrivate::appendChild(), and QDomDocumentPrivate::doctype().

+ Here is the call graph for this function:

◆ parseDTD()

bool QDomBuilder::parseDTD ( const QString dtd)

Definition at line 75 of file qdomhelpers.cpp.

References QDomDocumentPrivate::doctype(), and QDomDocumentTypePrivate::internalSubset.

+ Here is the call graph for this function:

◆ preserveSpacingOnlyNodes()

bool QDomBuilder::preserveSpacingOnlyNodes ( ) const
inline

Definition at line 59 of file qdomhelpers_p.h.

References QDomDocument::PreserveSpacingOnlyNodes.

◆ processingInstruction()

bool QDomBuilder::processingInstruction ( const QString target,
const QString data 
)

Definition at line 148 of file qdomhelpers.cpp.

References QDomNodePrivate::appendChild(), QDomDocumentPrivate::createProcessingInstruction(), and QDomNodePrivate::setLocation().

+ Here is the call graph for this function:

◆ result()

QDomDocument::ParseResult QDomBuilder::result ( ) const
inline

Definition at line 57 of file qdomhelpers_p.h.

Referenced by QDomParser::result().

+ Here is the caller graph for this function:

◆ skippedEntity()

bool QDomBuilder::skippedEntity ( const QString name)

Definition at line 160 of file qdomhelpers.cpp.

References QDomNodePrivate::appendChild(), QDomDocumentPrivate::createEntityReference(), and QDomNodePrivate::setLocation().

+ Here is the call graph for this function:

◆ startDTD()

bool QDomBuilder::startDTD ( const QString name,
const QString publicId,
const QString systemId 
)

Definition at line 44 of file qdomhelpers.cpp.

References QDomDocumentPrivate::doctype(), QDomNodePrivate::name, QDomDocumentTypePrivate::publicId, and QDomDocumentTypePrivate::systemId.

+ Here is the call graph for this function:

◆ startElement()

bool QDomBuilder::startElement ( const QString nsURI,
const QString qName,
const QXmlStreamAttributes atts 
)

Definition at line 81 of file qdomhelpers.cpp.

References QDomNodePrivate::appendChild(), QDomDocumentPrivate::createElement(), QDomDocumentPrivate::createElementNS(), QDomElementPrivate::setAttributeNS(), QDomNodePrivate::setLocation(), and QDomDocument::UseNamespaceProcessing.

+ Here is the call graph for this function:

◆ startEntity()

bool QDomBuilder::startEntity ( const QString name)

Definition at line 175 of file qdomhelpers.cpp.

◆ unparsedEntityDecl()

bool QDomBuilder::unparsedEntityDecl ( const QString name,
const QString publicId,
const QString systemId,
const QString notationName 
)

Definition at line 196 of file qdomhelpers.cpp.

References QDomDocumentTypePrivate::appendChild(), QDomDocumentPrivate::doctype(), and e.

Referenced by externalEntityDecl().

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

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