LCOV - code coverage report
Current view: top level - include/oox/drawingml/chart - plotareaconverter.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          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             : #ifndef INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
      21             : #define INCLUDED_OOX_DRAWINGML_CHART_PLOTAREACONVERTER_HXX
      22             : 
      23             : #include <oox/drawingml/chart/converterbase.hxx>
      24             : 
      25             : namespace com { namespace sun { namespace star {
      26             :     namespace chart2 { class XDiagram; }
      27             : } } }
      28             : 
      29             : namespace oox {
      30             : namespace drawingml {
      31             : namespace chart {
      32             : 
      33             : 
      34             : 
      35             : struct View3DModel;
      36             : class TypeGroupConverter;
      37             : 
      38             : class View3DConverter : public ConverterBase< View3DModel >
      39             : {
      40             : public:
      41             :     explicit            View3DConverter( const ConverterRoot& rParent, View3DModel& rModel );
      42             :     virtual             ~View3DConverter();
      43             : 
      44             :     /** Converts the OOXML plot area model to a chart2 diagram. */
      45             :     void                convertFromModel(
      46             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& rxDiagram,
      47             :                             TypeGroupConverter& rTypeGroup );
      48             : };
      49             : 
      50             : 
      51             : 
      52             : struct WallFloorModel;
      53             : 
      54             : class WallFloorConverter : public ConverterBase< WallFloorModel >
      55             : {
      56             : public:
      57             :     explicit            WallFloorConverter( const ConverterRoot& rParent, WallFloorModel& rModel );
      58             :     virtual             ~WallFloorConverter();
      59             : 
      60             :     /** Converts the OOXML wall/floor model to a chart2 diagram. */
      61             :     void                convertFromModel(
      62             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& rxDiagram,
      63             :                             ObjectType eObjType );
      64             : };
      65             : 
      66             : 
      67             : 
      68             : struct DataTableModel;
      69             : 
      70             : class DataTableConverter : public ConverterBase< DataTableModel >
      71             : {
      72             : public:
      73             :     explicit            DataTableConverter( const ConverterRoot& rParent, DataTableModel& rModel );
      74             :     virtual             ~DataTableConverter();
      75             : 
      76             :     /** Converts the OOXML data table model to a chart2 diagram. */
      77             :     void                convertFromModel(
      78             :                             const ::com::sun::star::uno::Reference< ::com::sun::star::chart2::XDiagram >& rxDiagram);
      79             : };
      80             : 
      81             : 
      82             : 
      83             : struct PlotAreaModel;
      84             : 
      85             : class PlotAreaConverter : public ConverterBase< PlotAreaModel >
      86             : {
      87             : public:
      88             :     explicit            PlotAreaConverter( const ConverterRoot& rParent, PlotAreaModel& rModel );
      89             :     virtual             ~PlotAreaConverter();
      90             : 
      91             :     /** Converts the OOXML plot area model to a chart2 diagram. */
      92             :     void                convertFromModel( View3DModel& rView3DModel );
      93             :     /** Converts the manual plot area position and size, if set. */
      94             :     void                convertPositionFromModel();
      95             : 
      96             :     /** Returns the automatic chart title if the chart contains only one series. */
      97           0 :     const OUString& getAutomaticTitle() const { return maAutoTitle; }
      98             :     /** Returns true, if the chart is three-dimensional. */
      99             :     bool         is3dChart() const { return mb3dChart; }
     100             :     /** Returns true, if chart type supports wall and floor format in 3D mode. */
     101           0 :     bool         isWall3dChart() const { return mbWall3dChart; }
     102             : 
     103             : private:
     104             :     OUString     maAutoTitle;
     105             :     bool                mb3dChart;
     106             :     bool                mbWall3dChart;
     107             :     bool                mbPieChart;
     108             : };
     109             : 
     110             : 
     111             : 
     112             : } // namespace chart
     113             : } // namespace drawingml
     114             : } // namespace oox
     115             : 
     116             : #endif
     117             : 
     118             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10