svgtoken.cxx (ddde725d) svgtoken.cxx (025b0597)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 83 unchanged lines hidden (view full) ---

92 static rtl::OUString aSVGStrMarkerWidth(rtl::OUString::createFromAscii("markerWidth"));
93 static rtl::OUString aSVGStrMarkerHeight(rtl::OUString::createFromAscii("markerHeight"));
94 static rtl::OUString aSVGStrOrient(rtl::OUString::createFromAscii("orient"));
95 static rtl::OUString aSVGStrPattern(rtl::OUString::createFromAscii("pattern"));
96 static rtl::OUString aSVGStrPatternUnits(rtl::OUString::createFromAscii("patternUnits"));
97 static rtl::OUString aSVGStrPatternContentUnits(rtl::OUString::createFromAscii("patternContentUnits"));
98 static rtl::OUString aSVGStrPatternTransform(rtl::OUString::createFromAscii("patternTransform"));
99 static rtl::OUString aSVGStrOpacity(rtl::OUString::createFromAscii("opacity"));
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 83 unchanged lines hidden (view full) ---

92 static rtl::OUString aSVGStrMarkerWidth(rtl::OUString::createFromAscii("markerWidth"));
93 static rtl::OUString aSVGStrMarkerHeight(rtl::OUString::createFromAscii("markerHeight"));
94 static rtl::OUString aSVGStrOrient(rtl::OUString::createFromAscii("orient"));
95 static rtl::OUString aSVGStrPattern(rtl::OUString::createFromAscii("pattern"));
96 static rtl::OUString aSVGStrPatternUnits(rtl::OUString::createFromAscii("patternUnits"));
97 static rtl::OUString aSVGStrPatternContentUnits(rtl::OUString::createFromAscii("patternContentUnits"));
98 static rtl::OUString aSVGStrPatternTransform(rtl::OUString::createFromAscii("patternTransform"));
99 static rtl::OUString aSVGStrOpacity(rtl::OUString::createFromAscii("opacity"));
100 static rtl::OUString aSVGStrTitle(rtl::OUString::createFromAscii("title"));
101 static rtl::OUString aSVGStrDesc(rtl::OUString::createFromAscii("desc"));
100
101 static rtl::OUString aSVGStrPreserveAspectRatio(rtl::OUString::createFromAscii("preserveAspectRatio"));
102 static rtl::OUString aSVGStrDefer(rtl::OUString::createFromAscii("defer"));
103 static rtl::OUString aSVGStrNone(rtl::OUString::createFromAscii("none"));
104 static rtl::OUString aSVGStrXMinYMin(rtl::OUString::createFromAscii("xMinYMin"));
105 static rtl::OUString aSVGStrXMidYMin(rtl::OUString::createFromAscii("xMidYMin"));
106 static rtl::OUString aSVGStrXMaxYMin(rtl::OUString::createFromAscii("xMaxYMin"));
107 static rtl::OUString aSVGStrXMinYMid(rtl::OUString::createFromAscii("xMinYMid"));

--- 123 unchanged lines hidden (view full) ---

231 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerWidth, SVGTokenMarkerWidth));
232 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerHeight, SVGTokenMarkerHeight));
233 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOrient, SVGTokenOrient));
234 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPattern, SVGTokenPattern));
235 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternUnits, SVGTokenPatternUnits));
236 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternContentUnits, SVGTokenPatternContentUnits));
237 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternTransform, SVGTokenPatternTransform));
238 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOpacity, SVGTokenOpacity));
102
103 static rtl::OUString aSVGStrPreserveAspectRatio(rtl::OUString::createFromAscii("preserveAspectRatio"));
104 static rtl::OUString aSVGStrDefer(rtl::OUString::createFromAscii("defer"));
105 static rtl::OUString aSVGStrNone(rtl::OUString::createFromAscii("none"));
106 static rtl::OUString aSVGStrXMinYMin(rtl::OUString::createFromAscii("xMinYMin"));
107 static rtl::OUString aSVGStrXMidYMin(rtl::OUString::createFromAscii("xMidYMin"));
108 static rtl::OUString aSVGStrXMaxYMin(rtl::OUString::createFromAscii("xMaxYMin"));
109 static rtl::OUString aSVGStrXMinYMid(rtl::OUString::createFromAscii("xMinYMid"));

--- 123 unchanged lines hidden (view full) ---

233 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerWidth, SVGTokenMarkerWidth));
234 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrMarkerHeight, SVGTokenMarkerHeight));
235 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOrient, SVGTokenOrient));
236 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPattern, SVGTokenPattern));
237 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternUnits, SVGTokenPatternUnits));
238 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternContentUnits, SVGTokenPatternContentUnits));
239 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPatternTransform, SVGTokenPatternTransform));
240 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrOpacity, SVGTokenOpacity));
241 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrTitle, SVGTokenTitle));
242 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDesc, SVGTokenDesc));
239
240 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPreserveAspectRatio, SVGTokenPreserveAspectRatio));
241 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDefer, SVGTokenDefer));
242 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrNone, SVGTokenNone));
243 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMin, SVGTokenXMinYMin));
244 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMidYMin, SVGTokenXMidYMin));
245 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMaxYMin, SVGTokenXMaxYMin));
246 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMid, SVGTokenXMinYMid));

--- 62 unchanged lines hidden (view full) ---

309 {
310 return SVGTokenUnknown;
311 }
312 else
313 {
314 return aResult->second;
315 }
316 }
243
244 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrPreserveAspectRatio, SVGTokenPreserveAspectRatio));
245 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrDefer, SVGTokenDefer));
246 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrNone, SVGTokenNone));
247 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMin, SVGTokenXMinYMin));
248 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMidYMin, SVGTokenXMidYMin));
249 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMaxYMin, SVGTokenXMaxYMin));
250 aSVGTokenMapperList.insert(SVGTokenValueType(aSVGStrXMinYMid, SVGTokenXMinYMid));

--- 62 unchanged lines hidden (view full) ---

313 {
314 return SVGTokenUnknown;
315 }
316 else
317 {
318 return aResult->second;
319 }
320 }
321
322 const rtl::OUString& getStrTitle()
323 {
324 return aSVGStrTitle;
325 }
326
327 const rtl::OUString& getStrDesc()
328 {
329 return aSVGStrDesc;
330 }
317 } // end of namespace svgreader
318} // end of namespace svgio
319
320//////////////////////////////////////////////////////////////////////////////
321// eof
331 } // end of namespace svgreader
332} // end of namespace svgio
333
334//////////////////////////////////////////////////////////////////////////////
335// eof