Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : */
12 :
13 : #include "dpnumgroupinfo.hxx"
14 :
15 67 : ScDPNumGroupInfo::ScDPNumGroupInfo() :
16 : mbEnable(false),
17 : mbDateValues(false),
18 : mbAutoStart(false),
19 : mbAutoEnd(false),
20 : mbIntegerOnly(true),
21 67 : mfStart(0.0), mfEnd(0.0), mfStep(0.0) {}
22 :
23 31 : ScDPNumGroupInfo::ScDPNumGroupInfo(const ScDPNumGroupInfo& r) :
24 : mbEnable(r.mbEnable),
25 : mbDateValues(r.mbDateValues),
26 : mbAutoStart(r.mbAutoStart),
27 : mbAutoEnd(r.mbAutoEnd),
28 : mbIntegerOnly(r.mbIntegerOnly),
29 : mfStart(r.mfStart),
30 31 : mfEnd(r.mfEnd), mfStep(r.mfStep) {}
31 :
32 : #if DEBUG_PIVOT_TABLE
33 : using std::cout;
34 : using std::endl;
35 :
36 : void ScDPNumGroupInfo::Dump() const
37 : {
38 : cout << "--- ScDPNumGroupInfo" << endl;
39 : cout << " enabled: " << mbEnable << endl;
40 : cout << " auto start: " << mbAutoStart << endl;
41 : cout << " auto end: " << mbAutoEnd << endl;
42 : cout << " start: " << mfStart << endl;
43 : cout << " end: " << mfEnd << endl;
44 : cout << " step: " << mfStep << endl;
45 : cout << "---" << endl;
46 : }
47 : #endif
48 :
49 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|