LibreOffice Module configmgr (master) 1
|
#include <valueparser.hxx>
Public Member Functions | |
ValueParser (int layer) | |
~ValueParser () | |
xmlreader::XmlReader::Text | getTextMode () const |
bool | startElement (xmlreader::XmlReader &reader, int nsId, xmlreader::Span const &name) |
bool | endElement () |
void | characters (xmlreader::Span const &text) |
void | start (rtl::Reference< Node > const &property, OUString const &localizedName=OUString()) |
int | getLayer () const |
Public Attributes | |
Type | type_ |
OString | separator_ |
Private Types | |
enum class | State { Text , TextUnicode , IT , ITUnicode } |
Private Member Functions | |
ValueParser (const ValueParser &)=delete | |
ValueParser & | operator= (const ValueParser &)=delete |
template<typename T > | |
css::uno::Any | convertItems () |
Private Attributes | |
int | layer_ |
rtl::Reference< Node > | node_ |
OUString | localizedName_ |
State | state_ |
xmlreader::Pad | pad_ |
std::vector< css::uno::Any > | items_ |
Definition at line 43 of file valueparser.hxx.
|
strongprivate |
Enumerator | |
---|---|
Text | |
TextUnicode | |
IT | |
ITUnicode |
Definition at line 73 of file valueparser.hxx.
|
explicit |
Definition at line 250 of file valueparser.cxx.
configmgr::ValueParser::~ValueParser | ( | ) |
Definition at line 252 of file valueparser.cxx.
|
privatedelete |
void configmgr::ValueParser::characters | ( | xmlreader::Span const & | text | ) |
Definition at line 423 of file valueparser.cxx.
References xmlreader::Pad::add(), IT, node_, pad_, state_, Text, and text().
Referenced by configmgr::XcuParser::characters(), and configmgr::XcsParser::characters().
|
private |
Definition at line 440 of file valueparser.cxx.
bool configmgr::ValueParser::endElement | ( | ) |
Definition at line 339 of file valueparser.cxx.
References xmlreader::Pad::clear(), configmgr::elementType(), xmlreader::Pad::get(), configmgr::LocalizedValueNode::getValuePtr(), i, IT, items_, ITUnicode, configmgr::Node::KIND_LOCALIZED_PROPERTY, configmgr::Node::KIND_PROPERTY, layer_, localizedName_, members, node_, pad_, separator_, state_, Text, TextUnicode, type_, configmgr::TYPE_BOOLEAN_LIST, configmgr::TYPE_DOUBLE_LIST, configmgr::TYPE_HEXBINARY_LIST, configmgr::TYPE_INT_LIST, configmgr::TYPE_LONG_LIST, configmgr::TYPE_SHORT_LIST, and configmgr::TYPE_STRING_LIST.
Referenced by configmgr::XcsParser::endElement(), and configmgr::XcuParser::endElement().
|
inline |
Definition at line 62 of file valueparser.hxx.
References layer_.
Referenced by configmgr::XcuParser::handleComponentData(), configmgr::XcsParser::handleGroup(), configmgr::XcuParser::handleGroupNode(), configmgr::XcuParser::handleItem(), configmgr::XcuParser::handleLocalizedGroupProp(), configmgr::XcuParser::handleLocpropValue(), configmgr::XcsParser::handleNodeRef(), configmgr::XcuParser::handlePlainGroupProp(), configmgr::XcsParser::handleProp(), configmgr::XcuParser::handlePropValue(), configmgr::XcsParser::handleSet(), configmgr::XcuParser::handleSetNode(), configmgr::XcuParser::handleUnknownGroupProp(), and configmgr::XcsParser::startElement().
xmlreader::XmlReader::Text configmgr::ValueParser::getTextMode | ( | ) | const |
Definition at line 254 of file valueparser.cxx.
References IT, items_, node_, separator_, state_, Text, type_, configmgr::TYPE_STRING, and configmgr::TYPE_STRING_LIST.
Referenced by configmgr::XcsParser::getTextMode(), and configmgr::XcuParser::getTextMode().
|
privatedelete |
void configmgr::ValueParser::start | ( | rtl::Reference< Node > const & | property, |
OUString const & | localizedName = OUString() |
||
) |
Definition at line 430 of file valueparser.cxx.
References localizedName_, node_, state_, and Text.
Referenced by configmgr::XcuParser::handleLocpropValue(), configmgr::XcuParser::handlePropValue(), and configmgr::XcsParser::handlePropValue().
bool configmgr::ValueParser::startElement | ( | xmlreader::XmlReader & | reader, |
int | nsId, | ||
xmlreader::Span const & | name | ||
) |
Definition at line 276 of file valueparser.cxx.
References xmlreader::Pad::add(), xmlreader::Pad::clear(), xmlreader::XmlReader::getAttributeValue(), xmlreader::XmlReader::getUrl(), configmgr::isListType(), IT, ITUnicode, name, xmlreader::XmlReader::NAMESPACE_NONE, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), node_, pad_, separator_, state_, Text, TextUnicode, type_, configmgr::TYPE_STRING, and configmgr::TYPE_STRING_LIST.
Referenced by configmgr::XcsParser::startElement(), and configmgr::XcuParser::startElement().
|
private |
Definition at line 80 of file valueparser.hxx.
Referenced by convertItems(), endElement(), and getTextMode().
|
private |
Definition at line 75 of file valueparser.hxx.
Referenced by endElement(), and getLayer().
|
private |
Definition at line 77 of file valueparser.hxx.
Referenced by endElement(), and start().
|
private |
Definition at line 76 of file valueparser.hxx.
Referenced by characters(), endElement(), getTextMode(), start(), and startElement().
|
private |
Definition at line 79 of file valueparser.hxx.
Referenced by characters(), endElement(), and startElement().
OString configmgr::ValueParser::separator_ |
Definition at line 65 of file valueparser.hxx.
Referenced by endElement(), getTextMode(), configmgr::XcuParser::handleLocpropValue(), configmgr::XcuParser::handlePropValue(), configmgr::XcsParser::handlePropValue(), and startElement().
|
private |
Definition at line 78 of file valueparser.hxx.
Referenced by characters(), endElement(), getTextMode(), start(), and startElement().
Type configmgr::ValueParser::type_ |
Definition at line 64 of file valueparser.hxx.
Referenced by endElement(), getTextMode(), configmgr::XcuParser::handleItem(), configmgr::XcuParser::handleLocalizedGroupProp(), configmgr::XcuParser::handleLocpropValue(), configmgr::XcuParser::handlePlainGroupProp(), configmgr::XcsParser::handleProp(), configmgr::XcuParser::handlePropValue(), configmgr::XcuParser::handleUnknownGroupProp(), and startElement().