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:
Collaboration diagram for ScDBCollection::NamedDBs:

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


class ScDBCollection

Additional Inherited Members

- Protected Attributes inherited from ScDBDataContainerBase
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

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 

Definition at line 1097 of file dbdata.cxx.

References mrParent.

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

Definition at line 1100 of file dbdata.cxx.

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

ScDBCollection::NamedDBs::NamedDBs ( const NamedDBs )
ScDBCollection::NamedDBs::~NamedDBs ( )

Definition at line 1113 of file dbdata.cxx.

Member Function Documentation

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

Definition at line 1150 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 1155 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 1174 of file dbdata.cxx.

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

void ScDBCollection::NamedDBs::initInserted ( ScDBData p)
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.

<TRUE> if inserted, else <FALSE>.

Definition at line 1180 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 &  )
bool ScDBCollection::NamedDBs::operator== ( const NamedDBs r) const

Definition at line 1218 of file dbdata.cxx.

References m_DBs.

size_t ScDBCollection::NamedDBs::size ( ) const

Friends And Related Function Documentation

friend class ScDBCollection

Definition at line 237 of file dbdata.hxx.

Member Data Documentation

DBsType ScDBCollection::NamedDBs::m_DBs

Definition at line 240 of file dbdata.hxx.

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

ScDBCollection& ScDBCollection::NamedDBs::mrParent

Definition at line 241 of file dbdata.hxx.

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