LibreOffice Module l10ntools (master) 1
|
Hold information of an element node. More...
#include <xmlparse.hxx>
Public Member Functions | |
XMLElement (OString sName, XMLParentNode *pParent) | |
create an element node More... | |
virtual | ~XMLElement () override |
XMLElement (const XMLElement &) | |
XMLElement & | operator= (const XMLElement &rObj) |
virtual XMLNodeType | GetNodeType () const override |
const OString & | GetName () const |
returns element name More... | |
XMLAttributeList * | GetAttributeList () |
returns list of attributes of this element More... | |
void | AddAttribute (const OString &rAttribute, const OString &rValue) |
adds a new attribute to this element, typically used by parser More... | |
void | ChangeLanguageTag (const OString &rValue) |
OString | ToOString () |
Return a Unicode String representation of this object. More... | |
Public Member Functions inherited from XMLParentNode | |
XMLChildNodeList * | GetChildList () |
returns child list of this node More... | |
void | AddChild (XMLChildNode *pChild) |
adds a new child More... | |
void | RemoveAndDeleteAllChildren () |
Public Member Functions inherited from XMLChildNode | |
XMLParentNode * | GetParent () |
returns the parent of this node More... | |
Public Member Functions inherited from XMLNode | |
virtual XMLNodeType | GetNodeType () const =0 |
virtual | ~XMLNode () |
XMLNode (XMLNode const &)=default | |
XMLNode (XMLNode &&)=default | |
XMLNode & | operator= (XMLNode const &)=default |
XMLNode & | operator= (XMLNode &&)=default |
Protected Member Functions | |
void | Print (XMLNode *pCur, OStringBuffer &rBuffer, bool bRootelement) const |
Protected Member Functions inherited from XMLParentNode | |
XMLParentNode (XMLParentNode *pPar) | |
XMLParentNode (const XMLParentNode &) | |
XMLParentNode & | operator= (const XMLParentNode &rObj) |
virtual | ~XMLParentNode () override |
Protected Member Functions inherited from XMLChildNode | |
XMLChildNode (XMLParentNode *pPar) | |
XMLChildNode (const XMLChildNode &rObj) | |
XMLChildNode & | operator= (const XMLChildNode &rObj) |
Protected Member Functions inherited from XMLNode | |
XMLNode () | |
Private Attributes | |
OString | m_sElementName |
std::unique_ptr< XMLAttributeList > | m_pAttributes |
Hold information of an element node.
Definition at line 201 of file xmlparse.hxx.
XMLElement::XMLElement | ( | OString | sName, |
XMLParentNode * | pParent | ||
) |
create an element node
Definition at line 535 of file xmlparse.cxx.
|
overridevirtual |
Definition at line 622 of file xmlparse.cxx.
References i, and m_pAttributes.
XMLElement::XMLElement | ( | const XMLElement & | rObj | ) |
Definition at line 544 of file xmlparse.cxx.
References AddAttribute(), i, and m_pAttributes.
void XMLElement::AddAttribute | ( | const OString & | rAttribute, |
const OString & | rValue | ||
) |
adds a new attribute to this element, typically used by parser
Definition at line 579 of file xmlparse.cxx.
References m_pAttributes.
Referenced by ChangeLanguageTag(), operator=(), SimpleXMLParser::StartElement(), and XMLElement().
void XMLElement::ChangeLanguageTag | ( | const OString & | rValue | ) |
Definition at line 586 of file xmlparse.cxx.
References AddAttribute(), ChangeLanguageTag(), ELEMENT, XMLParentNode::GetChildList(), GetName(), XMLNode::GetNodeType(), i, m_pAttributes, and XML_LANG.
Referenced by ChangeLanguageTag(), and HelpParser::ProcessHelp().
|
inline |
returns list of attributes of this element
Definition at line 226 of file xmlparse.hxx.
References m_pAttributes.
Referenced by XMLFile::CheckExportStatus(), XMLFile::InsertL10NElement(), Print(), XMLFile::Print(), XMLFile::SearchL10NElements(), and XMLFile::Write().
|
inline |
returns element name
Definition at line 223 of file xmlparse.hxx.
References m_sElementName.
Referenced by ChangeLanguageTag(), XMLFile::CheckExportStatus(), Print(), XMLFile::Print(), XMLFile::SearchL10NElements(), and XMLFile::Write().
|
inlineoverridevirtual |
XMLElement & XMLElement::operator= | ( | const XMLElement & | rObj | ) |
Definition at line 556 of file xmlparse.cxx.
References AddAttribute(), i, m_pAttributes, m_sElementName, and XMLParentNode::operator=().
|
protected |
Definition at line 638 of file xmlparse.cxx.
References COMMENT, DATA, DEFAULT, ELEMENT, GetAttributeList(), XMLParentNode::GetChildList(), XMLComment::GetComment(), XMLDefault::GetDefault(), GetName(), XMLNode::GetNodeType(), pData, Print(), size, and XML_LANG.
Referenced by Print(), and ToOString().
OString XMLElement::ToOString | ( | ) |
Return a Unicode String representation of this object.
Definition at line 631 of file xmlparse.cxx.
References Print().
Referenced by HelpParser::CreatePO(), and HelpParser::ProcessHelp().
|
private |
Definition at line 205 of file xmlparse.hxx.
Referenced by AddAttribute(), ChangeLanguageTag(), GetAttributeList(), operator=(), XMLElement(), and ~XMLElement().
|
private |
Definition at line 204 of file xmlparse.hxx.
Referenced by GetName(), and operator=().