nss: upgrade to release 3.73
[LibreOffice.git] / svgio / inc / svgtoken.hxx
blobb1d55b4e2d175fb376d853227b05d0e48b4c0013
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 #ifndef INCLUDED_SVGIO_INC_SVGTOKEN_HXX
21 #define INCLUDED_SVGIO_INC_SVGTOKEN_HXX
23 #include <rtl/ustring.hxx>
25 namespace svgio::svgreader
27 // SVG token mapper with hashing
28 enum SVGToken
30 SVGTokenUnknown = 0,
32 // diverse attribute tokens
33 SVGTokenWidth,
34 SVGTokenHeight,
35 SVGTokenViewBox,
36 SVGTokenTransform,
37 SVGTokenStyle,
38 SVGTokenDisplay, // #i121656#
39 SVGTokenD,
40 SVGTokenX,
41 SVGTokenY,
42 SVGTokenXmlns,
43 SVGTokenVersion,
44 SVGTokenId,
45 SVGTokenRx,
46 SVGTokenRy,
47 SVGTokenPoints,
48 SVGTokenDx,
49 SVGTokenDy,
50 SVGTokenRotate,
51 SVGTokenTextLength,
52 SVGTokenLengthAdjust,
53 SVGTokenFont,
54 SVGTokenFontFamily,
55 SVGTokenFontSize,
56 SVGTokenFontSizeAdjust,
57 SVGTokenFontStretch,
58 SVGTokenFontStyle,
59 SVGTokenFontVariant,
60 SVGTokenFontWeight,
61 SVGTokenDirection,
62 SVGTokenLetterSpacing,
63 SVGTokenTextDecoration,
64 SVGTokenUnicodeBidi,
65 SVGTokenWordSpacing,
66 SVGTokenCharacter, // not in the hash, just for simple text handling in SvgCharacterNode
67 SVGTokenTspan,
68 SVGTokenTref,
69 SVGTokenTextPath,
70 SVGTokenStartOffset,
71 SVGTokenMethod,
72 SVGTokenSpacing,
73 SVGTokenTextAlign,
74 SVGTokenPathLength,
75 SVGTokenType,
76 SVGTokenClass,
77 SVGTokenTextAnchor,
78 SVGTokenXmlSpace,
79 SVGTokenColor,
80 SVGTokenClipPathNode,
81 SVGTokenClipPathProperty,
82 SVGTokenMask,
83 SVGTokenClipPathUnits,
84 SVGTokenMaskUnits,
85 SVGTokenMaskContentUnits,
86 SVGTokenClipRule,
87 SVGTokenMarker,
88 SVGTokenMarkerStart,
89 SVGTokenMarkerMid,
90 SVGTokenMarkerEnd,
91 SVGTokenRefX,
92 SVGTokenRefY,
93 SVGTokenMarkerUnits,
94 SVGTokenMarkerWidth,
95 SVGTokenMarkerHeight,
96 SVGTokenOrient,
97 SVGTokenPattern,
98 SVGTokenPatternUnits,
99 SVGTokenPatternContentUnits,
100 SVGTokenPatternTransform,
101 SVGTokenOpacity,
102 SVGTokenVisibility,
103 SVGTokenTitle,
104 SVGTokenDesc,
106 // AspectRatio and params
107 SVGTokenPreserveAspectRatio,
108 SVGTokenDefer,
109 SVGTokenNone,
110 SVGTokenXMinYMin,
111 SVGTokenXMidYMin,
112 SVGTokenXMaxYMin,
113 SVGTokenXMinYMid,
114 SVGTokenXMidYMid,
115 SVGTokenXMaxYMid,
116 SVGTokenXMinYMax,
117 SVGTokenXMidYMax,
118 SVGTokenXMaxYMax,
119 SVGTokenMeet,
120 SVGTokenSlice,
122 // structural elements
123 SVGTokenDefs,
124 SVGTokenG,
125 SVGTokenSvg,
126 SVGTokenSymbol,
127 SVGTokenUse,
128 SVGTokenA,
130 // shape elements
131 SVGTokenCircle,
132 SVGTokenEllipse,
133 SVGTokenLine,
134 SVGTokenPath,
135 SVGTokenPolygon,
136 SVGTokenPolyline,
137 SVGTokenRect,
138 SVGTokenImage,
140 // gradient elements and tokens
141 SVGTokenLinearGradient,
142 SVGTokenRadialGradient,
143 SVGTokenStop,
144 SVGTokenOffset,
145 SVGTokenX1,
146 SVGTokenY1,
147 SVGTokenX2,
148 SVGTokenY2,
149 SVGTokenCx,
150 SVGTokenCy,
151 SVGTokenFx,
152 SVGTokenFy,
153 SVGTokenR,
154 SVGTokenGradientUnits,
155 SVGTokenGradientTransform,
156 SVGTokenSpreadMethod,
157 SVGTokenXlinkHref,
158 SVGTokenStopColor,
159 SVGTokenStopOpacity,
161 // fill tokens
162 SVGTokenFill,
163 SVGTokenFillOpacity,
164 SVGTokenFillRule,
166 // stroke tokens
167 SVGTokenStroke,
168 SVGTokenStrokeDasharray,
169 SVGTokenStrokeDashoffset,
170 SVGTokenStrokeLinecap,
171 SVGTokenStrokeLinejoin,
172 SVGTokenStrokeMiterlimit,
173 SVGTokenStrokeOpacity,
174 SVGTokenStrokeWidth,
176 // text tokens
177 SVGTokenText,
178 SVGTokenBaselineShift,
180 SVGTokenFlowRoot
183 SVGToken StrToSVGToken(const OUString& rStr, bool bCaseIndependent);
185 OUString getStrTitle();
186 OUString getStrDesc();
188 } // end of namespace svgio::svgreader
190 #endif // INCLUDED_SVGIO_INC_SVGTOKEN_HXX
192 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */