LibreOffice Module svx (master)  1
Public Member Functions | Private Attributes | List of all members
SvxNumberInfoItem Class Referencefinal

This item is used as a transport medium for a number formatter. More...

#include <numinf.hxx>

Inheritance diagram for SvxNumberInfoItem:
[legend]
Collaboration diagram for SvxNumberInfoItem:
[legend]

Public Member Functions

 SvxNumberInfoItem (const sal_uInt16 nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const sal_uInt16 nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const OUString &rVal, const sal_uInt16 nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const double &rVal, const sal_uInt16 nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const double &rVal, const OUString &rValueStr, const sal_uInt16 nId)
 
 SvxNumberInfoItem (const SvxNumberInfoItem &)
 
virtual ~SvxNumberInfoItem () override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const override
 
virtual bool GetPresentation (SfxItemPresentation ePres, MapUnit eCoreMetric, MapUnit ePresMetric, OUString &rText, const IntlWrapper &) const override
 
SvNumberFormatterGetNumberFormatter () const
 
const OUString & GetValueString () const
 
double GetValueDouble () const
 
const std::vector< sal_uInt32 > & GetDelFormats () const
 
void SetDelFormats (std::vector< sal_uInt32 > const &)
 
SvxNumberValueType GetValueType () const
 
- Public Member Functions inherited from SfxPoolItem
void AddRef (sal_uInt32 n=1) const
 
virtual ~SfxPoolItem ()
 
void SetWhich (sal_uInt16 nId)
 
sal_uInt16 Which () const
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual void ScaleMetrics (long lMult, long lDiv)
 
virtual bool HasMetrics () const
 
virtual bool QueryValue (css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
 
virtual bool PutValue (const css::uno::Any &rVal, sal_uInt8 nMemberId)
 
std::unique_ptr< SfxPoolItemCloneSetWhich (sal_uInt16 nNewWhich) const
 
std::unique_ptr< T > CloneSetWhich (TypedWhichId< T > nId) const
 
sal_uInt32 GetRefCount () const
 
SfxItemKind GetKind () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 
virtual bool IsVoidItem () const
 

Private Attributes

SvNumberFormatter *const pFormatter
 
SvxNumberValueType const eValueType
 
OUString const aStringVal
 
double const nDoubleVal
 
std::vector< sal_uInt32 > mvDelFormats
 

Additional Inherited Members

- Protected Member Functions inherited from SfxPoolItem
 SfxPoolItem (sal_uInt16 nWhich=0)
 
 SfxPoolItem (const SfxPoolItem &rCopy)
 

Detailed Description

This item is used as a transport medium for a number formatter.

Definition at line 29 of file numinf.hxx.

Constructor & Destructor Documentation

SvxNumberInfoItem::SvxNumberInfoItem ( const sal_uInt16  nId)

Definition at line 31 of file numinf.cxx.

References Undefined.

Referenced by Clone().

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const sal_uInt16  nId 
)

Definition at line 39 of file numinf.cxx.

References Undefined.

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const OUString &  rVal,
const sal_uInt16  nId 
)

Definition at line 48 of file numinf.cxx.

References String.

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const double &  rVal,
const sal_uInt16  nId 
)

Definition at line 57 of file numinf.cxx.

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const double &  rVal,
const OUString &  rValueStr,
const sal_uInt16  nId 
)

Definition at line 66 of file numinf.cxx.

SvxNumberInfoItem::SvxNumberInfoItem ( const SvxNumberInfoItem rItem)

Definition at line 78 of file numinf.cxx.

SvxNumberInfoItem::~SvxNumberInfoItem ( )
overridevirtual

Definition at line 89 of file numinf.cxx.

Member Function Documentation

SfxPoolItem * SvxNumberInfoItem::Clone ( SfxItemPool pPool = nullptr) const
overridevirtual

Implements SfxPoolItem.

Definition at line 121 of file numinf.cxx.

References SvxNumberInfoItem().

const std::vector<sal_uInt32>& SvxNumberInfoItem::GetDelFormats ( ) const
inline

Definition at line 58 of file numinf.hxx.

SvNumberFormatter* SvxNumberInfoItem::GetNumberFormatter ( ) const
inline

Definition at line 54 of file numinf.hxx.

bool SvxNumberInfoItem::GetPresentation ( SfxItemPresentation  ePres,
MapUnit  eCoreMetric,
MapUnit  ePresMetric,
OUString &  rText,
const IntlWrapper  
) const
overridevirtual

Reimplemented from SfxPoolItem.

Definition at line 95 of file numinf.cxx.

double SvxNumberInfoItem::GetValueDouble ( ) const
inline

Definition at line 56 of file numinf.hxx.

const OUString& SvxNumberInfoItem::GetValueString ( ) const
inline

Definition at line 55 of file numinf.hxx.

SvxNumberValueType SvxNumberInfoItem::GetValueType ( ) const
inline

Definition at line 61 of file numinf.hxx.

bool SvxNumberInfoItem::operator== ( const SfxPoolItem rItem) const
overridevirtual

Implements SfxPoolItem.

Definition at line 107 of file numinf.cxx.

References aStringVal, eValueType, mvDelFormats, nDoubleVal, and pFormatter.

void SvxNumberInfoItem::SetDelFormats ( std::vector< sal_uInt32 > const &  aData)

Definition at line 127 of file numinf.cxx.

References mvDelFormats.

Member Data Documentation

OUString const SvxNumberInfoItem::aStringVal
private

Definition at line 66 of file numinf.hxx.

Referenced by operator==().

SvxNumberValueType const SvxNumberInfoItem::eValueType
private

Definition at line 65 of file numinf.hxx.

Referenced by operator==().

std::vector<sal_uInt32> SvxNumberInfoItem::mvDelFormats
private

Definition at line 69 of file numinf.hxx.

Referenced by operator==(), and SetDelFormats().

double const SvxNumberInfoItem::nDoubleVal
private

Definition at line 67 of file numinf.hxx.

Referenced by operator==().

SvNumberFormatter* const SvxNumberInfoItem::pFormatter
private

Definition at line 64 of file numinf.hxx.

Referenced by operator==().


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