LibreOffice Module sc (master)  1
Public Member Functions | Private Attributes | List of all members
ScDBExternalRange Class Reference

#include <doubleref.hxx>

Inheritance diagram for ScDBExternalRange:
[legend]
Collaboration diagram for ScDBExternalRange:
[legend]

Public Member Functions

 ScDBExternalRange (ScDocument *pDoc, const ScMatrixRef &pMat)
 
virtual ~ScDBExternalRange () override
 
virtual SCCOL getColSize () const override
 
virtual SCROW getRowSize () const override
 
virtual SCSIZE getVisibleDataCellCount () const override
 
virtual OUString getString (SCCOL nCol, SCROW nRow) const override
 Get a string value of a specified cell position. More...
 
virtual SCCOL getFirstFieldColumn () const override
 
virtual SCCOL findFieldColumn (SCCOL nIndex) const override
 Get a 0-based column index that corresponds with the passed field index. More...
 
virtual SCCOL findFieldColumn (const OUString &rStr, FormulaError *pErr=nullptr) const override
 
virtual std::unique_ptr< ScDBQueryParamBasecreateQueryParam (const ScDBRangeBase *pQueryRef) const override
 
virtual bool isRangeEqual (const ScRange &rRange) const override
 
- Public Member Functions inherited from ScDBRangeBase
 ScDBRangeBase ()=delete
 
virtual ~ScDBRangeBase ()=0
 
bool fillQueryEntries (ScQueryParamBase *pParam, const ScDBRangeBase *pDBRef) const
 

Private Attributes

const ScMatrixRef mpMatrix
 
SCCOL mnCols
 
SCROW mnRows
 

Additional Inherited Members

- Protected Member Functions inherited from ScDBRangeBase
 ScDBRangeBase (ScDocument *pDoc)
 
ScDocumentgetDoc () const
 
- Static Protected Member Functions inherited from ScDBRangeBase
static void fillQueryOptions (ScQueryParamBase *pParam)
 Populate query options that are always the same for all database queries. More...
 

Detailed Description

Definition at line 132 of file doubleref.hxx.

Constructor & Destructor Documentation

ScDBExternalRange::ScDBExternalRange ( ScDocument pDoc,
const ScMatrixRef pMat 
)
explicit

Definition at line 390 of file doubleref.cxx.

References mnCols, mnRows, and mpMatrix.

ScDBExternalRange::~ScDBExternalRange ( )
overridevirtual

Definition at line 399 of file doubleref.cxx.

Member Function Documentation

std::unique_ptr< ScDBQueryParamBase > ScDBExternalRange::createQueryParam ( const ScDBRangeBase pQueryRef) const
overridevirtual
SCCOL ScDBExternalRange::findFieldColumn ( SCCOL  nIndex) const
overridevirtual

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.

Parameters
nIndex1-based field index.
Returns
0-based column index

Implements ScDBRangeBase.

Definition at line 436 of file doubleref.cxx.

SCCOL ScDBExternalRange::findFieldColumn ( const OUString &  rStr,
FormulaError pErr = nullptr 
) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 441 of file doubleref.cxx.

References i, mnCols, and mpMatrix.

SCCOL ScDBExternalRange::getColSize ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 403 of file doubleref.cxx.

References mnCols.

Referenced by getVisibleDataCellCount().

SCCOL ScDBExternalRange::getFirstFieldColumn ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 431 of file doubleref.cxx.

SCROW ScDBExternalRange::getRowSize ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 408 of file doubleref.cxx.

References mnRows.

Referenced by getVisibleDataCellCount().

OUString ScDBExternalRange::getString ( SCCOL  nCol,
SCROW  nRow 
) const
overridevirtual

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.

Parameters
nColcolumn position (0 to column size-1)
nRowrow position (0 to row size-1)

Implements ScDBRangeBase.

Definition at line 423 of file doubleref.cxx.

References mnCols, mnRows, and mpMatrix.

SCSIZE ScDBExternalRange::getVisibleDataCellCount ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 413 of file doubleref.cxx.

References getColSize(), and getRowSize().

bool ScDBExternalRange::isRangeEqual ( const ScRange rRange) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 471 of file doubleref.cxx.

Member Data Documentation

SCCOL ScDBExternalRange::mnCols
private

Definition at line 170 of file doubleref.hxx.

Referenced by findFieldColumn(), getColSize(), getString(), and ScDBExternalRange().

SCROW ScDBExternalRange::mnRows
private

Definition at line 171 of file doubleref.hxx.

Referenced by getRowSize(), getString(), and ScDBExternalRange().

const ScMatrixRef ScDBExternalRange::mpMatrix
private

Definition at line 169 of file doubleref.hxx.

Referenced by createQueryParam(), findFieldColumn(), getString(), and ScDBExternalRange().


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