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 *pDocument)
 
 ScDPCollection (const ScDPCollection &r)
 
 ~ScDPCollection ()
 
const char * ReloadCache (const ScDPObject *pDPObj, std::set< ScDPObject * > &rRefs)
 
bool ReloadGroupsInCache (const ScDPObject *pDPObj, std::set< 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 (const OUString &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, std::set< ScDPObject * > &rRefs) const
 
void GetAllTables (const OUString &rSrcName, std::set< ScDPObject * > &rRefs) const
 
void GetAllTables (sal_Int32 nSdbType, const OUString &rDBName, const OUString &rCommand, std::set< ScDPObject * > &rRefs) const
 

Private Attributes

ScDocumentmpDoc
 
TablesType maTables
 
SheetCaches maSheetCaches
 
NameCaches maNameCaches
 
DBCaches maDBCaches
 

Friends

class ScDPCache
 

Detailed Description

Definition at line 280 of file dpobject.hxx.

Member Typedef Documentation

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

Definition at line 443 of file dpobject.hxx.

Constructor & Destructor Documentation

ScDPCollection::ScDPCollection ( ScDocument pDocument)

Definition at line 3331 of file dpobject.cxx.

ScDPCollection::ScDPCollection ( const ScDPCollection r)

Definition at line 3339 of file dpobject.cxx.

ScDPCollection::~ScDPCollection ( )

Definition at line 3347 of file dpobject.cxx.

References maTables.

Member Function Documentation

void ScDPCollection::CopyToTab ( SCTAB  nOld,
SCTAB  nNew 
)
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 3703 of file dpobject.cxx.

References maTables, and n.

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

void ScDPCollection::DeleteOnTab ( SCTAB  nTab)

Definition at line 3588 of file dpobject.cxx.

References maTables.

void ScDPCollection::FreeTable ( const ScDPObject pDPObj)
ScRangeList ScDPCollection::GetAllTableRanges ( SCTAB  nTab) const

Definition at line 3784 of file dpobject.cxx.

References maTables.

Referenced by ScGridWindow::ContinueOnlineSpelling().

void ScDPCollection::GetAllTables ( const ScRange rSrcRange,
std::set< ScDPObject * > &  rRefs 
) const
private
void ScDPCollection::GetAllTables ( const OUString &  rSrcName,
std::set< ScDPObject * > &  rRefs 
) const
private
void ScDPCollection::GetAllTables ( sal_Int32  nSdbType,
const OUString &  rDBName,
const OUString &  rCommand,
std::set< ScDPObject * > &  rRefs 
) const
private
ScDPObject * ScDPCollection::GetByName ( const OUString &  rName) const
size_t ScDPCollection::GetCount ( ) const
ScDPCollection::DBCaches & ScDPCollection::GetDBCaches ( )

Definition at line 3774 of file dpobject.cxx.

References maDBCaches.

Referenced by ReloadCache(), and ReloadGroupsInCache().

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

Definition at line 3779 of file dpobject.cxx.

References maDBCaches.

ScDPCollection::NameCaches & ScDPCollection::GetNameCaches ( )

Definition at line 3764 of file dpobject.cxx.

References maNameCaches.

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

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

Definition at line 3769 of file dpobject.cxx.

References maNameCaches.

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

Definition at line 3759 of file dpobject.cxx.

References maSheetCaches.

bool ScDPCollection::HasTable ( const ScDPObject pDPObj) const

Definition at line 3742 of file dpobject.cxx.

References maTables.

Referenced by ScDBDocFunc::RefreshPivotTableGroups().

bool ScDPCollection::HasTable ( const ScRange rRange) const

Definition at line 3799 of file dpobject.cxx.

References maTables.

ScDPObject * ScDPCollection::InsertNewTable ( std::unique_ptr< ScDPObject pDPObj)
bool ScDPCollection::IntersectsTableByColumns ( SCCOL  nCol1,
SCCOL  nCol2,
SCROW  nRow,
SCTAB  nTab 
) const

Definition at line 3789 of file dpobject.cxx.

References maTables.

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

Definition at line 3794 of file dpobject.cxx.

References maTables.

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

Definition at line 3682 of file dpobject.cxx.

References maTables.

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

Definition at line 3687 of file dpobject.cxx.

References maTables.

bool ScDPCollection::RefsEqual ( const ScDPCollection r) const

Definition at line 3626 of file dpobject.cxx.

References a, and maTables.

const char * ScDPCollection::ReloadCache ( const ScDPObject pDPObj,
std::set< ScDPObject * > &  rRefs 
)
bool ScDPCollection::ReloadGroupsInCache ( const ScDPObject pDPObj,
std::set< ScDPObject * > &  rRefs 
)
void ScDPCollection::RemoveCache ( const ScDPCache pCache)
private
void ScDPCollection::UpdateReference ( UpdateRefMode  eUpdateRefMode,
const ScRange r,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz 
)
void ScDPCollection::WriteRefsTo ( ScDPCollection r) const

Friends And Related Function Documentation

friend class ScDPCache
friend

Member Data Documentation

DBCaches ScDPCollection::maDBCaches
private

Definition at line 449 of file dpobject.hxx.

Referenced by GetDBCaches(), and RemoveCache().

NameCaches ScDPCollection::maNameCaches
private

Definition at line 448 of file dpobject.hxx.

Referenced by GetNameCaches(), and RemoveCache().

SheetCaches ScDPCollection::maSheetCaches
private

Definition at line 447 of file dpobject.hxx.

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

TablesType ScDPCollection::maTables
private
ScDocument* ScDPCollection::mpDoc
private

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