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)
ScDBDatafindByName (const OUString &rName)
bool insert (std::unique_ptr< ScDBData > p)
 Takes ownership of p and attempts to insert it into the collection. More...
iterator 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 234 of file dbdata.hxx.

Member Typedef Documentation

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

Definition at line 250 of file dbdata.hxx.

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

Definition at line 238 of file dbdata.hxx.

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

Definition at line 249 of file dbdata.hxx.

Constructor & Destructor Documentation

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

Definition at line 1126 of file dbdata.cxx.

References mrParent.

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

Definition at line 1129 of file dbdata.cxx.

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

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

Definition at line 1142 of file dbdata.cxx.

Member Function Documentation

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

Definition at line 1179 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 1184 of file dbdata.cxx.

ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::erase ( const iterator itr)
ScDBData * ScDBCollection::NamedDBs::findByIndex ( sal_uInt16  nIndex)
ScDBData * ScDBCollection::NamedDBs::findByName ( const OUString &  rName)

Definition at line 1209 of file dbdata.cxx.

ScDBData * ScDBCollection::NamedDBs::findByUpperName ( const OUString &  rName)
auto ScDBCollection::NamedDBs::findByUpperName2 ( const OUString &  rName)

Definition at line 1203 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 1215 of file dbdata.cxx.

References mrParent.

Referenced by ScDBDocFunc::AddDBRange(), ScDBCollection::CopyToTable(), 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 1253 of file dbdata.cxx.

References m_DBs.

size_t ScDBCollection::NamedDBs::size ( ) const

Friends And Related Function Documentation

friend class ScDBCollection

Definition at line 236 of file dbdata.hxx.

Member Data Documentation

DBsType ScDBCollection::NamedDBs::m_DBs

Definition at line 239 of file dbdata.hxx.

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

ScDBCollection& ScDBCollection::NamedDBs::mrParent

Definition at line 240 of file dbdata.hxx.

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