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 TypedWhichId< SvxNumberInfoItem > nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const TypedWhichId< SvxNumberInfoItem > nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, OUString aVal, const TypedWhichId< SvxNumberInfoItem > nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const double &rVal, const TypedWhichId< SvxNumberInfoItem > nId)
 
 SvxNumberInfoItem (SvNumberFormatter *pNumFormatter, const double &rVal, OUString aValueStr, const TypedWhichId< SvxNumberInfoItem > nId)
 
 SvxNumberInfoItem (const SvxNumberInfoItem &)
 
virtual ~SvxNumberInfoItem () override
 
virtual bool operator== (const SfxPoolItem &) const override
 
virtual SvxNumberInfoItemClone (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 > &&)
 
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
 
T & StaticWhichCast (TypedWhichId< T > nId)
 
const T & StaticWhichCast (TypedWhichId< T > nId) const
 
T * DynamicWhichCast (TypedWhichId< T > nId)
 
const T * DynamicWhichCast (TypedWhichId< T > nId) const
 
virtual bool operator== (const SfxPoolItem &) const=0
 
bool operator!= (const SfxPoolItem &rItem) const
 
virtual bool operator< (const SfxPoolItem &) const
 
virtual bool IsSortable () const
 
virtual bool HasLookup () const
 
virtual lookup_iterator Lookup (lookup_iterator, lookup_iterator end) const
 
virtual bool GetPresentation (SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
 
virtual void ScaleMetrics (tools::Long lMult, tools::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)
 
virtual SfxPoolItemClone (SfxItemPool *pPool=nullptr) const=0
 
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 boost::property_tree::ptree dumpAsJSON () const
 
virtual bool IsVoidItem () const
 

Private Attributes

SvNumberFormatterpFormatter
 
SvxNumberValueType eValueType
 
OUString aStringVal
 
double nDoubleVal
 
std::vector< sal_uInt32 > mvDelFormats
 

Additional Inherited Members

- Public Types inherited from SfxPoolItem
typedef std::vector< SfxPoolItem * >::const_iterator lookup_iterator
 
- 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() [1/6]

SvxNumberInfoItem::SvxNumberInfoItem ( const TypedWhichId< SvxNumberInfoItem nId)

Definition at line 24 of file numinf.cxx.

References nId, and Undefined.

Referenced by Clone().

◆ SvxNumberInfoItem() [2/6]

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const TypedWhichId< SvxNumberInfoItem nId 
)

Definition at line 34 of file numinf.cxx.

References nId, and Undefined.

◆ SvxNumberInfoItem() [3/6]

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
OUString  aVal,
const TypedWhichId< SvxNumberInfoItem nId 
)

Definition at line 45 of file numinf.cxx.

References nId, and String.

◆ SvxNumberInfoItem() [4/6]

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

Definition at line 56 of file numinf.cxx.

References nId, and Number.

◆ SvxNumberInfoItem() [5/6]

SvxNumberInfoItem::SvxNumberInfoItem ( SvNumberFormatter pNumFormatter,
const double &  rVal,
OUString  aValueStr,
const TypedWhichId< SvxNumberInfoItem nId 
)

Definition at line 67 of file numinf.cxx.

References nId, and Number.

◆ SvxNumberInfoItem() [6/6]

SvxNumberInfoItem::SvxNumberInfoItem ( const SvxNumberInfoItem rItem)

Definition at line 79 of file numinf.cxx.

◆ ~SvxNumberInfoItem()

SvxNumberInfoItem::~SvxNumberInfoItem ( )
overridevirtual

Definition at line 90 of file numinf.cxx.

Member Function Documentation

◆ Clone()

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

Implements SfxPoolItem.

Definition at line 121 of file numinf.cxx.

References SvxNumberInfoItem().

◆ GetDelFormats()

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

Definition at line 58 of file numinf.hxx.

◆ GetNumberFormatter()

SvNumberFormatter * SvxNumberInfoItem::GetNumberFormatter ( ) const
inline

Definition at line 54 of file numinf.hxx.

◆ GetPresentation()

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.

◆ GetValueDouble()

double SvxNumberInfoItem::GetValueDouble ( ) const
inline

Definition at line 56 of file numinf.hxx.

◆ GetValueString()

const OUString & SvxNumberInfoItem::GetValueString ( ) const
inline

Definition at line 55 of file numinf.hxx.

◆ GetValueType()

SvxNumberValueType SvxNumberInfoItem::GetValueType ( ) const
inline

Definition at line 61 of file numinf.hxx.

◆ operator==()

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

Implements SfxPoolItem.

Definition at line 108 of file numinf.cxx.

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

◆ SetDelFormats()

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

Definition at line 126 of file numinf.cxx.

References aData, and mvDelFormats.

Member Data Documentation

◆ aStringVal

OUString SvxNumberInfoItem::aStringVal
private

Definition at line 66 of file numinf.hxx.

Referenced by operator==().

◆ eValueType

SvxNumberValueType SvxNumberInfoItem::eValueType
private

Definition at line 65 of file numinf.hxx.

Referenced by operator==().

◆ mvDelFormats

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

Definition at line 69 of file numinf.hxx.

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

◆ nDoubleVal

double SvxNumberInfoItem::nDoubleVal
private

Definition at line 67 of file numinf.hxx.

Referenced by operator==().

◆ pFormatter

SvNumberFormatter* 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: