12#include <osl/diagnose.h>
27 nCol1(r.nCol1),nRow1(r.nRow1),nCol2(r.nCol2),nRow2(r.nRow2),nUserIndex(r.nUserIndex),
28 bRemoveOnly(r.bRemoveOnly),bReplace(r.bReplace),bPagebreak(r.bPagebreak),bCaseSens(r.bCaseSens),
29 bDoSort(r.bDoSort),bAscending(r.bAscending),bUserDef(r.bUserDef),
30 bIncludePattern(r.bIncludePattern)
168 const SCCOL* ptrSubTotals,
173 "ScSubTotalParam::SetSubTotals(): nGroup > MAXSUBTOTAL!" );
174 OSL_ENSURE( ptrSubTotals,
175 "ScSubTotalParam::SetSubTotals(): ptrSubTotals == NULL!" );
176 OSL_ENSURE( ptrFunctions,
177 "ScSubTotalParam::SetSubTotals(): ptrFunctions == NULL!" );
179 "ScSubTotalParam::SetSubTotals(): nCount <= 0!" );
181 if ( !(ptrSubTotals && ptrFunctions && (
nCount > 0) && (nGroup <=
MAXSUBTOTAL)) )
bool bUserDef
sort user defined
bool bPagebreak
page break at change of group
bool operator==(const ScSubTotalParam &r) const
bool bAscending
sort ascending
bool bGroupActive[MAXSUBTOTAL]
active groups
sal_uInt16 nUserIndex
index into list
SCCOL nField[MAXSUBTOTAL]
associated field
SCCOL nSubTotals[MAXSUBTOTAL]
number of SubTotals
std::unique_ptr< ScSubTotalFunc[]> pFunctions[MAXSUBTOTAL]
array of associated functions
std::unique_ptr< SCCOL[]> pSubTotals[MAXSUBTOTAL]
array of columns to be calculated
void SetSubTotals(sal_uInt16 nGroup, const SCCOL *ptrSubTotals, const ScSubTotalFunc *ptrFunctions, sal_uInt16 nCount)
ScSubTotalParam & operator=(const ScSubTotalParam &r)
bool bIncludePattern
sort formats
bool bReplace
replace existing results