SVGAttrValueWrapper.h (2071B)
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/. */ 6 7 #ifndef DOM_SVG_SVGATTRVALUEWRAPPER_H_ 8 #define DOM_SVG_SVGATTRVALUEWRAPPER_H_ 9 10 /** 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. 13 */ 14 15 #include "nsString.h" 16 17 namespace mozilla { 18 class SVGAnimatedIntegerPair; 19 class SVGAnimatedLength; 20 class SVGAnimatedNumberPair; 21 class SVGAnimatedOrient; 22 class SVGAnimatedPreserveAspectRatio; 23 class SVGAnimatedViewBox; 24 class SVGLengthList; 25 class SVGNumberList; 26 class SVGPathData; 27 class SVGPointList; 28 class SVGStringList; 29 class SVGTransformList; 30 31 class SVGAttrValueWrapper { 32 public: 33 static void ToString(const SVGAnimatedIntegerPair* aIntegerPair, 34 nsAString& aResult); 35 static void ToString(const SVGAnimatedLength* aLength, nsAString& aResult); 36 static void ToString(const SVGAnimatedNumberPair* aNumberPair, 37 nsAString& aResult); 38 static void ToString(const SVGAnimatedOrient* aOrient, nsAString& aResult); 39 static void ToString( 40 const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio, 41 nsAString& aResult); 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, 49 nsAString& aResult); 50 }; 51 52 } /* namespace mozilla */ 53 54 #endif // DOM_SVG_SVGATTRVALUEWRAPPER_H_