make more methods const in ScTable
Change-Id: Ib61ab9ea33ea94d6175a2110105849279d1ad440
This commit is contained in:
@@ -311,7 +311,7 @@ public:
|
||||
void SetValue( SCCOL nCol, SCROW nRow, const double& rVal );
|
||||
void SetError( SCCOL nCol, SCROW nRow, sal_uInt16 nError);
|
||||
|
||||
void GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString );
|
||||
void GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString ) const;
|
||||
void GetInputString( SCCOL nCol, SCROW nRow, rtl::OUString& rString ) const;
|
||||
double GetValue( const ScAddress& rPos ) const
|
||||
{
|
||||
@@ -852,15 +852,15 @@ private:
|
||||
ScRangeList& rMatchedRanges, rtl::OUString& rUndoStr, ScDocument* pUndoDoc);
|
||||
|
||||
// use the global sort parameter:
|
||||
bool IsSorted(SCCOLROW nStart, SCCOLROW nEnd);
|
||||
bool IsSorted(SCCOLROW nStart, SCCOLROW nEnd) const;
|
||||
void DecoladeRow( ScSortInfoArray*, SCROW nRow1, SCROW nRow2 );
|
||||
void SwapCol(SCCOL nCol1, SCCOL nCol2);
|
||||
void SwapRow(SCROW nRow1, SCROW nRow2);
|
||||
short CompareCell( sal_uInt16 nSort,
|
||||
ScBaseCell* pCell1, SCCOL nCell1Col, SCROW nCell1Row,
|
||||
ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row );
|
||||
short Compare(SCCOLROW nIndex1, SCCOLROW nIndex2);
|
||||
short Compare( ScSortInfoArray*, SCCOLROW nIndex1, SCCOLROW nIndex2);
|
||||
ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row ) const;
|
||||
short Compare(SCCOLROW nIndex1, SCCOLROW nIndex2) const;
|
||||
short Compare( ScSortInfoArray*, SCCOLROW nIndex1, SCCOLROW nIndex2) const;
|
||||
ScSortInfoArray* CreateSortInfoArray( SCCOLROW nInd1, SCCOLROW nInd2 );
|
||||
void QuickSort( ScSortInfoArray*, SCsCOLROW nLo, SCsCOLROW nHi);
|
||||
void SortReorder( ScSortInfoArray*, ScProgress& );
|
||||
|
@@ -1294,7 +1294,7 @@ void ScTable::SetValue( SCCOL nCol, SCROW nRow, const double& rVal )
|
||||
}
|
||||
|
||||
|
||||
void ScTable::GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString )
|
||||
void ScTable::GetString( SCCOL nCol, SCROW nRow, rtl::OUString& rString ) const
|
||||
{
|
||||
if (ValidColRow(nCol,nRow))
|
||||
aCol[nCol].GetString( nRow, rString );
|
||||
|
@@ -378,7 +378,7 @@ void ScTable::SortReorder( ScSortInfoArray* pArray, ScProgress& rProgress )
|
||||
|
||||
short ScTable::CompareCell( sal_uInt16 nSort,
|
||||
ScBaseCell* pCell1, SCCOL nCell1Col, SCROW nCell1Row,
|
||||
ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row )
|
||||
ScBaseCell* pCell2, SCCOL nCell2Col, SCROW nCell2Row ) const
|
||||
{
|
||||
short nRes = 0;
|
||||
|
||||
@@ -490,7 +490,7 @@ short ScTable::CompareCell( sal_uInt16 nSort,
|
||||
return nRes;
|
||||
}
|
||||
|
||||
short ScTable::Compare( ScSortInfoArray* pArray, SCCOLROW nIndex1, SCCOLROW nIndex2 )
|
||||
short ScTable::Compare( ScSortInfoArray* pArray, SCCOLROW nIndex1, SCCOLROW nIndex2 ) const
|
||||
{
|
||||
short nRes;
|
||||
sal_uInt16 nSort = 0;
|
||||
@@ -681,7 +681,7 @@ void ScTable::SwapRow(SCROW nRow1, SCROW nRow2)
|
||||
}
|
||||
}
|
||||
|
||||
short ScTable::Compare(SCCOLROW nIndex1, SCCOLROW nIndex2)
|
||||
short ScTable::Compare(SCCOLROW nIndex1, SCCOLROW nIndex2) const
|
||||
{
|
||||
short nRes;
|
||||
sal_uInt16 nSort = 0;
|
||||
@@ -710,7 +710,7 @@ short ScTable::Compare(SCCOLROW nIndex1, SCCOLROW nIndex2)
|
||||
return nRes;
|
||||
}
|
||||
|
||||
bool ScTable::IsSorted( SCCOLROW nStart, SCCOLROW nEnd ) // ueber aSortParam
|
||||
bool ScTable::IsSorted( SCCOLROW nStart, SCCOLROW nEnd ) const // ueber aSortParam
|
||||
{
|
||||
for (SCCOLROW i=nStart; i<nEnd; i++)
|
||||
{
|
||||
|
Reference in New Issue
Block a user