LibreOffice Module sc (master) 1
|
#include <dpobject.hxx>
Public Member Functions | |
ScDPObject (ScDocument *pD) | |
ScDPObject (const ScDPObject &r) | |
~ScDPObject () | |
ScDPObject & | operator= (const ScDPObject &r) |
void | EnableGetPivotData (bool b) |
void | SetAllowMove (bool bSet) |
void | InvalidateData () |
void | Clear () |
void | ClearTableData () |
void | ReloadGroupTableData () |
void | Output (const ScAddress &rPos) |
ScRange | GetNewOutputRange (bool &rOverflow) |
ScRange | GetOutputRangeByType (sal_Int32 nType) |
ScRange | GetOutputRangeByType (sal_Int32 nType) const |
void | SetSaveData (const ScDPSaveData &rData) |
ScDPSaveData * | GetSaveData () const |
void | SetOutRange (const ScRange &rRange) |
const ScRange & | GetOutRange () const |
void | SetHeaderLayout (bool bUseGrid) |
bool | GetHeaderLayout () const |
void | SetSheetDesc (const ScSheetSourceDesc &rDesc) |
void | SetImportDesc (const ScImportSourceDesc &rDesc) |
void | SetServiceData (const ScDPServiceDesc &rDesc) |
void | WriteSourceDataTo (ScDPObject &rDest) const |
void | WriteTempDataTo (ScDPObject &rDest) const |
const ScSheetSourceDesc * | GetSheetDesc () const |
const ScImportSourceDesc * | GetImportSourceDesc () const |
const ScDPServiceDesc * | GetDPServiceDesc () const |
css::uno::Reference< css::sheet::XDimensionsSupplier > const & | GetSource () |
bool | IsSheetData () const |
bool | IsImportData () const |
bool | IsServiceData () const |
void | SetName (const OUString &rNew) |
const OUString & | GetName () const |
void | SetTag (const OUString &rNew) |
const OUString & | GetTag () const |
bool | IsDataDescriptionCell (const ScAddress &rPos) |
Data description cell displays the description of a data dimension if and only if there is only one data dimension. More... | |
bool | IsDimNameInUse (std::u16string_view rName) const |
OUString | GetDimName (tools::Long nDim, bool &rIsDataLayout, sal_Int32 *pFlags=nullptr) |
bool | IsDuplicated (tools::Long nDim) |
tools::Long | GetDimCount () |
void | GetHeaderPositionData (const ScAddress &rPos, css::sheet::DataPilotTableHeaderData &rData) |
tools::Long | GetHeaderDim (const ScAddress &rPos, css::sheet::DataPilotFieldOrientation &rOrient) |
bool | GetHeaderDrag (const ScAddress &rPos, bool bMouseLeft, bool bMouseTop, tools::Long nDragDim, tools::Rectangle &rPosRect, css::sheet::DataPilotFieldOrientation &rOrient, tools::Long &rDimPos) |
bool | IsFilterButton (const ScAddress &rPos) |
OUString | GetFormattedString (std::u16string_view rDimName, const double fValue) |
double | GetPivotData (const OUString &rDataFieldName, std::vector< css::sheet::DataPilotFieldFilter > &rFilters) |
bool | ParseFilters (OUString &rDataFieldName, std::vector< css::sheet::DataPilotFieldFilter > &rFilters, std::vector< sal_Int16 > &rFilterFuncs, std::u16string_view rFilterList) |
void | GetMemberResultNames (ScDPUniqueStringSet &rNames, tools::Long nDimension) |
void | ToggleDetails (const css::sheet::DataPilotTableHeaderData &rElemDesc, ScDPObject *pDestObj) |
void | FillOldParam (ScPivotParam &rParam) const |
void | FillLabelData (sal_Int32 nDim, ScDPLabelData &Labels) |
void | FillLabelData (ScPivotParam &rParam) |
void | GetFieldIdsNames (css::sheet::DataPilotFieldOrientation nOrient, std::vector< tools::Long > &rIndices, std::vector< OUString > &rNames) |
bool | GetHierarchiesNA (sal_Int32 nDim, css::uno::Reference< css::container::XNameAccess > &xHiers) |
void | GetHierarchies (sal_Int32 nDim, css::uno::Sequence< OUString > &rHiers) |
sal_Int32 | GetUsedHierarchy (sal_Int32 nDim) |
bool | GetMembersNA (sal_Int32 nDim, css::uno::Reference< css::sheet::XMembersAccess > &xMembers) |
bool | GetMembersNA (sal_Int32 nDim, sal_Int32 nHier, css::uno::Reference< css::sheet::XMembersAccess > &xMembers) |
bool | GetMemberNames (sal_Int32 nDim, css::uno::Sequence< OUString > &rNames) |
bool | GetMembers (sal_Int32 nDim, sal_Int32 nHier, ::std::vector< ScDPLabelData::Member > &rMembers) |
void | UpdateReference (UpdateRefMode eUpdateRefMode, const ScRange &r, SCCOL nDx, SCROW nDy, SCTAB nDz) |
bool | RefsEqual (const ScDPObject &r) const |
void | WriteRefsTo (ScDPObject &r) const |
void | GetPositionData (const ScAddress &rPos, css::sheet::DataPilotTablePositionData &rPosData) |
bool | GetDataFieldPositionData (const ScAddress &rPos, css::uno::Sequence< css::sheet::DataPilotFieldFilter > &rFilters) |
void | GetDrillDownData (const ScAddress &rPos, css::uno::Sequence< css::uno::Sequence< css::uno::Any > > &rTableData) |
void | RefreshAfterLoad () |
void | BuildAllDimensionMembers () |
bool | SyncAllDimensionMembers () |
Remove in the save data entries for members that don't exist anymore. More... | |
void | PutInteropGrabBag (std::map< OUString, css::uno::Any > &&val) |
std::pair< bool, css::uno::Any > | GetInteropGrabBagValue (const OUString &sName) const |
void | Dump () const |
void | DumpCache () const |
Static Public Member Functions | |
static bool | HasRegisteredSources () |
static std::vector< OUString > | GetRegisteredSources () |
static css::uno::Reference< css::sheet::XDimensionsSupplier > | CreateSource (const ScDPServiceDesc &rDesc) |
static void | ConvertOrientation (ScDPSaveData &rSaveData, const ScPivotFieldVector &rFields, css::sheet::DataPilotFieldOrientation nOrient, const css::uno::Reference< css::sheet::XDimensionsSupplier > &xSource, const ScDPLabelDataVector &rLabels, const ScPivotFieldVector *pRefColFields=nullptr, const ScPivotFieldVector *pRefRowFields=nullptr, const ScPivotFieldVector *pRefPageFields=nullptr) |
static bool | IsOrientationAllowed (css::sheet::DataPilotFieldOrientation nOrient, sal_Int32 nDimFlags) |
Private Member Functions | |
SAL_DLLPRIVATE ScDPTableData * | GetTableData () |
SAL_DLLPRIVATE void | CreateObjects () |
SAL_DLLPRIVATE void | CreateOutput () |
SAL_DLLPRIVATE void | ClearSource () |
SAL_DLLPRIVATE void | FillLabelDataForDimension (const css::uno::Reference< css::container::XIndexAccess > &xDims, sal_Int32 nDim, ScDPLabelData &rLabelData) |
Private Attributes | |
ScDocument * | pDoc |
std::unique_ptr< ScDPSaveData > | pSaveData |
OUString | aTableName |
OUString | aTableTag |
ScRange | aOutRange |
std::unique_ptr< ScSheetSourceDesc > | pSheetDesc |
std::unique_ptr< ScImportSourceDesc > | pImpDesc |
std::unique_ptr< ScDPServiceDesc > | pServDesc |
std::shared_ptr< ScDPTableData > | mpTableData |
css::uno::Reference< css::sheet::XDimensionsSupplier > | xSource |
std::unique_ptr< ScDPOutput > | pOutput |
std::map< OUString, css::uno::Any > | maInteropGrabBag |
sal_Int32 | nHeaderRows |
bool | mbHeaderLayout:1 |
bool | bAllowMove:1 |
bool | bSettingsChanged:1 |
bool | mbEnableGetPivotData:1 |
Definition at line 83 of file dpobject.hxx.
ScDPObject::ScDPObject | ( | ScDocument * | pD | ) |
Definition at line 310 of file dpobject.cxx.
ScDPObject::ScDPObject | ( | const ScDPObject & | r | ) |
Definition at line 320 of file dpobject.cxx.
References pImpDesc, pSaveData, pServDesc, and pSheetDesc.
ScDPObject::~ScDPObject | ( | ) |
Definition at line 343 of file dpobject.cxx.
References Clear().
void ScDPObject::BuildAllDimensionMembers | ( | ) |
Definition at line 960 of file dpobject.cxx.
References GetTableData(), pSaveData, and pServDesc.
Referenced by XclImpPivotTable::ApplyFieldInfo(), ScDBFunc::DataPilotInput(), ScDBFunc::DataPilotSort(), ScTabView::DoDPFieldPopup(), and lcl_FillDPFieldPopupData().
void ScDPObject::Clear | ( | ) |
Definition at line 790 of file dpobject.cxx.
References ClearTableData(), maInteropGrabBag, pImpDesc, pOutput, pSaveData, pServDesc, and pSheetDesc.
Referenced by operator=(), and ~ScDPObject().
|
private |
Definition at line 857 of file dpobject.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and xSource.
Referenced by ClearTableData(), and ReloadGroupTableData().
void ScDPObject::ClearTableData | ( | ) |
Definition at line 801 of file dpobject.cxx.
References ClearSource(), and mpTableData.
Referenced by Clear(), SetImportDesc(), SetServiceData(), and SetSheetDesc().
|
static |
Definition at line 2644 of file dpobject.cxx.
References ScDPSaveData::DuplicateDimension(), ScDataPilotConversion::FirstFunc(), ScDPSaveData::GetDataLayoutDimension(), ScDPSaveData::GetDimensionByName(), ScDPSaveDimension::GetName(), ScPivotField::getOriginalDim(), ScPivotField::maFieldRef, ScDPLabelData::maLayoutName, ScDPLabelData::maSubtotalName, nBit, ScPivotField::nCol, ScPivotField::nFuncMask, condformat::dialog::NONE, PIVOT_DATA_FIELD, ScDPSaveDimension::RemoveLayoutName(), ScDPSaveDimension::RemoveSubtotalName(), ScDPSaveDimension::SetFunction(), ScDPSaveDimension::SetLayoutName(), ScDPSaveDimension::SetOrientation(), ScDPSaveDimension::SetReferenceValue(), ScDPSaveDimension::SetShowEmpty(), ScDPSaveDimension::SetSubtotalName(), ScDPSaveDimension::SetSubTotals(), and xSource.
Referenced by ScPivotLayoutDialog::ApplySaveData().
|
private |
Definition at line 732 of file dpobject.cxx.
References bSettingsChanged, CreateSource(), GetTableData(), pData, pOutput, pSaveData, pServDesc, TOOLS_WARN_EXCEPTION, and xSource.
Referenced by CreateOutput(), FillLabelData(), FillOldParam(), GetFieldIdsNames(), GetPivotData(), GetSource(), ParseFilters(), and ToggleDetails().
|
private |
Definition at line 522 of file dpobject.cxx.
References aOutRange, ScRange::aStart, bAllowMove, CreateObjects(), IsSheetData(), mbHeaderLayout, nHeaderRows, pDoc, pOutput, pSaveData, ScAddress::Row(), ScAddress::SetRow(), and xSource.
Referenced by GetDataFieldPositionData(), GetDrillDownData(), GetHeaderDim(), GetHeaderDrag(), GetHeaderPositionData(), GetMemberResultNames(), GetNewOutputRange(), GetOutputRangeByType(), GetPositionData(), IsDataDescriptionCell(), IsFilterButton(), and Output().
|
static |
Definition at line 2825 of file dpobject.cxx.
References ScDPServiceDesc::aParName, ScDPServiceDesc::aParPass, ScDPServiceDesc::aParSource, ScDPServiceDesc::aParUser, aSeq, ScDPServiceDesc::aServiceName, comphelper::getComponentContext(), comphelper::getProcessServiceFactory(), and SCDPSOURCE_SERVICE.
Referenced by CreateObjects().
void ScDPObject::Dump | ( | ) | const |
Referenced by ScGridWindow::dumpColumnCellStorage().
void ScDPObject::DumpCache | ( | ) | const |
Referenced by ScGridWindow::dumpColumnCellStorage().
void ScDPObject::EnableGetPivotData | ( | bool | b | ) |
Definition at line 377 of file dpobject.cxx.
References mbEnableGetPivotData.
void ScDPObject::FillLabelData | ( | sal_Int32 | nDim, |
ScDPLabelData & | Labels | ||
) |
Definition at line 2448 of file dpobject.cxx.
References CreateObjects(), FillLabelDataForDimension(), nDimCount, and xSource.
Referenced by lcl_FillDPFieldPopupData(), ScPivotLayoutDialog::ScPivotLayoutDialog(), and ScPivotLayoutDialog::UpdateSourceRange().
void ScDPObject::FillLabelData | ( | ScPivotParam & | rParam | ) |
Definition at line 2463 of file dpobject.cxx.
References CreateObjects(), FillLabelDataForDimension(), ScPivotParam::maLabelArray, nDimCount, and xSource.
|
private |
Definition at line 2388 of file dpobject.cxx.
References ScUnoHelpFunctions::GetBoolProperty(), ScDPUtil::getDuplicateIndex(), GetHierarchies(), ScUnoHelpFunctions::GetLongProperty(), GetMembers(), ScDPUtil::getSourceDimensionName(), ScUnoHelpFunctions::GetStringProperty(), GetUsedHierarchy(), lcl_FillLabelData(), ScDPLabelData::maHiers, ScDPLabelData::maLayoutName, ScDPLabelData::maMembers, ScDPLabelData::maName, ScDPLabelData::maSubtotalName, ScDPLabelData::mbDataLayout, ScDPLabelData::mbIsValue, ScDPLabelData::mnCol, ScDPLabelData::mnDupCount, ScDPLabelData::mnFlags, ScDPLabelData::mnOriginalDim, SC_UNO_DP_FIELD_SUBTOTALNAME, SC_UNO_DP_FLAGS, SC_UNO_DP_ISDATALAYOUT, SC_UNO_DP_LAYOUTNAME, and SC_UNO_DP_ORIGINAL_POS.
Referenced by FillLabelData().
void ScDPObject::FillOldParam | ( | ScPivotParam & | rParam | ) | const |
Definition at line 2298 of file dpobject.cxx.
References aOutRange, ScRange::aStart, ScPivotParam::bDetectCategories, ScPivotParam::bIgnoreEmptyRows, ScPivotParam::bMakeTotalCol, ScPivotParam::bMakeTotalRow, ScAddress::Col(), CreateObjects(), ScUnoHelpFunctions::GetBoolProperty(), lcl_FillOldFields(), lcl_GetDataGetOrientation(), ScPivotParam::maColFields, ScPivotParam::maDataFields, ScPivotParam::maPageFields, ScPivotParam::maRowFields, ScPivotParam::nCol, ScPivotParam::nRow, ScPivotParam::nTab, ScAddress::Row(), SC_UNO_DP_COLGRAND, SC_UNO_DP_IGNOREEMPTY, SC_UNO_DP_REPEATEMPTY, SC_UNO_DP_ROWGRAND, ScAddress::Tab(), and xSource.
Referenced by ScPivotLayoutDialog::ScPivotLayoutDialog(), and ScPivotLayoutDialog::UpdateSourceRange().
bool ScDPObject::GetDataFieldPositionData | ( | const ScAddress & | rPos, |
css::uno::Sequence< css::sheet::DataPilotFieldFilter > & | rFilters | ||
) |
Definition at line 1150 of file dpobject.cxx.
References CreateOutput(), i, n, and pOutput.
Referenced by ScCellShell::ExecuteEdit(), GetDrillDownData(), ScDataPilotTableObj::insertDrillDownSheet(), and ScGridWindow::MouseButtonUp().
tools::Long ScDPObject::GetDimCount | ( | ) |
Definition at line 1285 of file dpobject.cxx.
References xSource.
Referenced by lcl_GetObjectIndex(), and ScDPShowDetailDlg::ScDPShowDetailDlg().
OUString ScDPObject::GetDimName | ( | tools::Long | nDim, |
bool & | rIsDataLayout, | ||
sal_Int32 * | pFlags = nullptr |
||
) |
Definition at line 1207 of file dpobject.cxx.
References aName, ScUnoHelpFunctions::GetBoolProperty(), ScUnoHelpFunctions::GetLongProperty(), GetTableData(), nDimCount, pData, SC_UNO_DP_FLAGS, SC_UNO_DP_ISDATALAYOUT, and xSource.
Referenced by ScGridWindow::AcceptPrivateDrop(), ScDBFunc::DataPilotInput(), ScDBFunc::DataPilotMove(), ScDBFunc::DataPilotSort(), ScDBFunc::DateGroupDataPilot(), ScGridWindow::DPTestMouse(), ScDPShowDetailDlg::GetDimensionName(), ScGridWindow::GetDPFieldOrientation(), ScDBFunc::GroupDataPilot(), ScDBFunc::HasSelectionForDateGroup(), ScDBFunc::HasSelectionForDrillDown(), ScDBFunc::HasSelectionForNumGroup(), lcl_FillDPFieldPopupData(), lcl_GetObjectIndex(), ScDBFunc::NumGroupDataPilot(), XclExpXmlPivotCaches::SavePivotCacheXml(), ScDPShowDetailDlg::ScDPShowDetailDlg(), ScDBFunc::SetDataPilotDetails(), ScDBFunc::UngroupDataPilot(), and ScGridWindow::UpdateDPFromFieldPopupMenu().
|
inline |
Definition at line 158 of file dpobject.hxx.
Referenced by ScDataPilotDescriptorBase::getPropertyValue(), and ScDataPilotDescriptorBase::setPropertyValue().
void ScDPObject::GetDrillDownData | ( | const ScAddress & | rPos, |
css::uno::Sequence< css::uno::Sequence< css::uno::Any > > & | rTableData | ||
) |
Definition at line 1168 of file dpobject.cxx.
References CreateOutput(), GetDataFieldPositionData(), and xSource.
Referenced by ScDataPilotTableObj::getDrillDownData().
void ScDPObject::GetFieldIdsNames | ( | css::sheet::DataPilotFieldOrientation | nOrient, |
std::vector< tools::Long > & | rIndices, | ||
std::vector< OUString > & | rNames | ||
) |
Definition at line 2485 of file dpobject.cxx.
References CreateObjects(), ScUnoHelpFunctions::GetEnumProperty(), nDimCount, SC_UNO_DP_ORIENTATION, and xSource.
Referenced by ScGridWindow::DPLaunchMultiFieldPopupMenu().
OUString ScDPObject::GetFormattedString | ( | std::u16string_view | rDimName, |
const double | fValue | ||
) |
Definition at line 1441 of file dpobject.cxx.
References ScDPTableData::GetColumnCount(), ScDPTableData::getDimensionName(), ScDPTableData::GetFormattedString(), GetTableData(), and ScDPItemData::SetValue().
Referenced by oox::xls::PivotCacheItem::getFormattedName(), and XclImpPTItem::GetItemName().
tools::Long ScDPObject::GetHeaderDim | ( | const ScAddress & | rPos, |
css::sheet::DataPilotFieldOrientation & | rOrient | ||
) |
Definition at line 1419 of file dpobject.cxx.
References CreateOutput(), and pOutput.
Referenced by ScDBFunc::DataPilotInput(), ScGridWindow::DoPushPivotButton(), ScGridWindow::DPLaunchFieldPopupMenu(), ScGridWindow::DPTestMultiFieldPopupArrow(), and ScGridWindow::GetDPFieldOrientation().
bool ScDPObject::GetHeaderDrag | ( | const ScAddress & | rPos, |
bool | bMouseLeft, | ||
bool | bMouseTop, | ||
tools::Long | nDragDim, | ||
tools::Rectangle & | rPosRect, | ||
css::sheet::DataPilotFieldOrientation & | rOrient, | ||
tools::Long & | rDimPos | ||
) |
Definition at line 1426 of file dpobject.cxx.
References CreateOutput(), and pOutput.
Referenced by ScGridWindow::DPTestMouse().
|
inline |
Definition at line 147 of file dpobject.hxx.
Referenced by XclImpPivotTable::ApplyMergeFlags(), XclPTViewEx9Info::Init(), and XclExpXmlPivotTables::SavePivotTableXml().
void ScDPObject::GetHeaderPositionData | ( | const ScAddress & | rPos, |
css::sheet::DataPilotTableHeaderData & | rData | ||
) |
Definition at line 1303 of file dpobject.cxx.
References COLUMN_HEADER, CreateOutput(), pOutput, and ROW_HEADER.
Referenced by ScGridWindow::AcceptPrivateDrop(), ScDBFunc::DataPilotInput(), ScDBFunc::DataPilotMove(), ScGridWindow::DoPushPivotToggle(), ScDBFunc::GetSelectedMemberList(), and ScGridWindow::MouseButtonUp().
void ScDPObject::GetHierarchies | ( | sal_Int32 | nDim, |
css::uno::Sequence< OUString > & | rHiers | ||
) |
Definition at line 2530 of file dpobject.cxx.
References GetHierarchiesNA().
Referenced by FillLabelDataForDimension().
bool ScDPObject::GetHierarchiesNA | ( | sal_Int32 | nDim, |
css::uno::Reference< css::container::XNameAccess > & | xHiers | ||
) |
Definition at line 2513 of file dpobject.cxx.
References GetSource().
Referenced by GetHierarchies().
|
inline |
|
inline |
Definition at line 269 of file dpobject.hxx.
References sName.
Referenced by XclExpXmlPivotTables::SavePivotTableXml().
bool ScDPObject::GetMemberNames | ( | sal_Int32 | nDim, |
css::uno::Sequence< OUString > & | rNames | ||
) |
Definition at line 997 of file dpobject.cxx.
References GetMembers(), GetUsedHierarchy(), i, maName, and n.
Referenced by ScDBFunc::DataPilotMove().
void ScDPObject::GetMemberResultNames | ( | ScDPUniqueStringSet & | rNames, |
tools::Long | nDimension | ||
) |
Definition at line 1434 of file dpobject.cxx.
References CreateOutput(), and pOutput.
Referenced by ScDBFunc::SetDataPilotDetails(), and ScDBFunc::UngroupDataPilot().
bool ScDPObject::GetMembers | ( | sal_Int32 | nDim, |
sal_Int32 | nHier, | ||
::std::vector< ScDPLabelData::Member > & | rMembers | ||
) |
Definition at line 1012 of file dpobject.cxx.
References ScUnoHelpFunctions::GetBoolProperty(), GetMembersNA(), ScUnoHelpFunctions::GetStringProperty(), i, ScDPLabelData::Member::maLayoutName, ScDPLabelData::Member::maName, ScDPLabelData::Member::mbShowDetails, ScDPLabelData::Member::mbVisible, nCount, SC_UNO_DP_ISVISIBLE, SC_UNO_DP_LAYOUTNAME, SC_UNO_DP_SHOWDETAILS, and TOOLS_WARN_EXCEPTION.
Referenced by FillLabelDataForDimension(), GetMemberNames(), and XclExpXmlPivotTables::SavePivotTableXml().
bool ScDPObject::GetMembersNA | ( | sal_Int32 | nDim, |
css::uno::Reference< css::sheet::XMembersAccess > & | xMembers | ||
) |
Referenced by GetMembers().
bool ScDPObject::GetMembersNA | ( | sal_Int32 | nDim, |
sal_Int32 | nHier, | ||
css::uno::Reference< css::sheet::XMembersAccess > & | xMembers | ||
) |
|
inline |
Definition at line 167 of file dpobject.hxx.
Referenced by ScDocShell::AfterXMLLoading(), ScDataPilotFieldObj::createNameGroup(), ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), ScDataPilotTablesObj::getElementNames(), ScDataPilotTableObj::getName(), ScDataPilotTablesObj::GetObjectByIndex_Impl(), ScDataPilotTablesObj::hasByName(), lcl_GetDPObject(), ScDBDocFunc::RemovePivotTable(), XclExpXmlPivotTables::SavePivotTableXml(), ScDBDocFunc::UpdatePivotTable(), ScDPCollection::WriteRefsTo(), and XclExpPivotTable::XclExpPivotTable().
ScRange ScDPObject::GetNewOutputRange | ( | bool & | rOverflow | ) |
Definition at line 874 of file dpobject.cxx.
References aOutRange, ScRange::aStart, CreateOutput(), and pOutput.
Referenced by ScDBDocFunc::CreatePivotTable().
ScRange ScDPObject::GetOutputRangeByType | ( | sal_Int32 | nType | ) |
Definition at line 911 of file dpobject.cxx.
References aOutRange, ScRange::aStart, CreateOutput(), nType, and pOutput.
Referenced by XclExpXmlPivotTableManager::Initialize(), and XclExpXmlPivotTables::SavePivotTableXml().
ScRange ScDPObject::GetOutputRangeByType | ( | sal_Int32 | nType | ) | const |
Definition at line 921 of file dpobject.cxx.
References ScAddress::INITIALIZE_INVALID, nType, and pOutput.
const ScRange & ScDPObject::GetOutRange | ( | ) | const |
Definition at line 410 of file dpobject.cxx.
References aOutRange.
Referenced by ScGridWindow::AcceptPrivateDrop(), ScPivotLayoutDialog::ApplyChanges(), ScDPCollection::CopyToTab(), ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), ScTabViewShell::ExecuteTable(), ScDPCollection::FreeTable(), ScDataPilotTablesObj::getCount(), ScDataPilotTablesObj::getElementNames(), ScDataPilotTablesObj::GetObjectByIndex_Impl(), ScDataPilotTableObj::getOutputRange(), ScDataPilotTablesObj::hasByName(), XclExpXmlPivotTableManager::Initialize(), lcl_GetDPObject(), XclImpPivotTable::MaybeRefresh(), ScDBDocFunc::RemovePivotTable(), XclExpXmlPivotTables::SavePivotTableXml(), ScDBDocFunc::UpdatePivotTable(), and XclExpPivotTable::XclExpPivotTable().
double ScDPObject::GetPivotData | ( | const OUString & | rDataFieldName, |
std::vector< css::sheet::DataPilotFieldFilter > & | rFilters | ||
) |
Definition at line 1370 of file dpobject.cxx.
References CreateObjects(), ScGlobal::getCharClass(), i, o3tl::make_unsigned(), mbEnableGetPivotData, n, pSaveData, and xSource.
Referenced by ScInterpreter::ScGetPivotData().
void ScDPObject::GetPositionData | ( | const ScAddress & | rPos, |
css::sheet::DataPilotTablePositionData & | rPosData | ||
) |
Definition at line 1144 of file dpobject.cxx.
References CreateOutput(), and pOutput.
Referenced by ScDataPilotTableObj::getPositionData().
|
static |
Definition at line 2787 of file dpobject.cxx.
References comphelper::getProcessServiceFactory(), SCDPSOURCE_SERVICE, and sName.
|
inline |
Definition at line 141 of file dpobject.hxx.
Referenced by ScGridWindow::AcceptPrivateDrop(), XclExpPivotCache::AddGroupFields(), XclImpPivotTable::ApplyFieldInfo(), oox::xls::PivotTableField::convertPageField(), oox::xls::PivotTableField::convertRowColPageField(), ScDataPilotFieldObj::createDateGroup(), ScDataPilotFieldObj::createNameGroup(), XclExpPivotTableManager::CreatePivotCache(), ScDBDocFunc::CreatePivotTable(), ScDBFunc::DataPilotInput(), ScDBFunc::DataPilotMove(), ScDBFunc::DataPilotSort(), ScDBDocFunc::DataPilotUpdate(), ScDBFunc::DateGroupDataPilot(), ScGridWindow::DoPushPivotToggle(), ScGridWindow::DPTestMouse(), oox::xls::PivotTable::finalizeFieldsImport(), oox::xls::PivotTable::finalizeImport(), ScDataPilotFieldObj::getGroupInfo(), ScDataPilotDescriptorBase::getPropertyValue(), ScDPCollection::GetReferenceGroups(), ScDBFunc::GroupDataPilot(), ScDataPilotFieldObj::hasGroupInfo(), ScDBFunc::HasSelectionForDateGroup(), ScDBFunc::HasSelectionForDrillDown(), ScDBFunc::HasSelectionForNumGroup(), XclPTViewEx9Info::Init(), XclExpPCField::InsertNumDateGroupItems(), lcl_FillDPFieldPopupData(), ScDBFunc::MakePivotTable(), ScGridWindow::MouseButtonUp(), ScDBFunc::NumGroupDataPilot(), ScDBDocFunc::RefreshPivotTableGroups(), ScDPCollection::ReloadGroupsInCache(), XclExpXmlPivotCaches::SavePivotCacheXml(), XclExpXmlPivotTables::SavePivotTableXml(), ScDPShowDetailDlg::ScDPShowDetailDlg(), ScPivotLayoutDialog::ScPivotLayoutDialog(), ScDBFunc::SetDataPilotDetails(), ScDataPilotFieldObj::setGroupInfo(), ScDataPilotFieldObj::setOrientation(), ScDataPilotDescriptorBase::setPropertyValue(), ScDBFunc::UngroupDataPilot(), ScGridWindow::UpdateDPFromFieldPopupMenu(), XclExpPCField::XclExpPCField(), and XclExpPivotTable::XclExpPivotTable().
|
inline |
Definition at line 156 of file dpobject.hxx.
Referenced by ScGridWindow::DoPushPivotButton(), ScPivotShell::Execute(), ScTabViewShell::ExecuteTable(), ScDPCollection::GetAllTables(), ScDataPilotFilterDescriptor::GetData(), ScDPCollection::GetReferenceGroups(), ScDataPilotDescriptorBase::getSourceRange(), XclExpPivotCache::HasEqualDataSource(), XclExpPCField::InsertNumDateGroupItems(), ScDataPilotFilterDescriptor::PutData(), ScDocShell::RefreshPivotTables(), ScDPCollection::ReloadCache(), ScDPCollection::ReloadGroupsInCache(), ScDataPilotDescriptorBase::setSourceRange(), ScPivotLayoutDialog::SetupSource(), ScPivotLayoutDialog::UpdateSourceRange(), and XclExpPivotCache::XclExpPivotCache().
uno::Reference< sheet::XDimensionsSupplier > const & ScDPObject::GetSource | ( | ) |
Definition at line 516 of file dpobject.cxx.
References CreateObjects(), and xSource.
Referenced by ScPivotLayoutDialog::ApplySaveData(), sc::PivotTableDataProvider::collectPivotTableData(), ScGridWindow::DPLaunchMultiFieldPopupMenu(), ScDataPilotFieldsObj::getCount(), GetHierarchiesNA(), GetUsedHierarchy(), lcl_FillDPFieldPopupData(), lcl_GetFieldDataByName(), and ScDBFunc::ShowDataPilotSourceData().
|
private |
Definition at line 678 of file dpobject.cxx.
References ScDPCache::AddReference(), mbEnableGetPivotData, mpTableData, pData, pDoc, pImpDesc, pSaveData, pSheetDesc, and ScDPDimensionSaveData::WriteToData().
Referenced by BuildAllDimensionMembers(), CreateObjects(), GetDimName(), GetFormattedString(), and SyncAllDimensionMembers().
|
inline |
Definition at line 169 of file dpobject.hxx.
Referenced by ScDataPilotTableObj::getTag().
sal_Int32 ScDPObject::GetUsedHierarchy | ( | sal_Int32 | nDim | ) |
Definition at line 2539 of file dpobject.cxx.
References ScUnoHelpFunctions::GetLongProperty(), GetSource(), and SC_UNO_DP_USEDHIERARCHY.
Referenced by FillLabelDataForDimension(), and GetMemberNames().
|
static |
Definition at line 2770 of file dpobject.cxx.
References comphelper::getProcessServiceFactory(), and SCDPSOURCE_SERVICE.
Referenced by ScCellShell::ExecuteDataPilotDialog().
void ScDPObject::InvalidateData | ( | ) |
Definition at line 785 of file dpobject.cxx.
References bSettingsChanged.
Referenced by ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), SetSaveData(), ToggleDetails(), and ScDBDocFunc::UpdatePivotTable().
bool ScDPObject::IsDataDescriptionCell | ( | const ScAddress & | rPos | ) |
Data description cell displays the description of a data dimension if and only if there is only one data dimension.
It's usually located at the upper-left corner of the table output.
Definition at line 500 of file dpobject.cxx.
References ScRange::aStart, CreateOutput(), pOutput, pSaveData, and TABLE.
Referenced by ScDBFunc::DataPilotInput().
bool ScDPObject::IsDimNameInUse | ( | std::u16string_view | rName | ) | const |
Definition at line 1183 of file dpobject.cxx.
References ScUnoHelpFunctions::GetStringProperty(), SC_UNO_DP_LAYOUTNAME, and xSource.
Referenced by ScDPDimensionSaveData::CreateGroupDimName(), ScDBFunc::DataPilotInput(), and lcl_GetFieldDataByName().
bool ScDPObject::IsDuplicated | ( | tools::Long | nDim | ) |
Definition at line 1256 of file dpobject.cxx.
References nDimCount, SC_UNO_DP_ORIGINAL, and xSource.
Referenced by ScDPShowDetailDlg::ScDPShowDetailDlg().
bool ScDPObject::IsFilterButton | ( | const ScAddress & | rPos | ) |
Definition at line 1412 of file dpobject.cxx.
References CreateOutput(), and pOutput.
Referenced by ScGridWindow::DoPushPivotButton().
|
inline |
Definition at line 163 of file dpobject.hxx.
Referenced by ScDPCollection::GetAllTables(), ScDPCollection::GetReferenceGroups(), ScDPCollection::ReloadCache(), and ScDPCollection::ReloadGroupsInCache().
|
static |
Definition at line 2745 of file dpobject.cxx.
Referenced by ScGridWindow::DPTestMouse(), and ScDPShowDetailDlg::ScDPShowDetailDlg().
|
inline |
Definition at line 164 of file dpobject.hxx.
Referenced by ScCellShell::ExecuteEdit().
bool ScDPObject::IsSheetData | ( | ) | const |
Definition at line 485 of file dpobject.cxx.
References pSheetDesc.
Referenced by CreateOutput(), ScDPCollection::GetAllTables(), ScDataPilotFilterDescriptor::GetData(), ScDPCollection::GetReferenceGroups(), ScDataPilotDescriptorBase::getSourceRange(), ScPivotShell::GetState(), ScDataPilotFilterDescriptor::PutData(), ScDPCollection::ReloadCache(), ScDPCollection::ReloadGroupsInCache(), and ScDataPilotDescriptorBase::setSourceRange().
ScDPObject & ScDPObject::operator= | ( | const ScDPObject & | r | ) |
Definition at line 348 of file dpobject.cxx.
References aOutRange, aTableName, aTableTag, bAllowMove, bSettingsChanged, Clear(), maInteropGrabBag, mbEnableGetPivotData, mbHeaderLayout, nHeaderRows, pDoc, pImpDesc, pSaveData, pServDesc, and pSheetDesc.
void ScDPObject::Output | ( | const ScAddress & | rPos | ) |
Definition at line 888 of file dpobject.cxx.
References ScRange::aEnd, ALL, aOutRange, ScDocument::ApplyFlagsTab(), ScRange::aStart, Auto, ScAddress::Col(), CreateOutput(), ScDocument::DeleteAreaTab(), DpTable, pDoc, pOutput, ScDocument::RemoveFlagsTab(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), XclImpPivotTable::MaybeRefresh(), and ScDBDocFunc::UpdatePivotTable().
bool ScDPObject::ParseFilters | ( | OUString & | rDataFieldName, |
std::vector< css::sheet::DataPilotFieldFilter > & | rFilters, | ||
std::vector< sal_Int16 > & | rFilterFuncs, | ||
std::u16string_view | rFilterList | ||
) |
Definition at line 1726 of file dpobject.cxx.
References aFieldNames, CreateObjects(), ScUnoHelpFunctions::GetBoolProperty(), ScDPOutput::GetDataDimensionNames(), ScUnoHelpFunctions::GetEnumProperty(), ScDPCache::GetLocaleIndependentFormattedString(), ScUnoHelpFunctions::GetLongProperty(), ScGlobal::GetTransliteration(), utl::TransliterationWrapper::isEqual(), SvNumberFormatter::IsNumberFormat(), mpTableData, nDimCount, condformat::dialog::NONE, SC_UNO_DP_ISDATALAYOUT, SC_UNO_DP_ORIENTATION, SC_UNO_DP_USEDHIERARCHY, comphelper::string::strip(), comphelper::string::stripStart(), and xSource.
Referenced by ScInterpreter::ScGetPivotData().
|
inline |
Definition at line 265 of file dpobject.hxx.
Referenced by oox::xls::PivotTable::finalizeImport().
void ScDPObject::RefreshAfterLoad | ( | ) |
Definition at line 934 of file dpobject.cxx.
References ScRange::aEnd, aOutRange, ScRange::aStart, ScAddress::Col(), ScDocument::IsBlockEmpty(), lcl_HasButton(), nHeaderRows, pDoc, ScAddress::Row(), and ScAddress::Tab().
Referenced by ScXMLDataPilotTableContext::SetButtons().
bool ScDPObject::RefsEqual | ( | const ScDPObject & | r | ) | const |
Definition at line 1118 of file dpobject.cxx.
References aOutRange, and pSheetDesc.
void ScDPObject::ReloadGroupTableData | ( | ) |
Definition at line 810 of file dpobject.cxx.
References bSettingsChanged, ClearSource(), ScDPDimensionSaveData::HasGroupDimensions(), mpTableData, pData, pDoc, pSaveData, and ScDPDimensionSaveData::WriteToData().
Referenced by ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), oox::xls::PivotTable::finalizeFieldsImport(), ScDBDocFunc::RefreshPivotTableGroups(), and ScDBDocFunc::UpdatePivotTable().
void ScDPObject::SetAllowMove | ( | bool | bSet | ) |
Definition at line 382 of file dpobject.cxx.
References bAllowMove.
Referenced by ScDBDocFunc::DataPilotUpdate(), and ScDBDocFunc::UpdatePivotTable().
void ScDPObject::SetHeaderLayout | ( | bool | bUseGrid | ) |
Definition at line 397 of file dpobject.cxx.
References mbHeaderLayout.
Referenced by XclImpPivotTable::ApplyMergeFlags().
void ScDPObject::SetImportDesc | ( | const ScImportSourceDesc & | rDesc | ) |
Definition at line 439 of file dpobject.cxx.
References ClearTableData(), pImpDesc, pServDesc, and pSheetDesc.
Referenced by ScDataPilotDescriptorBase::setPropertyValue(), and WriteSourceDataTo().
void ScDPObject::SetName | ( | const OUString & | rNew | ) |
Definition at line 490 of file dpobject.cxx.
References aTableName.
Referenced by ScDocShell::AfterXMLLoading(), ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), ScDataPilotTablesObj::insertNewByName(), ScDataPilotTableObj::setName(), and ScDBDocFunc::UpdatePivotTable().
void ScDPObject::SetOutRange | ( | const ScRange & | rRange | ) |
Definition at line 402 of file dpobject.cxx.
References aOutRange, ScRange::aStart, and pOutput.
Referenced by ScDPCollection::CopyToTab(), ScDataPilotTablesObj::insertNewByName(), ScDBFunc::MakePivotTable(), ScUndoDataPilot::Undo(), UpdateReference(), and WriteRefsTo().
void ScDPObject::SetSaveData | ( | const ScDPSaveData & | rData | ) |
Definition at line 387 of file dpobject.cxx.
References InvalidateData(), and pSaveData.
Referenced by ScDataPilotFieldObj::createDateGroup(), ScDataPilotFieldObj::createNameGroup(), ScDBFunc::DataPilotInput(), ScDBDocFunc::DataPilotUpdate(), ScDBFunc::DateGroupDataPilot(), ScGridWindow::DPTestMouse(), ScDBFunc::GroupDataPilot(), ScDBFunc::MakePivotTable(), ScDBFunc::NumGroupDataPilot(), ScDataPilotFieldObj::setGroupInfo(), ScDataPilotDescriptorBase::setPropertyValue(), ScUndoDataPilot::Undo(), and ScDBFunc::UngroupDataPilot().
void ScDPObject::SetServiceData | ( | const ScDPServiceDesc & | rDesc | ) |
Definition at line 452 of file dpobject.cxx.
References ClearTableData(), pImpDesc, pServDesc, and pSheetDesc.
Referenced by ScDataPilotDescriptorBase::setPropertyValue(), and WriteSourceDataTo().
void ScDPObject::SetSheetDesc | ( | const ScSheetSourceDesc & | rDesc | ) |
Definition at line 415 of file dpobject.cxx.
References ScRange::aEnd, ScRange::aStart, ScQueryParamBase::bHasHeader, ClearTableData(), ScAddress::Col(), ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, pImpDesc, pServDesc, pSheetDesc, and ScAddress::Row().
Referenced by ScGridWindow::DoPushPivotButton(), ScPivotShell::Execute(), ScDataPilotFilterDescriptor::PutData(), ScDataPilotDescriptorBase::setSourceRange(), ScPivotLayoutDialog::UpdateSourceRange(), WriteRefsTo(), and WriteSourceDataTo().
void ScDPObject::SetTag | ( | const OUString & | rNew | ) |
Definition at line 495 of file dpobject.cxx.
References aTableTag.
Referenced by ScDataPilotTablesObj::insertNewByName(), and ScDataPilotTableObj::setTag().
bool ScDPObject::SyncAllDimensionMembers | ( | ) |
Remove in the save data entries for members that don't exist anymore.
This is called during pivot table refresh.
Definition at line 974 of file dpobject.cxx.
References GetTableData(), pData, pSaveData, and pServDesc.
Referenced by ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), XclExpXmlPivotTableManager::Initialize(), and ScDBDocFunc::UpdatePivotTable().
void ScDPObject::ToggleDetails | ( | const css::sheet::DataPilotTableHeaderData & | rElemDesc, |
ScDPObject * | pDestObj | ||
) |
Definition at line 1999 of file dpobject.cxx.
References aName, CreateObjects(), ScUnoHelpFunctions::GetBoolProperty(), ScDPSaveData::GetDimensionByName(), InvalidateData(), pSaveData, SC_UNO_DP_ISDATALAYOUT, SC_UNO_DP_SHOWDETAILS, and xSource.
Referenced by ScGridWindow::DoPushPivotToggle(), and ScGridWindow::MouseButtonUp().
void ScDPObject::UpdateReference | ( | UpdateRefMode | eUpdateRefMode, |
const ScRange & | r, | ||
SCCOL | nDx, | ||
SCROW | nDy, | ||
SCTAB | nDz | ||
) |
Definition at line 1056 of file dpobject.cxx.
References ScRange::aEnd, aOutRange, ScRange::aStart, ScQueryEntry::bDoQuery, ScAddress::Col(), ScQueryParamBase::GetEntry(), ScQueryParamBase::GetEntryCount(), i, ScQueryParamTable::nCol1, ScQueryParamTable::nCol2, ScQueryEntry::nField, ScQueryParamTable::nRow1, ScQueryParamTable::nRow2, pDoc, pSheetDesc, ScAddress::Row(), SetOutRange(), ScAddress::Tab(), ScRefUpdate::Update(), and UR_NOTHING.
void ScDPObject::WriteRefsTo | ( | ScDPObject & | r | ) | const |
Definition at line 1137 of file dpobject.cxx.
References aOutRange, pSheetDesc, SetOutRange(), and SetSheetDesc().
Referenced by ScDPCollection::WriteRefsTo().
void ScDPObject::WriteSourceDataTo | ( | ScDPObject & | rDest | ) | const |
Definition at line 465 of file dpobject.cxx.
References aTableName, aTableTag, pImpDesc, pServDesc, pSheetDesc, SetImportDesc(), SetServiceData(), and SetSheetDesc().
Referenced by ScDBDocFunc::DataPilotUpdate().
void ScDPObject::WriteTempDataTo | ( | ScDPObject & | rDest | ) | const |
Definition at line 480 of file dpobject.cxx.
References nHeaderRows.
|
private |
Definition at line 91 of file dpobject.hxx.
Referenced by CreateOutput(), FillOldParam(), GetNewOutputRange(), GetOutputRangeByType(), GetOutRange(), operator=(), Output(), RefreshAfterLoad(), RefsEqual(), SetOutRange(), UpdateReference(), and WriteRefsTo().
|
private |
Definition at line 89 of file dpobject.hxx.
Referenced by operator=(), SetName(), and WriteSourceDataTo().
|
private |
Definition at line 90 of file dpobject.hxx.
Referenced by operator=(), SetTag(), and WriteSourceDataTo().
|
private |
Definition at line 106 of file dpobject.hxx.
Referenced by CreateOutput(), operator=(), and SetAllowMove().
|
private |
Definition at line 107 of file dpobject.hxx.
Referenced by CreateObjects(), InvalidateData(), operator=(), and ReloadGroupTableData().
|
private |
Definition at line 102 of file dpobject.hxx.
Referenced by Clear(), and operator=().
|
private |
Definition at line 108 of file dpobject.hxx.
Referenced by EnableGetPivotData(), GetPivotData(), GetTableData(), and operator=().
|
private |
Definition at line 105 of file dpobject.hxx.
Referenced by CreateOutput(), operator=(), and SetHeaderLayout().
|
private |
Definition at line 95 of file dpobject.hxx.
Referenced by ClearTableData(), GetTableData(), ParseFilters(), and ReloadGroupTableData().
|
private |
Definition at line 104 of file dpobject.hxx.
Referenced by CreateOutput(), operator=(), RefreshAfterLoad(), and WriteTempDataTo().
|
private |
Definition at line 86 of file dpobject.hxx.
Referenced by CreateOutput(), GetTableData(), operator=(), Output(), RefreshAfterLoad(), ReloadGroupTableData(), and UpdateReference().
|
private |
Definition at line 93 of file dpobject.hxx.
Referenced by Clear(), GetTableData(), operator=(), ScDPObject(), SetImportDesc(), SetServiceData(), SetSheetDesc(), and WriteSourceDataTo().
|
private |
Definition at line 98 of file dpobject.hxx.
Referenced by Clear(), CreateObjects(), CreateOutput(), GetDataFieldPositionData(), GetHeaderDim(), GetHeaderDrag(), GetHeaderPositionData(), GetMemberResultNames(), GetNewOutputRange(), GetOutputRangeByType(), GetPositionData(), IsDataDescriptionCell(), IsFilterButton(), Output(), and SetOutRange().
|
private |
Definition at line 88 of file dpobject.hxx.
Referenced by BuildAllDimensionMembers(), Clear(), CreateObjects(), CreateOutput(), GetPivotData(), GetTableData(), IsDataDescriptionCell(), operator=(), ReloadGroupTableData(), ScDPObject(), SetSaveData(), SyncAllDimensionMembers(), and ToggleDetails().
|
private |
Definition at line 94 of file dpobject.hxx.
Referenced by BuildAllDimensionMembers(), Clear(), CreateObjects(), operator=(), ScDPObject(), SetImportDesc(), SetServiceData(), SetSheetDesc(), SyncAllDimensionMembers(), and WriteSourceDataTo().
|
private |
Definition at line 92 of file dpobject.hxx.
Referenced by Clear(), GetTableData(), IsSheetData(), operator=(), RefsEqual(), ScDPObject(), SetImportDesc(), SetServiceData(), SetSheetDesc(), UpdateReference(), WriteRefsTo(), and WriteSourceDataTo().
|
private |
Definition at line 97 of file dpobject.hxx.
Referenced by ClearSource(), ConvertOrientation(), CreateObjects(), CreateOutput(), FillLabelData(), FillOldParam(), GetDimCount(), GetDimName(), GetDrillDownData(), GetFieldIdsNames(), GetPivotData(), GetSource(), IsDimNameInUse(), IsDuplicated(), ParseFilters(), and ToggleDetails().