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

#include <dumperbase.hxx>

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

Public Member Functions

 ConstList (const SharedConfigData &rCfgData)
 
void setQuoteNames (bool bQuoteNames)
 Enables or disables automatic quotation of returned names. More...
 
- Public Member Functions inherited from oox::dump::NameListBase
virtual ~NameListBase () override
 
void setName (sal_Int64 nKey, const String &rName)
 Sets a name for the specified key. More...
 
void includeList (const NameListRef &rxList)
 Include all names of the passed list. More...
 
template<typename Type >
bool hasName (Type nKey) const
 Returns true, if the map contains an entry for the passed key. More...
 
template<typename Type >
OUString getName (const Config &rCfg, Type nKey) const
 Returns the name for the passed key. More...
 
OUString getName (const Config &rCfg, double fValue) const
 Returns a display name for the passed double value. More...
 
const_iterator begin () const
 Returns a map iterator pointing to the first contained name. More...
 
const_iterator end () const
 Returns a map iterator pointing one past the last contained name. 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
 
- Public Member Functions inherited from oox::dump::ConfigItemBase
virtual ~ConfigItemBase ()
 
void readConfigBlock (TextInputStream &rStrm)
 

Protected Member Functions

virtual void implProcessConfigItemStr (TextInputStream &rStrm, const OUString &rKey, const OUString &rData) override
 
virtual void implSetName (sal_Int64 nKey, const OUString &rName) override
 Sets the name for the passed key. More...
 
virtual OUString implGetName (const Config &rCfg, sal_Int64 nKey) const override
 Returns the name for the passed key, or the default name, if key is not contained. More...
 
virtual OUString implGetNameDbl (const Config &rCfg, double fValue) const override
 Returns the name for the passed double value. More...
 
virtual void implIncludeList (const NameListBase &rList) override
 Inserts all names from the passed list. More...
 
- Protected Member Functions inherited from oox::dump::NameListBase
 NameListBase (const SharedConfigData &rCfgData)
 
virtual bool implIsValid () const override
 
virtual void implProcessConfigItemInt (TextInputStream &rStrm, sal_Int64 nKey, const OUString &rData) override
 
void insertRawName (sal_Int64 nKey, const OUString &rName)
 Inserts the passed name into the internal map. More...
 
const OUString * findRawName (sal_Int64 nKey) const
 Returns the name for the passed key, or 0, if nothing found. More...
 
- Protected Member Functions inherited from oox::dump::Base
 Base ()
 
- Protected Member Functions inherited from oox::dump::ConfigItemBase
 ConfigItemBase ()
 
void readConfigBlockContents (TextInputStream &rStrm)
 

Private Attributes

OUString maDefName
 
bool mbQuoteNames
 

Additional Inherited Members

- Public Types inherited from oox::dump::NameListBase
typedef ::std::map< sal_Int64, OUString > OUStringMap
 
typedef OUStringMap::const_iterator const_iterator
 
- Static Public Member Functions inherited from oox::dump::Base
static bool isValid (const std::shared_ptr< Base > &rxBase)
 

Detailed Description

Definition at line 585 of file dumperbase.hxx.

Constructor & Destructor Documentation

oox::dump::ConstList::ConstList ( const SharedConfigData rCfgData)
explicit

Definition at line 938 of file dumperbase.cxx.

Member Function Documentation

OUString oox::dump::ConstList::implGetName ( const Config rCfg,
sal_Int64  nKey 
) const
overrideprotectedvirtual

Returns the name for the passed key, or the default name, if key is not contained.

Implements oox::dump::NameListBase.

Definition at line 961 of file dumperbase.cxx.

References aName, oox::dump::StringHelper::enclose(), oox::dump::NameListBase::findRawName(), maDefName, mbQuoteNames, and oox::dump::OOX_DUMP_STRQUOTE.

OUString oox::dump::ConstList::implGetNameDbl ( const Config rCfg,
double  fValue 
) const
overrideprotectedvirtual

Returns the name for the passed double value.

Implements oox::dump::NameListBase.

Definition at line 974 of file dumperbase.cxx.

void oox::dump::ConstList::implIncludeList ( const NameListBase rList)
overrideprotectedvirtual

Inserts all names from the passed list.

Implements oox::dump::NameListBase.

Definition at line 979 of file dumperbase.cxx.

References maDefName, and mbQuoteNames.

void oox::dump::ConstList::implProcessConfigItemStr ( TextInputStream rStrm,
const OUString &  rKey,
const OUString &  rData 
)
overrideprotectedvirtual
void oox::dump::ConstList::implSetName ( sal_Int64  nKey,
const OUString &  rName 
)
overrideprotectedvirtual

Sets the name for the passed key.

Implements oox::dump::NameListBase.

Reimplemented in oox::dump::MultiList.

Definition at line 956 of file dumperbase.cxx.

References oox::dump::NameListBase::insertRawName().

void oox::dump::ConstList::setQuoteNames ( bool  bQuoteNames)
inline

Enables or disables automatic quotation of returned names.

Definition at line 591 of file dumperbase.hxx.

References mbQuoteNames.

Referenced by implProcessConfigItemStr().

Member Data Documentation

OUString oox::dump::ConstList::maDefName
private

Definition at line 609 of file dumperbase.hxx.

Referenced by implGetName(), implIncludeList(), and implProcessConfigItemStr().

bool oox::dump::ConstList::mbQuoteNames
private

Definition at line 610 of file dumperbase.hxx.

Referenced by implGetName(), implIncludeList(), and setQuoteNames().


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