SVGTextContentElement.h [plain text]
#ifndef KSVG_SVGTextContentElementImpl_H
#define KSVG_SVGTextContentElementImpl_H
#if SVG_SUPPORT
#include "SVGStyledElement.h"
#include "SVGTests.h"
#include "SVGLangSpace.h"
#include "SVGExternalResourcesRequired.h"
namespace WebCore {
class SVGAnimatedLength;
class SVGAnimatedEnumeration;
class SVGTextContentElement : public SVGStyledElement,
public SVGTests,
public SVGLangSpace,
public SVGExternalResourcesRequired
{
public:
SVGTextContentElement(const QualifiedName&, Document*);
virtual ~SVGTextContentElement();
virtual bool isValid() const { return SVGTests::isValid(); }
SVGAnimatedLength *textLength() const;
SVGAnimatedEnumeration *lengthAdjust() const;
long getNumberOfChars() const;
float getComputedTextLength() const;
float getSubStringLength(unsigned long charnum, unsigned long nchars) const;
FloatPoint getStartPositionOfChar(unsigned long charnum) const;
FloatPoint getEndPositionOfChar(unsigned long charnum) const;
FloatRect getExtentOfChar(unsigned long charnum) const;
float getRotationOfChar(unsigned long charnum) const;
long getCharNumAtPosition(const FloatPoint&) const;
void selectSubString(unsigned long charnum, unsigned long nchars) const;
virtual void parseMappedAttribute(MappedAttribute*);
private:
mutable RefPtr<SVGAnimatedLength> m_textLength;
mutable RefPtr<SVGAnimatedEnumeration> m_lengthAdjust;
};
};
#endif // SVG_SUPPORT
#endif