xref: /trunk/main/drawinglayer/inc/drawinglayer/attribute/sdrlinestartendattribute.hxx (revision ff7655f0cd2145e9c5445844e4a8565ddcf4d4c7)
1 /*************************************************************************
2  *
3  *  OpenOffice.org - a multi-platform office productivity suite
4  *
5  *  $RCSfile: sdrattribute.hxx,v $
6  *
7  *  $Revision: 1.4 $
8  *
9  *  last change: $Author: aw $ $Date: 2008-05-27 14:11:16 $
10  *
11  *  The Contents of this file are made available subject to
12  *  the terms of GNU Lesser General Public License Version 2.1.
13  *
14  *
15  *    GNU Lesser General Public License Version 2.1
16  *    =============================================
17  *    Copyright 2005 by Sun Microsystems, Inc.
18  *    901 San Antonio Road, Palo Alto, CA 94303, USA
19  *
20  *    This library is free software; you can redistribute it and/or
21  *    modify it under the terms of the GNU Lesser General Public
22  *    License version 2.1, as published by the Free Software Foundation.
23  *
24  *    This library is distributed in the hope that it will be useful,
25  *    but WITHOUT ANY WARRANTY; without even the implied warranty of
26  *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
27  *    Lesser General Public License for more details.
28  *
29  *    You should have received a copy of the GNU Lesser General Public
30  *    License along with this library; if not, write to the Free Software
31  *    Foundation, Inc., 59 Temple Place, Suite 330, Boston,
32  *    MA  02111-1307  USA
33  *
34  ************************************************************************/
35 
36 #ifndef INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX
37 #define INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX
38 
39 #include <drawinglayer/drawinglayerdllapi.h>
40 //////////////////////////////////////////////////////////////////////////////
41 // predefines
42 
43 namespace basegfx {
44     class B2DPolyPolygon;
45 }
46 
47 namespace drawinglayer { namespace attribute {
48     class ImpSdrLineStartEndAttribute;
49 }}
50 
51 //////////////////////////////////////////////////////////////////////////////
52 
53 namespace drawinglayer
54 {
55     namespace attribute
56     {
57         class DRAWINGLAYER_DLLPUBLIC SdrLineStartEndAttribute
58         {
59         private:
60             ImpSdrLineStartEndAttribute*               mpSdrLineStartEndAttribute;
61 
62         public:
63             /// constructors/assignmentoperator/destructor
64             SdrLineStartEndAttribute(
65                 const basegfx::B2DPolyPolygon& rStartPolyPolygon,
66                 const basegfx::B2DPolyPolygon& rEndPolyPolygon,
67                 double fStartWidth,
68                 double fEndWidth,
69                 bool bStartActive,
70                 bool bEndActive,
71                 bool bStartCentered,
72                 bool bEndCentered);
73             SdrLineStartEndAttribute();
74             SdrLineStartEndAttribute(const SdrLineStartEndAttribute& rCandidate);
75             SdrLineStartEndAttribute& operator=(const SdrLineStartEndAttribute& rCandidate);
76             ~SdrLineStartEndAttribute();
77 
78             // checks if the incarnation is default constructed
79             bool isDefault() const;
80 
81             // compare operator
82             bool operator==(const SdrLineStartEndAttribute& rCandidate) const;
83 
84             // data read access
85             const basegfx::B2DPolyPolygon& getStartPolyPolygon() const;
86             const basegfx::B2DPolyPolygon& getEndPolyPolygon() const;
87             double getStartWidth() const;
88             double getEndWidth() const;
89             bool isStartActive() const;
90             bool isEndActive() const;
91             bool isStartCentered() const;
92             bool isEndCentered() const;
93         };
94     } // end of namespace attribute
95 } // end of namespace drawinglayer
96 
97 //////////////////////////////////////////////////////////////////////////////
98 
99 #endif //INCLUDED_DRAWINGLAYER_ATTRIBUTE_SDRLINESTARTENDATTRIBUTE_HXX
100 
101 // eof
102