xref: /AOO41X/main/drawinglayer/inc/drawinglayer/attribute/fillhatchattribute.hxx (revision 0aabba3ab117bd1ebf1560f23f52dfa1a54fd4c7)
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 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLHATCHATTRIBUTE_HXX
23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLHATCHATTRIBUTE_HXX
24 
25 #include <drawinglayer/drawinglayerdllapi.h>
26 //////////////////////////////////////////////////////////////////////////////
27 // predefines
28 
29 namespace basegfx {
30     class BColor;
31 }
32 
33 namespace drawinglayer { namespace attribute {
34     class ImpFillHatchAttribute;
35 }}
36 
37 //////////////////////////////////////////////////////////////////////////////
38 // declarations
39 
40 namespace drawinglayer
41 {
42 	namespace attribute
43 	{
44 		enum HatchStyle
45 		{
46 			HATCHSTYLE_SINGLE,
47 			HATCHSTYLE_DOUBLE,
48 			HATCHSTYLE_TRIPLE
49 		};
50 	} // end of namespace attribute
51 } // end of namespace drawinglayer
52 
53 //////////////////////////////////////////////////////////////////////////////
54 
55 namespace drawinglayer
56 {
57 	namespace attribute
58 	{
59 		class DRAWINGLAYER_DLLPUBLIC FillHatchAttribute
60 		{
61         private:
62             ImpFillHatchAttribute*              mpFillHatchAttribute;
63 
64 		public:
65             /// constructors/assignmentoperator/destructor
66 			FillHatchAttribute(
67 			    HatchStyle eStyle,
68                 double fDistance,
69                 double fAngle,
70                 const basegfx::BColor& rColor,
71                 bool bFillBackground);
72 			FillHatchAttribute();
73 			FillHatchAttribute(const FillHatchAttribute& rCandidate);
74 			FillHatchAttribute& operator=(const FillHatchAttribute& rCandidate);
75 			~FillHatchAttribute();
76 
77             // checks if the incarnation is default constructed
78             bool isDefault() const;
79 
80             // compare operator
81 			bool operator==(const FillHatchAttribute& rCandidate) const;
82 
83 			// data read access
84 			HatchStyle getStyle() const;
85 			double getDistance() const;
86 			double getAngle() const;
87 			const basegfx::BColor& getColor() const;
88 			bool isFillBackground() const;
89 		};
90 	} // end of namespace attribute
91 } // end of namespace drawinglayer
92 
93 //////////////////////////////////////////////////////////////////////////////
94 
95 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_FILLHATCHATTRIBUTE_HXX
96 
97 // eof
98