SVGStyledTransformableElement.h [plain text]
#ifndef KSVG_SVGStyledTransformableElementImpl_H
#define KSVG_SVGStyledTransformableElementImpl_H
#if SVG_SUPPORT
#include "SVGStyledLocatableElement.h"
#include "SVGTransformable.h"
class AffineTransform;
namespace WebCore
{
class Node;
class StringImpl;
class Attribute;
};
namespace WebCore
{
class SVGMatrix;
class SVGTransformList;
class SVGAnimatedTransformList;
class SVGStyledTransformableElement : public SVGStyledLocatableElement, public SVGTransformable
{
public:
SVGStyledTransformableElement(const QualifiedName&, Document*);
virtual ~SVGStyledTransformableElement();
virtual bool isStyledTransformable() const { return true; }
virtual SVGAnimatedTransformList *transform() const;
virtual SVGMatrix *localMatrix() const;
virtual SVGMatrix *getCTM() const;
virtual SVGMatrix *getScreenCTM() const;
virtual SVGElement *nearestViewportElement() const;
virtual SVGElement *farthestViewportElement() const;
virtual FloatRect getBBox() const;
virtual SVGMatrix *getTransformToElement(SVGElement *element) const;
virtual void parseMappedAttribute(MappedAttribute *attr);
void updateLocalTransform(SVGTransformList *localTransforms);
virtual void attach();
protected:
mutable RefPtr<SVGMatrix> m_localMatrix;
mutable RefPtr<SVGAnimatedTransformList> m_transform;
};
};
#endif // SVG_SUPPORT
#endif