1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
3 /* This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef DOM_SVG_SVGATTRVALUEWRAPPER_H_
8 #define DOM_SVG_SVGATTRVALUEWRAPPER_H_
11 * Utility wrapper for handling SVG types used inside nsAttrValue so that these
12 * types don't need to be exported outside the SVG module.
18 class SVGAnimatedIntegerPair
;
19 class SVGAnimatedLength
;
20 class SVGAnimatedNumberPair
;
21 class SVGAnimatedOrient
;
22 class SVGAnimatedPreserveAspectRatio
;
23 class SVGAnimatedViewBox
;
29 class SVGTransformList
;
31 class SVGAttrValueWrapper
{
33 static void ToString(const SVGAnimatedIntegerPair
* aIntegerPair
,
35 static void ToString(const SVGAnimatedLength
* aLength
, nsAString
& aResult
);
36 static void ToString(const SVGAnimatedNumberPair
* aNumberPair
,
38 static void ToString(const SVGAnimatedOrient
* aOrient
, nsAString
& aResult
);
40 const SVGAnimatedPreserveAspectRatio
* aPreserveAspectRatio
,
42 static void ToString(const SVGAnimatedViewBox
* aViewBox
, nsAString
& aResult
);
43 static void ToString(const SVGLengthList
* aLengthList
, nsAString
& aResult
);
44 static void ToString(const SVGNumberList
* aNumberList
, nsAString
& aResult
);
45 static void ToString(const SVGPathData
* aPathData
, nsAString
& aResult
);
46 static void ToString(const SVGPointList
* aPointList
, nsAString
& aResult
);
47 static void ToString(const SVGStringList
* aStringList
, nsAString
& aResult
);
48 static void ToString(const SVGTransformList
* aTransformList
,
52 } /* namespace mozilla */
54 #endif // DOM_SVG_SVGATTRVALUEWRAPPER_H_