LCOV - code coverage report
Current view: top level - svx/source/engine3d - svx3ditems.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 198 286 69.2 %
Date: 2014-04-11 Functions: 66 89 74.2 %
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             : #include <svx/svx3ditems.hxx>
      21             : #include <com/sun/star/drawing/NormalsKind.hpp>
      22             : #include <com/sun/star/drawing/TextureProjectionMode.hpp>
      23             : #include <com/sun/star/drawing/TextureKind.hpp>
      24             : #include <com/sun/star/drawing/TextureMode.hpp>
      25             : #include <com/sun/star/drawing/ProjectionMode.hpp>
      26             : #include <com/sun/star/drawing/ShadeMode.hpp>
      27             : 
      28             : 
      29             : 
      30             : 
      31             : using namespace ::rtl;
      32             : using namespace ::com::sun::star;
      33             : 
      34             : 
      35        3058 : Svx3DPercentDiagonalItem::Svx3DPercentDiagonalItem(sal_uInt16 nVal)
      36        3058 : :   SfxUInt16Item(SDRATTR_3DOBJ_PERCENT_DIAGONAL, nVal)
      37        3058 : {}
      38             : 
      39        2841 : Svx3DBackscaleItem::Svx3DBackscaleItem(sal_uInt16 nVal)
      40        2841 : :   SfxUInt16Item(SDRATTR_3DOBJ_BACKSCALE, nVal)
      41        2841 : {}
      42             : 
      43        2841 : Svx3DDepthItem::Svx3DDepthItem(sal_uInt32 nVal)
      44        2841 : :   SfxUInt32Item(SDRATTR_3DOBJ_DEPTH, nVal)
      45        2841 : {}
      46             : 
      47        2841 : Svx3DHorizontalSegmentsItem::Svx3DHorizontalSegmentsItem(sal_uInt32 nVal)
      48        2841 : :   SfxUInt32Item(SDRATTR_3DOBJ_HORZ_SEGS, nVal)
      49        2841 : {}
      50             : 
      51        2985 : Svx3DVerticalSegmentsItem::Svx3DVerticalSegmentsItem(sal_uInt32 nVal)
      52        2985 : :   SfxUInt32Item(SDRATTR_3DOBJ_VERT_SEGS, nVal)
      53        2985 : {}
      54             : 
      55        2841 : Svx3DEndAngleItem::Svx3DEndAngleItem(sal_uInt32 nVal)
      56        2841 : :   SfxUInt32Item(SDRATTR_3DOBJ_END_ANGLE, nVal)
      57        2841 : {}
      58             : 
      59        2841 : Svx3DDoubleSidedItem::Svx3DDoubleSidedItem(bool bVal)
      60        2841 : :   SfxBoolItem(SDRATTR_3DOBJ_DOUBLE_SIDED, bVal)
      61        2841 : {}
      62             : 
      63             : 
      64             : // #i28528#
      65             : // Added extra Item (Bool) for chart2 to be able to show reduced line geometry
      66             : 
      67        2841 : Svx3DReducedLineGeometryItem::Svx3DReducedLineGeometryItem(bool bVal)
      68        2841 : :   SfxBoolItem(SDRATTR_3DOBJ_REDUCED_LINE_GEOMETRY, bVal)
      69        2841 : {}
      70             : 
      71           0 : sal_uInt16 Svx3DReducedLineGeometryItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
      72             : {
      73           0 :     return 1;
      74             : }
      75             : 
      76           0 : SfxPoolItem* Svx3DReducedLineGeometryItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
      77             : {
      78           0 :     SfxBoolItem* pRetval = new Svx3DReducedLineGeometryItem();
      79             : 
      80           0 :     if(nItemVersion > 0)
      81             :     {
      82           0 :         SfxBoolItem aBoolItem(Which(), rIn);
      83           0 :         pRetval->SetValue(aBoolItem.GetValue());
      84             :     }
      85             : 
      86           0 :     return pRetval;
      87             : }
      88             : 
      89             : 
      90             : 
      91        2841 : Svx3DNormalsKindItem::Svx3DNormalsKindItem(sal_uInt16 nVal)
      92        2841 : :   SfxUInt16Item(SDRATTR_3DOBJ_NORMALS_KIND, nVal)
      93        2841 : {}
      94             : 
      95        2841 : Svx3DNormalsInvertItem::Svx3DNormalsInvertItem(bool bVal)
      96        2841 : :   SfxBoolItem(SDRATTR_3DOBJ_NORMALS_INVERT, bVal)
      97        2841 : {}
      98             : 
      99        3774 : Svx3DTextureProjectionXItem::Svx3DTextureProjectionXItem(sal_uInt16 nVal)
     100        3774 : :   SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_PROJ_X, nVal)
     101        3774 : {}
     102             : 
     103        3774 : Svx3DTextureProjectionYItem::Svx3DTextureProjectionYItem(sal_uInt16 nVal)
     104        3774 : :   SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_PROJ_Y, nVal)
     105        3774 : {}
     106             : 
     107        2841 : Svx3DShadow3DItem::Svx3DShadow3DItem(bool bVal)
     108        2841 : :   SfxBoolItem(SDRATTR_3DOBJ_SHADOW_3D, bVal)
     109        2841 : {}
     110             : 
     111        2841 : Svx3DMaterialColorItem::Svx3DMaterialColorItem(const Color& rCol)
     112        2841 : :   SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_COLOR)
     113        2841 : {}
     114             : 
     115        2841 : Svx3DMaterialEmissionItem::Svx3DMaterialEmissionItem(const Color& rCol)
     116        2841 : :   SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_EMISSION)
     117        2841 : {}
     118             : 
     119        2841 : Svx3DMaterialSpecularItem::Svx3DMaterialSpecularItem(const Color& rCol)
     120        2841 : :   SvxColorItem(rCol, SDRATTR_3DOBJ_MAT_SPECULAR)
     121        2841 : {}
     122             : 
     123        2841 : Svx3DMaterialSpecularIntensityItem::Svx3DMaterialSpecularIntensityItem(sal_uInt16 nVal)
     124        2841 : :   SfxUInt16Item(SDRATTR_3DOBJ_MAT_SPECULAR_INTENSITY, nVal)
     125        2841 : {}
     126             : 
     127        2841 : Svx3DTextureKindItem::Svx3DTextureKindItem(sal_uInt16 nVal)
     128        2841 : :   SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_KIND, nVal)
     129        2841 : {}
     130             : 
     131        2841 : Svx3DTextureModeItem::Svx3DTextureModeItem(sal_uInt16 nVal)
     132        2841 : :   SfxUInt16Item(SDRATTR_3DOBJ_TEXTURE_MODE, nVal)
     133        2841 : {}
     134             : 
     135        2841 : Svx3DTextureFilterItem::Svx3DTextureFilterItem(bool bVal)
     136        2841 : :   SfxBoolItem(SDRATTR_3DOBJ_TEXTURE_FILTER, bVal)
     137        2841 : {}
     138             : 
     139        3207 : Svx3DPerspectiveItem::Svx3DPerspectiveItem(sal_uInt16 nVal)
     140        3207 : :   SfxUInt16Item(SDRATTR_3DSCENE_PERSPECTIVE, nVal)
     141        3207 : {}
     142             : 
     143        3207 : Svx3DDistanceItem::Svx3DDistanceItem(sal_uInt32 nVal)
     144        3207 : :   SfxUInt32Item(SDRATTR_3DSCENE_DISTANCE, nVal)
     145        3207 : {}
     146             : 
     147        3207 : Svx3DFocalLengthItem::Svx3DFocalLengthItem(sal_uInt32 nVal)
     148        3207 : :   SfxUInt32Item(SDRATTR_3DSCENE_FOCAL_LENGTH, nVal)
     149        3207 : {}
     150             : 
     151        2841 : Svx3DTwoSidedLightingItem::Svx3DTwoSidedLightingItem(bool bVal)
     152        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_TWO_SIDED_LIGHTING, bVal)
     153        2841 : {}
     154             : 
     155        2841 : Svx3DLightcolor1Item::Svx3DLightcolor1Item(const Color& rCol)
     156        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_1)
     157        2841 : {}
     158             : 
     159        2841 : Svx3DLightcolor2Item::Svx3DLightcolor2Item(const Color& rCol)
     160        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_2)
     161        2841 : {}
     162             : 
     163        2841 : Svx3DLightcolor3Item::Svx3DLightcolor3Item(const Color& rCol)
     164        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_3)
     165        2841 : {}
     166             : 
     167        2841 : Svx3DLightcolor4Item::Svx3DLightcolor4Item(const Color& rCol)
     168        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_4)
     169        2841 : {}
     170             : 
     171        2841 : Svx3DLightcolor5Item::Svx3DLightcolor5Item(const Color& rCol)
     172        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_5)
     173        2841 : {}
     174             : 
     175        2841 : Svx3DLightcolor6Item::Svx3DLightcolor6Item(const Color& rCol)
     176        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_6)
     177        2841 : {}
     178             : 
     179        2841 : Svx3DLightcolor7Item::Svx3DLightcolor7Item(const Color& rCol)
     180        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_7)
     181        2841 : {}
     182             : 
     183        2841 : Svx3DLightcolor8Item::Svx3DLightcolor8Item(const Color& rCol)
     184        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_LIGHTCOLOR_8)
     185        2841 : {}
     186             : 
     187        2841 : Svx3DAmbientcolorItem::Svx3DAmbientcolorItem(const Color& rCol)
     188        2841 : :   SvxColorItem(rCol, SDRATTR_3DSCENE_AMBIENTCOLOR)
     189        2841 : {}
     190             : 
     191        2841 : Svx3DLightOnOff1Item::Svx3DLightOnOff1Item(bool bVal)
     192        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_1, bVal)
     193        2841 : {}
     194             : 
     195        2841 : Svx3DLightOnOff2Item::Svx3DLightOnOff2Item(bool bVal)
     196        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_2, bVal)
     197        2841 : {}
     198             : 
     199        2841 : Svx3DLightOnOff3Item::Svx3DLightOnOff3Item(bool bVal)
     200        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_3, bVal)
     201        2841 : {}
     202             : 
     203        2841 : Svx3DLightOnOff4Item::Svx3DLightOnOff4Item(bool bVal)
     204        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_4, bVal)
     205        2841 : {}
     206             : 
     207        2841 : Svx3DLightOnOff5Item::Svx3DLightOnOff5Item(bool bVal)
     208        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_5, bVal)
     209        2841 : {}
     210             : 
     211        2841 : Svx3DLightOnOff6Item::Svx3DLightOnOff6Item(bool bVal)
     212        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_6, bVal)
     213        2841 : {}
     214             : 
     215        2841 : Svx3DLightOnOff7Item::Svx3DLightOnOff7Item(bool bVal)
     216        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_7, bVal)
     217        2841 : {}
     218             : 
     219        2841 : Svx3DLightOnOff8Item::Svx3DLightOnOff8Item(bool bVal)
     220        2841 : :   SfxBoolItem(SDRATTR_3DSCENE_LIGHTON_8, bVal)
     221        2841 : {}
     222             : 
     223        2841 : Svx3DLightDirection1Item::Svx3DLightDirection1Item(const basegfx::B3DVector& rVec)
     224        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_1, rVec)
     225        2841 : {}
     226             : 
     227        2841 : Svx3DLightDirection2Item::Svx3DLightDirection2Item(const basegfx::B3DVector& rVec)
     228        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_2, rVec)
     229        2841 : {}
     230             : 
     231        2841 : Svx3DLightDirection3Item::Svx3DLightDirection3Item(const basegfx::B3DVector& rVec)
     232        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_3, rVec)
     233        2841 : {}
     234             : 
     235        2841 : Svx3DLightDirection4Item::Svx3DLightDirection4Item(const basegfx::B3DVector& rVec)
     236        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_4, rVec)
     237        2841 : {}
     238             : 
     239        2841 : Svx3DLightDirection5Item::Svx3DLightDirection5Item(const basegfx::B3DVector& rVec)
     240        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_5, rVec)
     241        2841 : {}
     242             : 
     243        2841 : Svx3DLightDirection6Item::Svx3DLightDirection6Item(const basegfx::B3DVector& rVec)
     244        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_6, rVec)
     245        2841 : {}
     246             : 
     247        2841 : Svx3DLightDirection7Item::Svx3DLightDirection7Item(const basegfx::B3DVector& rVec)
     248        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_7, rVec)
     249        2841 : {}
     250             : 
     251        2841 : Svx3DLightDirection8Item::Svx3DLightDirection8Item(const basegfx::B3DVector& rVec)
     252        2841 : :   SvxB3DVectorItem(SDRATTR_3DSCENE_LIGHTDIRECTION_8, rVec)
     253        2841 : {}
     254             : 
     255        2841 : Svx3DShadowSlantItem::Svx3DShadowSlantItem(sal_uInt16 nVal)
     256        2841 : :   SfxUInt16Item(SDRATTR_3DSCENE_SHADOW_SLANT, nVal)
     257        2841 : {}
     258             : 
     259        2841 : Svx3DShadeModeItem::Svx3DShadeModeItem(sal_uInt16 nVal)
     260        2841 : :   SfxUInt16Item(SDRATTR_3DSCENE_SHADE_MODE, nVal)
     261        2841 : {}
     262             : 
     263             : 
     264             : // #107245#
     265             : 
     266        3822 : Svx3DSmoothNormalsItem::Svx3DSmoothNormalsItem(bool bVal)
     267        3822 : :   SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_NORMALS, bVal)
     268        3822 : {}
     269             : 
     270           0 : sal_uInt16 Svx3DSmoothNormalsItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
     271             : {
     272           0 :     return 1;
     273             : }
     274             : 
     275           0 : SfxPoolItem* Svx3DSmoothNormalsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
     276             : {
     277           0 :     SfxBoolItem* pRetval = new Svx3DSmoothNormalsItem();
     278             : 
     279           0 :     if(nItemVersion > 0)
     280             :     {
     281           0 :         SfxBoolItem aBoolItem(Which(), rIn);
     282           0 :         pRetval->SetValue(aBoolItem.GetValue());
     283             :     }
     284             : 
     285           0 :     return pRetval;
     286             : }
     287             : 
     288             : 
     289             : // #107245#
     290             : 
     291        3822 : Svx3DSmoothLidsItem::Svx3DSmoothLidsItem(bool bVal)
     292        3822 : :   SfxBoolItem(SDRATTR_3DOBJ_SMOOTH_LIDS, bVal)
     293        3822 : {}
     294             : 
     295           0 : sal_uInt16 Svx3DSmoothLidsItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
     296             : {
     297           0 :     return 1;
     298             : }
     299             : 
     300           0 : SfxPoolItem* Svx3DSmoothLidsItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
     301             : {
     302           0 :     SfxBoolItem* pRetval = new Svx3DSmoothLidsItem();
     303             : 
     304           0 :     if(nItemVersion > 0)
     305             :     {
     306           0 :         SfxBoolItem aBoolItem(Which(), rIn);
     307           0 :         pRetval->SetValue(aBoolItem.GetValue());
     308             :     }
     309             : 
     310           0 :     return pRetval;
     311             : }
     312             : 
     313             : 
     314             : // #107245#
     315             : 
     316        4803 : Svx3DCharacterModeItem::Svx3DCharacterModeItem(bool bVal)
     317        4803 : :   SfxBoolItem(SDRATTR_3DOBJ_CHARACTER_MODE, bVal)
     318        4803 : {}
     319             : 
     320           0 : sal_uInt16 Svx3DCharacterModeItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
     321             : {
     322           0 :     return 1;
     323             : }
     324             : 
     325           0 : SfxPoolItem* Svx3DCharacterModeItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
     326             : {
     327           0 :     SfxBoolItem* pRetval = new Svx3DCharacterModeItem();
     328             : 
     329           0 :     if(nItemVersion > 0)
     330             :     {
     331           0 :         SfxBoolItem aBoolItem(Which(), rIn);
     332           0 :         pRetval->SetValue(aBoolItem.GetValue());
     333             :     }
     334             : 
     335           0 :     return pRetval;
     336             : }
     337             : 
     338             : 
     339             : // #107245#
     340             : 
     341        3822 : Svx3DCloseFrontItem::Svx3DCloseFrontItem(bool bVal)
     342        3822 : :   SfxBoolItem(SDRATTR_3DOBJ_CLOSE_FRONT, bVal)
     343        3822 : {}
     344             : 
     345           0 : sal_uInt16 Svx3DCloseFrontItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
     346             : {
     347           0 :     return 1;
     348             : }
     349             : 
     350           0 : SfxPoolItem* Svx3DCloseFrontItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
     351             : {
     352           0 :     SfxBoolItem* pRetval = new Svx3DCloseFrontItem();
     353             : 
     354           0 :     if(nItemVersion > 0)
     355             :     {
     356           0 :         SfxBoolItem aBoolItem(Which(), rIn);
     357           0 :         pRetval->SetValue(aBoolItem.GetValue());
     358             :     }
     359             : 
     360           0 :     return pRetval;
     361             : }
     362             : 
     363             : 
     364             : // #107245#
     365             : 
     366        3822 : Svx3DCloseBackItem::Svx3DCloseBackItem(bool bVal)
     367        3822 : :   SfxBoolItem(SDRATTR_3DOBJ_CLOSE_BACK, bVal)
     368        3822 : {}
     369             : 
     370           0 : sal_uInt16 Svx3DCloseBackItem::GetVersion(sal_uInt16 /*nFileFormatVersion*/) const
     371             : {
     372           0 :     return 1;
     373             : }
     374             : 
     375           0 : SfxPoolItem* Svx3DCloseBackItem::Create(SvStream& rIn, sal_uInt16 nItemVersion) const
     376             : {
     377           0 :     SfxBoolItem* pRetval = new Svx3DCloseBackItem();
     378             : 
     379           0 :     if(nItemVersion > 0)
     380             :     {
     381           0 :         SfxBoolItem aBoolItem(Which(), rIn);
     382           0 :         pRetval->SetValue(aBoolItem.GetValue());
     383             :     }
     384             : 
     385           0 :     return pRetval;
     386             : }
     387             : 
     388             : 
     389             : 
     390             : // Svx3DNormalsKindItem: use drawing::NormalsKind
     391           0 : bool Svx3DNormalsKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     392             : {
     393           0 :     rVal <<= (drawing::NormalsKind)GetValue();
     394           0 :     return true;
     395             : }
     396             : 
     397         144 : bool Svx3DNormalsKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     398             : {
     399             :     drawing::NormalsKind eVar;
     400         144 :     if(!(rVal >>= eVar))
     401           0 :         return false;
     402         144 :     SetValue((sal_Int16)eVar);
     403         144 :     return true;
     404             : }
     405             : 
     406         300 : SfxPoolItem* Svx3DNormalsKindItem::Clone(SfxItemPool* /*pPool*/) const
     407             : {
     408         300 :     return new Svx3DNormalsKindItem(*this);
     409             : }
     410             : 
     411             : // Svx3DTextureProjectionXItem: use drawing::TextureProjectionMode
     412           0 : bool Svx3DTextureProjectionXItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     413             : {
     414           0 :     rVal <<= (drawing::TextureProjectionMode)GetValue();
     415           0 :     return true;
     416             : }
     417             : 
     418           8 : bool Svx3DTextureProjectionXItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     419             : {
     420             :     drawing::TextureProjectionMode eVar;
     421           8 :     if(!(rVal >>= eVar))
     422           0 :         return false;
     423           8 :     SetValue((sal_Int16)eVar);
     424           8 :     return true;
     425             : }
     426             : 
     427        1822 : SfxPoolItem* Svx3DTextureProjectionXItem::Clone(SfxItemPool* /*pPool*/) const
     428             : {
     429        1822 :     return new Svx3DTextureProjectionXItem(*this);
     430             : }
     431             : 
     432             : // Svx3DTextureProjectionYItem: use drawing::TextureProjectionMode
     433           0 : bool Svx3DTextureProjectionYItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     434             : {
     435           0 :     rVal <<= (drawing::TextureProjectionMode)GetValue();
     436           0 :     return true;
     437             : }
     438             : 
     439          16 : bool Svx3DTextureProjectionYItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     440             : {
     441             :     drawing::TextureProjectionMode eVar;
     442          16 :     if(!(rVal >>= eVar))
     443           0 :         return false;
     444          16 :     SetValue((sal_Int16)eVar);
     445          16 :     return true;
     446             : }
     447             : 
     448        1854 : SfxPoolItem* Svx3DTextureProjectionYItem::Clone(SfxItemPool* /*pPool*/) const
     449             : {
     450        1854 :     return new Svx3DTextureProjectionYItem(*this);
     451             : }
     452             : 
     453             : // Svx3DTextureKindItem: use drawing::TextureKind
     454           0 : bool Svx3DTextureKindItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     455             : {
     456           0 :     rVal <<= (drawing::TextureKind)GetValue();
     457           0 :     return true;
     458             : }
     459             : 
     460           0 : bool Svx3DTextureKindItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     461             : {
     462             :     drawing::TextureKind eVar;
     463           0 :     if(!(rVal >>= eVar))
     464           0 :         return false;
     465           0 :     SetValue((sal_Int16)eVar);
     466           0 :     return true;
     467             : }
     468             : 
     469           0 : SfxPoolItem* Svx3DTextureKindItem::Clone(SfxItemPool* /*pPool*/) const
     470             : {
     471           0 :     return new Svx3DTextureKindItem(*this);
     472             : }
     473             : 
     474             : // Svx3DTextureModeItem: use drawing:TextureMode
     475           0 : bool Svx3DTextureModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     476             : {
     477           0 :     rVal <<= (drawing::TextureMode)GetValue();
     478           0 :     return true;
     479             : }
     480             : 
     481           0 : bool Svx3DTextureModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     482             : {
     483             :     drawing::TextureMode eVar;
     484           0 :     if(!(rVal >>= eVar))
     485           0 :         return false;
     486           0 :     SetValue((sal_Int16)eVar);
     487           0 :     return true;
     488             : }
     489             : 
     490           0 : SfxPoolItem* Svx3DTextureModeItem::Clone(SfxItemPool* /*pPool*/) const
     491             : {
     492           0 :     return new Svx3DTextureModeItem(*this);
     493             : }
     494             : 
     495             : // Svx3DPerspectiveItem: use drawing::ProjectionMode
     496           0 : bool Svx3DPerspectiveItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     497             : {
     498           0 :     rVal <<= (drawing::ProjectionMode)GetValue();
     499           0 :     return true;
     500             : }
     501             : 
     502          12 : bool Svx3DPerspectiveItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     503             : {
     504             :     drawing::ProjectionMode eVar;
     505          12 :     if(!(rVal >>= eVar))
     506           0 :         return false;
     507          12 :     SetValue((sal_Int16)eVar);
     508          12 :     return true;
     509             : }
     510             : 
     511          34 : SfxPoolItem* Svx3DPerspectiveItem::Clone(SfxItemPool* /*pPool*/) const
     512             : {
     513          34 :     return new Svx3DPerspectiveItem(*this);
     514             : }
     515             : 
     516             : // Svx3DShadeModeItem: use drawing::ShadeMode
     517           0 : bool Svx3DShadeModeItem::QueryValue( uno::Any& rVal, sal_uInt8 /*nMemberId*/) const
     518             : {
     519           0 :     rVal <<= (drawing::ShadeMode)GetValue();
     520           0 :     return true;
     521             : }
     522             : 
     523          12 : bool Svx3DShadeModeItem::PutValue( const uno::Any& rVal, sal_uInt8 /*nMemberId*/)
     524             : {
     525             :     drawing::ShadeMode eVar;
     526          12 :     if(!(rVal >>= eVar))
     527           0 :         return false;
     528          12 :     SetValue((sal_Int16)eVar);
     529          12 :     return true;
     530             : }
     531             : 
     532          32 : SfxPoolItem* Svx3DShadeModeItem::Clone(SfxItemPool* /*pPool*/) const
     533             : {
     534          32 :     return new Svx3DShadeModeItem(*this);
     535             : }
     536             : 
     537             : // EOF
     538             : 
     539             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10