LibreOffice Module configmgr (master) 1
|
#include <xcsparser.hxx>
Classes | |
struct | Element |
Public Member Functions | |
XcsParser (int layer, Data &data) | |
virtual xmlreader::XmlReader::Text | getTextMode ()=0 |
virtual bool | startElement (xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies)=0 |
virtual void | endElement (xmlreader::XmlReader const &reader)=0 |
virtual void | characters (xmlreader::Span const &text)=0 |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Private Types | |
enum | State { STATE_START , STATE_COMPONENT_SCHEMA , STATE_TEMPLATES , STATE_TEMPLATES_DONE , STATE_COMPONENT , STATE_COMPONENT_DONE } |
typedef std::stack< Element > | ElementStack |
Private Member Functions | |
virtual | ~XcsParser () override |
virtual xmlreader::XmlReader::Text | getTextMode () override |
virtual bool | startElement (xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name, std::set< OUString > const *existingDependencies) override |
virtual void | endElement (xmlreader::XmlReader const &reader) override |
virtual void | characters (xmlreader::Span const &text) override |
void | handleComponentSchema (xmlreader::XmlReader &reader) |
void | handleNodeRef (xmlreader::XmlReader &reader) |
void | handleProp (xmlreader::XmlReader &reader) |
void | handlePropValue (xmlreader::XmlReader &reader, rtl::Reference< Node > const &property) |
void | handleGroup (xmlreader::XmlReader &reader, bool isTemplate) |
void | handleSet (xmlreader::XmlReader &reader, bool isTemplate) |
void | handleSetItem (xmlreader::XmlReader &reader, SetNode *set) |
Private Attributes | |
ValueParser | valueParser_ |
Data & | data_ |
OUString | componentName_ |
State | state_ |
long | ignoring_ |
ElementStack | elements_ |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Member Functions inherited from configmgr::Parser | |
Parser () | |
virtual | ~Parser () override |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
Definition at line 43 of file xcsparser.hxx.
|
private |
Definition at line 89 of file xcsparser.hxx.
|
private |
Enumerator | |
---|---|
STATE_START | |
STATE_COMPONENT_SCHEMA | |
STATE_TEMPLATES | |
STATE_TEMPLATES_DONE | |
STATE_COMPONENT | |
STATE_COMPONENT_DONE |
Definition at line 75 of file xcsparser.hxx.
Definition at line 111 of file xcsparser.cxx.
|
overrideprivatevirtual |
Definition at line 115 of file xcsparser.cxx.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 318 of file xcsparser.cxx.
References configmgr::ValueParser::characters(), text(), and valueParser_.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 253 of file xcsparser.cxx.
References data_, elements_, configmgr::ValueParser::endElement(), configmgr::Data::getComponents(), xmlreader::XmlReader::getUrl(), ignoring_, configmgr::NodeMap::insert(), state_, STATE_COMPONENT, STATE_COMPONENT_DONE, STATE_COMPONENT_SCHEMA, STATE_TEMPLATES, STATE_TEMPLATES_DONE, configmgr::Data::templates, top, and valueParser_.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 117 of file xcsparser.cxx.
References configmgr::ValueParser::getTextMode(), and valueParser_.
|
private |
Definition at line 322 of file xcsparser.cxx.
References xmlreader::Span::begin, componentName_, xmlreader::XmlReader::getAttributeValue(), xmlreader::XmlReader::getUrl(), xmlreader::Span::length, configmgr::ParseManager::NAMESPACE_OOR, and xmlreader::XmlReader::nextAttribute().
Referenced by startElement().
|
private |
Definition at line 491 of file xcsparser.cxx.
References componentName_, xmlreader::Span::convertFromUtf8(), elements_, configmgr::Data::fullTemplateName(), xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseBoolean(), and valueParser_.
Referenced by startElement().
|
private |
Definition at line 369 of file xcsparser.cxx.
References componentName_, xmlreader::Span::convertFromUtf8(), data_, elements_, xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), configmgr::Data::getTemplate(), xmlreader::XmlReader::getUrl(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseTemplateReference(), and valueParser_.
Referenced by startElement().
|
private |
Definition at line 415 of file xcsparser.cxx.
References xmlreader::Span::convertFromUtf8(), elements_, xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseBoolean(), configmgr::xmldata::parseType(), configmgr::ValueParser::type_, configmgr::TYPE_ERROR, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 466 of file xcsparser.cxx.
References xmlreader::Span::begin, xmlreader::XmlReader::getAttributeValue(), xmlreader::XmlReader::getUrl(), xmlreader::Span::length, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::ValueParser::separator_, configmgr::ValueParser::start(), and valueParser_.
Referenced by startElement().
|
private |
Definition at line 525 of file xcsparser.cxx.
References componentName_, xmlreader::Span::convertFromUtf8(), elements_, configmgr::Data::fullTemplateName(), xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseTemplateReference(), and valueParser_.
Referenced by startElement().
|
private |
Definition at line 568 of file xcsparser.cxx.
References componentName_, xmlreader::Span::convertFromUtf8(), elements_, xmlreader::XmlReader::getAttributeValue(), configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseTemplateReference(), and set().
Referenced by startElement().
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 121 of file xcsparser.cxx.
References componentName_, elements_, configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), handleComponentSchema(), handleGroup(), handleNodeRef(), handleProp(), handlePropValue(), handleSet(), handleSetItem(), ignoring_, configmgr::Node::KIND_GROUP, configmgr::Node::KIND_LOCALIZED_PROPERTY, configmgr::Node::KIND_PROPERTY, configmgr::Node::KIND_SET, LONG_MAX, name, xmlreader::XmlReader::NAMESPACE_NONE, configmgr::ParseManager::NAMESPACE_OOR, configmgr::ValueParser::startElement(), state_, STATE_COMPONENT, STATE_COMPONENT_DONE, STATE_COMPONENT_SCHEMA, STATE_START, STATE_TEMPLATES, STATE_TEMPLATES_DONE, and valueParser_.
|
private |
Definition at line 93 of file xcsparser.hxx.
Referenced by handleComponentSchema(), handleGroup(), handleNodeRef(), handleSet(), handleSetItem(), and startElement().
|
private |
Definition at line 92 of file xcsparser.hxx.
Referenced by endElement(), and handleNodeRef().
|
private |
Definition at line 96 of file xcsparser.hxx.
Referenced by endElement(), handleGroup(), handleNodeRef(), handleProp(), handleSet(), handleSetItem(), and startElement().
|
private |
Definition at line 95 of file xcsparser.hxx.
Referenced by endElement(), and startElement().
|
private |
Definition at line 94 of file xcsparser.hxx.
Referenced by endElement(), and startElement().
|
private |
Definition at line 91 of file xcsparser.hxx.
Referenced by characters(), endElement(), getTextMode(), handleGroup(), handleNodeRef(), handleProp(), handlePropValue(), handleSet(), and startElement().