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 :
10 : #include "dpnumgroupinfo.hxx"
11 :
12 0 : ScDPNumGroupInfo::ScDPNumGroupInfo() :
13 : mbEnable(false),
14 : mbDateValues(false),
15 : mbAutoStart(false),
16 : mbAutoEnd(false),
17 : mbIntegerOnly(true),
18 0 : mfStart(0.0), mfEnd(0.0), mfStep(0.0) {}
19 :
20 0 : ScDPNumGroupInfo::ScDPNumGroupInfo(const ScDPNumGroupInfo& r) :
21 : mbEnable(r.mbEnable),
22 : mbDateValues(r.mbDateValues),
23 : mbAutoStart(r.mbAutoStart),
24 : mbAutoEnd(r.mbAutoEnd),
25 : mbIntegerOnly(r.mbIntegerOnly),
26 : mfStart(r.mfStart),
27 0 : mfEnd(r.mfEnd), mfStep(r.mfStep) {}
28 :
29 : #if DEBUG_PIVOT_TABLE
30 : using std::cout;
31 : using std::endl;
32 :
33 : void ScDPNumGroupInfo::Dump() const
34 : {
35 : cout << "--- ScDPNumGroupInfo" << endl;
36 : cout << " enabled: " << mbEnable << endl;
37 : cout << " auto start: " << mbAutoStart << endl;
38 : cout << " auto end: " << mbAutoEnd << endl;
39 : cout << " start: " << mfStart << endl;
40 : cout << " end: " << mfEnd << endl;
41 : cout << " step: " << mfStep << endl;
42 : cout << "---" << endl;
43 : }
44 : #endif
45 :
46 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|