1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLBITMAPATTRIBUTE_HXX 29 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLBITMAPATTRIBUTE_HXX 30 31 #include <drawinglayer/drawinglayerdllapi.h> 32 ////////////////////////////////////////////////////////////////////////////// 33 // predefines 34 35 class Bitmap; 36 37 namespace basegfx { 38 class B2DRange; 39 class B2DVector; 40 } 41 42 namespace drawinglayer { namespace attribute { 43 class FillBitmapAttribute; 44 class ImpSdrFillBitmapAttribute; 45 }} 46 47 ////////////////////////////////////////////////////////////////////////////// 48 49 namespace drawinglayer 50 { 51 namespace attribute 52 { 53 class DRAWINGLAYER_DLLPUBLIC SdrFillBitmapAttribute 54 { 55 private: 56 ImpSdrFillBitmapAttribute* mpSdrFillBitmapAttribute; 57 58 public: 59 /// constructors/assignmentoperator/destructor 60 SdrFillBitmapAttribute( 61 const Bitmap& rBitmap, 62 const basegfx::B2DVector& rSize, 63 const basegfx::B2DVector& rOffset, 64 const basegfx::B2DVector& rOffsetPosition, 65 const basegfx::B2DVector& rRectPoint, 66 bool bTiling, 67 bool bStretch, 68 bool bLogSize); 69 SdrFillBitmapAttribute(); 70 SdrFillBitmapAttribute(const SdrFillBitmapAttribute& rCandidate); 71 SdrFillBitmapAttribute& operator=(const SdrFillBitmapAttribute& rCandidate); 72 ~SdrFillBitmapAttribute(); 73 74 // checks if the incarnation is default constructed 75 bool isDefault() const; 76 77 // compare operator 78 bool operator==(const SdrFillBitmapAttribute& rCandidate) const; 79 80 // data read access 81 const Bitmap& getBitmap() const; 82 const basegfx::B2DVector& getSize() const; 83 const basegfx::B2DVector& getOffset() const; 84 const basegfx::B2DVector& getOffsetPosition() const; 85 const basegfx::B2DVector& getRectPoint() const; 86 bool getTiling() const; 87 bool getStretch() const; 88 bool getLogSize() const; 89 90 // FillBitmapAttribute generator 91 FillBitmapAttribute getFillBitmapAttribute(const basegfx::B2DRange& rRange) const; 92 }; 93 } // end of namespace attribute 94 } // end of namespace drawinglayer 95 96 ////////////////////////////////////////////////////////////////////////////// 97 98 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLBITMAPATTRIBUTE_HXX 99 100 // eof 101