20 #ifndef INCLUDED_SC_INC_BIGRANGE_HXX
21 #define INCLUDED_SC_INC_BIGRANGE_HXX
40 : nRow( nRowP ), nCol( nColP ), nTab( nTabP ) {}
42 : nRow( r.nRow ), nCol( r.nCol ), nTab( r.nTab ) {}
45 : nRow( r.
Row() ), nCol( r.
Col() ), nTab( r.
Tab() ) {}
51 void Set( sal_Int32 nColP, sal_Int32 nRowP, sal_Int32 nTabP )
52 { nCol = nColP; nRow = nRowP; nTab = nTabP; }
53 void SetCol( sal_Int32 nColP ) { nCol = nColP; }
54 void SetRow( sal_Int32 nRowP ) { nRow = nRowP; }
55 void SetTab( sal_Int32 nTabP ) { nTab = nTabP; }
56 void IncCol( sal_Int32 n = 1 ) { nCol +=
n; }
57 void IncRow( sal_Int32 n = 1 ) { nRow +=
n; }
58 void IncTab( sal_Int32 n = 1 ) { nTab +=
n; }
60 void GetVars( sal_Int32& nColP, sal_Int32& nRowP, sal_Int32& nTabP )
const
67 { nCol = r.
nCol; nRow = r.
nRow; nTab = r.
nTab;
return *
this; }
70 { nCol = r.
Col(); nRow = r.
Row(); nTab = r.
Tab();
return *
this; }
72 {
return nCol == r.
nCol && nRow == r.
nRow && nTab == r.
nTab; }
116 : aStart( r.aStart ), aEnd( r.aEnd ) {}
119 : aStart( r.aStart ), aEnd( r.aEnd ) {}
120 ScBigRange( sal_Int32 nCol1, sal_Int32 nRow1, sal_Int32 nTab1,
121 sal_Int32 nCol2, sal_Int32 nRow2, sal_Int32 nTab2 )
122 : aStart( nCol1, nRow1, nTab1 ),
123 aEnd( nCol2, nRow2, nTab2 ) {}
125 void Set( sal_Int32 nCol1, sal_Int32 nRow1, sal_Int32 nTab1,
126 sal_Int32 nCol2, sal_Int32 nRow2, sal_Int32 nTab2 )
127 { aStart.
Set( nCol1, nRow1, nTab1 );
128 aEnd.
Set( nCol2, nRow2, nTab2 ); }
130 void GetVars( sal_Int32& nCol1, sal_Int32& nRow1, sal_Int32& nTab1,
131 sal_Int32& nCol2, sal_Int32& nRow2, sal_Int32& nTab2 )
const
132 { aStart.
GetVars( nCol1, nRow1, nTab1 );
133 aEnd.
GetVars( nCol2, nRow2, nTab2 ); }
146 { aStart = r.
aStart; aEnd = r.
aEnd;
return *
this; }
149 {
return (aStart == r.
aStart) && (aEnd == r.
aEnd); }
bool operator!=(const ScBigRange &r) const
ScBigAddress(const ScBigAddress &r)
void Set(sal_Int32 nCol1, sal_Int32 nRow1, sal_Int32 nTab1, sal_Int32 nCol2, sal_Int32 nRow2, sal_Int32 nTab2)
bool IsValid(const ScDocument &rDoc) const
ScBigRange & operator=(const ScBigRange &r)
ScBigAddress & operator=(const ScBigAddress &r)
ScBigAddress & operator=(const ScAddress &r)
void Set(sal_Int32 nColP, sal_Int32 nRowP, sal_Int32 nTabP)
void GetVars(sal_Int32 &nColP, sal_Int32 &nRowP, sal_Int32 &nTabP) const
bool Intersects(const ScBigRange &) const
do two ranges overlap?
ScBigAddress(const ScAddress &r)
bool IsValid(const ScDocument &rDoc) const
bool In(const ScBigAddress &) const
is Address& in range?
void IncCol(sal_Int32 n=1)
void SetCol(sal_Int32 nColP)
void IncRow(sal_Int32 n=1)
ScRange MakeRange() const
ScBigRange(const ScBigRange &r)
ScBigAddress(sal_Int32 nColP, sal_Int32 nRowP, sal_Int32 nTabP)
bool operator==(const ScBigRange &r) const
void IncTab(sal_Int32 n=1)
void SetRow(sal_Int32 nRowP)
bool operator!=(const ScBigAddress &r) const
void GetVars(sal_Int32 &nCol1, sal_Int32 &nRow1, sal_Int32 &nTab1, sal_Int32 &nCol2, sal_Int32 &nRow2, sal_Int32 &nTab2) const
ScBigRange(const ScRange &r)
const sal_Int32 nInt32Max
ScAddress MakeAddress() const
void SetTab(sal_Int32 nTabP)
bool operator==(const ScBigAddress &r) const
ScBigRange(sal_Int32 nCol1, sal_Int32 nRow1, sal_Int32 nTab1, sal_Int32 nCol2, sal_Int32 nRow2, sal_Int32 nTab2)
const sal_Int32 nInt32Min