KHTML
SVGAltGlyphElement.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef SVGAltGlyphElement_h
00023 #define SVGAltGlyphElement_h
00024 #if ENABLE(SVG_FONTS)
00025
00026 #include "AtomicString.h"
00027 #include "SVGTextPositioningElement.h"
00028 #include "SVGURIReference.h"
00029
00030 namespace WebCore
00031 {
00032 class SVGGlyphElement;
00033
00034 class SVGAltGlyphElement : public SVGTextPositioningElement, public SVGURIReference
00035 {
00036 public:
00037 SVGAltGlyphElement(const QualifiedName&, Document*);
00038 virtual ~SVGAltGlyphElement();
00039
00040 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*);
00041 bool childShouldCreateRenderer(Node*) const;
00042
00043 const AtomicString& glyphRef() const;
00044 void setGlyphRef(const AtomicString&, ExceptionCode&);
00045 const AtomicString& format() const;
00046 void setFormat(const AtomicString&, ExceptionCode&);
00047
00048 SVGGlyphElement* glyphElement() const;
00049
00050
00051 virtual quint32 id() const { return SVGNames::textTag.id(); }
00052 virtual DOMString tagName() const { return SVGNames::textTag.tagName(); }
00053
00054 protected:
00055 virtual const SVGElement* contextElement() const { return this; }
00056 };
00057
00058 }
00059
00060 #endif // ENABLE(SVG)
00061 #endif
00062
00063