LibreOffice Module configmgr (master)  1
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
configmgr::XcuParser Class Reference

#include <xcuparser.hxx>

Inheritance diagram for configmgr::XcuParser:
[legend]
Collaboration diagram for configmgr::XcuParser:
[legend]

Classes

struct  State
 

Public Member Functions

 XcuParser (int layer, Data &data, Partial const *partial, Modifications *broadcastModifications, Additions *additions)
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Types

enum  Operation {
  OPERATION_MODIFY,
  OPERATION_REPLACE,
  OPERATION_FUSE,
  OPERATION_REMOVE
}
 

Private Member Functions

virtual ~XcuParser () 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 &span) override
 
void handleComponentData (xmlreader::XmlReader &reader)
 
void handleItem (xmlreader::XmlReader &reader)
 
void handlePropValue (xmlreader::XmlReader &reader, PropertyNode *prop)
 
void handleLocpropValue (xmlreader::XmlReader &reader, LocalizedPropertyNode *locprop)
 
void handleGroupProp (xmlreader::XmlReader &reader, GroupNode *group)
 
void handleUnknownGroupProp (xmlreader::XmlReader const &reader, GroupNode const *group, OUString const &name, Type type, Operation operation, bool finalized)
 
void handlePlainGroupProp (xmlreader::XmlReader const &reader, GroupNode *group, NodeMap::iterator const &propertyIndex, OUString const &name, Type type, Operation operation, bool finalized)
 
void handleLocalizedGroupProp (xmlreader::XmlReader const &reader, LocalizedPropertyNode *property, OUString const &name, Type type, Operation operation, bool finalized)
 
void handleGroupNode (xmlreader::XmlReader &reader, rtl::Reference< Node > const &group)
 
void handleSetNode (xmlreader::XmlReader &reader, SetNode *set)
 
void recordModification (bool addition)
 

Static Private Member Functions

static Operation parseOperation (xmlreader::Span const &text)
 

Private Attributes

ValueParser valueParser_
 
Datadata_
 
Partial const * partial_
 
ModificationsbroadcastModifications_
 
Additionsadditions_
 
bool recordModifications_
 
bool trackPath_
 
OUString componentName_
 
std::stack< Statestate_
 
std::vector< OUString > path_
 

Additional Inherited Members

- Static Public Member Functions inherited from salhelper::SimpleReferenceObject
static voidoperator new (std::size_t nSize)
 
static voidoperator 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
 

Detailed Description

Definition at line 50 of file xcuparser.hxx.

Member Enumeration Documentation

Enumerator
OPERATION_MODIFY 
OPERATION_REPLACE 
OPERATION_FUSE 
OPERATION_REMOVE 

Definition at line 69 of file xcuparser.hxx.

Constructor & Destructor Documentation

configmgr::XcuParser::XcuParser ( int  layer,
Data data,
Partial const *  partial,
Modifications broadcastModifications,
Additions additions 
)

Definition at line 52 of file xcuparser.cxx.

configmgr::XcuParser::~XcuParser ( )
overrideprivatevirtual

Definition at line 63 of file xcuparser.cxx.

Member Function Documentation

void configmgr::XcuParser::characters ( xmlreader::Span const &  span)
overrideprivatevirtual

Implements configmgr::Parser.

Definition at line 200 of file xcuparser.cxx.

References configmgr::ValueParser::characters(), and valueParser_.

void configmgr::XcuParser::endElement ( xmlreader::XmlReader const &  reader)
overrideprivatevirtual

Implements configmgr::Parser.

Definition at line 175 of file xcuparser.cxx.

References assert(), configmgr::ValueParser::endElement(), name, path_, state_, and valueParser_.

xmlreader::XmlReader::Text configmgr::XcuParser::getTextMode ( )
overrideprivatevirtual

Implements configmgr::Parser.

Definition at line 65 of file xcuparser.cxx.

References configmgr::ValueParser::getTextMode(), and valueParser_.

void configmgr::XcuParser::handleComponentData ( xmlreader::XmlReader reader)
private
void configmgr::XcuParser::handleGroupNode ( xmlreader::XmlReader reader,
rtl::Reference< Node > const &  group 
)
private
void configmgr::XcuParser::handleGroupProp ( xmlreader::XmlReader reader,
GroupNode group 
)
private
void configmgr::XcuParser::handleItem ( xmlreader::XmlReader reader)
private
void configmgr::XcuParser::handleLocalizedGroupProp ( xmlreader::XmlReader const &  reader,
LocalizedPropertyNode property,
OUString const &  name,
Type  type,
Operation  operation,
bool  finalized 
)
private
void configmgr::XcuParser::handleLocpropValue ( xmlreader::XmlReader reader,
LocalizedPropertyNode locprop 
)
private
void configmgr::XcuParser::handlePlainGroupProp ( xmlreader::XmlReader const &  reader,
GroupNode group,
NodeMap::iterator const &  propertyIndex,
OUString const &  name,
Type  type,
Operation  operation,
bool  finalized 
)
private
void configmgr::XcuParser::handlePropValue ( xmlreader::XmlReader reader,
PropertyNode prop 
)
private
void configmgr::XcuParser::handleSetNode ( xmlreader::XmlReader reader,
SetNode set 
)
private
void configmgr::XcuParser::handleUnknownGroupProp ( xmlreader::XmlReader const &  reader,
GroupNode const *  group,
OUString const &  name,
Type  type,
Operation  operation,
bool  finalized 
)
private
XcuParser::Operation configmgr::XcuParser::parseOperation ( xmlreader::Span const &  text)
staticprivate
void configmgr::XcuParser::recordModification ( bool  addition)
private
bool configmgr::XcuParser::startElement ( xmlreader::XmlReader reader,
int  nsId,
xmlreader::Span const &  name,
std::set< OUString > const *  existingDependencies 
)
overrideprivatevirtual

Member Data Documentation

Additions* configmgr::XcuParser::additions_
private

Definition at line 140 of file xcuparser.hxx.

Referenced by recordModification().

Modifications* configmgr::XcuParser::broadcastModifications_
private

Definition at line 139 of file xcuparser.hxx.

Referenced by recordModification().

OUString configmgr::XcuParser::componentName_
private

Definition at line 143 of file xcuparser.hxx.

Referenced by handleComponentData(), handleItem(), and handleSetNode().

Data& configmgr::XcuParser::data_
private

Definition at line 137 of file xcuparser.hxx.

Referenced by handleComponentData(), handleItem(), handleSetNode(), and recordModification().

Partial const* configmgr::XcuParser::partial_
private
std::vector<OUString> configmgr::XcuParser::path_
private
bool configmgr::XcuParser::recordModifications_
private

Definition at line 141 of file xcuparser.hxx.

Referenced by recordModification().

std::stack< State > configmgr::XcuParser::state_
private
bool configmgr::XcuParser::trackPath_
private
ValueParser configmgr::XcuParser::valueParser_
private

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