LCOV - code coverage report
Current view: top level - oox/inc/drawingml - shape3dproperties.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 3 3 100.0 %
Date: 2015-06-13 12:38:46 Functions: 4 4 100.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_SHAPE3DPROPERTIES_HXX
      21             : #define INCLUDED_OOX_DRAWINGML_SHAPE3DPROPERTIES_HXX
      22             : 
      23             : #include <map>
      24             : #include <com/sun/star/graphic/XGraphic.hpp>
      25             : #include <com/sun/star/geometry/IntegerRectangle2D.hpp>
      26             : #include <oox/core/xmlfilterbase.hxx>
      27             : #include <oox/drawingml/color.hxx>
      28             : #include <oox/helper/helper.hxx>
      29             : 
      30             : namespace oox { class PropertyMap; }
      31             : namespace oox { class PropertySet; }
      32             : namespace oox { namespace core { class ModelObjectContainer; } }
      33             : 
      34             : namespace oox {
      35             : namespace drawingml {
      36             : 
      37             : 
      38             : 
      39       26008 : struct RotationProperties
      40             : {
      41             :     OptValue< sal_Int32 > mnLatitude;
      42             :     OptValue< sal_Int32 > mnLongitude;
      43             :     OptValue< sal_Int32 > mnRevolution;
      44             : };
      45             : 
      46       26079 : struct BevelProperties
      47             : {
      48             :     OptValue< sal_Int32 > mnPreset;
      49             :     OptValue< sal_Int32 > mnWidth;
      50             :     OptValue< sal_Int32 > mnHeight;
      51             : };
      52             : 
      53       26008 : struct Shape3DProperties
      54             : {
      55             :     OptValue< sal_Int32 > mnPreset;
      56             :     OptValue< float > mfFieldOfVision;
      57             :     OptValue< float > mfZoom;
      58             :     OptValue< sal_Int32 > mnLightRigDirection;
      59             :     OptValue< sal_Int32 > mnLightRigType;
      60             :     RotationProperties maCameraRotation;
      61             :     RotationProperties maLightRigRotation;
      62             : 
      63             :     OptValue< sal_Int32 > mnExtrusionH;
      64             :     OptValue< sal_Int32 > mnContourW;
      65             :     OptValue< sal_Int32 > mnShapeZ;
      66             :     OptValue< sal_Int32 > mnMaterial;
      67             :     Color maExtrusionColor;
      68             :     Color maContourColor;
      69             : 
      70             :     OptValue< BevelProperties > maTopBevelProperties;
      71             :     OptValue< BevelProperties > maBottomBevelProperties;
      72             : 
      73             :     /** Overwrites all members that are explicitly set in rSourceProps. */
      74             :     void                assignUsed( const Shape3DProperties& rSourceProps );
      75             : 
      76             :     static OUString     getCameraPrstName( sal_Int32 nElement );
      77             :     static OUString     getLightRigName( sal_Int32 nElement );
      78             :     static OUString     getLightRigDirName( sal_Int32 nElement );
      79             :     static OUString     getBevelPresetTypeString( sal_Int32 nType );
      80             :     static OUString     getPresetMaterialTypeString( sal_Int32 nType );
      81             : 
      82             :     css::uno::Sequence< css::beans::PropertyValue > getCameraAttributes();
      83             :     css::uno::Sequence< css::beans::PropertyValue > getLightRigAttributes();
      84             :     css::uno::Sequence< css::beans::PropertyValue > getShape3DAttributes(
      85             :             const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr = API_RGB_TRANSPARENT );
      86             :     static css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps );
      87             :     static css::uno::Sequence< css::beans::PropertyValue > getColorAttributes(
      88             :             const Color& rColor, const GraphicHelper& rGraphicHelper, sal_Int32 rPhClr );
      89             : };
      90             : 
      91             : 
      92             : 
      93             : } // namespace drawingml
      94             : } // namespace oox
      95             : 
      96             : #endif
      97             : 
      98             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11