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_SDRLINEATTRIBUTE_HXX
23 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINEATTRIBUTE_HXX
24 
25 #include <drawinglayer/drawinglayerdllapi.h>
26 #include <basegfx/vector/b2enums.hxx>
27 #include <com/sun/star/drawing/LineCap.hpp>
28 #include <vector>
29 
30 //////////////////////////////////////////////////////////////////////////////
31 // predefines
32 
33 namespace basegfx {
34 	class BColor;
35 }
36 
37 namespace drawinglayer { namespace attribute {
38 	class ImpSdrLineAttribute;
39 }}
40 
41 //////////////////////////////////////////////////////////////////////////////
42 
43 namespace drawinglayer
44 {
45 	namespace attribute
46 	{
47 		class DRAWINGLAYER_DLLPUBLIC SdrLineAttribute
48 		{
49         private:
50             ImpSdrLineAttribute*                mpSdrLineAttribute;
51 
52 		public:
53             /// constructors/assignmentoperator/destructor
54 			SdrLineAttribute(
55 				basegfx::B2DLineJoin eJoin,
56                 double fWidth,
57                 double fTransparence,
58                 const basegfx::BColor& rColor,
59                 com::sun::star::drawing::LineCap eCap,
60 				const ::std::vector< double >& rDotDashArray,
61                 double fFullDotDashLen);
62             SdrLineAttribute(const basegfx::BColor& rColor);
63 			SdrLineAttribute();
64 			SdrLineAttribute(const SdrLineAttribute& rCandidate);
65 			SdrLineAttribute& operator=(const SdrLineAttribute& rCandidate);
66 			~SdrLineAttribute();
67 
68             // checks if the incarnation is default constructed
69             bool isDefault() const;
70 
71             // compare operator
72 			bool operator==(const SdrLineAttribute& rCandidate) const;
73 
74 			// data access
75 			basegfx::B2DLineJoin getJoin() const;
76 			double getWidth() const;
77 			double getTransparence() const;
78 			const basegfx::BColor& getColor() const;
79 			const ::std::vector< double >& getDotDashArray() const;
80 			double getFullDotDashLen() const;
81             com::sun::star::drawing::LineCap getCap() const;
82 
83 			// bool access
84 			bool isDashed() const;
85 		};
86 	} // end of namespace attribute
87 } // end of namespace drawinglayer
88 
89 //////////////////////////////////////////////////////////////////////////////
90 
91 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINEATTRIBUTE_HXX
92 
93 // eof
94