Bump version to 4.3-4
[LibreOffice.git] / sc / inc / subtotalparam.hxx
blobeaf60f61dd47c902f4fbbebfcfcfef42c5271c91
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #ifndef INCLUDED_SC_INC_SUBTOTALPARAM_HXX
11 #define INCLUDED_SC_INC_SUBTOTALPARAM_HXX
13 #include "global.hxx"
14 #include "address.hxx"
16 struct SC_DLLPUBLIC ScSubTotalParam
18 SCCOL nCol1; ///< selected area
19 SCROW nRow1;
20 SCCOL nCol2;
21 SCROW nRow2;
22 sal_uInt16 nUserIndex; ///< index into list
23 bool bRemoveOnly:1;
24 bool bReplace:1; ///< replace existing results
25 bool bPagebreak:1; ///< page break at change of group
26 bool bCaseSens:1;
27 bool bDoSort:1; ///< presort
28 bool bAscending:1; ///< sort ascending
29 bool bUserDef:1; ///< sort user defined
30 bool bIncludePattern:1; ///< sort formats
31 bool bGroupActive[MAXSUBTOTAL]; ///< active groups
32 SCCOL nField[MAXSUBTOTAL]; ///< associated field
33 SCCOL nSubTotals[MAXSUBTOTAL]; ///< number of SubTotals
34 SCCOL* pSubTotals[MAXSUBTOTAL]; ///< array of columns to be calculated
35 ScSubTotalFunc* pFunctions[MAXSUBTOTAL]; ///< array of associated functions
37 ScSubTotalParam();
38 ScSubTotalParam( const ScSubTotalParam& r );
40 ScSubTotalParam& operator= ( const ScSubTotalParam& r );
41 bool operator== ( const ScSubTotalParam& r ) const;
42 void Clear();
43 void SetSubTotals( sal_uInt16 nGroup,
44 const SCCOL* ptrSubTotals,
45 const ScSubTotalFunc* ptrFuncions,
46 sal_uInt16 nCount );
49 #endif
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */