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
CFX_XMLElement Class Referencefinal

#include <cfx_xmlelement.h>

Inheritance diagram for CFX_XMLElement:
Collaboration diagram for CFX_XMLElement:

Public Member Functions

 CFX_XMLElement (const WideString &wsTag)
 ~CFX_XMLElement () override
Type GetType () const override
CFX_XMLNodeClone (CFX_XMLDocument *doc) override
void Save (const RetainPtr< IFX_RetainableWriteStream > &pXMLStream) override
const WideStringGetName () const
const std::map< WideString, WideString > & GetAttributes () const
bool HasAttribute (const WideString &name) const
void SetAttribute (const WideString &name, const WideString &value)
WideString GetAttribute (const WideString &name) const
void RemoveAttribute (const WideString &name)
CFX_XMLElementGetFirstChildNamed (WideStringView name) const
CFX_XMLElementGetNthChildNamed (WideStringView name, size_t idx) const
WideString GetLocalTagName () const
WideString GetNamespacePrefix () const
WideString GetNamespaceURI () const
WideString GetTextData () const
Public Member Functions inherited from CFX_XMLNode
 CFX_XMLNode ()
 ~CFX_XMLNode () override
CFX_XMLNodeGetRoot ()
void InsertChildNode (CFX_XMLNode *pNode, int32_t index)
Public Member Functions inherited from fxcrt::TreeNode< T >
 TreeNode ()=default
virtual ~TreeNode ()=default
Public Member Functions inherited from fxcrt::TreeNodeBase< T >
 TreeNodeBase ()=default
virtual ~TreeNodeBase ()=default
T * GetParent () const
T * GetFirstChild () const
T * GetLastChild () const
T * GetNextSibling () const
T * GetPrevSibling () const
bool HasChild (const T *child) const
T * GetNthChild (int32_t n)
void AppendFirstChild (T *child)
void AppendLastChild (T *child)
void InsertBefore (T *child, T *other)
void InsertAfter (T *child, T *other)
void RemoveChild (T *child)
void RemoveAllChildren ()
void RemoveSelfIfParented ()

Additional Inherited Members

Public Types inherited from CFX_XMLNode
enum class  Type { kInstruction = 0 , kElement , kText , kCharData }

Detailed Description

Definition at line 17 of file cfx_xmlelement.h.

Constructor & Destructor Documentation

◆ CFX_XMLElement()

CFX_XMLElement::CFX_XMLElement ( const WideString & wsTag)
explicit

Definition at line 15 of file cfx_xmlelement.cpp.

Referenced by TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), and TEST().

Here is the caller graph for this function:

◆ ~CFX_XMLElement()

CFX_XMLElement::~CFX_XMLElement ( )
overridedefault

Member Function Documentation

◆ Clone()

CFX_XMLNode * CFX_XMLElement::Clone ( CFX_XMLDocument * doc)
overridevirtual

Implements CFX_XMLNode.

Definition at line 25 of file cfx_xmlelement.cpp.

References CFX_XMLNode::Clone(), CFX_XMLNode::GetType(), and CFX_XMLNode::kText.

Referenced by TEST().

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

◆ GetAttribute()

WideString CFX_XMLElement::GetAttribute ( const WideString & name) const

Definition at line 132 of file cfx_xmlelement.cpp.

Referenced by CXFA_TextParser::GetEmbeddedObj(), TEST(), TEST(), TEST_F(), and XFA_FDEExtension_ResolveNamespaceQualifier().

Here is the caller graph for this function:

◆ GetAttributes()

const std::map< WideString, WideString > & CFX_XMLElement::GetAttributes ( ) const
inline

Definition at line 29 of file cfx_xmlelement.h.

◆ GetFirstChildNamed()

CFX_XMLElement * CFX_XMLElement::GetFirstChildNamed ( WideStringView name) const

Definition at line 110 of file cfx_xmlelement.cpp.

Referenced by TEST(), and TEST().

Here is the caller graph for this function:

◆ GetLocalTagName()

WideString CFX_XMLElement::GetLocalTagName ( ) const

Definition at line 39 of file cfx_xmlelement.cpp.

Referenced by CXFA_DocumentBuilder::ConstructXFANode(), TEST(), and TEST().

Here is the caller graph for this function:

◆ GetName()

const WideString & CFX_XMLElement::GetName ( ) const
inline

Definition at line 27 of file cfx_xmlelement.h.

Referenced by CXFA_XMLLocale::Create(), TEST(), TEST(), and TEST().

Here is the caller graph for this function:

◆ GetNamespacePrefix()

WideString CFX_XMLElement::GetNamespacePrefix ( ) const

Definition at line 45 of file cfx_xmlelement.cpp.

Referenced by GetNamespaceURI(), TEST(), and TEST().

Here is the caller graph for this function:

◆ GetNamespaceURI()

WideString CFX_XMLElement::GetNamespaceURI ( ) const

Definition at line 50 of file cfx_xmlelement.cpp.

References fxcrt::WideString::WideString(), fxcrt::WideString::WideString(), GetNamespacePrefix(), CFX_XMLNode::GetType(), CFX_XMLNode::kElement, fxcrt::WideString::operator+=(), and fxcrt::WideString::operator+=().

Referenced by TEST(), TEST(), CJX_Object::TryNamespace(), and XFA_RecognizeRichText().

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

◆ GetNthChildNamed()

CFX_XMLElement * CFX_XMLElement::GetNthChildNamed ( WideStringView name,
size_t idx ) const

Definition at line 114 of file cfx_xmlelement.cpp.

◆ GetTextData()

WideString CFX_XMLElement::GetTextData ( ) const

Definition at line 69 of file cfx_xmlelement.cpp.

References CFX_XMLText::GetText(), fxcrt::WideString::operator+=(), and ToXMLText().

Referenced by CXFA_XMLLocale::GetDateTimeSymbols(), TEST(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), TEST_F(), and TEST_F().

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

◆ GetType()

CFX_XMLNode::Type CFX_XMLElement::GetType ( ) const
overridevirtual

Implements CFX_XMLNode.

Definition at line 21 of file cfx_xmlelement.cpp.

References CFX_XMLNode::kElement.

Referenced by TEST().

Here is the caller graph for this function:

◆ HasAttribute()

bool CFX_XMLElement::HasAttribute ( const WideString & name) const

Definition at line 128 of file cfx_xmlelement.cpp.

Referenced by TEST(), TEST(), and XFA_FDEExtension_ResolveNamespaceQualifier().

Here is the caller graph for this function:

◆ RemoveAttribute()

void CFX_XMLElement::RemoveAttribute ( const WideString & name)

Definition at line 142 of file cfx_xmlelement.cpp.

Referenced by CXFA_DataExporter::Export(), CXFA_Node::RemoveChildAndNotify(), TEST(), and XFA_DataExporter_DealWithDataGroupNode().

Here is the caller graph for this function:

◆ Save()

void CFX_XMLElement::Save ( const RetainPtr< IFX_RetainableWriteStream > & pXMLStream)
overridevirtual

Implements CFX_XMLNode.

Definition at line 80 of file cfx_xmlelement.cpp.

References CFX_XMLNode::Save().

Referenced by CXFA_DataExporter::Export(), TEST(), TEST(), TEST(), TEST(), and TEST().

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

◆ SetAttribute()

void CFX_XMLElement::SetAttribute ( const WideString & name,
const WideString & value )

Definition at line 137 of file cfx_xmlelement.cpp.

Referenced by CXFA_DataExporter::Export(), CJX_Object::SetBoolean(), CJX_Object::SetCDataImpl(), CJX_Object::SetEnum(), CJX_Object::SetInteger(), CXFA_Node::SetToXML(), TEST(), TEST(), TEST(), TEST(), TEST(), and XFA_DataExporter_DealWithDataGroupNode().

Here is the caller graph for this function:

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