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& rGraphicLogicSize, 60 const basegfx::B2DVector& rSize, 61 const basegfx::B2DVector& rOffset, 62 const basegfx::B2DVector& rOffsetPosition, 63 const basegfx::B2DVector& rRectPoint, 64 bool bTiling, 65 bool bStretch, 66 bool bLogSize); 67 SdrFillGraphicAttribute(); 68 SdrFillGraphicAttribute(const SdrFillGraphicAttribute& rCandidate); 69 SdrFillGraphicAttribute& operator=(const SdrFillGraphicAttribute& rCandidate); 70 ~SdrFillGraphicAttribute(); 71 72 // checks if the incarnation is default constructed 73 bool isDefault() const; 74 75 // compare operator 76 bool operator==(const SdrFillGraphicAttribute& rCandidate) const; 77 78 // data read access 79 const Graphic& getFillGraphic() const; 80 const basegfx::B2DVector& getGraphicLogicSize() const; 81 const basegfx::B2DVector& getSize() const; 82 const basegfx::B2DVector& getOffset() const; 83 const basegfx::B2DVector& getOffsetPosition() const; 84 const basegfx::B2DVector& getRectPoint() const; 85 bool getTiling() const; 86 bool getStretch() const; 87 bool getLogSize() const; 88 89 // FillGraphicAttribute generator 90 FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange& rRange) const; 91 }; 92 } // end of namespace attribute 93 } // end of namespace drawinglayer 94 95 ////////////////////////////////////////////////////////////////////////////// 96 97 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX 98 99 // eof 100