LibreOffice Module svgio (master) 1
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
24namespace 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,
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,
53 Font,
66 Character, // not in the hash, just for simple text handling in SvgCharacterNode
67 Tspan,
68 Tref,
71 Method,
72 Spacing,
76 Type,
77 Class,
80 Color,
85 FeFlood,
86 FeImage,
89 Filter,
92 Mask,
97 Marker,
100 MarkerEnd,
101 RefX,
102 RefY,
106 Orient,
107 Pattern,
111 Opacity,
113 Title,
114 Desc,
115
116 // AspectRatio and params
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
154 Stop,
155 Offset,
156 X1,
157 Y1,
158 X2,
159 Y2,
160 Cx,
161 Cy,
162 Fx,
163 Fy,
164 R,
168 Href,
169 XlinkHref,
170 StopColor,
172
173 // fill tokens
174 Fill,
176 FillRule,
177
178 // stroke tokens
179 Stroke,
187
188 // text tokens
189 Text,
191
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: */
TextPath
aCursorMoveIdle Stop()
FontFamily
void Transform(void *pInputStream, void *pOutputStream, Degree10 nAngle)
Stroke
Fill
Type
SpreadMethod
Unknown
None
Title
OUString SVGTokenToStr(const SVGToken &rToken)
Definition: svgtoken.cxx:369
SVGToken StrToSVGToken(const OUString &rStr, bool bCaseIndependent)
Definition: svgtoken.cxx:343
std::vector< Point > Points
#define Y
sal_uInt32 Id
Method
const sal_uInt8 A
const sal_uInt8 R