LibreOffice Module sc (master) 1
|
#include <pivotcachebuffer.hxx>
Public Member Functions | |
PivotCacheField (const WorkbookHelper &rHelper, bool bIsDatabaseField) | |
void | importCacheField (const AttributeList &rAttribs) |
Imports pivot cache field settings from the cacheField element. More... | |
void | importSharedItems (const AttributeList &rAttribs) |
Imports shared items settings from the sharedItems element. More... | |
void | importSharedItem (sal_Int32 nElement, const AttributeList &rAttribs) |
Imports a shared item from the passed element. More... | |
void | importFieldGroup (const AttributeList &rAttribs) |
Imports grouping settings from the fieldGroup element. More... | |
void | importRangePr (const AttributeList &rAttribs) |
Imports numeric grouping settings from the rangePr element. More... | |
void | importDiscretePrItem (sal_Int32 nElement, const AttributeList &rAttribs) |
Imports an item of the mapping between group items and base items from the passed element. More... | |
void | importGroupItem (sal_Int32 nElement, const AttributeList &rAttribs) |
Imports a group item from the passed element. More... | |
void | importPCDField (SequenceInputStream &rStrm) |
Imports pivot cache field settings from the PCDFIELD record. More... | |
void | importPCDFSharedItems (SequenceInputStream &rStrm) |
Imports shared items settings from the PCDFSHAREDITEMS record. More... | |
void | importPCDFSharedItem (sal_Int32 nRecId, SequenceInputStream &rStrm) |
Imports one or more shared items from the passed record. More... | |
void | importPCDFieldGroup (SequenceInputStream &rStrm) |
Imports grouping settings from the PCDFIELDGROUP record. More... | |
void | importPCDFRangePr (SequenceInputStream &rStrm) |
Imports numeric grouping settings from the PCDFRANGEPR record. More... | |
void | importPCDFDiscretePrItem (sal_Int32 nRecId, SequenceInputStream &rStrm) |
Imports an item of the mapping between group items and base items from the passed record. More... | |
void | importPCDFGroupItem (sal_Int32 nRecId, SequenceInputStream &rStrm) |
Imports one or more group items from the passed record. More... | |
void | applyItemCaptions (const IdCaptionPairList &vCaptions) |
Apply user Captions to imported group data. More... | |
bool | isDatabaseField () const |
Returns true, if the field is based on source data, or false if it is grouped or calculated. More... | |
bool | hasSharedItems () const |
Returns true, if the field contains a list of shared items. More... | |
bool | hasGroupItems () const |
Returns true, if the field contains a list of grouping items. More... | |
bool | hasNumericGrouping () const |
Returns true, if the field has inplace numeric grouping settings. More... | |
bool | hasDateGrouping () const |
Returns true, if the field has inplace date grouping settings. More... | |
bool | hasParentGrouping () const |
Returns true, if the field has a parent group field that groups the items of this field. More... | |
const OUString & | getName () const |
Returns the name of the cache field. More... | |
sal_Int32 | getParentGroupField () const |
Returns the index of the parent group field that groups the items of this field. More... | |
sal_Int32 | getGroupBaseField () const |
Returns the index of the base field grouping is based on. More... | |
const OUString & | getFinalGroupName () const |
Returns the finalized group name of this field. More... | |
void | setFinalGroupName (const OUString &rFinalGroupName) |
Set the finalized group name of this field. More... | |
const PivotCacheItem * | getCacheItem (sal_Int32 nItemIdx) const |
Returns the shared or group item with the specified index. More... | |
void | getCacheItemNames (::std::vector< OUString > &orItemNames) const |
Returns the names of all shared or group items. More... | |
const PivotCacheItemList & | getCacheItems () const |
Returns shared or group items. More... | |
void | convertNumericGrouping (const css::uno::Reference< css::sheet::XDataPilotField > &rxDPField) const |
Creates inplace numeric grouping settings. More... | |
OUString | createDateGroupField (const css::uno::Reference< css::sheet::XDataPilotField > &rxBaseDPField) const |
Creates inplace date grouping settings or a new date group field. More... | |
OUString | createParentGroupField (const css::uno::Reference< css::sheet::XDataPilotField > &rxBaseDPField, const PivotCacheField &rBaseCacheField, PivotCacheGroupItemVector &orItemNames) const |
Creates a new grouped DataPilot field and returns its name. More... | |
void | writeSourceHeaderCell (const WorksheetHelper &rSheetHelper, sal_Int32 nCol, sal_Int32 nRow) const |
Writes the title of the field into the passed sheet at the passed address. More... | |
void | writeSourceDataCell (const WorksheetHelper &rSheetHelper, sal_Int32 nCol, sal_Int32 nRow, const PivotCacheItem &rItem) const |
Writes a source field item value into the passed sheet. More... | |
void | importPCRecordItem (SequenceInputStream &rStrm, const WorksheetHelper &rSheetHelper, sal_Int32 nCol, sal_Int32 nRow) const |
Reads an item from the PCRECORD record and writes it to the passed sheet. More... | |
Public Member Functions inherited from oox::xls::WorkbookHelper | |
WorkbookHelper (WorkbookGlobals &rBookGlob) | |
virtual | ~WorkbookHelper () |
WorkbookHelper (WorkbookHelper const &)=default | |
WorkbookHelper (WorkbookHelper &&)=default | |
WorkbookHelper & | operator= (WorkbookHelper const &)=delete |
WorkbookHelper & | operator= (WorkbookHelper &&)=delete |
::oox::core::FilterBase & | getBaseFilter () const |
Returns the base filter object (base class of all filters). More... | |
SegmentProgressBar & | getProgressBar () const |
Returns the filter progress bar. More... | |
sal_Int16 | getCurrentSheetIndex () const |
Returns the index of the current Calc sheet, if filter currently processes a sheet. More... | |
bool | isGeneratorKnownGood () const |
Returns true when reading a file generated by a known good generator. More... | |
bool | hasCalculatedFormulaCells () const |
Returns true if any formula cell is calculated. More... | |
void | setCalculatedFormulaCells () |
Set if any formula cell is calculated. More... | |
void | setVbaProjectStorage (const StorageRef &rxVbaPrjStrg) |
Sets the VBA project storage used to import VBA source code and forms. More... | |
void | setCurrentSheetIndex (SCTAB nSheet) |
Sets the index of the current Calc sheet, if filter currently processes a sheet. More... | |
void | finalizeWorkbookImport () |
Final conversion after importing the workbook. More... | |
void | useInternalChartDataTable (bool bInternal) |
ScDocument & | getScDocument () |
const ScDocument & | getScDocument () const |
ScDocumentImport & | getDocImport () |
const ScDocumentImport & | getDocImport () const |
ScEditEngineDefaulter & | getEditEngine () const |
const css::uno::Reference< css::sheet::XSpreadsheetDocument > & | getDocument () const |
Returns a reference to the source/target spreadsheet document model. More... | |
css::uno::Reference< css::sheet::XSpreadsheet > | getSheetFromDoc (sal_Int32 nSheet) const |
Returns a reference to the specified spreadsheet in the document model. More... | |
css::uno::Reference< css::sheet::XSpreadsheet > | getSheetFromDoc (const OUString &rSheet) const |
Returns a reference to the specified spreadsheet in the document model. More... | |
css::uno::Reference< css::table::XCellRange > | getCellRangeFromDoc (const ScRange &rRange) const |
Returns the XCellRange interface for the passed cell range address. More... | |
css::uno::Reference< css::container::XNameContainer > | getCellStyleFamily () const |
Returns the cell styles container from the Calc document. More... | |
css::uno::Reference< css::style::XStyle > | getStyleObject (const OUString &rStyleName, bool bPageStyle) const |
Returns the specified cell or page style from the Calc document. More... | |
RangeDataRet | createNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, bool bHidden) const |
Creates and returns a defined name on-the-fly in the Calc document. More... | |
RangeDataRet | createLocalNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab, bool bHidden) const |
Creates and returns a defined name on-the-fly in the sheet. More... | |
css::uno::Reference< css::sheet::XDatabaseRange > | createDatabaseRangeObject (OUString &orName, const ScRange &rRangeAddr) const |
Creates and returns a database range on-the-fly in the Calc document. More... | |
css::uno::Reference< css::sheet::XDatabaseRange > | createUnnamedDatabaseRangeObject (const ScRange &rRangeAddr) const |
Creates and returns an unnamed database range on-the-fly in the Calc document. More... | |
ScDBData * | findDatabaseRangeByIndex (sal_uInt16 nIndex) const |
Finds the (already existing) database range of the given formula token index. More... | |
css::uno::Reference< css::style::XStyle > | createStyleObject (OUString &orStyleName, bool bPageStyle) const |
Creates and returns a com.sun.star.style.Style object for cells or pages. More... | |
FormulaBuffer & | getFormulaBuffer () const |
WorkbookSettings & | getWorkbookSettings () const |
Returns the global workbook settings object. More... | |
ViewSettings & | getViewSettings () const |
Returns the workbook and sheet view settings object. More... | |
WorksheetBuffer & | getWorksheets () const |
Returns the worksheet buffer containing sheet names and properties. More... | |
ThemeBuffer & | getTheme () const |
Returns the office theme object read from the theme substorage. More... | |
StylesBuffer & | getStyles () const |
Returns all cell formatting objects read from the styles substream. More... | |
SharedStringsBuffer & | getSharedStrings () const |
Returns the shared strings read from the shared strings substream. More... | |
ExternalLinkBuffer & | getExternalLinks () const |
Returns the external links read from the external links substream. More... | |
DefinedNamesBuffer & | getDefinedNames () const |
Returns the defined names read from the workbook globals. More... | |
TableBuffer & | getTables () const |
Returns the tables collection (equivalent to Calc's database ranges). More... | |
ScenarioBuffer & | getScenarios () const |
Returns the scenarios collection. More... | |
ConnectionsBuffer & | getConnections () const |
Returns the collection of external data connections. More... | |
PivotCacheBuffer & | getPivotCaches () const |
Returns the collection of pivot caches. More... | |
PivotTableBuffer & | getPivotTables () const |
Returns the collection of pivot tables. More... | |
FormulaParser & | getFormulaParser () const |
Returns a shared import formula parser (import filter only!). More... | |
FormulaParser * | createFormulaParser () const |
Returns an unshared import formula parser (import filter only!). More... | |
UnitConverter & | getUnitConverter () const |
Returns the measurement unit converter. More... | |
AddressConverter & | getAddressConverter () const |
Returns the converter for string to cell address/range conversion. More... | |
oox::drawingml::chart::ChartConverter * | getChartConverter () const |
Returns the chart object converter. More... | |
PageSettingsConverter & | getPageSettingsConverter () const |
Returns the page and print settings converter. More... | |
::oox::core::XmlFilterBase & | getOoxFilter () const |
Returns the base OOXML/BIFF12 filter object. More... | |
bool | importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler) |
Imports a fragment using the passed fragment handler, which contains the full path to the fragment stream. More... | |
bool | importOoxFragment (const rtl::Reference< oox::core::FragmentHandler > &rxHandler, oox::core::FastParser &rParser) |
rtl_TextEncoding | getTextEncoding () const |
Returns the text encoding used to import/export byte strings. More... | |
Private Types | |
typedef ::std::vector< sal_Int32 > | IndexVector |
Private Member Functions | |
void | writeSharedItemToSourceDataCell (const WorksheetHelper &rSheetHelper, sal_Int32 nCol, sal_Int32 nRow, sal_Int32 nItemIdx) const |
Tries to write the value of a shared item to the passed sheet position. More... | |
Static Private Member Functions | |
static void | writeItemToSourceDataCell (const WorksheetHelper &rSheetHelper, sal_Int32 nCol, sal_Int32 nRow, const PivotCacheItem &rItem) |
Tries to write the passed value to the passed sheet position. More... | |
Private Attributes | |
PivotCacheItemList | maSharedItems |
PivotCacheItemList | maGroupItems |
All shared items of this field. More... | |
IndexVector | maDiscreteItems |
All group items of this field. More... | |
PCFieldModel | maFieldModel |
Mapping between group and base items. More... | |
PCSharedItemsModel | maSharedItemsModel |
Settings for this cache field. More... | |
PCFieldGroupModel | maFieldGroupModel |
Settings for shared items. More... | |
Additional Inherited Members | |
Public Types inherited from oox::xls::WorkbookHelper | |
typedef std::pair< ScRangeData *, bool > | RangeDataRet |
Static Public Member Functions inherited from oox::xls::WorkbookHelper | |
static WorkbookGlobalsRef | constructGlobals (ExcelFilter &rFilter) |
Definition at line 199 of file pivotcachebuffer.hxx.
|
private |
Definition at line 302 of file pivotcachebuffer.hxx.
|
explicit |
Definition at line 407 of file pivotcachebuffer.cxx.
References maFieldModel, and oox::xls::PCFieldModel::mbDatabaseField.
void oox::xls::PivotCacheField::applyItemCaptions | ( | const IdCaptionPairList & | vCaptions | ) |
Apply user Captions to imported group data.
Definition at line 578 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::applyItemCaptions(), hasGroupItems(), hasSharedItems(), maGroupItems, and maSharedItems.
Referenced by oox::xls::PivotTableField::finalizeParentGroupingImport().
void oox::xls::PivotCacheField::convertNumericGrouping | ( | const css::uno::Reference< css::sheet::XDataPilotField > & | rxDPField | ) | const |
Creates inplace numeric grouping settings.
Definition at line 601 of file pivotcachebuffer.cxx.
References hasGroupItems(), hasNumericGrouping(), oox::PropertySet::is(), maFieldGroupModel, oox::xls::PCFieldGroupModel::mbAutoEnd, oox::xls::PCFieldGroupModel::mbAutoStart, oox::xls::PCFieldGroupModel::mfEndValue, oox::xls::PCFieldGroupModel::mfInterval, oox::xls::PCFieldGroupModel::mfStartValue, and oox::PropertySet::setProperty().
OUString oox::xls::PivotCacheField::createDateGroupField | ( | const css::uno::Reference< css::sheet::XDataPilotField > & | rxBaseDPField | ) | const |
Creates inplace date grouping settings or a new date group field.
Definition at line 619 of file pivotcachebuffer.cxx.
References oox::xls::UnitConverter::calcSerialFromDateTime(), Exception, oox::xls::WorkbookHelper::getUnitConverter(), hasDateGrouping(), hasGroupItems(), oox::PropertySet::is(), oox::xls::PCFieldGroupModel::maEndDate, maFieldGroupModel, oox::xls::PCFieldGroupModel::maStartDate, oox::xls::PCFieldGroupModel::mbAutoEnd, oox::xls::PCFieldGroupModel::mbAutoStart, oox::xls::PCFieldGroupModel::mfInterval, and oox::xls::PCFieldGroupModel::mnGroupBy.
OUString oox::xls::PivotCacheField::createParentGroupField | ( | const css::uno::Reference< css::sheet::XDataPilotField > & | rxBaseDPField, |
const PivotCacheField & | rBaseCacheField, | ||
PivotCacheGroupItemVector & | orItemNames | ||
) | const |
Creates a new grouped DataPilot field and returns its name.
Definition at line 663 of file pivotcachebuffer.cxx.
References comphelper::containerToSequence(), Exception, oox::xls::PivotCacheItemList::getCacheItem(), getCacheItems(), oox::PropertySet::getProperty(), oox::ContainerHelper::getVectorElement(), oox::ContainerHelper::getVectorElementAccess(), hasGroupItems(), i, maDiscreteItems, maGroupItems, nCount, nIndex, pName, SAL_WARN_IF, oox::PropertySet::setProperty(), oox::xls::PivotCacheItemList::size(), and TOOLS_WARN_EXCEPTION.
Referenced by oox::xls::PivotTableField::finalizeParentGroupingImport().
const PivotCacheItem * oox::xls::PivotCacheField::getCacheItem | ( | sal_Int32 | nItemIdx | ) | const |
Returns the shared or group item with the specified index.
Definition at line 569 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::getCacheItem(), hasGroupItems(), hasSharedItems(), maGroupItems, and maSharedItems.
Referenced by oox::xls::PivotTableField::convertDataField().
void oox::xls::PivotCacheField::getCacheItemNames | ( | ::std::vector< OUString > & | orItemNames | ) | const |
Returns the names of all shared or group items.
Definition at line 586 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::getCacheItemNames(), hasGroupItems(), hasSharedItems(), maGroupItems, and maSharedItems.
const PivotCacheItemList & oox::xls::PivotCacheField::getCacheItems | ( | ) | const |
Returns shared or group items.
Definition at line 594 of file pivotcachebuffer.cxx.
References hasGroupItems(), maGroupItems, and maSharedItems.
Referenced by createParentGroupField().
|
inline |
Returns the finalized group name of this field.
Definition at line 258 of file pivotcachebuffer.hxx.
References maFieldGroupModel, and oox::xls::PCFieldGroupModel::msFinalGroupName.
|
inline |
Returns the index of the base field grouping is based on.
Definition at line 256 of file pivotcachebuffer.hxx.
References maFieldGroupModel, and oox::xls::PCFieldGroupModel::mnBaseField.
|
inline |
Returns the name of the cache field.
Definition at line 252 of file pivotcachebuffer.hxx.
References maFieldModel, and oox::xls::PCFieldModel::maName.
Referenced by oox::xls::PivotTableField::convertDataField(), and oox::xls::PivotTableField::convertRowColPageField().
|
inline |
Returns the index of the parent group field that groups the items of this field.
Definition at line 254 of file pivotcachebuffer.hxx.
References maFieldGroupModel, and oox::xls::PCFieldGroupModel::mnParentField.
Referenced by oox::xls::PivotTable::finalizeParentGroupingImport().
|
inline |
Returns true, if the field has inplace date grouping settings.
Definition at line 247 of file pivotcachebuffer.hxx.
References maFieldGroupModel, oox::xls::PCFieldGroupModel::mbDateGroup, and oox::xls::PCFieldGroupModel::mbRangeGroup.
Referenced by createDateGroupField().
|
inline |
Returns true, if the field contains a list of grouping items.
Definition at line 243 of file pivotcachebuffer.hxx.
References oox::xls::PivotCacheItemList::empty(), and maGroupItems.
Referenced by applyItemCaptions(), convertNumericGrouping(), createDateGroupField(), createParentGroupField(), getCacheItem(), getCacheItemNames(), and getCacheItems().
|
inline |
Returns true, if the field has inplace numeric grouping settings.
Definition at line 245 of file pivotcachebuffer.hxx.
References maFieldGroupModel, oox::xls::PCFieldGroupModel::mbDateGroup, and oox::xls::PCFieldGroupModel::mbRangeGroup.
Referenced by convertNumericGrouping().
|
inline |
Returns true, if the field has a parent group field that groups the items of this field.
Definition at line 249 of file pivotcachebuffer.hxx.
References maFieldGroupModel, and oox::xls::PCFieldGroupModel::mnParentField.
|
inline |
Returns true, if the field contains a list of shared items.
Definition at line 241 of file pivotcachebuffer.hxx.
References oox::xls::PivotCacheItemList::empty(), and maSharedItems.
Referenced by applyItemCaptions(), getCacheItem(), getCacheItemNames(), and importPCRecordItem().
void oox::xls::PivotCacheField::importCacheField | ( | const AttributeList & | rAttribs | ) |
Imports pivot cache field settings from the cacheField element.
Definition at line 415 of file pivotcachebuffer.cxx.
References oox::AttributeList::getBool(), oox::AttributeList::getInteger(), oox::AttributeList::getXString(), oox::xls::PCFieldModel::maCaption, maFieldModel, oox::xls::PCFieldModel::maFormula, oox::xls::PCFieldModel::maName, oox::xls::PCFieldModel::maPropertyName, oox::xls::PCFieldModel::mbDatabaseField, oox::xls::PCFieldModel::mbMemberPropField, oox::xls::PCFieldModel::mbServerField, oox::xls::PCFieldModel::mbUniqueList, oox::xls::PCFieldModel::mnHierarchy, oox::xls::PCFieldModel::mnLevel, oox::xls::PCFieldModel::mnMappingCount, oox::xls::PCFieldModel::mnNumFmtId, and oox::xls::PCFieldModel::mnSqlType.
Referenced by oox::xls::PivotCacheFieldContext::onStartElement().
void oox::xls::PivotCacheField::importDiscretePrItem | ( | sal_Int32 | nElement, |
const AttributeList & | rAttribs | ||
) |
Imports an item of the mapping between group items and base items from the passed element.
Definition at line 471 of file pivotcachebuffer.cxx.
References oox::AttributeList::getInteger(), maDiscreteItems, and x.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
void oox::xls::PivotCacheField::importFieldGroup | ( | const AttributeList & | rAttribs | ) |
Imports grouping settings from the fieldGroup element.
Definition at line 451 of file pivotcachebuffer.cxx.
References oox::AttributeList::getInteger(), maFieldGroupModel, oox::xls::PCFieldGroupModel::mnBaseField, and oox::xls::PCFieldGroupModel::mnParentField.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
void oox::xls::PivotCacheField::importGroupItem | ( | sal_Int32 | nElement, |
const AttributeList & | rAttribs | ||
) |
Imports a group item from the passed element.
Definition at line 478 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::importItem(), and maGroupItems.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
void oox::xls::PivotCacheField::importPCDFDiscretePrItem | ( | sal_Int32 | nRecId, |
SequenceInputStream & | rStrm | ||
) |
Imports an item of the mapping between group items and base items from the passed record.
Definition at line 557 of file pivotcachebuffer.cxx.
References oox::xls::BIFF12_ID_PCITEM_INDEX, maDiscreteItems, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCDFGroupItem | ( | sal_Int32 | nRecId, |
SequenceInputStream & | rStrm | ||
) |
Imports one or more group items from the passed record.
Definition at line 564 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::importItem(), maGroupItems, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCDField | ( | SequenceInputStream & | rStrm | ) |
Imports pivot cache field settings from the PCDFIELD record.
Definition at line 483 of file pivotcachebuffer.cxx.
References oox::getFlag(), oox::xls::PCFieldModel::maCaption, maFieldModel, oox::xls::PCFieldModel::maName, oox::xls::PCFieldModel::maPropertyName, oox::xls::PCFieldModel::mbDatabaseField, oox::xls::PCFieldModel::mbMemberPropField, oox::xls::PCFieldModel::mbServerField, oox::xls::PCFieldModel::mbUniqueList, oox::xls::PCFieldModel::mnHierarchy, oox::xls::PCFieldModel::mnLevel, oox::xls::PCFieldModel::mnMappingCount, oox::xls::PCFieldModel::mnNumFmtId, oox::xls::PCFieldModel::mnSqlType, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onStartRecord().
void oox::xls::PivotCacheField::importPCDFieldGroup | ( | SequenceInputStream & | rStrm | ) |
Imports grouping settings from the PCDFIELDGROUP record.
Definition at line 528 of file pivotcachebuffer.cxx.
References maFieldGroupModel, oox::xls::PCFieldGroupModel::mnBaseField, oox::xls::PCFieldGroupModel::mnParentField, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCDFRangePr | ( | SequenceInputStream & | rStrm | ) |
Imports numeric grouping settings from the PCDFRANGEPR record.
Definition at line 534 of file pivotcachebuffer.cxx.
References oox::xls::UnitConverter::calcDateTimeFromSerial(), oox::getFlag(), oox::xls::WorkbookHelper::getUnitConverter(), oox::xls::PCFieldGroupModel::maEndDate, maFieldGroupModel, oox::xls::PCFieldGroupModel::maStartDate, oox::xls::PCFieldGroupModel::mbAutoEnd, oox::xls::PCFieldGroupModel::mbAutoStart, oox::xls::PCFieldGroupModel::mbDateGroup, oox::xls::PCFieldGroupModel::mbRangeGroup, oox::xls::PCFieldGroupModel::mfEndValue, oox::xls::PCFieldGroupModel::mfInterval, oox::xls::PCFieldGroupModel::mfStartValue, oox::xls::PCFieldGroupModel::mnGroupBy, rStrm, and oox::xls::PCFieldGroupModel::setBiffGroupBy().
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCDFSharedItem | ( | sal_Int32 | nRecId, |
SequenceInputStream & | rStrm | ||
) |
Imports one or more shared items from the passed record.
Definition at line 523 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::importItem(), maSharedItems, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCDFSharedItems | ( | SequenceInputStream & | rStrm | ) |
Imports shared items settings from the PCDFSHAREDITEMS record.
Definition at line 508 of file pivotcachebuffer.cxx.
References oox::getFlag(), maSharedItemsModel, oox::xls::PCSharedItemsModel::mbHasBlank, oox::xls::PCSharedItemsModel::mbHasDate, oox::xls::PCSharedItemsModel::mbHasLongText, oox::xls::PCSharedItemsModel::mbHasMixed, oox::xls::PCSharedItemsModel::mbHasNonDate, oox::xls::PCSharedItemsModel::mbHasSemiMixed, oox::xls::PCSharedItemsModel::mbHasString, oox::xls::PCSharedItemsModel::mbIsInteger, oox::xls::PCSharedItemsModel::mbIsNumeric, and rStrm.
Referenced by oox::xls::PivotCacheFieldContext::onCreateRecordContext().
void oox::xls::PivotCacheField::importPCRecordItem | ( | SequenceInputStream & | rStrm, |
const WorksheetHelper & | rSheetHelper, | ||
sal_Int32 | nCol, | ||
sal_Int32 | nRow | ||
) | const |
Reads an item from the PCRECORD record and writes it to the passed sheet.
Definition at line 806 of file pivotcachebuffer.cxx.
References hasSharedItems(), maSharedItemsModel, oox::xls::PCSharedItemsModel::mbHasDate, oox::xls::PCSharedItemsModel::mbHasString, oox::xls::PCSharedItemsModel::mbIsNumeric, oox::xls::PivotCacheItem::readDate(), oox::xls::PivotCacheItem::readDouble(), oox::xls::PivotCacheItem::readString(), rStrm, writeItemToSourceDataCell(), and writeSharedItemToSourceDataCell().
void oox::xls::PivotCacheField::importRangePr | ( | const AttributeList & | rAttribs | ) |
Imports numeric grouping settings from the rangePr element.
Definition at line 457 of file pivotcachebuffer.cxx.
References oox::AttributeList::getBool(), oox::AttributeList::getDateTime(), oox::AttributeList::getDouble(), oox::AttributeList::getToken(), oox::xls::PCFieldGroupModel::maEndDate, maFieldGroupModel, oox::xls::PCFieldGroupModel::maStartDate, oox::xls::PCFieldGroupModel::mbAutoEnd, oox::xls::PCFieldGroupModel::mbAutoStart, oox::xls::PCFieldGroupModel::mbDateGroup, oox::xls::PCFieldGroupModel::mbRangeGroup, oox::xls::PCFieldGroupModel::mfEndValue, oox::xls::PCFieldGroupModel::mfInterval, oox::xls::PCFieldGroupModel::mfStartValue, and oox::xls::PCFieldGroupModel::mnGroupBy.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
void oox::xls::PivotCacheField::importSharedItem | ( | sal_Int32 | nElement, |
const AttributeList & | rAttribs | ||
) |
Imports a shared item from the passed element.
Definition at line 446 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::importItem(), and maSharedItems.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
void oox::xls::PivotCacheField::importSharedItems | ( | const AttributeList & | rAttribs | ) |
Imports shared items settings from the sharedItems element.
Definition at line 432 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::empty(), oox::AttributeList::getBool(), maSharedItems, maSharedItemsModel, oox::xls::PCSharedItemsModel::mbHasBlank, oox::xls::PCSharedItemsModel::mbHasDate, oox::xls::PCSharedItemsModel::mbHasLongText, oox::xls::PCSharedItemsModel::mbHasMixed, oox::xls::PCSharedItemsModel::mbHasNonDate, oox::xls::PCSharedItemsModel::mbHasSemiMixed, oox::xls::PCSharedItemsModel::mbHasString, oox::xls::PCSharedItemsModel::mbIsInteger, and oox::xls::PCSharedItemsModel::mbIsNumeric.
Referenced by oox::xls::PivotCacheFieldContext::onCreateContext().
|
inline |
Returns true, if the field is based on source data, or false if it is grouped or calculated.
Definition at line 238 of file pivotcachebuffer.hxx.
References maFieldModel, and oox::xls::PCFieldModel::mbDatabaseField.
|
inline |
Set the finalized group name of this field.
Definition at line 260 of file pivotcachebuffer.hxx.
References maFieldGroupModel, and oox::xls::PCFieldGroupModel::msFinalGroupName.
Referenced by oox::xls::PivotTableField::finalizeParentGroupingImport().
|
staticprivate |
Tries to write the passed value to the passed sheet position.
Definition at line 827 of file pivotcachebuffer.cxx.
References oox::xls::WorksheetHelper::getSheetData(), oox::xls::WorksheetHelper::getSheetIndex(), oox::xls::PivotCacheItem::getType(), oox::xls::PivotCacheItem::getValue(), oox::xls::CellModel::maCellAddr, oox::xls::SheetDataBuffer::setBooleanCell(), oox::xls::SheetDataBuffer::setDateTimeCell(), oox::xls::SheetDataBuffer::setErrorCell(), oox::xls::SheetDataBuffer::setStringCell(), and oox::xls::SheetDataBuffer::setValueCell().
Referenced by importPCRecordItem(), writeSharedItemToSourceDataCell(), and writeSourceDataCell().
|
private |
Tries to write the value of a shared item to the passed sheet position.
Definition at line 848 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::getCacheItem(), maSharedItems, and writeItemToSourceDataCell().
Referenced by importPCRecordItem(), and writeSourceDataCell().
void oox::xls::PivotCacheField::writeSourceDataCell | ( | const WorksheetHelper & | rSheetHelper, |
sal_Int32 | nCol, | ||
sal_Int32 | nRow, | ||
const PivotCacheItem & | rItem | ||
) | const |
Writes a source field item value into the passed sheet.
Definition at line 796 of file pivotcachebuffer.cxx.
References oox::xls::PivotCacheItemList::empty(), oox::xls::PivotCacheItem::getType(), oox::xls::PivotCacheItem::getValue(), maSharedItems, writeItemToSourceDataCell(), and writeSharedItemToSourceDataCell().
void oox::xls::PivotCacheField::writeSourceHeaderCell | ( | const WorksheetHelper & | rSheetHelper, |
sal_Int32 | nCol, | ||
sal_Int32 | nRow | ||
) | const |
Writes the title of the field into the passed sheet at the passed address.
Definition at line 789 of file pivotcachebuffer.cxx.
References oox::xls::WorksheetHelper::getSheetData(), oox::xls::WorksheetHelper::getSheetIndex(), oox::xls::CellModel::maCellAddr, maFieldModel, oox::xls::PCFieldModel::maName, and oox::xls::SheetDataBuffer::setStringCell().
|
private |
All group items of this field.
Definition at line 306 of file pivotcachebuffer.hxx.
Referenced by createParentGroupField(), importDiscretePrItem(), and importPCDFDiscretePrItem().
|
private |
Settings for shared items.
Definition at line 309 of file pivotcachebuffer.hxx.
Referenced by convertNumericGrouping(), createDateGroupField(), getFinalGroupName(), getGroupBaseField(), getParentGroupField(), hasDateGrouping(), hasNumericGrouping(), hasParentGrouping(), importFieldGroup(), importPCDFieldGroup(), importPCDFRangePr(), importRangePr(), and setFinalGroupName().
|
private |
Mapping between group and base items.
Definition at line 307 of file pivotcachebuffer.hxx.
Referenced by getName(), importCacheField(), importPCDField(), isDatabaseField(), PivotCacheField(), and writeSourceHeaderCell().
|
private |
All shared items of this field.
Definition at line 305 of file pivotcachebuffer.hxx.
Referenced by applyItemCaptions(), createParentGroupField(), getCacheItem(), getCacheItemNames(), getCacheItems(), hasGroupItems(), importGroupItem(), and importPCDFGroupItem().
|
private |
Definition at line 304 of file pivotcachebuffer.hxx.
Referenced by applyItemCaptions(), getCacheItem(), getCacheItemNames(), getCacheItems(), hasSharedItems(), importPCDFSharedItem(), importSharedItem(), importSharedItems(), writeSharedItemToSourceDataCell(), and writeSourceDataCell().
|
private |
Settings for this cache field.
Definition at line 308 of file pivotcachebuffer.hxx.
Referenced by importPCDFSharedItems(), importPCRecordItem(), and importSharedItems().