1 /************************************************************************* 2 * 3 * OpenOffice.org - a multi-platform office productivity suite 4 * 5 * $RCSfile: sdrattribute3d.hxx,v $ 6 * 7 * $Revision: 1.4 $ 8 * 9 * last change: $Author: aw $ $Date: 2008-05-27 14:11:16 $ 10 * 11 * The Contents of this file are made available subject to 12 * the terms of GNU Lesser General Public License Version 2.1. 13 * 14 * 15 * GNU Lesser General Public License Version 2.1 16 * ============================================= 17 * Copyright 2005 by Sun Microsystems, Inc. 18 * 901 San Antonio Road, Palo Alto, CA 94303, USA 19 * 20 * This library is free software; you can redistribute it and/or 21 * modify it under the terms of the GNU Lesser General Public 22 * License version 2.1, as published by the Free Software Foundation. 23 * 24 * This library is distributed in the hope that it will be useful, 25 * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 27 * Lesser General Public License for more details. 28 * 29 * You should have received a copy of the GNU Lesser General Public 30 * License along with this library; if not, write to the Free Software 31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 32 * MA 02111-1307 USA 33 * 34 ************************************************************************/ 35 36 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 37 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 38 39 #include <drawinglayer/drawinglayerdllapi.h> 40 #include <com/sun/star/drawing/ProjectionMode.hpp> 41 #include <com/sun/star/drawing/ShadeMode.hpp> 42 43 ////////////////////////////////////////////////////////////////////////////// 44 // predefines 45 46 namespace drawinglayer { namespace attribute { 47 class ImpSdrSceneAttribute; 48 }} 49 50 ////////////////////////////////////////////////////////////////////////////// 51 52 namespace drawinglayer 53 { 54 namespace attribute 55 { 56 class DRAWINGLAYER_DLLPUBLIC SdrSceneAttribute 57 { 58 private: 59 ImpSdrSceneAttribute* mpSdrSceneAttribute; 60 61 public: 62 /// constructors/assignmentoperator/destructor 63 SdrSceneAttribute( 64 double fDistance, 65 double fShadowSlant, 66 ::com::sun::star::drawing::ProjectionMode aProjectionMode, 67 ::com::sun::star::drawing::ShadeMode aShadeMode, 68 bool bTwoSidedLighting); 69 SdrSceneAttribute(); 70 SdrSceneAttribute(const SdrSceneAttribute& rCandidate); 71 SdrSceneAttribute& operator=(const SdrSceneAttribute& rCandidate); 72 ~SdrSceneAttribute(); 73 74 // checks if the incarnation is default constructed 75 bool isDefault() const; 76 77 // compare operator 78 bool operator==(const SdrSceneAttribute& rCandidate) const; 79 80 // data read access 81 double getDistance() const; 82 double getShadowSlant() const; 83 ::com::sun::star::drawing::ProjectionMode getProjectionMode() const; 84 ::com::sun::star::drawing::ShadeMode getShadeMode() const; 85 bool getTwoSidedLighting() const; 86 }; 87 } // end of namespace attribute 88 } // end of namespace drawinglayer 89 90 ////////////////////////////////////////////////////////////////////////////// 91 92 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 93 94 // eof 95