LibreOffice Module sc (master) 1
|
#include <dpobject.hxx>
Classes | |
class | DBCaches |
Data caches for external database sources. More... | |
struct | DBType |
Defines connection type to external data source. More... | |
class | NameCaches |
Data caches for range name based source data. More... | |
class | SheetCaches |
Stores and manages all caches from internal sheets. More... | |
Private Types | |
typedef std::vector< std::unique_ptr< ScDPObject > > | TablesType |
Private Member Functions | |
void | RemoveCache (const ScDPCache *pCache) |
Only to be called from ScDPCache::RemoveReference(). More... | |
void | GetAllTables (const ScRange &rSrcRange, o3tl::sorted_vector< ScDPObject * > &rRefs) const |
void | GetAllTables (std::u16string_view rSrcName, o3tl::sorted_vector< ScDPObject * > &rRefs) const |
void | GetAllTables (sal_Int32 nSdbType, std::u16string_view rDBName, std::u16string_view rCommand, o3tl::sorted_vector< ScDPObject * > &rRefs) const |
Private Attributes | |
ScDocument & | mrDoc |
TablesType | maTables |
SheetCaches | maSheetCaches |
NameCaches | maNameCaches |
DBCaches | maDBCaches |
Friends | |
class | ScDPCache |
Definition at line 283 of file dpobject.hxx.
|
private |
Definition at line 446 of file dpobject.hxx.
ScDPCollection::ScDPCollection | ( | ScDocument & | rDocument | ) |
Definition at line 3371 of file dpobject.cxx.
ScDPCollection::ScDPCollection | ( | const ScDPCollection & | r | ) |
Definition at line 3379 of file dpobject.cxx.
ScDPCollection::~ScDPCollection | ( | ) |
Definition at line 3387 of file dpobject.cxx.
References maTables.
Definition at line 3643 of file dpobject.cxx.
References ScRange::aEnd, ScDocument::ApplyFlagsTab(), ScRange::aStart, ScAddress::Col(), DpTable, ScDPObject::GetOutRange(), maTables, mrDoc, ScAddress::Row(), ScDPObject::SetOutRange(), ScAddress::SetTab(), and ScAddress::Tab().
OUString ScDPCollection::CreateNewName | ( | ) | const |
Create a new name that's not yet used by any existing data pilot objects.
All data pilot names are 'DataPilot' + <num>
Definition at line 3743 of file dpobject.cxx.
Referenced by ScDocShell::AfterXMLLoading(), ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), lcl_CreatePivotName(), and ScDBDocFunc::UpdatePivotTable().
void ScDPCollection::DeleteOnTab | ( | SCTAB | nTab | ) |
Definition at line 3628 of file dpobject.cxx.
References maTables.
void ScDPCollection::FreeTable | ( | const ScDPObject * | pDPObj | ) |
Definition at line 3756 of file dpobject.cxx.
References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), DpTable, ScDPObject::GetOutRange(), maTables, mrDoc, ScDocument::RemoveFlagsTab(), ScAddress::Row(), and ScAddress::Tab().
Referenced by ScDBDocFunc::RemovePivotTable(), and ScUndoDataPilot::Undo().
ScRangeList ScDPCollection::GetAllTableRanges | ( | SCTAB | nTab | ) | const |
Definition at line 3824 of file dpobject.cxx.
References maTables.
|
private |
Definition at line 3887 of file dpobject.cxx.
References ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScSheetSourceDesc::HasRangeName(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), ScDPObject::IsSheetData(), maTables, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
Referenced by ReloadCache(), and ReloadGroupsInCache().
|
private |
Definition at line 3943 of file dpobject.cxx.
References ScImportSourceDesc::aDBName, ScImportSourceDesc::aObject, ScImportSourceDesc::GetCommandType(), ScDPObject::GetImportSourceDesc(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), ScDPObject::IsImportData(), maTables, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
|
private |
Definition at line 3915 of file dpobject.cxx.
References ScSheetSourceDesc::GetRangeName(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::HasRangeName(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), ScDPObject::IsSheetData(), maTables, and o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::swap().
ScDPObject * ScDPCollection::GetByName | ( | std::u16string_view | rName | ) | const |
Definition at line 3732 of file dpobject.cxx.
References maTables, and pObject.
Referenced by sc::PivotTableDataProvider::collectPivotTableData(), sc::PivotTableDataProvider::createDataSourcePossible(), ScDBDocFunc::CreatePivotTable(), ScTabView::DoDPFieldPopup(), ScXMLDataPilotTableContext::endFastElement(), sc::PivotTableDataProvider::hasPivotTable(), and sc::PivotTableDataProvider::setPivotTableName().
size_t ScDPCollection::GetCount | ( | ) | const |
Definition at line 3717 of file dpobject.cxx.
References maTables.
Referenced by ScDocShell::AfterXMLLoading(), ScTabViewShell::ExecuteTable(), ScDataPilotTablesObj::getCount(), ScDataPilotTablesObj::getElementNames(), ScDataPilotTablesObj::GetObjectByIndex_Impl(), ScDataPilotTablesObj::hasByName(), XclExpXmlPivotTableManager::Initialize(), lcl_GetDPObject(), ScDocShell::RefreshPivotTables(), ScInterpreter::ScDebugVar(), ScRefUndoData::ScRefUndoData(), and ScXMLExportDataPilot::WriteDataPilots().
ScDPCollection::DBCaches & ScDPCollection::GetDBCaches | ( | ) |
Definition at line 3814 of file dpobject.cxx.
References maDBCaches.
Referenced by ScImportSourceDesc::CreateCache(), ReloadCache(), and ReloadGroupsInCache().
const ScDPCollection::DBCaches & ScDPCollection::GetDBCaches | ( | ) | const |
Definition at line 3819 of file dpobject.cxx.
References maDBCaches.
ScDPCollection::NameCaches & ScDPCollection::GetNameCaches | ( | ) |
Definition at line 3804 of file dpobject.cxx.
References maNameCaches.
Referenced by ScSheetSourceDesc::CreateCache(), ReloadCache(), and ReloadGroupsInCache().
const ScDPCollection::NameCaches & ScDPCollection::GetNameCaches | ( | ) | const |
Definition at line 3809 of file dpobject.cxx.
References maNameCaches.
bool ScDPCollection::GetReferenceGroups | ( | const ScDPObject & | rDPObj, |
const ScDPDimensionSaveData ** | pGroups | ||
) | const |
Definition at line 3563 of file dpobject.cxx.
References ScImportSourceDesc::aDBName, ScImportSourceDesc::aObject, ScImportSourceDesc::GetCommandType(), ScDPSaveData::GetExistingDimensionData(), ScDPObject::GetImportSourceDesc(), ScSheetSourceDesc::GetRangeName(), ScDPObject::GetSaveData(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScSheetSourceDesc::HasRangeName(), ScDPObject::IsImportData(), ScDPObject::IsSheetData(), and maTables.
Referenced by ScDBDocFunc::CreatePivotTable(), and oox::xls::PivotTable::finalizeFieldsImport().
ScDPCollection::SheetCaches & ScDPCollection::GetSheetCaches | ( | ) |
Definition at line 3794 of file dpobject.cxx.
References maSheetCaches.
Referenced by ScSheetSourceDesc::CreateCache(), XclExpXmlPivotTableManager::Initialize(), ReloadCache(), and ReloadGroupsInCache().
const ScDPCollection::SheetCaches & ScDPCollection::GetSheetCaches | ( | ) | const |
Definition at line 3799 of file dpobject.cxx.
References maSheetCaches.
bool ScDPCollection::HasTable | ( | const ScDPObject * | pDPObj | ) | const |
Definition at line 3782 of file dpobject.cxx.
References maTables.
Referenced by ScDBDocFunc::RefreshPivotTableGroups().
bool ScDPCollection::HasTable | ( | const ScRange & | rRange | ) | const |
Definition at line 3839 of file dpobject.cxx.
References maTables.
ScDPObject * ScDPCollection::InsertNewTable | ( | std::unique_ptr< ScDPObject > | pDPObj | ) |
Definition at line 3771 of file dpobject.cxx.
References ScRange::aEnd, ScDocument::ApplyFlagsTab(), ScRange::aStart, ScAddress::Col(), DpTable, maTables, mrDoc, ScAddress::Row(), and ScAddress::Tab().
Referenced by XclImpPivotTable::Convert(), ScDBDocFunc::CreatePivotTable(), ScXMLDataPilotTableContext::endFastElement(), ScUndoDataPilot::Undo(), and WriteRefsTo().
bool ScDPCollection::IntersectsTableByColumns | ( | SCCOL | nCol1, |
SCCOL | nCol2, | ||
SCROW | nRow, | ||
SCTAB | nTab | ||
) | const |
Definition at line 3829 of file dpobject.cxx.
References maTables.
bool ScDPCollection::IntersectsTableByRows | ( | SCCOL | nCol, |
SCROW | nRow1, | ||
SCROW | nRow2, | ||
SCTAB | nTab | ||
) | const |
Definition at line 3834 of file dpobject.cxx.
References maTables.
ScDPObject & ScDPCollection::operator[] | ( | size_t | nIndex | ) |
Definition at line 3722 of file dpobject.cxx.
const ScDPObject & ScDPCollection::operator[] | ( | size_t | nIndex | ) | const |
Definition at line 3727 of file dpobject.cxx.
bool ScDPCollection::RefsEqual | ( | const ScDPCollection & | r | ) | const |
Definition at line 3666 of file dpobject.cxx.
TranslateId ScDPCollection::ReloadCache | ( | const ScDPObject * | pDPObj, |
o3tl::sorted_vector< ScDPObject * > & | rRefs | ||
) |
Definition at line 3411 of file dpobject.cxx.
References ScImportSourceDesc::aDBName, ScImportSourceDesc::aObject, ScSheetSourceDesc::CheckSourceRange(), GetAllTables(), ScImportSourceDesc::GetCommandType(), GetDBCaches(), ScDPObject::GetImportSourceDesc(), GetNameCaches(), ScSheetSourceDesc::GetRangeName(), GetSheetCaches(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScDPCollection::NameCaches::hasCache(), ScDPCollection::SheetCaches::hasCache(), ScDPCollection::DBCaches::hasCache(), ScSheetSourceDesc::HasRangeName(), ScDPObject::IsImportData(), ScDPObject::IsSheetData(), ScDPCollection::NameCaches::updateCache(), ScDPCollection::SheetCaches::updateCache(), and ScDPCollection::DBCaches::updateCache().
Referenced by ScDBDocFunc::RefreshPivotTables().
bool ScDPCollection::ReloadGroupsInCache | ( | const ScDPObject * | pDPObj, |
o3tl::sorted_vector< ScDPObject * > & | rRefs | ||
) |
Definition at line 3475 of file dpobject.cxx.
References ScImportSourceDesc::aDBName, ScImportSourceDesc::aObject, ScDPCache::ClearAllFields(), GetAllTables(), ScDPCollection::NameCaches::getCache(), ScDPCollection::SheetCaches::getCache(), ScDPCollection::DBCaches::getCache(), ScImportSourceDesc::GetCommandType(), GetDBCaches(), ScDPCollection::NameCaches::getExistingCache(), ScDPCollection::SheetCaches::getExistingCache(), ScDPCollection::DBCaches::getExistingCache(), ScDPSaveData::GetExistingDimensionData(), ScDPObject::GetImportSourceDesc(), GetNameCaches(), ScSheetSourceDesc::GetRangeName(), ScDPObject::GetSaveData(), GetSheetCaches(), ScDPObject::GetSheetDesc(), ScSheetSourceDesc::GetSourceRange(), ScDPCollection::NameCaches::hasCache(), ScDPCollection::SheetCaches::hasCache(), ScDPCollection::DBCaches::hasCache(), ScSheetSourceDesc::HasRangeName(), ScDPObject::IsImportData(), ScDPObject::IsSheetData(), and ScDPDimensionSaveData::WriteToCache().
Referenced by ScDBFunc::DataPilotInput(), and ScDBDocFunc::RefreshPivotTableGroups().
|
private |
Only to be called from ScDPCache::RemoveReference().
Definition at line 3872 of file dpobject.cxx.
References maDBCaches, maNameCaches, maSheetCaches, ScDPCollection::SheetCaches::remove(), ScDPCollection::NameCaches::remove(), and ScDPCollection::DBCaches::remove().
Referenced by ScDPCache::RemoveReference().
void ScDPCollection::UpdateReference | ( | UpdateRefMode | eUpdateRefMode, |
const ScRange & | r, | ||
SCCOL | nDx, | ||
SCROW | nDy, | ||
SCTAB | nDz | ||
) |
Definition at line 3633 of file dpobject.cxx.
References maSheetCaches, maTables, and ScDPCollection::SheetCaches::updateReference().
void ScDPCollection::WriteRefsTo | ( | ScDPCollection & | r | ) | const |
Definition at line 3672 of file dpobject.cxx.
References aName, ScDPObject::GetName(), InsertNewTable(), maTables, and ScDPObject::WriteRefsTo().
|
friend |
Definition at line 285 of file dpobject.hxx.
Referenced by ScDPCollection::NameCaches::getCache(), ScDPCollection::SheetCaches::getCache(), and ScDPCollection::DBCaches::getCache().
|
private |
Definition at line 452 of file dpobject.hxx.
Referenced by GetDBCaches(), and RemoveCache().
|
private |
Definition at line 451 of file dpobject.hxx.
Referenced by GetNameCaches(), and RemoveCache().
|
private |
Definition at line 450 of file dpobject.hxx.
Referenced by GetSheetCaches(), RemoveCache(), and UpdateReference().
|
private |
Definition at line 449 of file dpobject.hxx.
Referenced by CopyToTab(), CreateNewName(), DeleteOnTab(), FreeTable(), GetAllTableRanges(), GetAllTables(), GetByName(), GetCount(), GetReferenceGroups(), HasTable(), InsertNewTable(), IntersectsTableByColumns(), IntersectsTableByRows(), operator[](), RefsEqual(), UpdateReference(), WriteRefsTo(), and ~ScDPCollection().
|
private |
Definition at line 448 of file dpobject.hxx.
Referenced by CopyToTab(), FreeTable(), ScDPCollection::NameCaches::getCache(), ScDPCollection::SheetCaches::getCache(), ScDPCollection::DBCaches::getCache(), InsertNewTable(), ScDPCollection::NameCaches::updateCache(), ScDPCollection::SheetCaches::updateCache(), and ScDPCollection::SheetCaches::updateReference().