14f506f19SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
34f506f19SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
44f506f19SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
54f506f19SAndrew Rist  * distributed with this work for additional information
64f506f19SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
74f506f19SAndrew Rist  * to you under the Apache License, Version 2.0 (the
84f506f19SAndrew Rist  * "License"); you may not use this file except in compliance
94f506f19SAndrew Rist  * with the License.  You may obtain a copy of the License at
104f506f19SAndrew Rist  *
114f506f19SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
124f506f19SAndrew Rist  *
134f506f19SAndrew Rist  * Unless required by applicable law or agreed to in writing,
144f506f19SAndrew Rist  * software distributed under the License is distributed on an
154f506f19SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
164f506f19SAndrew Rist  * KIND, either express or implied.  See the License for the
174f506f19SAndrew Rist  * specific language governing permissions and limitations
184f506f19SAndrew Rist  * under the License.
194f506f19SAndrew Rist  *
204f506f19SAndrew Rist  *************************************************************/
214f506f19SAndrew Rist 
224f506f19SAndrew Rist 
23cdf0e10cSrcweir 
24035a2f44SArmin Le Grand #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
25035a2f44SArmin Le Grand #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
26cdf0e10cSrcweir 
27090f0eb8SEike Rathke #include <drawinglayer/drawinglayerdllapi.h>
2870d3707aSArmin Le Grand 
29cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
30cdf0e10cSrcweir // predefines
31cdf0e10cSrcweir 
32035a2f44SArmin Le Grand class Graphic;
33cdf0e10cSrcweir 
34cdf0e10cSrcweir namespace basegfx {
35cdf0e10cSrcweir 	class B2DRange;
36cdf0e10cSrcweir     class B2DVector;
37cdf0e10cSrcweir }
38cdf0e10cSrcweir 
39cdf0e10cSrcweir namespace drawinglayer { namespace attribute {
40035a2f44SArmin Le Grand 	class FillGraphicAttribute;
41035a2f44SArmin Le Grand     class ImpSdrFillGraphicAttribute;
42cdf0e10cSrcweir }}
43cdf0e10cSrcweir 
44cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
45cdf0e10cSrcweir 
46cdf0e10cSrcweir namespace drawinglayer
47cdf0e10cSrcweir {
48cdf0e10cSrcweir 	namespace attribute
49cdf0e10cSrcweir 	{
50035a2f44SArmin Le Grand 		class DRAWINGLAYER_DLLPUBLIC SdrFillGraphicAttribute
51cdf0e10cSrcweir 		{
52cdf0e10cSrcweir         private:
53035a2f44SArmin Le Grand             ImpSdrFillGraphicAttribute*     mpSdrFillGraphicAttribute;
54cdf0e10cSrcweir 
55cdf0e10cSrcweir 		public:
56cdf0e10cSrcweir             /// constructors/assignmentoperator/destructor
57035a2f44SArmin Le Grand 			SdrFillGraphicAttribute(
58035a2f44SArmin Le Grand 				const Graphic& rFillGraphic,
59*e7d68668SArmin Le Grand                 const basegfx::B2DVector& rGraphicLogicSize,
60cdf0e10cSrcweir                 const basegfx::B2DVector& rSize,
61cdf0e10cSrcweir                 const basegfx::B2DVector& rOffset,
62cdf0e10cSrcweir 				const basegfx::B2DVector& rOffsetPosition,
63cdf0e10cSrcweir                 const basegfx::B2DVector& rRectPoint,
64cdf0e10cSrcweir 				bool bTiling,
65cdf0e10cSrcweir                 bool bStretch,
66cdf0e10cSrcweir                 bool bLogSize);
67035a2f44SArmin Le Grand 			SdrFillGraphicAttribute();
68035a2f44SArmin Le Grand 			SdrFillGraphicAttribute(const SdrFillGraphicAttribute& rCandidate);
69035a2f44SArmin Le Grand 			SdrFillGraphicAttribute& operator=(const SdrFillGraphicAttribute& rCandidate);
70035a2f44SArmin Le Grand 			~SdrFillGraphicAttribute();
71cdf0e10cSrcweir 
72cdf0e10cSrcweir             // checks if the incarnation is default constructed
73cdf0e10cSrcweir             bool isDefault() const;
74cdf0e10cSrcweir 
75cdf0e10cSrcweir             // compare operator
76035a2f44SArmin Le Grand 			bool operator==(const SdrFillGraphicAttribute& rCandidate) const;
77cdf0e10cSrcweir 
78cdf0e10cSrcweir 			// data read access
79035a2f44SArmin Le Grand             const Graphic& getFillGraphic() const;
80*e7d68668SArmin Le Grand             const basegfx::B2DVector& getGraphicLogicSize() const;
81cdf0e10cSrcweir             const basegfx::B2DVector& getSize() const;
82cdf0e10cSrcweir             const basegfx::B2DVector& getOffset() const;
83cdf0e10cSrcweir             const basegfx::B2DVector& getOffsetPosition() const;
84cdf0e10cSrcweir             const basegfx::B2DVector& getRectPoint() const;
85cdf0e10cSrcweir             bool getTiling() const;
86cdf0e10cSrcweir             bool getStretch() const;
87cdf0e10cSrcweir             bool getLogSize() const;
88cdf0e10cSrcweir 
89035a2f44SArmin Le Grand             // FillGraphicAttribute generator
90035a2f44SArmin Le Grand 			FillGraphicAttribute createFillGraphicAttribute(const basegfx::B2DRange& rRange) const;
91cdf0e10cSrcweir 		};
92cdf0e10cSrcweir 	} // end of namespace attribute
93cdf0e10cSrcweir } // end of namespace drawinglayer
94cdf0e10cSrcweir 
95cdf0e10cSrcweir //////////////////////////////////////////////////////////////////////////////
96cdf0e10cSrcweir 
97035a2f44SArmin Le Grand #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRFILLGRAPHICATTRIBUTE_HXX
98cdf0e10cSrcweir 
99cdf0e10cSrcweir // eof
100