summaryrefslogtreecommitdiff
path: root/sc/inc/bigrange.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-03-18 23:15:26 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-03-19 13:40:25 -0400
commit307b9bfd17d34bcfc9a2ecdef7802413d79f3694 (patch)
treee23474e53d605c7731cca013d6fcdd9ab314fdf6 /sc/inc/bigrange.hxx
parentd6dbf417850e75cc3d4ac9e45ed9db3ffac507ed (diff)
Reduce dependency on document.hxx. Prefer forward declaration.
Change-Id: I9b0c86735284ec435cceb3acd9bad97a6e523a74
Diffstat (limited to 'sc/inc/bigrange.hxx')
-rw-r--r--sc/inc/bigrange.hxx20
1 files changed, 2 insertions, 18 deletions
diff --git a/sc/inc/bigrange.hxx b/sc/inc/bigrange.hxx
index 09aaf3b61070..d36fa9ab8d14 100644
--- a/sc/inc/bigrange.hxx
+++ b/sc/inc/bigrange.hxx
@@ -20,14 +20,12 @@
#ifndef SC_BIGRANGE_HXX
#define SC_BIGRANGE_HXX
-
#include "global.hxx"
-#include "document.hxx"
-
static const sal_Int32 nInt32Min = 0x80000000;
static const sal_Int32 nInt32Max = 0x7fffffff;
+class ScDocument;
class ScBigAddress
{
@@ -61,7 +59,7 @@ public:
{ nColP = nCol; nRowP = nRow; nTabP = nTab; }
inline void PutInOrder( ScBigAddress& r );
- inline sal_Bool IsValid( const ScDocument* ) const;
+ bool IsValid( const ScDocument* pDoc ) const;
inline ScAddress MakeAddress() const;
ScBigAddress& operator=( const ScBigAddress& r )
@@ -101,20 +99,6 @@ inline void ScBigAddress::PutInOrder( ScBigAddress& r )
}
}
-
-inline sal_Bool ScBigAddress::IsValid( const ScDocument* pDoc ) const
-{ // min/max interval bounds define whole col/row/tab
- return
- ((0 <= nCol && nCol <= MAXCOL)
- || nCol == nInt32Min || nCol == nInt32Max) &&
- ((0 <= nRow && nRow <= MAXROW)
- || nRow == nInt32Min || nRow == nInt32Max) &&
- ((0 <= nTab && nTab < pDoc->GetTableCount())
- || nTab == nInt32Min || nTab == nInt32Max)
- ;
-}
-
-
inline ScAddress ScBigAddress::MakeAddress() const
{
SCCOL nColA;