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)
 
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
}
 

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, std::u16string_view 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 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
 

Detailed Description

Definition at line 52 of file xcuparser.hxx.

Member Enumeration Documentation

◆ Operation

Enumerator
OPERATION_MODIFY 
OPERATION_REPLACE 
OPERATION_FUSE 
OPERATION_REMOVE 

Definition at line 71 of file xcuparser.hxx.

Constructor & Destructor Documentation

◆ XcuParser()

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

Definition at line 52 of file xcuparser.cxx.

◆ ~XcuParser()

configmgr::XcuParser::~XcuParser ( )
overrideprivatevirtual

Definition at line 63 of file xcuparser.cxx.

Member Function Documentation

◆ characters()

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

Implements configmgr::Parser.

Definition at line 200 of file xcuparser.cxx.

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

◆ endElement()

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

Implements configmgr::Parser.

Definition at line 175 of file xcuparser.cxx.

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

◆ getTextMode()

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

Implements configmgr::Parser.

Definition at line 65 of file xcuparser.cxx.

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

◆ handleComponentData()

void configmgr::XcuParser::handleComponentData ( xmlreader::XmlReader reader)
private

◆ handleGroupNode()

void configmgr::XcuParser::handleGroupNode ( xmlreader::XmlReader reader,
rtl::Reference< Node > const &  group 
)
private

◆ handleGroupProp()

void configmgr::XcuParser::handleGroupProp ( xmlreader::XmlReader reader,
GroupNode group 
)
private

◆ handleItem()

void configmgr::XcuParser::handleItem ( xmlreader::XmlReader reader)
private

◆ handleLocalizedGroupProp()

void configmgr::XcuParser::handleLocalizedGroupProp ( xmlreader::XmlReader const &  reader,
LocalizedPropertyNode property,
OUString const &  name,
Type  type,
Operation  operation,
bool  finalized 
)
private

◆ handleLocpropValue()

void configmgr::XcuParser::handleLocpropValue ( xmlreader::XmlReader reader,
LocalizedPropertyNode locprop 
)
private

◆ handlePlainGroupProp()

void configmgr::XcuParser::handlePlainGroupProp ( xmlreader::XmlReader const &  reader,
GroupNode group,
NodeMap::iterator const &  propertyIndex,
std::u16string_view  name,
Type  type,
Operation  operation,
bool  finalized 
)
private

◆ handlePropValue()

void configmgr::XcuParser::handlePropValue ( xmlreader::XmlReader reader,
PropertyNode prop 
)
private

◆ handleSetNode()

void configmgr::XcuParser::handleSetNode ( xmlreader::XmlReader reader,
SetNode set 
)
private

◆ handleUnknownGroupProp()

void configmgr::XcuParser::handleUnknownGroupProp ( xmlreader::XmlReader const &  reader,
GroupNode const *  group,
OUString const &  name,
Type  type,
Operation  operation,
bool  finalized 
)
private

◆ parseOperation()

XcuParser::Operation configmgr::XcuParser::parseOperation ( xmlreader::Span const &  text)
staticprivate

◆ recordModification()

void configmgr::XcuParser::recordModification ( bool  addition)
private

◆ startElement()

bool configmgr::XcuParser::startElement ( xmlreader::XmlReader reader,
int  nsId,
xmlreader::Span const &  name,
std::set< OUString > const *  existingDependencies 
)
overrideprivatevirtual

Member Data Documentation

◆ additions_

Additions* configmgr::XcuParser::additions_
private

Definition at line 142 of file xcuparser.hxx.

Referenced by recordModification().

◆ broadcastModifications_

Modifications* configmgr::XcuParser::broadcastModifications_
private

Definition at line 141 of file xcuparser.hxx.

Referenced by recordModification().

◆ componentName_

OUString configmgr::XcuParser::componentName_
private

Definition at line 145 of file xcuparser.hxx.

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

◆ data_

Data& configmgr::XcuParser::data_
private

Definition at line 139 of file xcuparser.hxx.

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

◆ partial_

Partial const* configmgr::XcuParser::partial_
private

◆ path_

std::vector<OUString> configmgr::XcuParser::path_
private

◆ recordModifications_

bool configmgr::XcuParser::recordModifications_
private

Definition at line 143 of file xcuparser.hxx.

Referenced by recordModification().

◆ state_

std::stack< State > configmgr::XcuParser::state_
private

◆ trackPath_

bool configmgr::XcuParser::trackPath_
private

◆ valueParser_

ValueParser configmgr::XcuParser::valueParser_
private

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