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 23 24 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX 25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX 26 27 #include <drawinglayer/drawinglayerdllapi.h> 28 29 ////////////////////////////////////////////////////////////////////////////// 30 // predefines 31 32 class Graphic; 33 34 namespace basegfx { 35 class B2DRange; 36 class B2DVector; 37 } 38 39 namespace drawinglayer { namespace attribute { 40 class FillGraphicAttribute; 41 class ImpSdrFillGraphicAttribute; 42 }} 43 44 ////////////////////////////////////////////////////////////////////////////// 45 46 namespace drawinglayer 47 { 48 namespace attribute 49 { 50 class DRAWINGLAYER_DLLPUBLIC SdrFillGraphicAttribute 51 { 52 private: 53 ImpSdrFillGraphicAttribute* mpSdrFillGraphicAttribute; 54 55 public: 56 /// constructors/assignmentoperator/destructor 57 SdrFillGraphicAttribute( 58 const Graphic& rFillGraphic, 59 const basegfx::B2DVector& rSize, 60 const basegfx::B2DVector& rOffset, 61 const basegfx::B2DVector& rOffsetPosition, 62 const basegfx::B2DVector& rRectPoint, 63 bool bTiling, 64 bool bStretch, 65 bool bLogSize); 66 SdrFillGraphicAttribute(); 67 SdrFillGraphicAttribute(const SdrFillGraphicAttribute& rCandidate); 68 SdrFillGraphicAttribute& operator=(const SdrFillGraphicAttribute& rCandidate); 69 ~SdrFillGraphicAttribute(); 70 71 // checks if the incarnation is default constructed 72 bool isDefault() const; 73 74 // compare operator 75 bool operator==(const SdrFillGraphicAttribute& rCandidate) const; 76 77 // data read access 78 const Graphic& getFillGraphic() const; 79 const basegfx::B2DVector& getSize() const; 80 const basegfx::B2DVector& getOffset() const; 81 const basegfx::B2DVector& getOffsetPosition() const; 82 const basegfx::B2DVector& getRectPoint() const; 83 bool getTiling() const; 84 bool getStretch() const; 85 bool getLogSize() const; 86 87 // FillGraphicAttribute generator 88 FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange& rRange) const; 89 }; 90 } // end of namespace attribute 91 } // end of namespace drawinglayer 92 93 ////////////////////////////////////////////////////////////////////////////// 94 95 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX 96 97 // eof 98