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

#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
 
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

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::ScDBInternalRange ( ScDocument pDoc,
const ScRange rRange 
)
explicit

Definition at line 276 of file doubleref.cxx.

References maRange.

◆ ~ScDBInternalRange()

ScDBInternalRange::~ScDBInternalRange ( )
overridevirtual

Definition at line 281 of file doubleref.cxx.

Member Function Documentation

◆ createQueryParam()

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

◆ findFieldColumn() [1/2]

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

◆ findFieldColumn() [2/2]

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

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

◆ getColSize()

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().

◆ getFirstFieldColumn()

SCCOL ScDBInternalRange::getFirstFieldColumn ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 314 of file doubleref.cxx.

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

◆ getRange()

const ScRange & ScDBInternalRange::getRange ( ) const
inline

Definition at line 97 of file doubleref.hxx.

References maRange.

Referenced by findFieldColumn(), and getFirstFieldColumn().

◆ getRowSize()

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().

◆ getString()

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, ScAddress::Col(), ScDBRangeBase::getDoc(), ScDocument::GetInputString(), maRange, ScAddress::Row(), and ScAddress::Tab().

◆ getVisibleDataCellCount()

SCSIZE ScDBInternalRange::getVisibleDataCellCount ( ) const
overridevirtual

Implements ScDBRangeBase.

Definition at line 295 of file doubleref.cxx.

References getColSize(), and getRowSize().

◆ isRangeEqual()

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

Implements ScDBRangeBase.

Definition at line 383 of file doubleref.cxx.

References maRange.

Member Data Documentation

◆ maRange

ScRange ScDBInternalRange::maRange
private

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