LibreOffice Module oox (master) 1
Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::dump::SharedConfigData Class Reference

#include <dumperbase.hxx>

Inheritance diagram for oox::dump::SharedConfigData:
[legend]
Collaboration diagram for oox::dump::SharedConfigData:
[legend]

Public Member Functions

 SharedConfigData (const OUString &rFileName, const css::uno::Reference< css::uno::XComponentContext > &rxContext, StorageRef xRootStrg, OUString aSysFileName)
 
virtual ~SharedConfigData () override
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
const StorageRefgetRootStorage () const
 
const OUString & getSysFileName () const
 
const OUString * getOption (const OUString &rKey) const
 
template<typename ListType >
std::shared_ptr< ListType > createNameList (const OUString &rListName)
 
void setNameList (const OUString &rListName, const NameListRef &rxList)
 
void eraseNameList (const OUString &rListName)
 
NameListRef getNameList (const OUString &rListName) const
 
- Public Member Functions inherited from oox::dump::Base
virtual ~Base ()
 
 Base (Base const &)=default
 
 Base (Base &&)=default
 
Baseoperator= (Base const &)=default
 
Baseoperator= (Base &&)=default
 
bool isValid () const
 
- Public Member Functions inherited from oox::dump::ConfigItemBase
virtual ~ConfigItemBase ()
 
void readConfigBlock (TextInputStream &rStrm)
 

Protected Member Functions

virtual bool implIsValid () const override
 
virtual void implProcessConfigItemStr (TextInputStream &rStrm, const OUString &rKey, const OUString &rData) override
 
- Protected Member Functions inherited from oox::dump::Base
 Base ()
 
virtual bool implIsValid () const =0
 
- Protected Member Functions inherited from oox::dump::ConfigItemBase
 ConfigItemBase ()
 
virtual void implProcessConfigItemStr (TextInputStream &rStrm, const OUString &rKey, const OUString &rData)
 
virtual void implProcessConfigItemInt (TextInputStream &rStrm, sal_Int64 nKey, const OUString &rData)
 
void readConfigBlockContents (TextInputStream &rStrm)
 

Private Types

typedef ::std::set< OUString > ConfigFileSet
 
typedef ::std::map< OUString, OUString > ConfigDataMap
 
typedef ::std::map< OUString, NameListRefNameListMap
 

Private Member Functions

bool readConfigFile (const OUString &rFileUrl)
 
template<typename ListType >
void readNameList (TextInputStream &rStrm, const OUString &rListName)
 
void createShortList (std::u16string_view rData)
 
void createUnitConverter (std::u16string_view rData)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > mxContext
 
StorageRef mxRootStrg
 
OUString maSysFileName
 
ConfigFileSet maConfigFiles
 
ConfigDataMap maConfigData
 
NameListMap maNameLists
 
OUString maConfigPath
 
bool mbLoaded
 

Additional Inherited Members

- Static Public Member Functions inherited from oox::dump::Base
static bool isValid (const std::shared_ptr< Base > &rxBase)
 

Detailed Description

Definition at line 758 of file dumperbase.hxx.

Member Typedef Documentation

◆ ConfigDataMap

typedef ::std::map< OUString, OUString > oox::dump::SharedConfigData::ConfigDataMap
private

Definition at line 797 of file dumperbase.hxx.

◆ ConfigFileSet

Definition at line 796 of file dumperbase.hxx.

◆ NameListMap

Definition at line 798 of file dumperbase.hxx.

Constructor & Destructor Documentation

◆ SharedConfigData()

oox::dump::SharedConfigData::SharedConfigData ( const OUString &  rFileName,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
StorageRef  xRootStrg,
OUString  aSysFileName 
)
explicit

◆ ~SharedConfigData()

oox::dump::SharedConfigData::~SharedConfigData ( )
overridevirtual

Definition at line 1281 of file dumperbase.cxx.

Member Function Documentation

◆ createNameList()

template<typename ListType >
std::shared_ptr< ListType > oox::dump::SharedConfigData::createNameList ( const OUString &  rListName)

Definition at line 812 of file dumperbase.hxx.

References setNameList().

◆ createShortList()

void oox::dump::SharedConfigData::createShortList ( std::u16string_view  rData)
private

◆ createUnitConverter()

void oox::dump::SharedConfigData::createUnitConverter ( std::u16string_view  rData)
private

◆ eraseNameList()

void oox::dump::SharedConfigData::eraseNameList ( const OUString &  rListName)

Definition at line 1297 of file dumperbase.cxx.

References maNameLists.

◆ getContext()

const css::uno::Reference< css::uno::XComponentContext > & oox::dump::SharedConfigData::getContext ( ) const
inline

Definition at line 769 of file dumperbase.hxx.

References mxContext.

◆ getNameList()

NameListRef oox::dump::SharedConfigData::getNameList ( const OUString &  rListName) const

Definition at line 1302 of file dumperbase.cxx.

References maNameLists.

Referenced by oox::dump::NameListBase::include().

◆ getOption()

const OUString * oox::dump::SharedConfigData::getOption ( const OUString &  rKey) const

Definition at line 1285 of file dumperbase.cxx.

References maConfigData.

◆ getRootStorage()

const StorageRef & oox::dump::SharedConfigData::getRootStorage ( ) const
inline

Definition at line 770 of file dumperbase.hxx.

References mxRootStrg.

◆ getSysFileName()

const OUString & oox::dump::SharedConfigData::getSysFileName ( ) const
inline

Definition at line 771 of file dumperbase.hxx.

References maSysFileName.

◆ implIsValid()

bool oox::dump::SharedConfigData::implIsValid ( ) const
overrideprotectedvirtual

Implements oox::dump::Base.

Definition at line 1311 of file dumperbase.cxx.

References maSysFileName, mbLoaded, mxContext, and mxRootStrg.

◆ implProcessConfigItemStr()

void oox::dump::SharedConfigData::implProcessConfigItemStr ( TextInputStream rStrm,
const OUString &  rKey,
const OUString &  rData 
)
overrideprotectedvirtual

◆ readConfigFile()

bool oox::dump::SharedConfigData::readConfigFile ( const OUString &  rFileUrl)
private

◆ readNameList()

template<typename ListType >
void oox::dump::SharedConfigData::readNameList ( TextInputStream rStrm,
const OUString &  rListName 
)
private

Definition at line 824 of file dumperbase.hxx.

References rStrm.

◆ setNameList()

void oox::dump::SharedConfigData::setNameList ( const OUString &  rListName,
const NameListRef rxList 
)

Definition at line 1291 of file dumperbase.cxx.

References maNameLists.

Referenced by createNameList().

Member Data Documentation

◆ maConfigData

ConfigDataMap oox::dump::SharedConfigData::maConfigData
private

Definition at line 804 of file dumperbase.hxx.

Referenced by getOption(), and implProcessConfigItemStr().

◆ maConfigFiles

ConfigFileSet oox::dump::SharedConfigData::maConfigFiles
private

Definition at line 803 of file dumperbase.hxx.

Referenced by readConfigFile().

◆ maConfigPath

OUString oox::dump::SharedConfigData::maConfigPath
private

Definition at line 806 of file dumperbase.hxx.

Referenced by implProcessConfigItemStr(), and SharedConfigData().

◆ maNameLists

NameListMap oox::dump::SharedConfigData::maNameLists
private

Definition at line 805 of file dumperbase.hxx.

Referenced by eraseNameList(), getNameList(), and setNameList().

◆ maSysFileName

OUString oox::dump::SharedConfigData::maSysFileName
private

Definition at line 802 of file dumperbase.hxx.

Referenced by getSysFileName(), and implIsValid().

◆ mbLoaded

bool oox::dump::SharedConfigData::mbLoaded
private

Definition at line 807 of file dumperbase.hxx.

Referenced by implIsValid(), and SharedConfigData().

◆ mxContext

css::uno::Reference< css::uno::XComponentContext > oox::dump::SharedConfigData::mxContext
private

Definition at line 800 of file dumperbase.hxx.

Referenced by getContext(), implIsValid(), and readConfigFile().

◆ mxRootStrg

StorageRef oox::dump::SharedConfigData::mxRootStrg
private

Definition at line 801 of file dumperbase.hxx.

Referenced by getRootStorage(), and implIsValid().


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