LibreOffice Module sc (master)  1
Public Types | Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends | List of all members
ScDBCollection::NamedDBs Class Referencefinal

Stores global named database ranges. More...

#include <dbdata.hxx>

Inheritance diagram for ScDBCollection::NamedDBs:
[legend]
Collaboration diagram for ScDBCollection::NamedDBs:
[legend]

Public Types

typedef DBsType::iterator iterator
 
typedef DBsType::const_iterator const_iterator
 

Public Member Functions

iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
ScDBDatafindByIndex (sal_uInt16 nIndex)
 
ScDBDatafindByUpperName (const OUString &rName)
 
iterator findByUpperName2 (const OUString &rName)
 
bool insert (std::unique_ptr< ScDBData > p)
 Takes ownership of p and attempts to insert it into the collection. More...
 
void erase (const iterator &itr)
 
bool empty () const
 
size_t size () const
 
bool operator== (const NamedDBs &r) const
 
- Public Member Functions inherited from ScDBDataContainerBase
 ScDBDataContainerBase (ScDocument &rDoc)
 
virtual ~ScDBDataContainerBase ()
 
ScDocumentGetDocument () const
 
ScRangeListGetDirtyTableColumnNames ()
 

Private Types

typedef ::std::set< std::unique_ptr< ScDBData >, ScDBData::lessDBsType
 

Private Member Functions

 NamedDBs (ScDBCollection &rParent, ScDocument &rDoc)
 
 NamedDBs (const NamedDBs &r, ScDBCollection &rParent)
 
 NamedDBs (const NamedDBs &)=delete
 
virtual ~NamedDBs () override
 
NamedDBsoperator= (NamedDBs const &)=delete
 
void initInserted (ScDBData *p)
 

Private Attributes

DBsType m_DBs
 
ScDBCollectionmrParent
 

Friends

class ScDBCollection
 

Additional Inherited Members

- Protected Attributes inherited from ScDBDataContainerBase
ScDocumentmrDoc
 
ScRangeList maDirtyTableColumnNames
 

Detailed Description

Stores global named database ranges.

Definition at line 235 of file dbdata.hxx.

Member Typedef Documentation

typedef DBsType::const_iterator ScDBCollection::NamedDBs::const_iterator

Definition at line 251 of file dbdata.hxx.

typedef ::std::set<std::unique_ptr<ScDBData>, ScDBData::less> ScDBCollection::NamedDBs::DBsType
private

Definition at line 239 of file dbdata.hxx.

typedef DBsType::iterator ScDBCollection::NamedDBs::iterator

Definition at line 250 of file dbdata.hxx.

Constructor & Destructor Documentation

ScDBCollection::NamedDBs::NamedDBs ( ScDBCollection rParent,
ScDocument rDoc 
)
private

Definition at line 1075 of file dbdata.cxx.

References mrParent.

ScDBCollection::NamedDBs::NamedDBs ( const NamedDBs r,
ScDBCollection rParent 
)
private

Definition at line 1078 of file dbdata.cxx.

References initInserted(), m_DBs, mrParent, and pData.

ScDBCollection::NamedDBs::NamedDBs ( const NamedDBs )
privatedelete
ScDBCollection::NamedDBs::~NamedDBs ( )
overrideprivatevirtual

Definition at line 1091 of file dbdata.cxx.

Member Function Documentation

ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::begin ( )
ScDBCollection::NamedDBs::const_iterator ScDBCollection::NamedDBs::begin ( ) const

Definition at line 1128 of file dbdata.cxx.

bool ScDBCollection::NamedDBs::empty ( ) const
ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::end ( )
ScDBCollection::NamedDBs::const_iterator ScDBCollection::NamedDBs::end ( ) const

Definition at line 1133 of file dbdata.cxx.

void ScDBCollection::NamedDBs::erase ( const iterator itr)
ScDBData * ScDBCollection::NamedDBs::findByIndex ( sal_uInt16  nIndex)
ScDBData * ScDBCollection::NamedDBs::findByUpperName ( const OUString &  rName)
auto ScDBCollection::NamedDBs::findByUpperName2 ( const OUString &  rName)

Definition at line 1152 of file dbdata.cxx.

Referenced by ScDBDocFunc::DeleteDBRange(), and ScDBDocFunc::RenameDBRange().

void ScDBCollection::NamedDBs::initInserted ( ScDBData p)
private
bool ScDBCollection::NamedDBs::insert ( std::unique_ptr< ScDBData p)

Takes ownership of p and attempts to insert it into the collection.

Deletes p if it could not be inserted, i.e. duplicate name.

Returns
<TRUE> if inserted, else <FALSE>.

Definition at line 1158 of file dbdata.cxx.

References mrParent.

Referenced by ScDBDocFunc::AddDBRange(), ScXMLDatabaseRangeContext::endFastElement(), ScDocShell::GetDBData(), ScDocument::GetFormulaEntries(), and ScDBDocFunc::RenameDBRange().

NamedDBs& ScDBCollection::NamedDBs::operator= ( NamedDBs const &  )
privatedelete
bool ScDBCollection::NamedDBs::operator== ( const NamedDBs r) const

Definition at line 1196 of file dbdata.cxx.

References m_DBs.

size_t ScDBCollection::NamedDBs::size ( ) const

Friends And Related Function Documentation

friend class ScDBCollection
friend

Definition at line 237 of file dbdata.hxx.

Member Data Documentation

DBsType ScDBCollection::NamedDBs::m_DBs
private

Definition at line 240 of file dbdata.hxx.

Referenced by NamedDBs(), and operator==().

ScDBCollection& ScDBCollection::NamedDBs::mrParent
private

Definition at line 241 of file dbdata.hxx.


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