LCOV - code coverage report
Current view: top level - chart2/source/view/axes - VAxisOrGridBase.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 20 20 100.0 %
Date: 2012-08-25 Functions: 6 7 85.7 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 8 16 50.0 %

           Branch data     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                 :            :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12                 :            :  *   contributor license agreements. See the NOTICE file distributed
      13                 :            :  *   with this work for additional information regarding copyright
      14                 :            :  *   ownership. The ASF licenses this file to you under the Apache
      15                 :            :  *   License, Version 2.0 (the "License"); you may not use this file
      16                 :            :  *   except in compliance with the License. You may obtain a copy of
      17                 :            :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18                 :            :  */
      19                 :            : 
      20                 :            : 
      21                 :            : #include "VAxisOrGridBase.hxx"
      22                 :            : #include "ShapeFactory.hxx"
      23                 :            : #include "CommonConverters.hxx"
      24                 :            : #include "Tickmarks.hxx"
      25                 :            : 
      26                 :            : //.............................................................................
      27                 :            : namespace chart
      28                 :            : {
      29                 :            : //.............................................................................
      30                 :            : using namespace ::com::sun::star;
      31                 :            : using namespace ::com::sun::star::chart2;
      32                 :            : using ::com::sun::star::uno::Reference;
      33                 :            : 
      34                 :       3876 : VAxisOrGridBase::VAxisOrGridBase( sal_Int32 nDimensionIndex, sal_Int32 nDimensionCount )
      35                 :            :             : PlotterBase( nDimensionCount )
      36                 :            :             , m_nDimensionIndex( nDimensionIndex )
      37                 :            :             , m_eLeftWallPos(CuboidPlanePosition_Left)
      38                 :            :             , m_eBackWallPos(CuboidPlanePosition_Back)
      39 [ +  - ][ +  - ]:       3876 :             , m_eBottomPos(CuboidPlanePosition_Bottom)
                 [ +  - ]
      40                 :            : {
      41                 :       3876 : }
      42                 :            : 
      43 [ +  - ][ +  - ]:       3876 : VAxisOrGridBase::~VAxisOrGridBase()
      44                 :            : {
      45         [ -  + ]:       3876 : }
      46                 :            : 
      47                 :       1938 : void VAxisOrGridBase::setExplicitScaleAndIncrement(
      48                 :            :               const ExplicitScaleData& rScale
      49                 :            :             , const ExplicitIncrementData& rIncrement )
      50                 :            :             throw (uno::RuntimeException)
      51                 :            : {
      52                 :       1938 :     m_aScale = rScale;
      53                 :       1938 :     m_aIncrement = rIncrement;
      54                 :       1938 : }
      55                 :            : 
      56                 :      20122 : void VAxisOrGridBase::setTransformationSceneToScreen( const drawing::HomogenMatrix& rMatrix )
      57                 :            : {
      58         [ +  - ]:      20122 :     m_aMatrixScreenToScene = HomogenMatrixToB3DHomMatrix(rMatrix);
      59                 :      20122 :     PlotterBase::setTransformationSceneToScreen( rMatrix);
      60                 :      20122 : }
      61                 :            : 
      62                 :       3876 : void VAxisOrGridBase::set3DWallPositions( CuboidPlanePosition eLeftWallPos, CuboidPlanePosition eBackWallPos, CuboidPlanePosition eBottomPos )
      63                 :            : {
      64                 :       3876 :     m_eLeftWallPos = eLeftWallPos;
      65                 :       3876 :     m_eBackWallPos = eBackWallPos;
      66                 :       3876 :     m_eBottomPos = eBottomPos;
      67                 :       3876 : }
      68                 :            : 
      69                 :       1938 : TickFactory* VAxisOrGridBase::createTickFactory()
      70                 :            : {
      71         [ +  - ]:       1938 :     return new TickFactory( m_aScale, m_aIncrement );
      72                 :            : }
      73                 :            : 
      74                 :            : //.............................................................................
      75                 :            : } //namespace chart
      76                 :            : //.............................................................................
      77                 :            : 
      78                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10