summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-09 23:48:48 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-08-10 00:48:41 +0200
commit067dca9c3e70091850dbb1d374170c2fce708e84 (patch)
tree77b62c54178a95d508e81b10cc22600cea672e82
parent8f92384031e332024ba39693b855bde67e033ac9 (diff)
make more calc methods const
Change-Id: Ifc4775546ded8f524379946eb799dbbb314f7e8c
-rw-r--r--sc/inc/document.hxx4
-rw-r--r--sc/inc/table.hxx4
-rw-r--r--sc/source/core/data/document.cxx4
-rw-r--r--sc/source/core/data/table1.cxx4
4 files changed, 8 insertions, 8 deletions
diff --git a/sc/inc/document.hxx b/sc/inc/document.hxx
index 7b8e48b83b88..ba23156effac 100644
--- a/sc/inc/document.hxx
+++ b/sc/inc/document.hxx
@@ -955,9 +955,9 @@ public:
SCCOL nEndCol, SCROW nEndRow, SCTAB nEndTab,
ScDirection eDir );
- SC_DLLPUBLIC void FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirection eDirection );
+ SC_DLLPUBLIC void FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirection eDirection ) const;
SC_DLLPUBLIC void GetNextPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, SCsCOL nMovX, SCsROW nMovY,
- bool bMarked, bool bUnprotected, const ScMarkData& rMark );
+ bool bMarked, bool bUnprotected, const ScMarkData& rMark ) const;
bool GetNextMarkedCell( SCCOL& rCol, SCROW& rRow, SCTAB nTab,
const ScMarkData& rMark );
diff --git a/sc/inc/table.hxx b/sc/inc/table.hxx
index 2d073de675fc..f4709bf873da 100644
--- a/sc/inc/table.hxx
+++ b/sc/inc/table.hxx
@@ -426,7 +426,7 @@ public:
void FindAreaPos( SCCOL& rCol, SCROW& rRow, ScMoveDirection eDirection ) const;
void GetNextPos( SCCOL& rCol, SCROW& rRow, SCsCOL nMovX, SCsROW nMovY,
- bool bMarked, bool bUnprotected, const ScMarkData& rMark );
+ bool bMarked, bool bUnprotected, const ScMarkData& rMark ) const;
void LimitChartArea( SCCOL& rStartCol, SCROW& rStartRow, SCCOL& rEndCol, SCROW& rEndRow );
@@ -813,7 +813,7 @@ private:
sal_uLong nFillCount, FillDir eFillDir, ScProgress* pProgress );
bool ValidNextPos( SCCOL nCol, SCROW nRow, const ScMarkData& rMark,
- bool bMarked, bool bUnprotected );
+ bool bMarked, bool bUnprotected ) const;
void AutoFormatArea(SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow,
const ScPatternAttr& rAttr, sal_uInt16 nFormatNo);
diff --git a/sc/source/core/data/document.cxx b/sc/source/core/data/document.cxx
index c160b6882906..d660686dbaab 100644
--- a/sc/source/core/data/document.cxx
+++ b/sc/source/core/data/document.cxx
@@ -5310,7 +5310,7 @@ SCSIZE ScDocument::GetEmptyLinesInBlock( SCCOL nStartCol, SCROW nStartRow, SCTAB
}
-void ScDocument::FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirection eDirection )
+void ScDocument::FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirection eDirection ) const
{
if (ValidTab(nTab) && nTab < static_cast<SCTAB>(maTabs.size()) && maTabs[nTab])
maTabs[nTab]->FindAreaPos( rCol, rRow, eDirection );
@@ -5318,7 +5318,7 @@ void ScDocument::FindAreaPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, ScMoveDirect
void ScDocument::GetNextPos( SCCOL& rCol, SCROW& rRow, SCTAB nTab, SCsCOL nMovX, SCsROW nMovY,
- bool bMarked, bool bUnprotected, const ScMarkData& rMark )
+ bool bMarked, bool bUnprotected, const ScMarkData& rMark ) const
{
OSL_ENSURE( !nMovX || !nMovY, "GetNextPos: nur X oder Y" );
diff --git a/sc/source/core/data/table1.cxx b/sc/source/core/data/table1.cxx
index 1cfa06bbe346..1ca2760cd6e8 100644
--- a/sc/source/core/data/table1.cxx
+++ b/sc/source/core/data/table1.cxx
@@ -1182,7 +1182,7 @@ void ScTable::FindAreaPos( SCCOL& rCol, SCROW& rRow, ScMoveDirection eDirection
}
bool ScTable::ValidNextPos( SCCOL nCol, SCROW nRow, const ScMarkData& rMark,
- bool bMarked, bool bUnprotected )
+ bool bMarked, bool bUnprotected ) const
{
if (!ValidCol(nCol) || !ValidRow(nRow))
return false;
@@ -1215,7 +1215,7 @@ bool ScTable::ValidNextPos( SCCOL nCol, SCROW nRow, const ScMarkData& rMark,
}
void ScTable::GetNextPos( SCCOL& rCol, SCROW& rRow, SCsCOL nMovX, SCsROW nMovY,
- bool bMarked, bool bUnprotected, const ScMarkData& rMark )
+ bool bMarked, bool bUnprotected, const ScMarkData& rMark ) const
{
if (bUnprotected && !IsProtected()) // Tabelle ueberhaupt geschuetzt?
bUnprotected = false;