1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
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 MOZILLA_SVGATTRVALUEWRAPPER_H__
8 #define MOZILLA_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.
15 #include "nsStringGlue.h"
18 class nsSVGIntegerPair
;
20 class nsSVGNumberPair
;
28 class SVGAnimatedPreserveAspectRatio
;
30 class SVGTransformList
;
35 class SVGAttrValueWrapper
38 static void ToString(const nsSVGAngle
* aAngle
, nsAString
& aResult
);
39 static void ToString(const nsSVGIntegerPair
* aIntegerPair
,
41 static void ToString(const nsSVGLength2
* aLength
, nsAString
& aResult
);
42 static void ToString(const mozilla::SVGLengthList
* aLengthList
,
44 static void ToString(const mozilla::SVGNumberList
* aNumberList
,
46 static void ToString(const nsSVGNumberPair
* aNumberPair
, nsAString
& aResult
);
47 static void ToString(const mozilla::SVGPathData
* aPathData
,
49 static void ToString(const mozilla::SVGPointList
* aPointList
,
52 const mozilla::SVGAnimatedPreserveAspectRatio
* aPreserveAspectRatio
,
54 static void ToString(const mozilla::SVGStringList
* aStringList
,
56 static void ToString(const mozilla::SVGTransformList
* aTransformList
,
58 static void ToString(const nsSVGViewBox
* aViewBox
, nsAString
& aResult
);
61 } /* namespace mozilla */
63 #endif // MOZILLA_SVGATTRVALUEWRAPPER_H__