diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-11-06 02:49:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2010-11-17 16:48:29 -0500 |
commit | 10572108edba3342ee5ddc04ae3171afb75c9f1a (patch) | |
tree | fe3bd4f94c119fd235a82ccc545a3d478742442f /sc/inc/pivot.hxx | |
parent | 0bb4da6d7d988d98b466db23fae2061e47226d39 (diff) |
Ported my previous work into this branch. Not build-tested yet.
Diffstat (limited to 'sc/inc/pivot.hxx')
-rw-r--r-- | sc/inc/pivot.hxx | 23 |
1 files changed, 6 insertions, 17 deletions
diff --git a/sc/inc/pivot.hxx b/sc/inc/pivot.hxx index a844b3d3ecbe..feb913d6e07e 100644 --- a/sc/inc/pivot.hxx +++ b/sc/inc/pivot.hxx @@ -77,12 +77,13 @@ typedef ::boost::shared_ptr<ScDPLabelData> ScDPLabelDataRef; struct PivotField { - SCsCOL nCol; + SCsCOL nCol; USHORT nFuncMask; USHORT nFuncCount; ::com::sun::star::sheet::DataPilotFieldReference maFieldRef; explicit PivotField( SCsCOL nNewCol = 0, USHORT nNewFuncMask = PIVOT_FUNC_NONE ); + PivotField( const PivotField& r ); bool operator==( const PivotField& r ) const; }; @@ -96,14 +97,10 @@ struct ScPivotParam SCROW nRow; // bzw. Anfang des Zielbereiches SCTAB nTab; ::std::vector<ScDPLabelDataRef> maLabelArray; - PivotField aPageArr[PIVOT_MAXPAGEFIELD]; - PivotField aColArr[PIVOT_MAXFIELD]; - PivotField aRowArr[PIVOT_MAXFIELD]; - PivotField aDataArr[PIVOT_MAXFIELD]; - SCSIZE nPageCount; - SCSIZE nColCount; - SCSIZE nRowCount; - SCSIZE nDataCount; + ::std::vector<PivotField> maPageFields; + ::std::vector<PivotField> maColFields; + ::std::vector<PivotField> maRowFields; + ::std::vector<PivotField> maDataFields; BOOL bIgnoreEmptyRows; BOOL bDetectCategories; BOOL bMakeTotalCol; @@ -117,14 +114,6 @@ struct ScPivotParam BOOL operator== ( const ScPivotParam& r ) const; void ClearPivotArrays(); void SetLabelData (const ::std::vector<ScDPLabelDataRef>& r); - void SetPivotArrays ( const PivotField* pPageArr, - const PivotField* pColArr, - const PivotField* pRowArr, - const PivotField* pDataArr, - SCSIZE nPageCnt, - SCSIZE nColCnt, - SCSIZE nRowCnt, - SCSIZE nDataCnt ); }; // ----------------------------------------------------------------------- |