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

#include <doubleref.hxx>

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

Public Member Functions

 ScDBExternalRange (ScDocument *pDoc, 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
 
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< ScDBQueryParamBasecreateQueryParam (const ScDBRangeBase *pQueryRef) const =0
 
virtual bool isRangeEqual (const ScRange &rRange) const =0
 

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 134 of file doubleref.hxx.

Constructor & Destructor Documentation

◆ ScDBExternalRange()

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

Definition at line 388 of file doubleref.cxx.

References mnCols, mnRows, and mpMatrix.

◆ ~ScDBExternalRange()

ScDBExternalRange::~ScDBExternalRange ( )
overridevirtual

Definition at line 397 of file doubleref.cxx.

Member Function Documentation

◆ createQueryParam()

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

◆ findFieldColumn() [1/2]

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

Implements ScDBRangeBase.

Definition at line 439 of file doubleref.cxx.

References i, mnCols, and mpMatrix.

◆ findFieldColumn() [2/2]

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 434 of file doubleref.cxx.

References nIndex.

◆ getColSize()

SCCOL ScDBExternalRange::getColSize ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 401 of file doubleref.cxx.

References mnCols.

Referenced by getVisibleDataCellCount().

◆ getFirstFieldColumn()

SCCOL ScDBExternalRange::getFirstFieldColumn ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 429 of file doubleref.cxx.

◆ getRowSize()

SCROW ScDBExternalRange::getRowSize ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 406 of file doubleref.cxx.

References mnRows.

Referenced by getVisibleDataCellCount().

◆ getString()

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 421 of file doubleref.cxx.

References mnCols, mnRows, and mpMatrix.

◆ getVisibleDataCellCount()

SCSIZE ScDBExternalRange::getVisibleDataCellCount ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 411 of file doubleref.cxx.

References getColSize(), and getRowSize().

◆ isRangeEqual()

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

Implements ScDBRangeBase.

Definition at line 469 of file doubleref.cxx.

Member Data Documentation

◆ mnCols

SCCOL ScDBExternalRange::mnCols
private

Definition at line 174 of file doubleref.hxx.

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

◆ mnRows

SCROW ScDBExternalRange::mnRows
private

Definition at line 175 of file doubleref.hxx.

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

◆ mpMatrix

const ScMatrixRef ScDBExternalRange::mpMatrix
private

Definition at line 173 of file doubleref.hxx.

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


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