Gtk-WARNING gtktreestore.c:1047: Invalid column number 1 added to iter
[LibreOffice.git] / svgio / inc / svgtoken.hxx
blob401a4667154e17e321e93c16b836cdd3d3cb95e9
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #pragma once
22 #include <rtl/ustring.hxx>
24 namespace svgio::svgreader
26 // SVG token mapper with hashing
27 enum class SVGToken
29 Unknown = 0,
31 // diverse attribute tokens
32 Width,
33 Height,
34 ViewBox,
35 Transform,
36 Style,
37 Display, // #i121656#
41 Xmlns,
42 Version,
43 Id,
44 In,
45 In2,
46 Result,
47 Rx,
48 Ry,
49 Points,
50 Dx,
51 Dy,
52 Rotate,
53 TextLength,
54 LengthAdjust,
55 Font,
56 FontFamily,
57 FontSize,
58 FontSizeAdjust,
59 FontStretch,
60 FontStyle,
61 FontVariant,
62 FontWeight,
63 Direction,
64 LetterSpacing,
65 TextDecoration,
66 UnicodeBidi,
67 WordSpacing,
68 Character, // not in the hash, just for simple text handling in SvgCharacterNode
69 Tspan,
70 Tref,
71 TextPath,
72 StartOffset,
73 Method,
74 Spacing,
75 StdDeviation,
76 TextAlign,
77 PathLength,
78 Type,
79 Class,
80 TextAnchor,
81 XmlSpace,
82 Color,
83 ClipPathNode,
84 ClipPathProperty,
85 FeBlend,
86 FeColorMatrix,
87 FeComposite,
88 FeDropShadow,
89 FeFlood,
90 FeImage,
91 FeGaussianBlur,
92 FeMerge,
93 FeMergeNode,
94 FeOffset,
95 Filter,
96 FloodColor,
97 FloodOpacity,
98 Operator,
99 Mask,
100 Mode,
101 ClipPathUnits,
102 MaskUnits,
103 MaskContentUnits,
104 ClipRule,
105 Marker,
106 MarkerStart,
107 MarkerMid,
108 MarkerEnd,
109 RefX,
110 RefY,
111 MarkerUnits,
112 MarkerWidth,
113 MarkerHeight,
114 Orient,
115 Pattern,
116 PatternUnits,
117 PatternContentUnits,
118 PatternTransform,
119 Opacity,
120 SystemLanguage,
121 Visibility,
122 Title,
123 Desc,
124 Overflow,
130 // AspectRatio and params
131 PreserveAspectRatio,
132 Defer,
133 None,
134 XMinYMin,
135 XMidYMin,
136 XMaxYMin,
137 XMinYMid,
138 XMidYMid,
139 XMaxYMid,
140 XMinYMax,
141 XMidYMax,
142 XMaxYMax,
143 Meet,
144 Slice,
145 Values,
147 // structural elements
148 Defs,
150 Svg,
151 Symbol,
152 Switch,
153 Use,
156 // shape elements
157 Circle,
158 Ellipse,
159 Line,
160 Path,
161 Polygon,
162 Polyline,
163 Rect,
164 Image,
166 // gradient elements and tokens
167 LinearGradient,
168 RadialGradient,
169 Stop,
170 Offset,
180 GradientUnits,
181 GradientTransform,
182 SpreadMethod,
183 Href,
184 XlinkHref,
185 StopColor,
186 StopOpacity,
188 // fill tokens
189 Fill,
190 FillOpacity,
191 FillRule,
193 // stroke tokens
194 Stroke,
195 StrokeDasharray,
196 StrokeDashoffset,
197 StrokeLinecap,
198 StrokeLinejoin,
199 StrokeMiterlimit,
200 StrokeOpacity,
201 StrokeWidth,
203 // text tokens
204 Text,
205 BaselineShift,
206 DominantBaseline
209 SVGToken StrToSVGToken(std::u16string_view rStr, bool bIgnoreCase);
210 OUString SVGTokenToStr(const SVGToken& rToken);
212 } // end of namespace svgio::svgreader
214 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */