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

#include <dumperbase.hxx>

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

Public Member Functions

 UnitConverter (const SharedConfigData &rCfgData)
 
void setUnitName (const String &rUnitName)
 
void setFactor (double fFactor)
 
- 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 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 converted value with appended unit name. More...
 
virtual OUString implGetNameDbl (const Config &rCfg, double fValue) const override
 Returns the converted value with appended unit name. More...
 
virtual void implIncludeList (const NameListBase &rList) override
 Empty implementation. More...
 
- Protected Member Functions inherited from oox::dump::NameListBase
 NameListBase (const SharedConfigData &rCfgData)
 
virtual bool implIsValid () const override
 
virtual void implProcessConfigItemStr (TextInputStream &rStrm, const OUString &rKey, const OUString &rData) 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 maUnitName
 
double mfFactor
 

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

Constructor & Destructor Documentation

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

Definition at line 1222 of file dumperbase.cxx.

Member Function Documentation

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

Returns the converted value with appended unit name.

Implements oox::dump::NameListBase.

Definition at line 1233 of file dumperbase.cxx.

References implGetNameDbl().

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

Returns the converted value with appended unit name.

Implements oox::dump::NameListBase.

Definition at line 1238 of file dumperbase.cxx.

References oox::dump::StringHelper::appendDec(), maUnitName, and mfFactor.

Referenced by implGetName().

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

Empty implementation.

Implements oox::dump::NameListBase.

Definition at line 1246 of file dumperbase.cxx.

void oox::dump::UnitConverter::implSetName ( sal_Int64  nKey,
const OUString &  rName 
)
overrideprotectedvirtual

Sets the name for the passed key.

Implements oox::dump::NameListBase.

Definition at line 1228 of file dumperbase.cxx.

void oox::dump::UnitConverter::setFactor ( double  fFactor)
inline

Definition at line 702 of file dumperbase.hxx.

References mfFactor.

void oox::dump::UnitConverter::setUnitName ( const String rUnitName)
inline

Definition at line 701 of file dumperbase.hxx.

References maUnitName.

Member Data Documentation

OUString oox::dump::UnitConverter::maUnitName
private

Definition at line 715 of file dumperbase.hxx.

Referenced by implGetNameDbl(), and setUnitName().

double oox::dump::UnitConverter::mfFactor
private

Definition at line 716 of file dumperbase.hxx.

Referenced by implGetNameDbl(), and setFactor().


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