LibreOffice Module sc (master) 1
|
Base class for abstracting range data backends for database functions. More...
#include <doubleref.hxx>
Public Member Functions | |
ScDBRangeBase ()=delete | |
virtual | ~ScDBRangeBase ()=0 |
bool | fillQueryEntries (ScQueryParamBase *pParam, const ScDBRangeBase *pDBRef) const |
virtual SCCOL | getColSize () const =0 |
virtual SCROW | getRowSize () const =0 |
virtual SCSIZE | getVisibleDataCellCount () const =0 |
virtual OUString | getString (SCCOL nCol, SCROW nRow) const =0 |
Get a string value of a specified cell position. More... | |
virtual SCCOL | getFirstFieldColumn () const =0 |
virtual SCCOL | findFieldColumn (SCCOL nIndex) const =0 |
Get a 0-based column index that corresponds with the passed field index. More... | |
virtual SCCOL | findFieldColumn (const OUString &rStr, FormulaError *pErr=nullptr) const =0 |
virtual std::unique_ptr< ScDBQueryParamBase > | createQueryParam (const ScDBRangeBase *pQueryRef) const =0 |
virtual bool | isRangeEqual (const ScRange &rRange) const =0 |
Protected Member Functions | |
ScDBRangeBase (ScDocument *pDoc) | |
ScDocument * | getDoc () const |
Static Protected Member Functions | |
static void | fillQueryOptions (ScQueryParamBase *pParam) |
Populate query options that are always the same for all database queries. More... | |
Private Attributes | |
ScDocument * | mpDoc |
Base class for abstracting range data backends for database functions.
Definition at line 37 of file doubleref.hxx.
|
delete |
|
pure virtual |
Definition at line 254 of file doubleref.cxx.
|
protected |
Definition at line 249 of file doubleref.cxx.
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
bool ScDBRangeBase::fillQueryEntries | ( | ScQueryParamBase * | pParam, |
const ScDBRangeBase * | pDBRef | ||
) | const |
Definition at line 258 of file doubleref.cxx.
References getDoc().
Referenced by ScDBInternalRange::createQueryParam(), and ScDBExternalRange::createQueryParam().
|
staticprotected |
Populate query options that are always the same for all database queries.
Definition at line 266 of file doubleref.cxx.
References ScQueryParamBase::bByRow, ScQueryParamBase::bCaseSens, ScQueryParamBase::bDuplicate, ScQueryParamBase::bHasHeader, ScQueryParamBase::bInplace, ScQueryParamBase::eSearchType, and utl::SearchParam::Normal.
Referenced by ScDBInternalRange::createQueryParam(), and ScDBExternalRange::createQueryParam().
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
Get a 0-based column index that corresponds with the passed field index.
Note that the field index passed as the 1st parameter is 1-based.
nIndex | 1-based field index. |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
inlineprotected |
Definition at line 79 of file doubleref.hxx.
References mpDoc.
Referenced by fillQueryEntries(), ScDBInternalRange::findFieldColumn(), and ScDBInternalRange::getString().
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
Get a string value of a specified cell position.
Note that the position of the upper left cell of the range is always (0, 0) even if the reference type is of internal range.
nCol | column position (0 to column size-1) |
nRow | row position (0 to row size-1) |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
pure virtual |
Implemented in ScDBInternalRange, and ScDBExternalRange.
|
private |
Definition at line 88 of file doubleref.hxx.
Referenced by getDoc().