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

#include <doubleref.hxx>

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

Public Member Functions

 ScDBInternalRange (ScDocument *pDoc, const ScRange &rRange)
 
virtual ~ScDBInternalRange () override
 
const ScRangegetRange () const
 
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

ScRange maRange
 

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

Constructor & Destructor Documentation

ScDBInternalRange::ScDBInternalRange ( ScDocument pDoc,
const ScRange rRange 
)
explicit

Definition at line 276 of file doubleref.cxx.

References maRange.

ScDBInternalRange::~ScDBInternalRange ( )
overridevirtual

Definition at line 281 of file doubleref.cxx.

Member Function Documentation

std::unique_ptr< ScDBQueryParamBase > ScDBInternalRange::createQueryParam ( const ScDBRangeBase pQueryRef) const
overridevirtual
SCCOL ScDBInternalRange::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 321 of file doubleref.cxx.

References ScRange::aStart, ScAddress::Col(), and getRange().

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

Implements ScDBRangeBase.

Definition at line 285 of file doubleref.cxx.

References ScRange::aEnd, ScRange::aStart, ScAddress::Col(), and maRange.

Referenced by getVisibleDataCellCount().

SCCOL ScDBInternalRange::getFirstFieldColumn ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 316 of file doubleref.cxx.

References ScRange::aStart, ScAddress::Col(), and getRange().

const ScRange& ScDBInternalRange::getRange ( ) const
inline

Definition at line 97 of file doubleref.hxx.

References maRange.

Referenced by findFieldColumn(), and getFirstFieldColumn().

SCROW ScDBInternalRange::getRowSize ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 290 of file doubleref.cxx.

References ScRange::aEnd, ScRange::aStart, maRange, and ScAddress::Row().

Referenced by getVisibleDataCellCount().

OUString ScDBInternalRange::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 305 of file doubleref.cxx.

References ScRange::aStart, aStr, ScAddress::Col(), ScDBRangeBase::getDoc(), ScDocument::GetInputString(), maRange, ScAddress::Row(), and ScAddress::Tab().

SCSIZE ScDBInternalRange::getVisibleDataCellCount ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 295 of file doubleref.cxx.

References getColSize(), and getRowSize().

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

Implements ScDBRangeBase.

Definition at line 385 of file doubleref.cxx.

References maRange.

Member Data Documentation

ScRange ScDBInternalRange::maRange
private

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