LibreOffice Module sc (master) 1
|
Stores global named database ranges. More...
#include <dbdata.hxx>
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 |
ScDBData * | findByIndex (sal_uInt16 nIndex) |
ScDBData * | findByUpperName (const OUString &rName) |
iterator | findByUpperName2 (const OUString &rName) |
ScDBData * | findByName (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 () |
ScDocument & | GetDocument () const |
ScRangeList & | GetDirtyTableColumnNames () |
Private Types | |
typedef ::std::set< std::unique_ptr< ScDBData >, ScDBData::less > | DBsType |
Private Member Functions | |
NamedDBs (ScDBCollection &rParent, ScDocument &rDoc) | |
NamedDBs (const NamedDBs &r, ScDBCollection &rParent) | |
NamedDBs (const NamedDBs &)=delete | |
virtual | ~NamedDBs () override |
NamedDBs & | operator= (NamedDBs const &)=delete |
void | initInserted (ScDBData *p) |
Private Attributes | |
DBsType | m_DBs |
ScDBCollection & | mrParent |
Friends | |
class | ScDBCollection |
Additional Inherited Members | |
Protected Attributes inherited from ScDBDataContainerBase | |
ScDocument & | mrDoc |
ScRangeList | maDirtyTableColumnNames |
Stores global named database ranges.
Definition at line 242 of file dbdata.hxx.
typedef DBsType::const_iterator ScDBCollection::NamedDBs::const_iterator |
Definition at line 258 of file dbdata.hxx.
|
private |
Definition at line 246 of file dbdata.hxx.
typedef DBsType::iterator ScDBCollection::NamedDBs::iterator |
Definition at line 257 of file dbdata.hxx.
|
private |
Definition at line 1151 of file dbdata.cxx.
References mrParent.
|
private |
Definition at line 1154 of file dbdata.cxx.
References initInserted(), m_DBs, mrParent, p, and pData.
|
privatedelete |
|
overrideprivatevirtual |
Definition at line 1167 of file dbdata.cxx.
ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::begin | ( | ) |
Definition at line 1194 of file dbdata.cxx.
Referenced by ScTabViewShell::Construct(), ScDBCollection::DeleteOnTab(), ScDBCollection::GetDBAtArea(), ScDBCollection::GetDBAtCursor(), ScDatabaseRangesObj::GetObjectByIndex_Impl(), IMPL_LINK_NOARG(), ScAreaNameIterator::Next(), ScDBCollection::UpdateMoveTab(), ScDBCollection::UpdateReference(), and ScXMLExportDatabaseRanges::WriteDatabaseRanges().
ScDBCollection::NamedDBs::const_iterator ScDBCollection::NamedDBs::begin | ( | ) | const |
Definition at line 1204 of file dbdata.cxx.
bool ScDBCollection::NamedDBs::empty | ( | ) | const |
Definition at line 1268 of file dbdata.cxx.
Referenced by ScDBCollection::empty(), ScDatabaseRangesObj::GetObjectByIndex_Impl(), XclExpTablesManager::Initialize(), and ScXMLExportDatabaseRanges::WriteDatabaseRanges().
ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::end | ( | ) |
Definition at line 1199 of file dbdata.cxx.
Referenced by ScTabViewShell::Construct(), ScDBDocFunc::DeleteDBRange(), ScDBCollection::DeleteOnTab(), ScDBCollection::GetDBAtArea(), ScDBCollection::GetDBAtCursor(), IMPL_LINK_NOARG(), ScAreaNameIterator::Next(), ScDBDocFunc::RenameDBRange(), ScDBCollection::UpdateMoveTab(), ScDBCollection::UpdateReference(), and ScXMLExportDatabaseRanges::WriteDatabaseRanges().
ScDBCollection::NamedDBs::const_iterator ScDBCollection::NamedDBs::end | ( | ) | const |
Definition at line 1209 of file dbdata.cxx.
ScDBCollection::NamedDBs::iterator ScDBCollection::NamedDBs::erase | ( | const iterator & | itr | ) |
Definition at line 1263 of file dbdata.cxx.
Referenced by ScDBDocFunc::DeleteDBRange(), ScDBCollection::DeleteOnTab(), IMPL_LINK_NOARG(), ScDBDocFunc::RenameDBRange(), and ScDBCollection::UpdateReference().
ScDBData * ScDBCollection::NamedDBs::findByIndex | ( | sal_uInt16 | nIndex | ) |
Definition at line 1214 of file dbdata.cxx.
References nIndex.
Referenced by ScCompiler::CreateStringFromIndex(), oox::xls::WorkbookGlobals::findDatabaseRangeByIndex(), ScValidationData::GetSelectionFromFormula(), ScCompiler::HandleDbData(), ScCompiler::HandleTableRef(), ScCompiler::ParseTableRefColumn(), and ScInterpreter::ScDBArea().
ScDBData * ScDBCollection::NamedDBs::findByName | ( | const OUString & | rName | ) |
Definition at line 1234 of file dbdata.cxx.
ScDBData * ScDBCollection::NamedDBs::findByUpperName | ( | const OUString & | rName | ) |
Definition at line 1221 of file dbdata.cxx.
Referenced by ScUndoAutoFilter::DoChange(), ScDocShell::Execute(), ScAreaLink::FindExtRange(), sc::ScDBDataManager::getDBData(), ScDocShell::GetDBData(), ScDatabaseRangeObj::GetDBData_Impl(), ScDBFunc::GotoDBArea(), ScDatabaseRangesObj::hasByName(), lcl_GetDBAreaRange(), lcl_GetRange(), ScRangeUtil::MakeRangeFromName(), ScDBDocFunc::ModifyDBData(), ScCompiler::ParseDBRange(), ScCompiler::ParseValue(), ScDBDocFunc::RenameDBRange(), ScDBDocFunc::RepeatDB(), ScInterpreter::ScIndirect(), ScUndoConsolidate::Undo(), ScDbNameDlg::UpdateDBData(), and ScDBDocFunc::UpdateImport().
auto ScDBCollection::NamedDBs::findByUpperName2 | ( | const OUString & | rName | ) |
Definition at line 1228 of file dbdata.cxx.
Referenced by ScDBDocFunc::DeleteDBRange(), and ScDBDocFunc::RenameDBRange().
|
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.
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().
bool ScDBCollection::NamedDBs::operator== | ( | const NamedDBs & | r | ) | const |
Definition at line 1278 of file dbdata.cxx.
References m_DBs.
size_t ScDBCollection::NamedDBs::size | ( | ) | const |
Definition at line 1273 of file dbdata.cxx.
Referenced by ScDBCollection::CopyToTable(), ScDatabaseRangesObj::getCount(), ScDatabaseRangesObj::getElementNames(), ScDatabaseRangesObj::GetObjectByIndex_Impl(), and ScConsolidateDlg::Init().
|
friend |
Definition at line 244 of file dbdata.hxx.
|
private |
Definition at line 247 of file dbdata.hxx.
Referenced by NamedDBs(), and operator==().
|
private |
Definition at line 248 of file dbdata.hxx.