#ifndef KSVG_SVGLineElementImpl_H
#define KSVG_SVGLineElementImpl_H
#if SVG_SUPPORT
#include "SVGTests.h"
#include "SVGLangSpace.h"
#include "SVGStyledTransformableElement.h"
#include "SVGExternalResourcesRequired.h"
namespace WebCore
{
class SVGAnimatedLength;
class SVGLineElement : public SVGStyledTransformableElement,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired
{
public:
SVGLineElement(const QualifiedName&, Document*);
virtual ~SVGLineElement();
virtual bool isValid() const { return SVGTests::isValid(); }
SVGAnimatedLength *x1() const;
SVGAnimatedLength *y1() const;
SVGAnimatedLength *x2() const;
SVGAnimatedLength *y2() const;
virtual void parseMappedAttribute(MappedAttribute *attr);
virtual bool rendererIsNeeded(RenderStyle *style) { return StyledElement::rendererIsNeeded(style); }
virtual KCanvasPath* toPathData() const;
virtual const SVGStyledElement *pushAttributeContext(const SVGStyledElement *context);
private:
mutable RefPtr<SVGAnimatedLength> m_x1;
mutable RefPtr<SVGAnimatedLength> m_y1;
mutable RefPtr<SVGAnimatedLength> m_x2;
mutable RefPtr<SVGAnimatedLength> m_y2;
};
};
#endif // SVG_SUPPORT
#endif