LibreOffice Module drawinglayer (master) 1
textenumsprimitive2d.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
21
22
24{
26 {
27 switch(eLineStyle)
28 {
32 case LINESTYLE_DASH: return TEXT_LINE_DASH;
37 case LINESTYLE_WAVE: return TEXT_LINE_WAVE;
39 case LINESTYLE_BOLD: return TEXT_LINE_BOLD;
46 // FontLineStyle_FORCE_EQUAL_SIZE, LINESTYLE_DONTKNOW, LINESTYLE_NONE
47 default: return TEXT_LINE_NONE;
48 }
49 }
50
52 {
53 switch(eLineStyle)
54 {
55 default: /*TEXT_LINE_NONE*/ return LINESTYLE_NONE;
59 case TEXT_LINE_DASH: return LINESTYLE_DASH;
64 case TEXT_LINE_WAVE: return LINESTYLE_WAVE;
66 case TEXT_LINE_BOLD: return LINESTYLE_BOLD;
73 }
74 }
75
77 {
78 switch(eFontStrikeout)
79 {
84 case STRIKEOUT_X: return TEXT_STRIKEOUT_X;
85 // FontStrikeout_FORCE_EQUAL_SIZE, STRIKEOUT_NONE, STRIKEOUT_DONTKNOW
86 default: return TEXT_STRIKEOUT_NONE;
87 }
88 }
89
91 {
92 switch(eTextStrikeout)
93 {
94 default: /*case primitive2d::TEXT_STRIKEOUT_NONE*/ return STRIKEOUT_NONE;
99 case TEXT_STRIKEOUT_X: return STRIKEOUT_X;
100 }
101 }
102
103} // end of namespace
104
105/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FontLineStyle
LINESTYLE_BOLDDASHDOT
LINESTYLE_BOLDDASHDOTDOT
LINESTYLE_SINGLE
LINESTYLE_BOLDLONGDASH
LINESTYLE_BOLDWAVE
LINESTYLE_DASHDOTDOT
LINESTYLE_BOLDDASH
LINESTYLE_BOLDDOTTED
LINESTYLE_DOUBLEWAVE
LINESTYLE_DOUBLE
LINESTYLE_NONE
LINESTYLE_DASH
LINESTYLE_SMALLWAVE
LINESTYLE_DASHDOT
LINESTYLE_DOTTED
LINESTYLE_WAVE
LINESTYLE_LONGDASH
LINESTYLE_BOLD
FontStrikeout
STRIKEOUT_BOLD
STRIKEOUT_DOUBLE
STRIKEOUT_SINGLE
STRIKEOUT_X
STRIKEOUT_SLASH
STRIKEOUT_NONE
TextLine mapFontLineStyleToTextLine(FontLineStyle eLineStyle)
helper to convert LineStyle
TextStrikeout mapFontStrikeoutToTextStrikeout(FontStrikeout eFontStrikeout)
TextStrikeout
FontStrikeout definition.
FontLineStyle mapTextLineToFontLineStyle(TextLine eLineStyle)
FontStrikeout mapTextStrikeoutToFontStrikeout(TextStrikeout eTextStrikeout)