xref: /trunk/main/svx/inc/svx/sdr/attribute/sdrformtextattribute.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
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 _SDR_ATTRIBUTE_SDRFORMTEXTATTRIBUTE_HXX
25 #define _SDR_ATTRIBUTE_SDRFORMTEXTATTRIBUTE_HXX
26 
27 #include <sal/types.h>
28 #include <svx/xenum.hxx>
29 #include <tools/color.hxx>
30 
31 //////////////////////////////////////////////////////////////////////////////
32 // predefines
33 
34 class SfxItemSet;
35 
36 namespace drawinglayer { namespace attribute {
37     class ImpSdrFormTextAttribute;
38     class SdrFormTextOutlineAttribute;
39 }}
40 
41 //////////////////////////////////////////////////////////////////////////////
42 
43 namespace drawinglayer
44 {
45     namespace attribute
46     {
47         class SdrFormTextAttribute
48         {
49         private:
50             ImpSdrFormTextAttribute*            mpSdrFormTextAttribute;
51 
52         public:
53             /// constructors/assignmentoperator/destructor
54             SdrFormTextAttribute(const SfxItemSet& rSet);
55             SdrFormTextAttribute();
56             SdrFormTextAttribute(const SdrFormTextAttribute& rCandidate);
57             SdrFormTextAttribute& operator=(const SdrFormTextAttribute& rCandidate);
58             ~SdrFormTextAttribute();
59 
60             // checks if the incarnation is default constructed
61             bool isDefault() const;
62 
63             // compare operator
64             bool operator==(const SdrFormTextAttribute& rCandidate) const;
65 
66             // data read access
67             sal_Int32 getFormTextDistance() const;
68             sal_Int32 getFormTextStart() const;
69             sal_Int32 getFormTextShdwXVal() const;
70             sal_Int32 getFormTextShdwYVal() const;
71             sal_uInt16 getFormTextShdwTransp() const;
72             XFormTextStyle getFormTextStyle() const;
73             XFormTextAdjust getFormTextAdjust() const;
74             XFormTextShadow getFormTextShadow() const;
75             Color getFormTextShdwColor() const;
76             const SdrFormTextOutlineAttribute& getOutline() const;
77             const SdrFormTextOutlineAttribute& getShadowOutline() const;
78             bool getFormTextMirror() const;
79             bool getFormTextOutline() const;
80         };
81     } // end of namespace attribute
82 } // end of namespace drawinglayer
83 
84 //////////////////////////////////////////////////////////////////////////////
85 
86 #endif // _SDR_ATTRIBUTE_SDRFORMTEXTATTRIBUTE_HXX
87 
88 // eof
89