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