LibreOffice Module sc (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
oox::xls::PivotCacheItem Class Reference

#include <pivotcachebuffer.hxx>

Public Member Functions

 PivotCacheItem ()
 
void readString (const AttributeList &rAttribs)
 Reads the string value from a pivot cache item. More...
 
void readNumeric (const AttributeList &rAttribs)
 Reads the double value from a pivot cache item. More...
 
void readDate (const AttributeList &rAttribs)
 Reads the date/time value from a pivot cache item. More...
 
void readBool (const AttributeList &rAttribs)
 Reads the boolean value from a pivot cache item. More...
 
void readError (const AttributeList &rAttribs)
 Reads the error code value from a pivot cache item. More...
 
void readIndex (const AttributeList &rAttribs)
 Reads the index of a shared item. More...
 
void readString (SequenceInputStream &rStrm)
 Reads the string value from a pivot cache item. More...
 
void readDouble (SequenceInputStream &rStrm)
 Reads the double value from a pivot cache item. More...
 
void readDate (SequenceInputStream &rStrm)
 Reads the date/time value from a pivot cache item. More...
 
void readBool (SequenceInputStream &rStrm)
 Reads the boolean value from a pivot cache item. More...
 
void readError (SequenceInputStream &rStrm, const UnitConverter &rUnitConverter)
 Reads the error code value from a pivot cache item. More...
 
void readIndex (SequenceInputStream &rStrm)
 Reads the index of a shared item. More...
 
sal_Int32 getType () const
 Returns the type of the item. More...
 
const css::uno::Any & getValue () const
 Returns the value of the item. More...
 
OUString getName () const
 Returns the string representation of the item. More...
 
OUString getFormattedName (const ScDPSaveDimension &rSaveDim, ScDPObject *pObj, const DateTime &rNullDate) const
 Returns the string representation of the item, using the actual formatting. More...
 
bool isUnused () const
 Returns true if the item is unused. More...
 

Private Member Functions

void setStringValue (const OUString &sName)
 

Private Attributes

css::uno::Any maValue
 
sal_Int32 mnType
 Value of the item. More...
 
bool mbUnused
 Value type (OOXML token identifier). More...
 

Friends

class PivotCacheItemList
 

Detailed Description

Definition at line 47 of file pivotcachebuffer.hxx.

Constructor & Destructor Documentation

◆ PivotCacheItem()

oox::xls::PivotCacheItem::PivotCacheItem ( )
explicit

Definition at line 131 of file pivotcachebuffer.cxx.

Member Function Documentation

◆ getFormattedName()

OUString oox::xls::PivotCacheItem::getFormattedName ( const ScDPSaveDimension rSaveDim,
ScDPObject pObj,
const DateTime rNullDate 
) const

Returns the string representation of the item, using the actual formatting.

Definition at line 239 of file pivotcachebuffer.cxx.

References ScDPObject::GetFormattedString(), ScDPSaveDimension::GetName(), maValue, mnType, SAL_WARN, and DateTime::Sub().

Referenced by oox::xls::PivotTableField::convertRowColPageField().

◆ getName()

OUString oox::xls::PivotCacheItem::getName ( ) const

Returns the string representation of the item.

Definition at line 223 of file pivotcachebuffer.cxx.

References maValue, and mnType.

◆ getType()

sal_Int32 oox::xls::PivotCacheItem::getType ( ) const
inline

Returns the type of the item.

Definition at line 79 of file pivotcachebuffer.hxx.

References mnType.

Referenced by oox::xls::PivotCacheField::writeItemToSourceDataCell(), and oox::xls::PivotCacheField::writeSourceDataCell().

◆ getValue()

const css::uno::Any & oox::xls::PivotCacheItem::getValue ( ) const
inline

Returns the value of the item.

Definition at line 81 of file pivotcachebuffer.hxx.

References maValue.

Referenced by oox::xls::PivotCacheField::writeItemToSourceDataCell(), and oox::xls::PivotCacheField::writeSourceDataCell().

◆ isUnused()

bool oox::xls::PivotCacheItem::isUnused ( ) const
inline

Returns true if the item is unused.

Definition at line 88 of file pivotcachebuffer.hxx.

References mbUnused.

◆ readBool() [1/2]

void oox::xls::PivotCacheItem::readBool ( const AttributeList rAttribs)

◆ readBool() [2/2]

void oox::xls::PivotCacheItem::readBool ( SequenceInputStream rStrm)

Reads the boolean value from a pivot cache item.

Definition at line 199 of file pivotcachebuffer.cxx.

References maValue, mnType, and rStrm.

◆ readDate() [1/2]

void oox::xls::PivotCacheItem::readDate ( const AttributeList rAttribs)

◆ readDate() [2/2]

void oox::xls::PivotCacheItem::readDate ( SequenceInputStream rStrm)

Reads the date/time value from a pivot cache item.

Definition at line 185 of file pivotcachebuffer.cxx.

References maValue, mnType, and rStrm.

◆ readDouble()

void oox::xls::PivotCacheItem::readDouble ( SequenceInputStream rStrm)

◆ readError() [1/2]

void oox::xls::PivotCacheItem::readError ( const AttributeList rAttribs)

◆ readError() [2/2]

void oox::xls::PivotCacheItem::readError ( SequenceInputStream rStrm,
const UnitConverter rUnitConverter 
)

Reads the error code value from a pivot cache item.

Definition at line 205 of file pivotcachebuffer.cxx.

References oox::xls::UnitConverter::calcErrorString(), maValue, mnType, and rStrm.

◆ readIndex() [1/2]

void oox::xls::PivotCacheItem::readIndex ( const AttributeList rAttribs)

◆ readIndex() [2/2]

void oox::xls::PivotCacheItem::readIndex ( SequenceInputStream rStrm)

Reads the index of a shared item.

Definition at line 211 of file pivotcachebuffer.cxx.

References maValue, mnType, and rStrm.

◆ readNumeric()

void oox::xls::PivotCacheItem::readNumeric ( const AttributeList rAttribs)

◆ readString() [1/2]

void oox::xls::PivotCacheItem::readString ( const AttributeList rAttribs)

◆ readString() [2/2]

void oox::xls::PivotCacheItem::readString ( SequenceInputStream rStrm)

Reads the string value from a pivot cache item.

Definition at line 173 of file pivotcachebuffer.cxx.

References maValue, mnType, oox::xls::BiffHelper::readString(), and rStrm.

◆ setStringValue()

void oox::xls::PivotCacheItem::setStringValue ( const OUString &  sName)
private

Definition at line 217 of file pivotcachebuffer.cxx.

References maValue, and mnType.

Friends And Related Function Documentation

◆ PivotCacheItemList

friend class PivotCacheItemList
friend

Definition at line 91 of file pivotcachebuffer.hxx.

Member Data Documentation

◆ maValue

css::uno::Any oox::xls::PivotCacheItem::maValue
private

◆ mbUnused

bool oox::xls::PivotCacheItem::mbUnused
private

Value type (OOXML token identifier).

Definition at line 96 of file pivotcachebuffer.hxx.

Referenced by isUnused(), and readNumeric().

◆ mnType

sal_Int32 oox::xls::PivotCacheItem::mnType
private

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