LCOV - code coverage report
Current view: top level - oox/inc/drawingml - shape3dproperties.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 3 3 100.0 %
Date: 2014-11-03 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       44880 : struct RotationProperties
      40             : {
      41             :     OptValue< sal_Int32 > mnLatitude;
      42             :     OptValue< sal_Int32 > mnLongitude;
      43             :     OptValue< sal_Int32 > mnRevolution;
      44             : };
      45             : 
      46       45022 : struct BevelProperties
      47             : {
      48             :     OptValue< sal_Int32 > mnPreset;
      49             :     OptValue< sal_Int32 > mnWidth;
      50             :     OptValue< sal_Int32 > mnHeight;
      51             : };
      52             : 
      53       44880 : 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             :     OUString            getCameraPrstName( sal_Int32 nElement );
      77             :     OUString            getLightRigName( sal_Int32 nElement );
      78             :     OUString            getLightRigDirName( sal_Int32 nElement );
      79             :     OUString            getBevelPresetTypeString( sal_Int32 nType );
      80             :     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             :     css::uno::Sequence< css::beans::PropertyValue > getBevelAttributes( BevelProperties rProps );
      87             :     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.10