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_SDRSHADOWATTRIBUTE_HXX 23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSHADOWATTRIBUTE_HXX 24 25 #include <drawinglayer/drawinglayerdllapi.h> 26 ////////////////////////////////////////////////////////////////////////////// 27 // predefines 28 29 namespace basegfx { 30 class BColor; 31 class B2DVector; 32 } 33 34 namespace drawinglayer { namespace attribute { 35 class ImpSdrShadowAttribute; 36 }} 37 38 ////////////////////////////////////////////////////////////////////////////// 39 40 namespace drawinglayer 41 { 42 namespace attribute 43 { 44 class DRAWINGLAYER_DLLPUBLIC SdrShadowAttribute 45 { 46 private: 47 ImpSdrShadowAttribute* mpSdrShadowAttribute; 48 49 public: 50 /// constructors/assignmentoperator/destructor 51 SdrShadowAttribute( 52 const basegfx::B2DVector& rOffset, 53 double fTransparence, 54 const basegfx::BColor& rColor); 55 SdrShadowAttribute(); 56 SdrShadowAttribute(const SdrShadowAttribute& rCandidate); 57 SdrShadowAttribute& operator=(const SdrShadowAttribute& rCandidate); 58 ~SdrShadowAttribute(); 59 60 // checks if the incarnation is default constructed 61 bool isDefault() const; 62 63 // compare operator 64 bool operator==(const SdrShadowAttribute& rCandidate) const; 65 66 // data access 67 const basegfx::B2DVector& getOffset() const; 68 double getTransparence() const; 69 const basegfx::BColor& getColor() const; 70 }; 71 } // end of namespace attribute 72 } // end of namespace drawinglayer 73 74 ////////////////////////////////////////////////////////////////////////////// 75 76 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRSHADOWATTRIBUTE_HXX 77 78 // eof 79