1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 24 25 #include <drawinglayer/drawinglayerdllapi.h> 26 #include <com/sun/star/drawing/ProjectionMode.hpp> 27 #include <com/sun/star/drawing/ShadeMode.hpp> 28 29 ////////////////////////////////////////////////////////////////////////////// 30 // predefines 31 32 namespace drawinglayer { namespace attribute { 33 class ImpSdrSceneAttribute; 34 }} 35 36 ////////////////////////////////////////////////////////////////////////////// 37 38 namespace drawinglayer 39 { 40 namespace attribute 41 { 42 class DRAWINGLAYER_DLLPUBLIC SdrSceneAttribute 43 { 44 private: 45 ImpSdrSceneAttribute* mpSdrSceneAttribute; 46 47 public: 48 /// constructors/assignmentoperator/destructor 49 SdrSceneAttribute( 50 double fDistance, 51 double fShadowSlant, 52 ::com::sun::star::drawing::ProjectionMode aProjectionMode, 53 ::com::sun::star::drawing::ShadeMode aShadeMode, 54 bool bTwoSidedLighting); 55 SdrSceneAttribute(); 56 SdrSceneAttribute(const SdrSceneAttribute& rCandidate); 57 SdrSceneAttribute& operator=(const SdrSceneAttribute& rCandidate); 58 ~SdrSceneAttribute(); 59 60 // checks if the incarnation is default constructed 61 bool isDefault() const; 62 63 // compare operator 64 bool operator==(const SdrSceneAttribute& rCandidate) const; 65 66 // data read access 67 double getDistance() const; 68 double getShadowSlant() const; 69 ::com::sun::star::drawing::ProjectionMode getProjectionMode() const; 70 ::com::sun::star::drawing::ShadeMode getShadeMode() const; 71 bool getTwoSidedLighting() const; 72 }; 73 } // end of namespace attribute 74 } // end of namespace drawinglayer 75 76 ////////////////////////////////////////////////////////////////////////////// 77 78 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSCENEATTRIBUTE3D_HXX 79 80 // eof 81