xref: /AOO41X/main/drawinglayer/inc/drawinglayer/primitive2d/textenumsprimitive2d.hxx (revision 4f506f19cd544df9572ed8c88b6bdbc6c8f33210)
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_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
25 #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
26 
27 #include <drawinglayer/drawinglayerdllapi.h>
28 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
29 #include <vcl/vclenum.hxx>
30 
31 //////////////////////////////////////////////////////////////////////////////
32 
33 namespace drawinglayer
34 {
35     namespace primitive2d
36     {
37         /** TextLine definition
38 
39             This is used for both underline and overline
40          */
41         enum TextLine
42         {
43             TEXT_LINE_NONE,
44             TEXT_LINE_SINGLE,
45             TEXT_LINE_DOUBLE,
46             TEXT_LINE_DOTTED,
47             TEXT_LINE_DASH,
48             TEXT_LINE_LONGDASH,
49             TEXT_LINE_DASHDOT,
50             TEXT_LINE_DASHDOTDOT,
51             TEXT_LINE_SMALLWAVE,
52             TEXT_LINE_WAVE,
53             TEXT_LINE_DOUBLEWAVE,
54             TEXT_LINE_BOLD,
55             TEXT_LINE_BOLDDOTTED,
56             TEXT_LINE_BOLDDASH,
57             TEXT_LINE_BOLDLONGDASH,
58             TEXT_LINE_BOLDDASHDOT,
59             TEXT_LINE_BOLDDASHDOTDOT,
60             TEXT_LINE_BOLDWAVE
61         };
62 
63         /** helper to convert LineStyle */
64         TextLine DRAWINGLAYER_DLLPUBLIC mapFontUnderlineToTextLine(FontUnderline eLineStyle);
65         FontUnderline DRAWINGLAYER_DLLPUBLIC mapTextLineToFontUnderline(TextLine eLineStyle);
66 
67         /** FontStrikeout definition */
68         enum TextStrikeout
69         {
70             TEXT_STRIKEOUT_NONE,
71             TEXT_STRIKEOUT_SINGLE,
72             TEXT_STRIKEOUT_DOUBLE,
73             TEXT_STRIKEOUT_BOLD,
74             TEXT_STRIKEOUT_SLASH,
75             TEXT_STRIKEOUT_X
76         };
77 
78         /** helper to convert FontStrikeout */
79         TextStrikeout DRAWINGLAYER_DLLPUBLIC mapFontStrikeoutToTextStrikeout(::FontStrikeout eFontStrikeout);
80         ::FontStrikeout DRAWINGLAYER_DLLPUBLIC mapTextStrikeoutToFontStrikeout(TextStrikeout eFontStrikeout);
81 
82         /** TextEmphasisMark definition */
83         enum TextEmphasisMark
84         {
85             TEXT_EMPHASISMARK_NONE,
86             TEXT_EMPHASISMARK_DOT,
87             TEXT_EMPHASISMARK_CIRCLE,
88             TEXT_EMPHASISMARK_DISC,
89             TEXT_EMPHASISMARK_ACCENT
90         };
91 
92         /** TextRelief definition */
93         enum TextRelief
94         {
95             TEXT_RELIEF_NONE,
96             TEXT_RELIEF_EMBOSSED,
97             TEXT_RELIEF_ENGRAVED
98         };
99 
100     } // end of namespace primitive2d
101 } // end of namespace drawinglayer
102 
103 //////////////////////////////////////////////////////////////////////////////
104 
105 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
106 
107 //////////////////////////////////////////////////////////////////////////////
108 // eof
109