SVGPathParserFactory.h [plain text]
#ifndef SVGPathParserFactory_h
#define SVGPathParserFactory_h
#if ENABLE(SVG)
#include "Path.h"
#include "PlatformString.h"
#include "SVGPathByteStream.h"
#include "SVGPathConsumer.h"
#include "SVGPathSegList.h"
#include <wtf/OwnPtr.h>
namespace WebCore {
class SVGPathElement;
class SVGPathParserFactory {
public:
static SVGPathParserFactory* self();
bool buildPathFromString(const String&, Path&);
bool buildPathFromByteStream(SVGPathByteStream*, Path&);
bool buildSVGPathByteStreamFromSVGPathSegList(const SVGPathSegList&, OwnPtr<SVGPathByteStream>&, PathParsingMode);
bool buildSVGPathByteStreamFromString(const String&, OwnPtr<SVGPathByteStream>&, PathParsingMode);
bool buildStringFromByteStream(SVGPathByteStream*, String&, PathParsingMode);
bool buildStringFromSVGPathSegList(const SVGPathSegList&, String&, PathParsingMode);
bool buildSVGPathSegListFromByteStream(SVGPathByteStream*, SVGPathElement*, SVGPathSegList&, PathParsingMode);
bool buildAnimatedSVGPathByteStream(SVGPathByteStream*, SVGPathByteStream*, OwnPtr<SVGPathByteStream>&, float);
bool getSVGPathSegAtLengthFromSVGPathByteStream(SVGPathByteStream*, float length, unsigned long& pathSeg);
private:
SVGPathParserFactory();
~SVGPathParserFactory();
};
}
#endif // ENABLE(SVG)
#endif // SVGPathParserFactory_h