2015-05-03 22:32:37 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
2012-05-21 15:12:37 +04:00
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2012-02-16 03:40:46 +04:00
|
|
|
|
|
|
|
#ifndef MOZILLA_SVGATTRVALUEWRAPPER_H__
|
|
|
|
#define MOZILLA_SVGATTRVALUEWRAPPER_H__
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Utility wrapper for handling SVG types used inside nsAttrValue so that these
|
|
|
|
* types don't need to be exported outside the SVG module.
|
|
|
|
*/
|
|
|
|
|
2017-12-07 03:52:51 +03:00
|
|
|
#include "nsString.h"
|
2012-02-16 03:40:46 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
2019-04-04 20:40:56 +03:00
|
|
|
class SVGAnimatedIntegerPair;
|
2019-04-09 23:04:33 +03:00
|
|
|
class SVGAnimatedLength;
|
2019-04-04 20:40:56 +03:00
|
|
|
class SVGAnimatedNumberPair;
|
|
|
|
class SVGAnimatedOrient;
|
|
|
|
class SVGAnimatedPreserveAspectRatio;
|
|
|
|
class SVGAnimatedViewBox;
|
2012-02-16 03:40:46 +04:00
|
|
|
class SVGLengthList;
|
|
|
|
class SVGNumberList;
|
|
|
|
class SVGPathData;
|
|
|
|
class SVGPointList;
|
2012-02-16 03:40:46 +04:00
|
|
|
class SVGStringList;
|
2012-02-16 03:40:46 +04:00
|
|
|
class SVGTransformList;
|
|
|
|
|
|
|
|
class SVGAttrValueWrapper {
|
|
|
|
public:
|
2019-04-04 20:40:56 +03:00
|
|
|
static void ToString(const SVGAnimatedIntegerPair* aIntegerPair,
|
|
|
|
nsAString& aResult);
|
2019-04-09 23:04:33 +03:00
|
|
|
static void ToString(const SVGAnimatedLength* aLength, nsAString& aResult);
|
2019-04-04 20:40:56 +03:00
|
|
|
static void ToString(const SVGAnimatedNumberPair* aNumberPair,
|
|
|
|
nsAString& aResult);
|
|
|
|
static void ToString(const SVGAnimatedOrient* aOrient, nsAString& aResult);
|
2019-04-09 23:04:33 +03:00
|
|
|
static void ToString(
|
|
|
|
const SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio,
|
|
|
|
nsAString& aResult);
|
2019-04-04 20:40:56 +03:00
|
|
|
static void ToString(const SVGAnimatedViewBox* aViewBox, nsAString& aResult);
|
2019-01-06 11:22:55 +03:00
|
|
|
static void ToString(const SVGLengthList* aLengthList, nsAString& aResult);
|
|
|
|
static void ToString(const SVGNumberList* aNumberList, nsAString& aResult);
|
|
|
|
static void ToString(const SVGPathData* aPathData, nsAString& aResult);
|
|
|
|
static void ToString(const SVGPointList* aPointList, nsAString& aResult);
|
|
|
|
static void ToString(const SVGStringList* aStringList, nsAString& aResult);
|
|
|
|
static void ToString(const SVGTransformList* aTransformList,
|
2012-02-16 03:40:46 +04:00
|
|
|
nsAString& aResult);
|
|
|
|
};
|
|
|
|
|
|
|
|
} /* namespace mozilla */
|
|
|
|
|
|
|
|
#endif // MOZILLA_SVGATTRVALUEWRAPPER_H__
|