LibreOffice Module configmgr (master) 1
|
#include <xcuparser.hxx>
Classes | |
struct | State |
Public Member Functions | |
XcuParser (int layer, Data &data, Partial const *partial, Modifications *broadcastModifications, Additions *additions) | |
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 | Operation { OPERATION_MODIFY , OPERATION_REPLACE , OPERATION_FUSE , OPERATION_REMOVE } |
Static Private Member Functions | |
static Operation | parseOperation (xmlreader::Span const &text) |
Private Attributes | |
ValueParser | valueParser_ |
Data & | data_ |
Partial const * | partial_ |
Modifications * | broadcastModifications_ |
Additions * | additions_ |
bool | recordModifications_ |
bool | trackPath_ |
OUString | componentName_ |
std::stack< State > | state_ |
std::vector< OUString > | path_ |
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 52 of file xcuparser.hxx.
|
private |
Enumerator | |
---|---|
OPERATION_MODIFY | |
OPERATION_REPLACE | |
OPERATION_FUSE | |
OPERATION_REMOVE |
Definition at line 71 of file xcuparser.hxx.
configmgr::XcuParser::XcuParser | ( | int | layer, |
Data & | data, | ||
Partial const * | partial, | ||
Modifications * | broadcastModifications, | ||
Additions * | additions | ||
) |
Definition at line 52 of file xcuparser.cxx.
|
overrideprivatevirtual |
Definition at line 63 of file xcuparser.cxx.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 200 of file xcuparser.cxx.
References configmgr::ValueParser::characters(), text(), and valueParser_.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 175 of file xcuparser.cxx.
References configmgr::ValueParser::endElement(), name, path_, state_, and valueParser_.
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 65 of file xcuparser.cxx.
References configmgr::ValueParser::getTextMode(), and valueParser_.
|
private |
Definition at line 222 of file xcuparser.cxx.
References xmlreader::Span::begin, componentName_, configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NOT, data_, configmgr::NodeMap::findNode(), xmlreader::XmlReader::getAttributeValue(), configmgr::Data::getComponents(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), configmgr::XcuParser::State::Ignore(), xmlreader::Span::length, configmgr::XcuParser::State::Modify(), configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::Data::NO_LAYER, OPERATION_FUSE, OPERATION_MODIFY, configmgr::xmldata::parseBoolean(), parseOperation(), partial_, path_, SAL_WARN, state_, trackPath_, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 744 of file xcuparser.cxx.
References configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NOT, xmlreader::Span::convertFromUtf8(), xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), group, configmgr::XcuParser::State::Ignore(), configmgr::Node::KIND_GROUP, configmgr::Node::KIND_SET, configmgr::XcuParser::State::Modify(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::Data::NO_LAYER, OPERATION_FUSE, OPERATION_MODIFY, configmgr::xmldata::parseBoolean(), parseOperation(), partial_, path_, SAL_WARN, state_, trackPath_, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 548 of file xcuparser.cxx.
References configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NODE, xmlreader::Span::convertFromUtf8(), xmlreader::XmlReader::getAttributeValue(), xmlreader::XmlReader::getUrl(), group, handleLocalizedGroupProp(), handlePlainGroupProp(), handleUnknownGroupProp(), i, configmgr::XcuParser::State::Ignore(), configmgr::Node::KIND_LOCALIZED_PROPERTY, configmgr::Node::KIND_PROPERTY, members, name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), OPERATION_MODIFY, configmgr::xmldata::parseBoolean(), parseOperation(), configmgr::xmldata::parseType(), partial_, path_, state_, trackPath_, type, and configmgr::TYPE_ERROR.
Referenced by startElement().
|
private |
Definition at line 315 of file xcuparser.cxx.
References componentName_, configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NOT, xmlreader::Span::convertFromUtf8(), data_, xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), configmgr::XcuParser::State::Ignore(), xmlreader::Span::is(), configmgr::Node::KIND_LOCALIZED_PROPERTY, configmgr::Node::KIND_LOCALIZED_VALUE, configmgr::Node::KIND_PROPERTY, configmgr::XcuParser::State::Modify(), configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), partial_, path_, configmgr::Data::resolvePathRepresentation(), SAL_WARN, state_, trackPath_, configmgr::ValueParser::type_, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 698 of file xcuparser.cxx.
References configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), configmgr::XcuParser::State::Ignore(), configmgr::XcuParser::State::Insert(), configmgr::XcuParser::State::Modify(), name, configmgr::Data::NO_LAYER, OPERATION_FUSE, OPERATION_MODIFY, OPERATION_REMOVE, OPERATION_REPLACE, recordModification(), state_, type, configmgr::ValueParser::type_, configmgr::TYPE_ANY, configmgr::TYPE_ERROR, and valueParser_.
Referenced by handleGroupProp().
|
private |
Definition at line 441 of file xcuparser.cxx.
References xmlreader::Span::begin, configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NODE, xmlreader::Span::convertFromUtf8(), xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), configmgr::LocalizedPropertyNode::getMembers(), xmlreader::XmlReader::getUrl(), i, configmgr::XcuParser::State::Ignore(), configmgr::LocalizedPropertyNode::isNillable(), xmlreader::Span::length, members, name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::NAMESPACE_XML, configmgr::ParseManager::NAMESPACE_XSI, xmlreader::XmlReader::nextAttribute(), OPERATION_FUSE, OPERATION_REMOVE, configmgr::xmldata::parseBoolean(), parseOperation(), configmgr::xmldata::parseType(), partial_, path_, recordModification(), separator, configmgr::ValueParser::separator_, setValue(), configmgr::ValueParser::start(), state_, trackPath_, type, configmgr::ValueParser::type_, configmgr::TYPE_ANY, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 652 of file xcuparser.cxx.
References configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), group, configmgr::XcuParser::State::Ignore(), configmgr::XcuParser::State::Modify(), name, configmgr::Data::NO_LAYER, OPERATION_FUSE, OPERATION_MODIFY, OPERATION_REMOVE, OPERATION_REPLACE, recordModification(), state_, type, configmgr::ValueParser::type_, configmgr::TYPE_ANY, configmgr::TYPE_ERROR, and valueParser_.
Referenced by handleGroupProp().
|
private |
Definition at line 377 of file xcuparser.cxx.
References xmlreader::Span::begin, xmlreader::Span::convertFromUtf8(), xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), configmgr::XcuParser::State::Ignore(), configmgr::PropertyNode::isNillable(), xmlreader::Span::length, configmgr::ParseManager::NAMESPACE_OOR, configmgr::ParseManager::NAMESPACE_XSI, xmlreader::XmlReader::nextAttribute(), configmgr::xmldata::parseBoolean(), configmgr::xmldata::parseType(), separator, configmgr::ValueParser::separator_, configmgr::PropertyNode::setExternal(), configmgr::PropertyNode::setValue(), configmgr::ValueParser::start(), state_, type, configmgr::ValueParser::type_, configmgr::TYPE_ANY, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 812 of file xcuparser.cxx.
References componentName_, configmgr::Partial::contains(), configmgr::Partial::CONTAINS_NOT, xmlreader::Span::convertFromUtf8(), data_, xmlreader::XmlReader::getAttributeValue(), configmgr::ValueParser::getLayer(), configmgr::Data::getTemplate(), xmlreader::XmlReader::getUrl(), i, configmgr::XcuParser::State::Ignore(), configmgr::XcuParser::State::Insert(), members, configmgr::XcuParser::State::Modify(), name, configmgr::ParseManager::NAMESPACE_OOR, xmlreader::XmlReader::nextAttribute(), configmgr::Data::NO_LAYER, OPERATION_FUSE, OPERATION_MODIFY, OPERATION_REMOVE, OPERATION_REPLACE, configmgr::xmldata::parseBoolean(), parseOperation(), configmgr::xmldata::parseTemplateReference(), partial_, path_, recordModification(), SAL_WARN, set(), state_, trackPath_, and valueParser_.
Referenced by startElement().
|
private |
Definition at line 616 of file xcuparser.cxx.
References configmgr::ValueParser::getLayer(), xmlreader::XmlReader::getUrl(), group, configmgr::XcuParser::State::Ignore(), configmgr::XcuParser::State::Insert(), name, OPERATION_FUSE, OPERATION_REPLACE, recordModification(), SAL_WARN, state_, type, configmgr::ValueParser::type_, configmgr::TYPE_ANY, configmgr::TYPE_ERROR, and valueParser_.
Referenced by handleGroupProp().
|
staticprivate |
Definition at line 204 of file xcuparser.cxx.
References OPERATION_FUSE, OPERATION_MODIFY, OPERATION_REMOVE, OPERATION_REPLACE, and text().
Referenced by handleComponentData(), handleGroupNode(), handleGroupProp(), handleLocpropValue(), and handleSetNode().
|
private |
Definition at line 954 of file xcuparser.cxx.
References configmgr::Modifications::add(), additions_, broadcastModifications_, data_, configmgr::Data::modifications, path_, and recordModifications_.
Referenced by handleLocalizedGroupProp(), handleLocpropValue(), handlePlainGroupProp(), handleSetNode(), and handleUnknownGroupProp().
|
overrideprivatevirtual |
Implements configmgr::Parser.
Definition at line 69 of file xcuparser.cxx.
References xmlreader::XmlReader::getUrl(), handleComponentData(), handleGroupNode(), handleGroupProp(), handleItem(), handleLocpropValue(), handlePropValue(), handleSetNode(), configmgr::XcuParser::State::Ignore(), configmgr::Node::KIND_GROUP, configmgr::Node::KIND_LOCALIZED_PROPERTY, configmgr::Node::KIND_LOCALIZED_VALUE, configmgr::Node::KIND_PROPERTY, configmgr::Node::KIND_ROOT, configmgr::Node::KIND_SET, configmgr::XcuParser::State::Modify(), name, xmlreader::XmlReader::NAMESPACE_NONE, configmgr::ParseManager::NAMESPACE_OOR, SAL_WARN, configmgr::ValueParser::startElement(), state_, and valueParser_.
|
private |
Definition at line 142 of file xcuparser.hxx.
Referenced by recordModification().
|
private |
Definition at line 141 of file xcuparser.hxx.
Referenced by recordModification().
|
private |
Definition at line 145 of file xcuparser.hxx.
Referenced by handleComponentData(), handleItem(), and handleSetNode().
|
private |
Definition at line 139 of file xcuparser.hxx.
Referenced by handleComponentData(), handleItem(), handleSetNode(), and recordModification().
|
private |
Definition at line 140 of file xcuparser.hxx.
Referenced by handleComponentData(), handleGroupNode(), handleGroupProp(), handleItem(), handleLocpropValue(), and handleSetNode().
|
private |
Definition at line 147 of file xcuparser.hxx.
Referenced by endElement(), handleComponentData(), handleGroupNode(), handleGroupProp(), handleItem(), handleLocpropValue(), handleSetNode(), and recordModification().
|
private |
Definition at line 143 of file xcuparser.hxx.
Referenced by recordModification().
|
private |
Definition at line 146 of file xcuparser.hxx.
Referenced by endElement(), handleComponentData(), handleGroupNode(), handleGroupProp(), handleItem(), handleLocalizedGroupProp(), handleLocpropValue(), handlePlainGroupProp(), handlePropValue(), handleSetNode(), handleUnknownGroupProp(), and startElement().
|
private |
Definition at line 144 of file xcuparser.hxx.
Referenced by handleComponentData(), handleGroupNode(), handleGroupProp(), handleItem(), handleLocpropValue(), and handleSetNode().
|
private |
Definition at line 138 of file xcuparser.hxx.
Referenced by characters(), endElement(), getTextMode(), handleComponentData(), handleGroupNode(), handleItem(), handleLocalizedGroupProp(), handleLocpropValue(), handlePlainGroupProp(), handlePropValue(), handleSetNode(), handleUnknownGroupProp(), and startElement().