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 *pDocument)
 
 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)
 
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 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 *, voidaRefreshHandler
 
ScDocumentpDoc
 
sal_uInt16 nEntryIndex
 counter for unique indices More...
 
NamedDBs maNamedDBs
 
AnonDBs maAnonDBs
 

Detailed Description

Definition at line 227 of file dbdata.hxx.

Member Enumeration Documentation

Enumerator
GlobalNamed 
GlobalAnonymous 
SheetAnonymous 

Definition at line 230 of file dbdata.hxx.

Constructor & Destructor Documentation

ScDBCollection::ScDBCollection ( ScDocument pDocument)

Definition at line 1290 of file dbdata.cxx.

ScDBCollection::ScDBCollection ( const ScDBCollection r)

Definition at line 1293 of file dbdata.cxx.

Member Function Documentation

void ScDBCollection::DeleteOnTab ( SCTAB  nTab)
bool ScDBCollection::empty ( ) const
AnonDBs& ScDBCollection::getAnonDBs ( )
inline
const AnonDBs& ScDBCollection::getAnonDBs ( ) const
inline

Definition at line 319 of file dbdata.hxx.

const ScDBData * ScDBCollection::GetDBAtArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
) const
ScDBData * ScDBCollection::GetDBAtArea ( SCTAB  nTab,
SCCOL  nCol1,
SCROW  nRow1,
SCCOL  nCol2,
SCROW  nRow2 
)
const ScDBData * ScDBCollection::GetDBAtCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDBDataPortion  ePortion 
) const
ScDBData * ScDBCollection::GetDBAtCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab,
ScDBDataPortion  ePortion 
)
ScDBData * ScDBCollection::GetDBNearCursor ( SCCOL  nCol,
SCROW  nRow,
SCTAB  nTab 
)

Definition at line 1469 of file dbdata.cxx.

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

Referenced by ScDocShell::GetDBData().

NamedDBs& ScDBCollection::getNamedDBs ( )
inline
const NamedDBs& ScDBCollection::getNamedDBs ( ) const
inline

Definition at line 316 of file dbdata.hxx.

const Link<Timer *, void>& ScDBCollection::GetRefreshHandler ( ) const
inline
bool ScDBCollection::operator== ( const ScDBCollection r) const

Definition at line 1500 of file dbdata.cxx.

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

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

Definition at line 336 of file dbdata.hxx.

Referenced by ScDocShell::ScDocShell().

void ScDBCollection::UpdateMoveTab ( SCTAB  nOldPos,
SCTAB  nNewPos 
)
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

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

Definition at line 305 of file dbdata.hxx.

Referenced by operator==().

AnonDBs ScDBCollection::maAnonDBs
private

Definition at line 309 of file dbdata.hxx.

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

NamedDBs ScDBCollection::maNamedDBs
private
sal_uInt16 ScDBCollection::nEntryIndex
private

counter for unique indices

Definition at line 307 of file dbdata.hxx.

Referenced by operator==().

ScDocument* ScDBCollection::pDoc
private

Definition at line 306 of file dbdata.hxx.

Referenced by GetDBAtArea(), GetDBAtCursor(), GetDBNearCursor(), operator==(), and UpdateReference().


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