LibreOffice Module svgio (master)
1
svgio
inc
svgtoken.hxx
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
20
#pragma once
21
22
#include <rtl/ustring.hxx>
23
24
namespace
svgio::svgreader
25
{
26
// SVG token mapper with hashing
27
enum class
SVGToken
28
{
29
Unknown
= 0,
30
31
// diverse attribute tokens
32
Width
,
33
Height
,
34
ViewBox
,
35
Transform
,
36
Style
,
37
Display
,
// #i121656#
38
D
,
39
X
,
40
Y
,
41
Xmlns
,
42
Version
,
43
Id
,
44
In
,
45
Rx
,
46
Ry
,
47
Points
,
48
Dx
,
49
Dy
,
50
Rotate
,
51
TextLength
,
52
LengthAdjust
,
53
Font
,
54
FontFamily
,
55
FontSize
,
56
FontSizeAdjust
,
57
FontStretch
,
58
FontStyle
,
59
FontVariant
,
60
FontWeight
,
61
Direction
,
62
LetterSpacing
,
63
TextDecoration
,
64
UnicodeBidi
,
65
WordSpacing
,
66
Character
,
// not in the hash, just for simple text handling in SvgCharacterNode
67
Tspan
,
68
Tref
,
69
TextPath
,
70
StartOffset
,
71
Method
,
72
Spacing
,
73
StdDeviation
,
74
TextAlign
,
75
PathLength
,
76
Type
,
77
Class
,
78
TextAnchor
,
79
XmlSpace
,
80
Color
,
81
ClipPathNode
,
82
ClipPathProperty
,
83
FeColorMatrix
,
84
FeDropShadow
,
85
FeFlood
,
86
FeImage
,
87
FeGaussianBlur
,
88
FeOffset
,
89
Filter
,
90
FloodColor
,
91
FloodOpacity
,
92
Mask
,
93
ClipPathUnits
,
94
MaskUnits
,
95
MaskContentUnits
,
96
ClipRule
,
97
Marker
,
98
MarkerStart
,
99
MarkerMid
,
100
MarkerEnd
,
101
RefX
,
102
RefY
,
103
MarkerUnits
,
104
MarkerWidth
,
105
MarkerHeight
,
106
Orient
,
107
Pattern
,
108
PatternUnits
,
109
PatternContentUnits
,
110
PatternTransform
,
111
Opacity
,
112
Visibility
,
113
Title
,
114
Desc
,
115
116
// AspectRatio and params
117
PreserveAspectRatio
,
118
Defer
,
119
None
,
120
XMinYMin
,
121
XMidYMin
,
122
XMaxYMin
,
123
XMinYMid
,
124
XMidYMid
,
125
XMaxYMid
,
126
XMinYMax
,
127
XMidYMax
,
128
XMaxYMax
,
129
Meet
,
130
Slice
,
131
Values
,
132
133
// structural elements
134
Defs
,
135
G
,
136
Svg
,
137
Symbol
,
138
Use
,
139
A
,
140
141
// shape elements
142
Circle
,
143
Ellipse
,
144
Line
,
145
Path
,
146
Polygon
,
147
Polyline
,
148
Rect
,
149
Image
,
150
151
// gradient elements and tokens
152
LinearGradient
,
153
RadialGradient
,
154
Stop
,
155
Offset
,
156
X1
,
157
Y1
,
158
X2
,
159
Y2
,
160
Cx
,
161
Cy
,
162
Fx
,
163
Fy
,
164
R
,
165
GradientUnits
,
166
GradientTransform
,
167
SpreadMethod
,
168
Href
,
169
XlinkHref
,
170
StopColor
,
171
StopOpacity
,
172
173
// fill tokens
174
Fill
,
175
FillOpacity
,
176
FillRule
,
177
178
// stroke tokens
179
Stroke
,
180
StrokeDasharray
,
181
StrokeDashoffset
,
182
StrokeLinecap
,
183
StrokeLinejoin
,
184
StrokeMiterlimit
,
185
StrokeOpacity
,
186
StrokeWidth
,
187
188
// text tokens
189
Text
,
190
BaselineShift
,
191
192
FlowRoot
193
};
194
195
SVGToken
StrToSVGToken
(
const
OUString& rStr,
bool
bCaseIndependent);
196
OUString
SVGTokenToStr
(
const
SVGToken
& rToken);
197
198
}
// end of namespace svgio::svgreader
199
200
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxAnchorIds::Character
@ Character
AsCharFlags::Rotate
@ Rotate
TextPath
TextPath
Color
Image
DrawHighlightFrameStyle::In
@ In
Stop
aCursorMoveIdle Stop()
ErrCodeClass::Version
@ Version
SvxDateFormat::D
@ D
Lotus123Typ::X
@ X
ImplFontAttrs::Symbol
@ Symbol
FontEmphasisMark::Style
@ Style
FontFamily
FontFamily
GalleryItemFlags::Path
@ Path
InitWindowFacet::Font
@ Font
Transform
void Transform(void *pInputStream, void *pOutputStream, Degree10 nAngle)
Stroke
Stroke
Fill
Fill
Type
Type
SpreadMethod
SpreadMethod
Unknown
Unknown
None
None
Title
Title
AttributeType::Opacity
@ Opacity
svgio::svgreader
Definition:
svganode.cxx:23
svgio::svgreader::SVGTokenToStr
OUString SVGTokenToStr(const SVGToken &rToken)
Definition:
svgtoken.cxx:369
svgio::svgreader::FontStyle
FontStyle
Definition:
svgstyleattributes.hxx:95
svgio::svgreader::StrToSVGToken
SVGToken StrToSVGToken(const OUString &rStr, bool bCaseIndependent)
Definition:
svgtoken.cxx:343
svgio::svgreader::Visibility
Visibility
Definition:
svgstyleattributes.hxx:166
svgio::svgreader::TextAlign
TextAlign
Definition:
svgstyleattributes.hxx:123
svgio::svgreader::SVGToken
SVGToken
Definition:
svgtoken.hxx:28
svgio::svgreader::SVGToken::MarkerStart
@ MarkerStart
svgio::svgreader::SVGToken::Ellipse
@ Ellipse
svgio::svgreader::SVGToken::XlinkHref
@ XlinkHref
svgio::svgreader::SVGToken::XMidYMax
@ XMidYMax
svgio::svgreader::SVGToken::PathLength
@ PathLength
svgio::svgreader::SVGToken::RadialGradient
@ RadialGradient
svgio::svgreader::SVGToken::Href
@ Href
svgio::svgreader::SVGToken::ClipRule
@ ClipRule
svgio::svgreader::SVGToken::Cy
@ Cy
svgio::svgreader::SVGToken::GradientTransform
@ GradientTransform
svgio::svgreader::SVGToken::LinearGradient
@ LinearGradient
svgio::svgreader::SVGToken::Y2
@ Y2
svgio::svgreader::SVGToken::StrokeDashoffset
@ StrokeDashoffset
svgio::svgreader::SVGToken::FloodColor
@ FloodColor
svgio::svgreader::SVGToken::Meet
@ Meet
svgio::svgreader::SVGToken::Mask
@ Mask
svgio::svgreader::SVGToken::XMinYMid
@ XMinYMid
svgio::svgreader::SVGToken::FeFlood
@ FeFlood
svgio::svgreader::SVGToken::X2
@ X2
svgio::svgreader::SVGToken::StrokeMiterlimit
@ StrokeMiterlimit
svgio::svgreader::SVGToken::XMaxYMax
@ XMaxYMax
svgio::svgreader::SVGToken::FeOffset
@ FeOffset
svgio::svgreader::SVGToken::MarkerHeight
@ MarkerHeight
svgio::svgreader::SVGToken::Y1
@ Y1
svgio::svgreader::SVGToken::StartOffset
@ StartOffset
svgio::svgreader::SVGToken::StopColor
@ StopColor
svgio::svgreader::SVGToken::Desc
@ Desc
svgio::svgreader::SVGToken::FlowRoot
@ FlowRoot
svgio::svgreader::SVGToken::Spacing
@ Spacing
svgio::svgreader::SVGToken::MarkerMid
@ MarkerMid
svgio::svgreader::SVGToken::XMinYMax
@ XMinYMax
svgio::svgreader::SVGToken::Rect
@ Rect
svgio::svgreader::SVGToken::StrokeDasharray
@ StrokeDasharray
svgio::svgreader::SVGToken::Dx
@ Dx
svgio::svgreader::SVGToken::MarkerEnd
@ MarkerEnd
svgio::svgreader::SVGToken::StdDeviation
@ StdDeviation
svgio::svgreader::SVGToken::StopOpacity
@ StopOpacity
svgio::svgreader::SVGToken::PatternContentUnits
@ PatternContentUnits
svgio::svgreader::SVGToken::ClipPathProperty
@ ClipPathProperty
svgio::svgreader::SVGToken::FontSizeAdjust
@ FontSizeAdjust
svgio::svgreader::SVGToken::StrokeOpacity
@ StrokeOpacity
svgio::svgreader::SVGToken::UnicodeBidi
@ UnicodeBidi
svgio::svgreader::SVGToken::ViewBox
@ ViewBox
svgio::svgreader::SVGToken::WordSpacing
@ WordSpacing
svgio::svgreader::SVGToken::FeDropShadow
@ FeDropShadow
svgio::svgreader::SVGToken::Tspan
@ Tspan
svgio::svgreader::SVGToken::XMidYMid
@ XMidYMid
svgio::svgreader::SVGToken::XMaxYMid
@ XMaxYMid
svgio::svgreader::SVGToken::FontVariant
@ FontVariant
svgio::svgreader::SVGToken::Class
@ Class
svgio::svgreader::SVGToken::LengthAdjust
@ LengthAdjust
svgio::svgreader::SVGToken::Defer
@ Defer
svgio::svgreader::SVGToken::GradientUnits
@ GradientUnits
svgio::svgreader::SVGToken::Use
@ Use
svgio::svgreader::SVGToken::XMidYMin
@ XMidYMin
svgio::svgreader::SVGToken::X1
@ X1
svgio::svgreader::SVGToken::FeGaussianBlur
@ FeGaussianBlur
svgio::svgreader::SVGToken::Cx
@ Cx
svgio::svgreader::SVGToken::PreserveAspectRatio
@ PreserveAspectRatio
svgio::svgreader::SVGToken::FeImage
@ FeImage
svgio::svgreader::SVGToken::MaskContentUnits
@ MaskContentUnits
svgio::svgreader::SVGToken::Dy
@ Dy
svgio::svgreader::SVGToken::Xmlns
@ Xmlns
svgio::svgreader::SVGToken::Rx
@ Rx
svgio::svgreader::SVGToken::RefY
@ RefY
svgio::svgreader::SVGToken::XMaxYMin
@ XMaxYMin
svgio::svgreader::SVGToken::Tref
@ Tref
svgio::svgreader::SVGToken::Slice
@ Slice
svgio::svgreader::SVGToken::XMinYMin
@ XMinYMin
svgio::svgreader::SVGToken::MarkerWidth
@ MarkerWidth
svgio::svgreader::SVGToken::TextLength
@ TextLength
svgio::svgreader::SVGToken::ClipPathNode
@ ClipPathNode
svgio::svgreader::SVGToken::LetterSpacing
@ LetterSpacing
svgio::svgreader::SVGToken::MaskUnits
@ MaskUnits
svgio::svgreader::SVGToken::StrokeWidth
@ StrokeWidth
svgio::svgreader::SVGToken::FeColorMatrix
@ FeColorMatrix
svgio::svgreader::SVGToken::MarkerUnits
@ MarkerUnits
svgio::svgreader::SVGToken::RefX
@ RefX
svgio::svgreader::SVGToken::Offset
@ Offset
svgio::svgreader::SVGToken::FillOpacity
@ FillOpacity
svgio::svgreader::SVGToken::FloodOpacity
@ FloodOpacity
svgio::svgreader::SVGToken::ClipPathUnits
@ ClipPathUnits
svgio::svgreader::SVGToken::Defs
@ Defs
svgio::svgreader::SVGToken::Fx
@ Fx
svgio::svgreader::SVGToken::Ry
@ Ry
svgio::svgreader::SVGToken::Orient
@ Orient
svgio::svgreader::SVGToken::PatternUnits
@ PatternUnits
svgio::svgreader::SVGToken::Fy
@ Fy
svgio::svgreader::SVGToken::PatternTransform
@ PatternTransform
svgio::svgreader::FillRule
FillRule
Definition:
svgstyleattributes.hxx:150
svgio::svgreader::TextAnchor
TextAnchor
Definition:
svgstyleattributes.hxx:142
svgio::svgreader::FontStretch
FontStretch
Definition:
svgstyleattributes.hxx:76
svgio::svgreader::StrokeLinejoin
StrokeLinejoin
Definition:
svgstyleattributes.hxx:53
svgio::svgreader::XmlSpace
XmlSpace
Definition:
svgnode.hxx:44
svgio::svgreader::BaselineShift
BaselineShift
Definition:
svgstyleattributes.hxx:157
svgio::svgreader::FontWeight
FontWeight
Definition:
svgstyleattributes.hxx:103
svgio::svgreader::TextDecoration
TextDecoration
Definition:
svgstyleattributes.hxx:132
svgio::svgreader::Display
Display
Definition:
svgnode.hxx:52
svgio::svgreader::StrokeLinecap
StrokeLinecap
Definition:
svgstyleattributes.hxx:45
svgio::svgreader::FontSize
FontSize
Definition:
svgstyleattributes.hxx:61
Points
std::vector< Point > Points
DataAccessDescriptorProperty::Filter
@ Filter
PDFAnnotationSubType::Polyline
@ Polyline
RTFKeyword::G
@ G
SwNodeType::Text
@ Text
Y
#define Y
Id
sal_uInt32 Id
SwInvalidateFlags::Direction
@ Direction
ModifyFlags::Values
@ Values
Line
SdrHdlKind::Circle
@ Circle
SdrObjKind::Polygon
@ Polygon
Method
Method
SwCreateDrawTable::Marker
@ Marker
VectorGraphicDataType::Svg
@ Svg
HtmlFrmOpts::Width
@ Width
HtmlFrmOpts::Height
@ Height
A
const sal_uInt8 A
R
const sal_uInt8 R
XPropertyListType::Pattern
@ Pattern
Generated on Sun Jul 30 2023 04:26:41 for LibreOffice Module svgio (master) by
1.9.3