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

#include <dumperbase.hxx>

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

Public Member Functions

 Config (const char *pcEnvVar, const ::oox::core::FilterBase &rFilter)
 
 Config (const char *pcEnvVar, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const StorageRef &rxRootStrg, const OUString &rSysFileName)
 
virtual ~Config () override
 
 Config (Config const &)=default
 
 Config (Config &&)=default
 
Configoperator= (Config const &)=default
 
Configoperator= (Config &&)=default
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
const StorageRefgetRootStorage () const
 
const OUString & getSysFileName () const
 
const OUString & getStringOption (const String &rKey, const OUString &rDefault) const
 
bool getBoolOption (const String &rKey, bool bDefault) const
 
template<typename Type >
Type getIntOption (const String &rKey, Type nDefault) const
 
bool isDumperEnabled () const
 
bool isImportEnabled () const
 
template<typename ListType >
std::shared_ptr< ListType > createNameList (const String &rListName)
 
void eraseNameList (const String &rListName)
 
NameListRef getNameList (const String &rListName) const
 
template<typename Type >
OUString getName (const NameListWrapper &rListWrp, Type nKey) const
 Returns the name for the passed key from the passed name list. More...
 
template<typename Type >
bool hasName (const NameListWrapper &rListWrp, Type nKey) const
 Returns true, if the passed name list contains an entry for the passed key. More...
 
- 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
 

Protected Member Functions

 Config ()
 
void construct (const char *pcEnvVar, const ::oox::core::FilterBase &rFilter)
 
void construct (const char *pcEnvVar, const css::uno::Reference< css::uno::XComponentContext > &rxContext, const StorageRef &rxRootStrg, const OUString &rSysFileName)
 
virtual bool implIsValid () const override
 
const OUString * implGetOption (const OUString &rKey) const
 
- Protected Member Functions inherited from oox::dump::Base
 Base ()
 

Private Attributes

std::shared_ptr< SharedConfigDatamxCfgData
 

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 832 of file dumperbase.hxx.

Constructor & Destructor Documentation

oox::dump::Config::Config ( const char *  pcEnvVar,
const ::oox::core::FilterBase rFilter 
)
explicit
oox::dump::Config::Config ( const char *  pcEnvVar,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const StorageRef rxRootStrg,
const OUString &  rSysFileName 
)
explicit
Config::~Config ( )
overridevirtual

Definition at line 1400 of file dumperbase.cxx.

oox::dump::Config::Config ( Config const &  )
default
oox::dump::Config::Config ( Config &&  )
default
oox::dump::Config::Config ( )
inlineprotected

Definition at line 876 of file dumperbase.hxx.

Member Function Documentation

void oox::dump::Config::construct ( const char *  pcEnvVar,
const ::oox::core::FilterBase rFilter 
)
protected
void oox::dump::Config::construct ( const char *  pcEnvVar,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext,
const StorageRef rxRootStrg,
const OUString &  rSysFileName 
)
protected
template<typename ListType >
std::shared_ptr< ListType > Config::createNameList ( const String rListName)

Definition at line 906 of file dumperbase.hxx.

References mxCfgData.

Referenced by oox::dump::OlePropertyStreamObject::dumpSection().

void Config::eraseNameList ( const String rListName)

Definition at line 1439 of file dumperbase.cxx.

References mxCfgData.

Referenced by oox::dump::OlePropertyStreamObject::dumpSection().

bool Config::getBoolOption ( const String rKey,
bool  bDefault 
) const
const css::uno::Reference< css::uno::XComponentContext >& oox::dump::Config::getContext ( ) const
inline

Definition at line 851 of file dumperbase.hxx.

References mxCfgData.

template<typename Type >
Type Config::getIntOption ( const String rKey,
Type  nDefault 
) const
template<typename Type >
OUString Config::getName ( const NameListWrapper rListWrp,
Type  nKey 
) const
NameListRef Config::getNameList ( const String rListName) const
const StorageRef& oox::dump::Config::getRootStorage ( ) const
inline

Definition at line 852 of file dumperbase.hxx.

References mxCfgData.

Referenced by oox::dump::StorageObjectBase::construct().

const OUString & Config::getStringOption ( const String rKey,
const OUString &  rDefault 
) const
const OUString& oox::dump::Config::getSysFileName ( ) const
inline

Definition at line 853 of file dumperbase.hxx.

References mxCfgData.

Referenced by oox::dump::StorageObjectBase::construct().

template<typename Type >
bool Config::hasName ( const NameListWrapper rListWrp,
Type  nKey 
) const

Returns true, if the passed name list contains an entry for the passed key.

Definition at line 919 of file dumperbase.hxx.

References oox::dump::NameListWrapper::getNameList().

Referenced by oox::dump::VbaFormSiteObject::implDumpShortProperties().

const OUString * Config::implGetOption ( const OUString &  rKey) const
protected

Definition at line 1454 of file dumperbase.cxx.

References mxCfgData.

Referenced by getBoolOption(), getIntOption(), and getStringOption().

bool Config::implIsValid ( ) const
overrideprotectedvirtual

Implements oox::dump::Base.

Definition at line 1449 of file dumperbase.cxx.

References oox::dump::Base::isValid(), and mxCfgData.

bool Config::isDumperEnabled ( ) const

Definition at line 1429 of file dumperbase.cxx.

References getBoolOption().

bool Config::isImportEnabled ( ) const

Definition at line 1434 of file dumperbase.cxx.

References getBoolOption().

Referenced by oox::dump::DumperBase::isImportEnabled().

Config& oox::dump::Config::operator= ( Config const &  )
default
Config& oox::dump::Config::operator= ( Config &&  )
default

Member Data Documentation

std::shared_ptr< SharedConfigData > oox::dump::Config::mxCfgData
private

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