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)
 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 48 of file pivotcachebuffer.hxx.

Constructor & Destructor Documentation

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

Definition at line 129 of file pivotcachebuffer.cxx.

Member Function Documentation

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 237 of file pivotcachebuffer.cxx.

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

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

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

Returns the string representation of the item.

Definition at line 221 of file pivotcachebuffer.cxx.

References maValue, and mnType.

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

Returns the type of the item.

Definition at line 80 of file pivotcachebuffer.hxx.

References mnType.

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

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

Returns the value of the item.

Definition at line 82 of file pivotcachebuffer.hxx.

References maValue.

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

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

Returns true if the item is unused.

Definition at line 89 of file pivotcachebuffer.hxx.

References mbUnused.

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

Reads the boolean value from a pivot cache item.

Definition at line 197 of file pivotcachebuffer.cxx.

References maValue, mnType, and oox::BinaryInputStream::readuInt8().

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

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

Definition at line 183 of file pivotcachebuffer.cxx.

References maValue, mnType, oox::BinaryInputStream::readuInt16(), and oox::BinaryInputStream::readuInt8().

void oox::xls::PivotCacheItem::readDouble ( SequenceInputStream rStrm)
void oox::xls::PivotCacheItem::readError ( const AttributeList rAttribs)
void oox::xls::PivotCacheItem::readError ( SequenceInputStream rStrm)

Reads the error code value from a pivot cache item.

Definition at line 203 of file pivotcachebuffer.cxx.

References mnType, and oox::BinaryInputStream::readuInt8().

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

Reads the index of a shared item.

Definition at line 209 of file pivotcachebuffer.cxx.

References maValue, mnType, and oox::BinaryInputStream::readInt32().

void oox::xls::PivotCacheItem::readNumeric ( const AttributeList rAttribs)
void oox::xls::PivotCacheItem::readString ( const AttributeList rAttribs)
void oox::xls::PivotCacheItem::readString ( SequenceInputStream rStrm)

Reads the string value from a pivot cache item.

Definition at line 171 of file pivotcachebuffer.cxx.

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

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

Definition at line 215 of file pivotcachebuffer.cxx.

References maValue, and mnType.

Friends And Related Function Documentation

friend class PivotCacheItemList
friend

Definition at line 92 of file pivotcachebuffer.hxx.

Member Data Documentation

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

Value type (OOXML token identifier).

Definition at line 97 of file pivotcachebuffer.hxx.

Referenced by isUnused(), and readNumeric().

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

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