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_LINEATTRIBUTE_HXX
25 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_LINEATTRIBUTE_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 #include <basegfx/vector/b2enums.hxx>
29 
30 //////////////////////////////////////////////////////////////////////////////
31 // predefines
32 
33 namespace basegfx {
34     class BColor;
35 }
36 
37 namespace drawinglayer { namespace attribute {
38 	class ImpLineAttribute;
39 }}
40 
41 //////////////////////////////////////////////////////////////////////////////
42 
43 namespace drawinglayer
44 {
45 	namespace attribute
46 	{
47 		class DRAWINGLAYER_DLLPUBLIC LineAttribute
48 		{
49         private:
50             ImpLineAttribute*                           mpLineAttribute;
51 
52 		public:
53             /// constructors/assignmentoperator/destructor
54 			LineAttribute(
55 				const basegfx::BColor& rColor,
56 				double fWidth = 0.0,
57 				basegfx::B2DLineJoin aB2DLineJoin = basegfx::B2DLINEJOIN_ROUND);
58 			LineAttribute();
59 			LineAttribute(const LineAttribute& rCandidate);
60 			LineAttribute& operator=(const LineAttribute& rCandidate);
61 			~LineAttribute();
62 
63             // checks if the incarnation is default constructed
64             bool isDefault() const;
65 
66             // compare operator
67 			bool operator==(const LineAttribute& rCandidate) const;
68 
69 			// data read access
70 			const basegfx::BColor& getColor() const;
71 			double getWidth() const;
72 			basegfx::B2DLineJoin getLineJoin() const;
73 		};
74 	} // end of namespace attribute
75 } // end of namespace drawinglayer
76 
77 //////////////////////////////////////////////////////////////////////////////
78 
79 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_LINEATTRIBUTE_HXX
80 
81 // eof
82