LibreOffice Module sc (master) 1
Classes | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ScDPCollection Class Reference

#include <dpobject.hxx>

Collaboration diagram for ScDPCollection:
[legend]

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...
 

Public Member Functions

 ScDPCollection (ScDocument &rDocument)
 
 ScDPCollection (const ScDPCollection &r)
 
 ~ScDPCollection ()
 
TranslateId ReloadCache (const ScDPObject *pDPObj, o3tl::sorted_vector< ScDPObject * > &rRefs)
 
bool ReloadGroupsInCache (const ScDPObject *pDPObj, o3tl::sorted_vector< ScDPObject * > &rRefs)
 
SC_DLLPUBLIC bool GetReferenceGroups (const ScDPObject &rDPObj, const ScDPDimensionSaveData **pGroups) const
 
SC_DLLPUBLIC size_t GetCount () const
 
SC_DLLPUBLIC ScDPObjectoperator[] (size_t nIndex)
 
SC_DLLPUBLIC const ScDPObjectoperator[] (size_t nIndex) const
 
ScDPObjectGetByName (std::u16string_view rName) const
 
void DeleteOnTab (SCTAB nTab)
 
void UpdateReference (UpdateRefMode eUpdateRefMode, const ScRange &r, SCCOL nDx, SCROW nDy, SCTAB nDz)
 
void CopyToTab (SCTAB nOld, SCTAB nNew)
 
bool RefsEqual (const ScDPCollection &r) const
 
void WriteRefsTo (ScDPCollection &r) const
 
OUString CreateNewName () const
 Create a new name that's not yet used by any existing data pilot objects. More...
 
void FreeTable (const ScDPObject *pDPObj)
 
SC_DLLPUBLIC ScDPObjectInsertNewTable (std::unique_ptr< ScDPObject > pDPObj)
 
SC_DLLPUBLIC bool HasTable (const ScDPObject *pDPObj) const
 
SC_DLLPUBLIC SheetCachesGetSheetCaches ()
 
SC_DLLPUBLIC const SheetCachesGetSheetCaches () const
 
NameCachesGetNameCaches ()
 
SC_DLLPUBLIC const NameCachesGetNameCaches () const
 
DBCachesGetDBCaches ()
 
SC_DLLPUBLIC const DBCachesGetDBCaches () const
 
ScRangeList GetAllTableRanges (SCTAB nTab) const
 
bool IntersectsTableByColumns (SCCOL nCol1, SCCOL nCol2, SCROW nRow, SCTAB nTab) const
 
bool IntersectsTableByRows (SCCOL nCol, SCROW nRow1, SCROW nRow2, SCTAB nTab) const
 
bool HasTable (const ScRange &rRange) const
 

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

ScDocumentmrDoc
 
TablesType maTables
 
SheetCaches maSheetCaches
 
NameCaches maNameCaches
 
DBCaches maDBCaches
 

Friends

class ScDPCache
 

Detailed Description

Definition at line 283 of file dpobject.hxx.

Member Typedef Documentation

◆ TablesType

typedef std::vector< std::unique_ptr<ScDPObject> > ScDPCollection::TablesType
private

Definition at line 446 of file dpobject.hxx.

Constructor & Destructor Documentation

◆ ScDPCollection() [1/2]

ScDPCollection::ScDPCollection ( ScDocument rDocument)

Definition at line 3371 of file dpobject.cxx.

◆ ScDPCollection() [2/2]

ScDPCollection::ScDPCollection ( const ScDPCollection r)

Definition at line 3379 of file dpobject.cxx.

◆ ~ScDPCollection()

ScDPCollection::~ScDPCollection ( )

Definition at line 3387 of file dpobject.cxx.

References maTables.

Member Function Documentation

◆ CopyToTab()

void ScDPCollection::CopyToTab ( SCTAB  nOld,
SCTAB  nNew 
)

◆ CreateNewName()

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>

Returns
new name for data pilot object.

Definition at line 3743 of file dpobject.cxx.

References maTables, and n.

Referenced by ScDocShell::AfterXMLLoading(), ScDBDocFunc::CreatePivotTable(), ScDBDocFunc::DataPilotUpdate(), lcl_CreatePivotName(), and ScDBDocFunc::UpdatePivotTable().

◆ DeleteOnTab()

void ScDPCollection::DeleteOnTab ( SCTAB  nTab)

Definition at line 3628 of file dpobject.cxx.

References maTables.

◆ FreeTable()

void ScDPCollection::FreeTable ( const ScDPObject pDPObj)

◆ GetAllTableRanges()

ScRangeList ScDPCollection::GetAllTableRanges ( SCTAB  nTab) const

Definition at line 3824 of file dpobject.cxx.

References maTables.

◆ GetAllTables() [1/3]

void ScDPCollection::GetAllTables ( const ScRange rSrcRange,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
) const
private

◆ GetAllTables() [2/3]

void ScDPCollection::GetAllTables ( sal_Int32  nSdbType,
std::u16string_view  rDBName,
std::u16string_view  rCommand,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
) const
private

◆ GetAllTables() [3/3]

void ScDPCollection::GetAllTables ( std::u16string_view  rSrcName,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
) const
private

◆ GetByName()

ScDPObject * ScDPCollection::GetByName ( std::u16string_view  rName) const

◆ GetCount()

size_t ScDPCollection::GetCount ( ) const

◆ GetDBCaches() [1/2]

ScDPCollection::DBCaches & ScDPCollection::GetDBCaches ( )

Definition at line 3814 of file dpobject.cxx.

References maDBCaches.

Referenced by ScImportSourceDesc::CreateCache(), ReloadCache(), and ReloadGroupsInCache().

◆ GetDBCaches() [2/2]

const ScDPCollection::DBCaches & ScDPCollection::GetDBCaches ( ) const

Definition at line 3819 of file dpobject.cxx.

References maDBCaches.

◆ GetNameCaches() [1/2]

ScDPCollection::NameCaches & ScDPCollection::GetNameCaches ( )

Definition at line 3804 of file dpobject.cxx.

References maNameCaches.

Referenced by ScSheetSourceDesc::CreateCache(), ReloadCache(), and ReloadGroupsInCache().

◆ GetNameCaches() [2/2]

const ScDPCollection::NameCaches & ScDPCollection::GetNameCaches ( ) const

Definition at line 3809 of file dpobject.cxx.

References maNameCaches.

◆ GetReferenceGroups()

bool ScDPCollection::GetReferenceGroups ( const ScDPObject rDPObj,
const ScDPDimensionSaveData **  pGroups 
) const

◆ GetSheetCaches() [1/2]

ScDPCollection::SheetCaches & ScDPCollection::GetSheetCaches ( )

◆ GetSheetCaches() [2/2]

const ScDPCollection::SheetCaches & ScDPCollection::GetSheetCaches ( ) const

Definition at line 3799 of file dpobject.cxx.

References maSheetCaches.

◆ HasTable() [1/2]

bool ScDPCollection::HasTable ( const ScDPObject pDPObj) const

Definition at line 3782 of file dpobject.cxx.

References maTables.

Referenced by ScDBDocFunc::RefreshPivotTableGroups().

◆ HasTable() [2/2]

bool ScDPCollection::HasTable ( const ScRange rRange) const

Definition at line 3839 of file dpobject.cxx.

References maTables.

◆ InsertNewTable()

ScDPObject * ScDPCollection::InsertNewTable ( std::unique_ptr< ScDPObject pDPObj)

◆ IntersectsTableByColumns()

bool ScDPCollection::IntersectsTableByColumns ( SCCOL  nCol1,
SCCOL  nCol2,
SCROW  nRow,
SCTAB  nTab 
) const

Definition at line 3829 of file dpobject.cxx.

References maTables.

◆ IntersectsTableByRows()

bool ScDPCollection::IntersectsTableByRows ( SCCOL  nCol,
SCROW  nRow1,
SCROW  nRow2,
SCTAB  nTab 
) const

Definition at line 3834 of file dpobject.cxx.

References maTables.

◆ operator[]() [1/2]

ScDPObject & ScDPCollection::operator[] ( size_t  nIndex)

Definition at line 3722 of file dpobject.cxx.

References maTables, and nIndex.

◆ operator[]() [2/2]

const ScDPObject & ScDPCollection::operator[] ( size_t  nIndex) const

Definition at line 3727 of file dpobject.cxx.

References maTables, and nIndex.

◆ RefsEqual()

bool ScDPCollection::RefsEqual ( const ScDPCollection r) const

Definition at line 3666 of file dpobject.cxx.

References a, and maTables.

◆ ReloadCache()

TranslateId ScDPCollection::ReloadCache ( const ScDPObject pDPObj,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
)

◆ ReloadGroupsInCache()

bool ScDPCollection::ReloadGroupsInCache ( const ScDPObject pDPObj,
o3tl::sorted_vector< ScDPObject * > &  rRefs 
)

◆ RemoveCache()

void ScDPCollection::RemoveCache ( const ScDPCache pCache)
private

◆ UpdateReference()

void ScDPCollection::UpdateReference ( UpdateRefMode  eUpdateRefMode,
const ScRange r,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz 
)

◆ WriteRefsTo()

void ScDPCollection::WriteRefsTo ( ScDPCollection r) const

Friends And Related Function Documentation

◆ ScDPCache

friend class ScDPCache
friend

Member Data Documentation

◆ maDBCaches

DBCaches ScDPCollection::maDBCaches
private

Definition at line 452 of file dpobject.hxx.

Referenced by GetDBCaches(), and RemoveCache().

◆ maNameCaches

NameCaches ScDPCollection::maNameCaches
private

Definition at line 451 of file dpobject.hxx.

Referenced by GetNameCaches(), and RemoveCache().

◆ maSheetCaches

SheetCaches ScDPCollection::maSheetCaches
private

Definition at line 450 of file dpobject.hxx.

Referenced by GetSheetCaches(), RemoveCache(), and UpdateReference().

◆ maTables

TablesType ScDPCollection::maTables
private

◆ mrDoc

ScDocument& ScDPCollection::mrDoc
private

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