LibreOffice Module sc (master) 1
|
#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 |
Definition at line 47 of file pivotcachebuffer.hxx.
|
explicit |
Definition at line 131 of file pivotcachebuffer.cxx.
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().
OUString oox::xls::PivotCacheItem::getName | ( | ) | const |
Returns the string representation of the item.
Definition at line 223 of file pivotcachebuffer.cxx.
|
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().
|
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().
|
inline |
Returns true if the item is unused.
Definition at line 88 of file pivotcachebuffer.hxx.
References mbUnused.
void oox::xls::PivotCacheItem::readBool | ( | const AttributeList & | rAttribs | ) |
Reads the boolean value from a pivot cache item.
Definition at line 155 of file pivotcachebuffer.cxx.
References oox::AttributeList::getBool(), maValue, and mnType.
Referenced by oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
void oox::xls::PivotCacheItem::readBool | ( | SequenceInputStream & | rStrm | ) |
Reads the boolean value from a pivot cache item.
Definition at line 199 of file pivotcachebuffer.cxx.
void oox::xls::PivotCacheItem::readDate | ( | const AttributeList & | rAttribs | ) |
Reads the date/time value from a pivot cache item.
Definition at line 149 of file pivotcachebuffer.cxx.
References oox::AttributeList::getDateTime(), maValue, and mnType.
Referenced by oox::xls::PivotCacheItemList::importArray(), oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), oox::xls::PivotCacheField::importPCRecordItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
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.
void oox::xls::PivotCacheItem::readDouble | ( | SequenceInputStream & | rStrm | ) |
Reads the double value from a pivot cache item.
Definition at line 179 of file pivotcachebuffer.cxx.
References maValue, mnType, and rStrm.
Referenced by oox::xls::PivotCacheItemList::importArray(), oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), and oox::xls::PivotCacheField::importPCRecordItem().
void oox::xls::PivotCacheItem::readError | ( | const AttributeList & | rAttribs | ) |
Reads the error code value from a pivot cache item.
Definition at line 161 of file pivotcachebuffer.cxx.
References oox::AttributeList::getXString(), maValue, and mnType.
Referenced by oox::xls::PivotCacheItemList::importArray(), oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
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.
void oox::xls::PivotCacheItem::readIndex | ( | const AttributeList & | rAttribs | ) |
Reads the index of a shared item.
Definition at line 167 of file pivotcachebuffer.cxx.
References oox::AttributeList::getInteger(), maValue, and mnType.
Referenced by oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
void oox::xls::PivotCacheItem::readIndex | ( | SequenceInputStream & | rStrm | ) |
Reads the index of a shared item.
Definition at line 211 of file pivotcachebuffer.cxx.
void oox::xls::PivotCacheItem::readNumeric | ( | const AttributeList & | rAttribs | ) |
Reads the double value from a pivot cache item.
Definition at line 142 of file pivotcachebuffer.cxx.
References oox::AttributeList::getBool(), oox::AttributeList::getDouble(), maValue, mbUnused, and mnType.
Referenced by oox::xls::PivotCacheItemList::importItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
void oox::xls::PivotCacheItem::readString | ( | const AttributeList & | rAttribs | ) |
Reads the string value from a pivot cache item.
Definition at line 136 of file pivotcachebuffer.cxx.
References oox::AttributeList::getXString(), maValue, and mnType.
Referenced by oox::xls::PivotCacheItemList::importArray(), oox::xls::PivotCacheItemList::importItem(), oox::xls::PivotCacheRecordsFragment::importPCRecordItem(), oox::xls::PivotCacheField::importPCRecordItem(), and oox::xls::PivotCacheRecordsFragment::onCreateContext().
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.
|
private |
Definition at line 217 of file pivotcachebuffer.cxx.
|
friend |
Definition at line 91 of file pivotcachebuffer.hxx.
|
private |
Definition at line 94 of file pivotcachebuffer.hxx.
Referenced by getFormattedName(), getName(), getValue(), readBool(), readDate(), readDouble(), readError(), readIndex(), readNumeric(), readString(), and setStringValue().
|
private |
Value type (OOXML token identifier).
Definition at line 96 of file pivotcachebuffer.hxx.
Referenced by isUnused(), and readNumeric().
|
private |
Value of the item.
Definition at line 95 of file pivotcachebuffer.hxx.
Referenced by getFormattedName(), getName(), getType(), readBool(), readDate(), readDouble(), readError(), readIndex(), readNumeric(), readString(), and setStringValue().