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_FILLGRAPHICATTRIBUTE_HXX
25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 //////////////////////////////////////////////////////////////////////////////
29 // predefines
30 
31 class Graphic;
32 
33 namespace basegfx {
34     class B2DRange;
35 }
36 
37 namespace drawinglayer { namespace attribute {
38 	class ImpFillGraphicAttribute;
39 }}
40 
41 //////////////////////////////////////////////////////////////////////////////
42 
43 namespace drawinglayer
44 {
45 	namespace attribute
46 	{
47 		class DRAWINGLAYER_DLLPUBLIC FillGraphicAttribute
48 		{
49         private:
50             ImpFillGraphicAttribute*        mpFillGraphicAttribute;
51 
52 		public:
53             /// constructors/assignmentoperator/destructor
54 			FillGraphicAttribute(
55                 const Graphic& rGraphic,
56                 const basegfx::B2DRange& rGraphicRange,
57                 bool bTiling = false,
58                 double fOffsetX = 0.0,
59                 double fOffsetY = 0.0);
60 			FillGraphicAttribute();
61 			FillGraphicAttribute(const FillGraphicAttribute& rCandidate);
62 			FillGraphicAttribute& operator=(const FillGraphicAttribute& rCandidate);
63 			~FillGraphicAttribute();
64 
65             // checks if the incarnation is default constructed
66             bool isDefault() const;
67 
68             // compare operator
69 			bool operator==(const FillGraphicAttribute& rCandidate) const;
70 
71             // data read access
72 			const Graphic& getGraphic() const;
73 			const basegfx::B2DRange& getGraphicRange() const;
74 			bool getTiling() const;
75             double getOffsetX() const;
76             double getOffsetY() const;
77 		};
78 	} // end of namespace attribute
79 } // end of namespace drawinglayer
80 
81 //////////////////////////////////////////////////////////////////////////////
82 
83 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLGRAPHICATTRIBUTE_HXX
84 
85 // eof
86