1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
29 #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
30 
31 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
32 #include <vcl/vclenum.hxx>
33 
34 //////////////////////////////////////////////////////////////////////////////
35 
36 namespace drawinglayer
37 {
38 	namespace primitive2d
39 	{
40         /** TextLine definition
41 
42             This is used for both underline and overline
43          */
44         enum TextLine
45 		{
46 			TEXT_LINE_NONE,
47 			TEXT_LINE_SINGLE,
48 			TEXT_LINE_DOUBLE,
49 			TEXT_LINE_DOTTED,
50 			TEXT_LINE_DASH,
51 			TEXT_LINE_LONGDASH,
52 			TEXT_LINE_DASHDOT,
53 			TEXT_LINE_DASHDOTDOT,
54 			TEXT_LINE_SMALLWAVE,
55 			TEXT_LINE_WAVE,
56 			TEXT_LINE_DOUBLEWAVE,
57 			TEXT_LINE_BOLD,
58 			TEXT_LINE_BOLDDOTTED,
59 			TEXT_LINE_BOLDDASH,
60 			TEXT_LINE_BOLDLONGDASH,
61 			TEXT_LINE_BOLDDASHDOT,
62 			TEXT_LINE_BOLDDASHDOTDOT,
63 			TEXT_LINE_BOLDWAVE
64 		};
65 
66 		/** helper to convert LineStyle */
67 		TextLine mapFontUnderlineToTextLine(FontUnderline eLineStyle);
68 		FontUnderline mapTextLineToFontUnderline(TextLine eLineStyle);
69 
70         /** FontStrikeout definition */
71 		enum TextStrikeout
72 		{
73 			TEXT_STRIKEOUT_NONE,
74 			TEXT_STRIKEOUT_SINGLE,
75 			TEXT_STRIKEOUT_DOUBLE,
76 			TEXT_STRIKEOUT_BOLD,
77 			TEXT_STRIKEOUT_SLASH,
78 			TEXT_STRIKEOUT_X
79 		};
80 
81 		/** helper to convert FontStrikeout */
82 		TextStrikeout mapFontStrikeoutToTextStrikeout(::FontStrikeout eFontStrikeout);
83 		::FontStrikeout mapTextStrikeoutToFontStrikeout(TextStrikeout eFontStrikeout);
84 
85 		/** TextEmphasisMark definition */
86 		enum TextEmphasisMark
87 		{
88 			TEXT_EMPHASISMARK_NONE,
89 			TEXT_EMPHASISMARK_DOT,
90 			TEXT_EMPHASISMARK_CIRCLE,
91 			TEXT_EMPHASISMARK_DISC,
92 			TEXT_EMPHASISMARK_ACCENT
93 		};
94 
95         /** TextRelief definition */
96 		enum TextRelief
97 		{
98 			TEXT_RELIEF_NONE,
99 			TEXT_RELIEF_EMBOSSED,
100 			TEXT_RELIEF_ENGRAVED
101 		};
102 
103     } // end of namespace primitive2d
104 } // end of namespace drawinglayer
105 
106 //////////////////////////////////////////////////////////////////////////////
107 
108 #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_TEXTENUMSPRIMITIVE2D_HXX
109 
110 //////////////////////////////////////////////////////////////////////////////
111 // eof
112