37 : nRow( nRowP ), nCol( nColP ), nTab( nTabP ) {}
39 : nRow( r.nRow ), nCol( r.nCol ), nTab( r.nTab ) {}
42 : nRow( r.
Row() ), nCol( r.
Col() ), nTab( r.
Tab() ) {}
48 void Set( sal_Int64 nColP, sal_Int64 nRowP, sal_Int64 nTabP )
49 { nCol = nColP; nRow = nRowP; nTab = nTabP; }
50 void SetCol( sal_Int64 nColP ) { nCol = nColP; }
51 void SetRow( sal_Int64 nRowP ) { nRow = nRowP; }
52 void SetTab( sal_Int64 nTabP ) { nTab = nTabP; }
53 void IncCol( sal_Int64 n = 1 ) { nCol +=
n; }
54 void IncRow( sal_Int64 n = 1 ) { nRow +=
n; }
55 void IncTab( sal_Int64 n = 1 ) { nTab +=
n; }
57 void GetVars( sal_Int64& nColP, sal_Int64& nRowP, sal_Int64& nTabP )
const
64 { nCol = r.
nCol; nRow = r.
nRow; nTab = r.
nTab;
return *
this; }
67 { nCol = r.
Col(); nRow = r.
Row(); nTab = r.
Tab();
return *
this; }
69 {
return nCol == r.
nCol && nRow == r.
nRow && nTab == r.
nTab; }
113 : aStart( r.aStart ), aEnd( r.aEnd ) {}
116 : aStart( r.aStart ), aEnd( r.aEnd ) {}
117 ScBigRange( sal_Int64 nCol1, sal_Int64 nRow1, sal_Int64 nTab1,
118 sal_Int64 nCol2, sal_Int64 nRow2, sal_Int64 nTab2 )
119 : aStart( nCol1, nRow1, nTab1 ),
120 aEnd( nCol2, nRow2, nTab2 ) {}
122 void Set( sal_Int64 nCol1, sal_Int64 nRow1, sal_Int64 nTab1,
123 sal_Int64 nCol2, sal_Int64 nRow2, sal_Int64 nTab2 )
124 { aStart.
Set( nCol1, nRow1, nTab1 );
125 aEnd.
Set( nCol2, nRow2, nTab2 ); }
127 void GetVars( sal_Int64& nCol1, sal_Int64& nRow1, sal_Int64& nTab1,
128 sal_Int64& nCol2, sal_Int64& nRow2, sal_Int64& nTab2 )
const
129 { aStart.
GetVars( nCol1, nRow1, nTab1 );
130 aEnd.
GetVars( nCol2, nRow2, nTab2 ); }
142 { aStart = r.
aStart; aEnd = r.
aEnd;
return *
this; }
145 {
return (aStart == r.
aStart) && (aEnd == r.
aEnd); }
150 constexpr
static sal_Int64
nRangeMin = ::std::numeric_limits<sal_Int64>::min();;
151 constexpr
static sal_Int64
nRangeMax = ::std::numeric_limits<sal_Int64>::max();;
bool operator!=(const ScBigRange &r) const
void IncTab(sal_Int64 n=1)
ScBigAddress(const ScBigAddress &r)
bool IsValid(const ScDocument &rDoc) const
void IncRow(sal_Int64 n=1)
static constexpr sal_Int64 nRangeMax
ScBigRange & operator=(const ScBigRange &r)
void Set(sal_Int64 nCol1, sal_Int64 nRow1, sal_Int64 nTab1, sal_Int64 nCol2, sal_Int64 nRow2, sal_Int64 nTab2)
ScBigAddress & operator=(const ScBigAddress &r)
SC_DLLPUBLIC SCROW MaxRow() const
void Set(sal_Int64 nColP, sal_Int64 nRowP, sal_Int64 nTabP)
ScBigAddress & operator=(const ScAddress &r)
bool Intersects(const ScBigRange &) const
do two ranges overlap?
bool Contains(const ScBigAddress &) const
is Address& in range?
ScBigAddress(const ScAddress &r)
SC_DLLPUBLIC SCCOL MaxCol() const
void SetCol(sal_Int64 nColP)
void GetVars(sal_Int64 &nColP, sal_Int64 &nRowP, sal_Int64 &nTabP) const
void GetVars(sal_Int64 &nCol1, sal_Int64 &nRow1, sal_Int64 &nTab1, sal_Int64 &nCol2, sal_Int64 &nRow2, sal_Int64 &nTab2) const
bool IsValid(const ScDocument &rDoc) const
ScAddress MakeAddress(const ScDocument &rDoc) const
ScBigRange(sal_Int64 nCol1, sal_Int64 nRow1, sal_Int64 nTab1, sal_Int64 nCol2, sal_Int64 nRow2, sal_Int64 nTab2)
ScBigRange(const ScBigRange &r)
void SetRow(sal_Int64 nRowP)
bool operator==(const ScBigRange &r) const
void SetTab(sal_Int64 nTabP)
bool operator!=(const ScBigAddress &r) const
ScRange MakeRange(const ScDocument &rDoc) const
ScBigRange(const ScRange &r)
static constexpr sal_Int64 nRangeMin
bool operator==(const ScBigAddress &r) const
ScBigAddress(sal_Int64 nColP, sal_Int64 nRowP, sal_Int64 nTabP)
void IncCol(sal_Int64 n=1)