LCOV - code coverage report
Current view: top level - sc/source/core/data - dpnumgroupinfo.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2012-08-25 Functions: 2 2 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*
       3                 :            :  * Version: MPL 1.1 / GPLv3+ / LGPLv3+
       4                 :            :  *
       5                 :            :  * The contents of this file are subject to the Mozilla Public License Version
       6                 :            :  * 1.1 (the "License"); you may not use this file except in compliance with
       7                 :            :  * the License or as specified alternatively below. You may obtain a copy of
       8                 :            :  * the License at http://www.mozilla.org/MPL/
       9                 :            :  *
      10                 :            :  * Software distributed under the License is distributed on an "AS IS" basis,
      11                 :            :  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
      12                 :            :  * for the specific language governing rights and limitations under the
      13                 :            :  * License.
      14                 :            :  *
      15                 :            :  * Major Contributor(s):
      16                 :            :  *   Copyright (C) 2012 Kohei Yoshida <kohei.yoshida@suse.com>
      17                 :            :  *
      18                 :            :  * All Rights Reserved.
      19                 :            :  *
      20                 :            :  * For minor contributions see the git repository.
      21                 :            :  *
      22                 :            :  * Alternatively, the contents of this file may be used under the terms of
      23                 :            :  * either the GNU General Public License Version 3 or later (the "GPLv3+"), or
      24                 :            :  * the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
      25                 :            :  * in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
      26                 :            :  * instead of those above.
      27                 :            :  */
      28                 :            : 
      29                 :            : #include "dpnumgroupinfo.hxx"
      30                 :            : 
      31                 :        230 : ScDPNumGroupInfo::ScDPNumGroupInfo() :
      32                 :            :     mbEnable(false),
      33                 :            :     mbDateValues(false),
      34                 :            :     mbAutoStart(false),
      35                 :            :     mbAutoEnd(false),
      36                 :            :     mbIntegerOnly(true),
      37                 :        230 :     mfStart(0.0), mfEnd(0.0), mfStep(0.0) {}
      38                 :            : 
      39                 :        105 : ScDPNumGroupInfo::ScDPNumGroupInfo(const ScDPNumGroupInfo& r) :
      40                 :            :     mbEnable(r.mbEnable),
      41                 :            :     mbDateValues(r.mbDateValues),
      42                 :            :     mbAutoStart(r.mbAutoStart),
      43                 :            :     mbAutoEnd(r.mbAutoEnd),
      44                 :            :     mbIntegerOnly(r.mbIntegerOnly),
      45                 :            :     mfStart(r.mfStart),
      46                 :        105 :     mfEnd(r.mfEnd), mfStep(r.mfStep) {}
      47                 :            : 
      48                 :            : #if DEBUG_PIVOT_TABLE
      49                 :            : #include <iostream>
      50                 :            : using std::cout;
      51                 :            : using std::endl;
      52                 :            : 
      53                 :            : void ScDPNumGroupInfo::Dump() const
      54                 :            : {
      55                 :            :     cout << "--- ScDPNumGroupInfo" << endl;
      56                 :            :     cout << "  enabled: " << mbEnable << endl;
      57                 :            :     cout << "  auto start: " << mbAutoStart << endl;
      58                 :            :     cout << "  auto end: " << mbAutoEnd << endl;
      59                 :            :     cout << "  start: " << mfStart << endl;
      60                 :            :     cout << "  end: " << mfEnd << endl;
      61                 :            :     cout << "  step: " << mfStep << endl;
      62                 :            :     cout << "---" << endl;
      63                 :            : }
      64                 :            : #endif
      65                 :            : 
      66                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10