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

#include <dbdata.hxx>

Collaboration diagram for ScDBCollection:
[legend]

Classes

class  AnonDBs
 Stores global anonymous database ranges. More...
 
class  NamedDBs
 Stores global named database ranges. More...
 

Public Types

enum  RangeType {
  GlobalNamed ,
  GlobalAnonymous ,
  SheetAnonymous
}
 

Public Member Functions

 ScDBCollection (ScDocument &rDocument)
 
 ScDBCollection (const ScDBCollection &r)
 
NamedDBsgetNamedDBs ()
 
const NamedDBsgetNamedDBs () const
 
AnonDBsgetAnonDBs ()
 
const AnonDBsgetAnonDBs () const
 
const ScDBDataGetDBAtCursor (SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion) const
 
ScDBDataGetDBAtCursor (SCCOL nCol, SCROW nRow, SCTAB nTab, ScDBDataPortion ePortion)
 
const ScDBDataGetDBAtArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2) const
 
ScDBDataGetDBAtArea (SCTAB nTab, SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2)
 
ScDBDataGetDBNearCursor (SCCOL nCol, SCROW nRow, SCTAB nTab)
 
std::vector< ScDBData * > GetAllDBsFromTab (SCTAB nTab)
 
void RefreshDirtyTableColumnNames ()
 
void DeleteOnTab (SCTAB nTab)
 
void UpdateReference (UpdateRefMode eUpdateRefMode, SCCOL nCol1, SCROW nRow1, SCTAB nTab1, SCCOL nCol2, SCROW nRow2, SCTAB nTab2, SCCOL nDx, SCROW nDy, SCTAB nDz)
 
void UpdateMoveTab (SCTAB nOldPos, SCTAB nNewPos)
 
void CopyToTable (SCTAB nOldPos, SCTAB nNewPos)
 
void SetRefreshHandler (const Link< Timer *, void > &rLink)
 
const Link< Timer *, void > & GetRefreshHandler () const
 
bool empty () const
 
bool operator== (const ScDBCollection &r) const
 

Private Attributes

Link< Timer *, void > aRefreshHandler
 
ScDocumentrDoc
 
sal_uInt16 nEntryIndex
 counter for unique indices More...
 
NamedDBs maNamedDBs
 
AnonDBs maAnonDBs
 

Detailed Description

Definition at line 234 of file dbdata.hxx.

Member Enumeration Documentation

◆ RangeType

Enumerator
GlobalNamed 
GlobalAnonymous 
SheetAnonymous 

Definition at line 237 of file dbdata.hxx.

Constructor & Destructor Documentation

◆ ScDBCollection() [1/2]

ScDBCollection::ScDBCollection ( ScDocument rDocument)

Definition at line 1377 of file dbdata.cxx.

◆ ScDBCollection() [2/2]

ScDBCollection::ScDBCollection ( const ScDBCollection r)

Definition at line 1380 of file dbdata.cxx.

Member Function Documentation

◆ CopyToTable()

void ScDBCollection::CopyToTable ( SCTAB  nOldPos,
SCTAB  nNewPos 
)

◆ DeleteOnTab()

void ScDBCollection::DeleteOnTab ( SCTAB  nTab)

◆ empty()

bool ScDBCollection::empty ( ) const

◆ GetAllDBsFromTab()

std::vector< ScDBData * > ScDBCollection::GetAllDBsFromTab ( SCTAB  nTab)

Definition at line 1620 of file dbdata.cxx.

References ScDocument::GetAnonymousDBData(), maNamedDBs, and rDoc.

Referenced by XclExpDxfs::XclExpDxfs().

◆ getAnonDBs() [1/2]

AnonDBs & ScDBCollection::getAnonDBs ( )
inline

◆ getAnonDBs() [2/2]

const AnonDBs & ScDBCollection::getAnonDBs ( ) const
inline

Definition at line 328 of file dbdata.hxx.

◆ GetDBAtArea() [1/2]

ScDBData * ScDBCollection::GetDBAtArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
)

◆ GetDBAtArea() [2/2]

const ScDBData * ScDBCollection::GetDBAtArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
) const

◆ GetDBAtCursor() [1/2]

ScDBData * ScDBCollection::GetDBAtCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDBDataPortion  ePortion 
)

◆ GetDBAtCursor() [2/2]

const ScDBData * ScDBCollection::GetDBAtCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDBDataPortion  ePortion 
) const

◆ GetDBNearCursor()

ScDBData * ScDBCollection::GetDBNearCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab 
)

Definition at line 1594 of file dbdata.cxx.

References ScDocument::GetAnonymousDBData(), ScDBData::GetArea(), maNamedDBs, and rDoc.

Referenced by ScDocShell::GetDBData().

◆ getNamedDBs() [1/2]

NamedDBs & ScDBCollection::getNamedDBs ( )
inline

Definition at line 324 of file dbdata.hxx.

Referenced by ScDBDocFunc::AddDBRange(), ScTabViewShell::Construct(), ScCompiler::CreateStringFromIndex(), ScDBDocFunc::DeleteDBRange(), ScUndoAutoFilter::DoChange(), ScXMLDatabaseRangeContext::endFastElement(), ScDocShell::Execute(), ScCellShell::ExecuteDB(), oox::xls::WorksheetGlobals::finalizeWorksheetImport(), oox::xls::WorkbookGlobals::findDatabaseRangeByIndex(), ScAreaLink::FindExtRange(), ScDatabaseRangesObj::getCount(), sc::ScDBDataManager::getDBData(), ScDocShell::GetDBData(), ScDatabaseRangeObj::GetDBData_Impl(), ScContentTree::GetDbNames(), ScDatabaseRangesObj::getElementNames(), ScDatabaseRangesObj::GetObjectByIndex_Impl(), ScValidationData::GetSelectionFromFormula(), ScDBFunc::GotoDBArea(), ScCompiler::HandleDbData(), ScCompiler::HandleTableRef(), ScDatabaseRangesObj::hasByName(), ScConsolidateDlg::Init(), XclExpTablesManager::Initialize(), lcl_GetDBAreaRange(), lcl_GetRange(), ScRangeUtil::MakeRangeFromName(), ScDBDocFunc::ModifyDBData(), ScAreaNameIterator::Next(), ScHeaderControl::Paint(), ScCompiler::ParseDBRange(), ScCompiler::ParseTableRefColumn(), ScCompiler::ParseValue(), ScDBDocFunc::RenameDBRange(), ScDBDocFunc::RepeatDB(), ScDataProviderDlg::ScDataProviderDlg(), ScInterpreter::ScDBArea(), ScInterpreter::ScIndirect(), sc::TokenStringContext::TokenStringContext(), ScUndoConsolidate::Undo(), ScDbNameDlg::UpdateDBData(), ScDBDocFunc::UpdateImport(), ScDbNameDlg::UpdateNames(), ScTabViewShell::UseSubTotal(), and ScXMLExportDatabaseRanges::WriteDatabaseRanges().

◆ getNamedDBs() [2/2]

const NamedDBs & ScDBCollection::getNamedDBs ( ) const
inline

Definition at line 325 of file dbdata.hxx.

◆ GetRefreshHandler()

const Link< Timer *, void > & ScDBCollection::GetRefreshHandler ( ) const
inline

◆ operator==()

bool ScDBCollection::operator== ( const ScDBCollection r) const

Definition at line 1639 of file dbdata.cxx.

References aRefreshHandler, maAnonDBs, maNamedDBs, nEntryIndex, and rDoc.

◆ RefreshDirtyTableColumnNames()

void ScDBCollection::RefreshDirtyTableColumnNames ( )

◆ SetRefreshHandler()

void ScDBCollection::SetRefreshHandler ( const Link< Timer *, void > &  rLink)
inline

Definition at line 347 of file dbdata.hxx.

◆ UpdateMoveTab()

void ScDBCollection::UpdateMoveTab ( SCTAB  nOldPos,
SCTAB  nNewPos 
)

◆ UpdateReference()

void ScDBCollection::UpdateReference ( UpdateRefMode  eUpdateRefMode,
SCCOL  nCol1,
SCROW  nRow1,
SCTAB  nTab1,
SCCOL  nCol2,
SCROW  nRow2,
SCTAB  nTab2,
SCCOL  nDx,
SCROW  nDy,
SCTAB  nDz 
)

Member Data Documentation

◆ aRefreshHandler

Link<Timer *, void> ScDBCollection::aRefreshHandler
private

Definition at line 314 of file dbdata.hxx.

Referenced by operator==().

◆ maAnonDBs

AnonDBs ScDBCollection::maAnonDBs
private

Definition at line 318 of file dbdata.hxx.

Referenced by DeleteOnTab(), empty(), GetDBAtArea(), operator==(), UpdateMoveTab(), and UpdateReference().

◆ maNamedDBs

NamedDBs ScDBCollection::maNamedDBs
private

◆ nEntryIndex

sal_uInt16 ScDBCollection::nEntryIndex
private

counter for unique indices

Definition at line 316 of file dbdata.hxx.

Referenced by operator==().

◆ rDoc

ScDocument& ScDBCollection::rDoc
private

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