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)
 
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
 
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 242 of file dbdata.hxx.

Member Typedef Documentation

◆ const_iterator

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

Definition at line 258 of file dbdata.hxx.

◆ DBsType

Definition at line 246 of file dbdata.hxx.

◆ iterator

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

Definition at line 257 of file dbdata.hxx.

Constructor & Destructor Documentation

◆ NamedDBs() [1/3]

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

Definition at line 1151 of file dbdata.cxx.

References mrParent.

◆ NamedDBs() [2/3]

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

Definition at line 1154 of file dbdata.cxx.

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

◆ NamedDBs() [3/3]

ScDBCollection::NamedDBs::NamedDBs ( const NamedDBs )
privatedelete

◆ ~NamedDBs()

ScDBCollection::NamedDBs::~NamedDBs ( )
overrideprivatevirtual

Definition at line 1167 of file dbdata.cxx.

Member Function Documentation

◆ begin() [1/2]

ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::begin ( )

◆ begin() [2/2]

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

Definition at line 1204 of file dbdata.cxx.

◆ empty()

bool ScDBCollection::NamedDBs::empty ( ) const

◆ end() [1/2]

ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::end ( )

◆ end() [2/2]

ScDBCollection::NamedDBs::const_iterator ScDBCollection::NamedDBs::end ( ) const

Definition at line 1209 of file dbdata.cxx.

◆ erase()

ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::erase ( const iterator itr)

◆ findByIndex()

ScDBData * ScDBCollection::NamedDBs::findByIndex ( sal_uInt16  nIndex)

◆ findByName()

ScDBData * ScDBCollection::NamedDBs::findByName ( const OUString &  rName)

Definition at line 1234 of file dbdata.cxx.

◆ findByUpperName()

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

◆ findByUpperName2()

auto ScDBCollection::NamedDBs::findByUpperName2 ( const OUString &  rName)

Definition at line 1228 of file dbdata.cxx.

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

◆ initInserted()

void ScDBCollection::NamedDBs::initInserted ( ScDBData p)
private

Definition at line 1171 of file dbdata.cxx.

References p.

Referenced by NamedDBs().

◆ insert()

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 1240 of file dbdata.cxx.

References mrParent, p, and pData.

Referenced by ScDBDocFunc::AddDBRange(), ScDBCollection::CopyToTable(), ScXMLDatabaseRangeContext::endFastElement(), ScDocShell::GetDBData(), and ScDBDocFunc::RenameDBRange().

◆ operator=()

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

◆ operator==()

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

Definition at line 1278 of file dbdata.cxx.

References m_DBs.

◆ size()

size_t ScDBCollection::NamedDBs::size ( ) const

Friends And Related Function Documentation

◆ ScDBCollection

friend class ScDBCollection
friend

Definition at line 244 of file dbdata.hxx.

Member Data Documentation

◆ m_DBs

DBsType ScDBCollection::NamedDBs::m_DBs
private

Definition at line 247 of file dbdata.hxx.

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

◆ mrParent

ScDBCollection& ScDBCollection::NamedDBs::mrParent
private

Definition at line 248 of file dbdata.hxx.


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