14bfbcde8SAndrew Rist /************************************************************** 24bfbcde8SAndrew Rist * 34bfbcde8SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 44bfbcde8SAndrew Rist * or more contributor license agreements. See the NOTICE file 54bfbcde8SAndrew Rist * distributed with this work for additional information 64bfbcde8SAndrew Rist * regarding copyright ownership. The ASF licenses this file 74bfbcde8SAndrew Rist * to you under the Apache License, Version 2.0 (the 84bfbcde8SAndrew Rist * "License"); you may not use this file except in compliance 94bfbcde8SAndrew Rist * with the License. You may obtain a copy of the License at 104bfbcde8SAndrew Rist * 114bfbcde8SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 124bfbcde8SAndrew Rist * 134bfbcde8SAndrew Rist * Unless required by applicable law or agreed to in writing, 144bfbcde8SAndrew Rist * software distributed under the License is distributed on an 154bfbcde8SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 164bfbcde8SAndrew Rist * KIND, either express or implied. See the License for the 174bfbcde8SAndrew Rist * specific language governing permissions and limitations 184bfbcde8SAndrew Rist * under the License. 194bfbcde8SAndrew Rist * 204bfbcde8SAndrew Rist *************************************************************/ 21cdf0e10cSrcweir 22cdf0e10cSrcweir #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLATTRIBUTE_HXX 23cdf0e10cSrcweir #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLATTRIBUTE_HXX 24cdf0e10cSrcweir 25090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h> 26cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 27cdf0e10cSrcweir // predefines 28cdf0e10cSrcweir 29cdf0e10cSrcweir namespace basegfx { 30cdf0e10cSrcweir class BColor; 31cdf0e10cSrcweir } 32cdf0e10cSrcweir 33cdf0e10cSrcweir namespace drawinglayer { namespace attribute { 34cdf0e10cSrcweir class ImpSdrFillAttribute; 35cdf0e10cSrcweir class FillGradientAttribute; 36cdf0e10cSrcweir class FillHatchAttribute; 37*035a2f44SArmin Le Grand class SdrFillGraphicAttribute; 38cdf0e10cSrcweir }} 39cdf0e10cSrcweir 40cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 41cdf0e10cSrcweir 42cdf0e10cSrcweir namespace drawinglayer 43cdf0e10cSrcweir { 44cdf0e10cSrcweir namespace attribute 45cdf0e10cSrcweir { 46090f0eb8SEike Rathke class DRAWINGLAYER_DLLPUBLIC SdrFillAttribute 47cdf0e10cSrcweir { 48cdf0e10cSrcweir private: 49cdf0e10cSrcweir ImpSdrFillAttribute* mpSdrFillAttribute; 50cdf0e10cSrcweir 51cdf0e10cSrcweir public: 52cdf0e10cSrcweir /// constructors/assignmentoperator/destructor 53cdf0e10cSrcweir SdrFillAttribute( 54cdf0e10cSrcweir double fTransparence, 55cdf0e10cSrcweir const basegfx::BColor& rColor, 56cdf0e10cSrcweir const FillGradientAttribute& rGradient, 57cdf0e10cSrcweir const FillHatchAttribute& rHatch, 58*035a2f44SArmin Le Grand const SdrFillGraphicAttribute& rFillGraphic); 59cdf0e10cSrcweir SdrFillAttribute(); 60cdf0e10cSrcweir SdrFillAttribute(const SdrFillAttribute& rCandidate); 61cdf0e10cSrcweir SdrFillAttribute& operator=(const SdrFillAttribute& rCandidate); 62cdf0e10cSrcweir ~SdrFillAttribute(); 63cdf0e10cSrcweir 64cdf0e10cSrcweir // checks if the incarnation is default constructed 65cdf0e10cSrcweir bool isDefault() const; 66cdf0e10cSrcweir 67cdf0e10cSrcweir // compare operator 68cdf0e10cSrcweir bool operator==(const SdrFillAttribute& rCandidate) const; 69cdf0e10cSrcweir 70cdf0e10cSrcweir // data read access 71cdf0e10cSrcweir double getTransparence() const; 72cdf0e10cSrcweir const basegfx::BColor& getColor() const; 73cdf0e10cSrcweir const FillGradientAttribute& getGradient() const; 74cdf0e10cSrcweir const FillHatchAttribute& getHatch() const; 75*035a2f44SArmin Le Grand const SdrFillGraphicAttribute& getFillGraphic() const; 76cdf0e10cSrcweir }; 77cdf0e10cSrcweir } // end of namespace attribute 78cdf0e10cSrcweir } // end of namespace drawinglayer 79cdf0e10cSrcweir 80cdf0e10cSrcweir ////////////////////////////////////////////////////////////////////////////// 81cdf0e10cSrcweir 82cdf0e10cSrcweir #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLATTRIBUTE_HXX 83cdf0e10cSrcweir 84cdf0e10cSrcweir // eof 85