KHTML
SVGAElement.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> 00003 2004, 2005 Rob Buis <buis@kde.org> 00004 2007 Eric Seidel <eric@webkit.org> 00005 00006 This file is part of the KDE project 00007 00008 This library is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU Library General Public 00010 License as published by the Free Software Foundation; either 00011 version 2 of the License, or (at your option) any later version. 00012 00013 This library is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00016 Library General Public License for more details. 00017 00018 You should have received a copy of the GNU Library General Public License 00019 along with this library; see the file COPYING.LIB. If not, write to 00020 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00021 Boston, MA 02110-1301, USA. 00022 */ 00023 00024 #ifndef SVGAElement_h 00025 #define SVGAElement_h 00026 00027 #if ENABLE(SVG) 00028 #include "SVGExternalResourcesRequired.h" 00029 #include "SVGLangSpace.h" 00030 #include "SVGStyledTransformableElement.h" 00031 #include "SVGTests.h" 00032 #include "SVGURIReference.h" 00033 00034 namespace WebCore { 00035 00036 class SVGAElement : public SVGStyledTransformableElement, 00037 public SVGURIReference, 00038 public SVGTests, 00039 public SVGLangSpace, 00040 public SVGExternalResourcesRequired { 00041 public: 00042 SVGAElement(const QualifiedName&, Document*); 00043 virtual ~SVGAElement(); 00044 00045 virtual bool isValid() const { return SVGTests::isValid(); } 00046 00047 virtual String title() const; 00048 00049 virtual void parseMappedAttribute(MappedAttribute*); 00050 virtual void svgAttributeChanged(const QualifiedName&); 00051 00052 virtual RenderObject* createRenderer(RenderArena*, RenderStyle*); 00053 00054 virtual void defaultEventHandler(Event*); 00055 00056 virtual bool supportsFocus() const; 00057 virtual bool isMouseFocusable() const; 00058 virtual bool isKeyboardFocusable(DOM::KeyboardEventImpl*) const; 00059 virtual bool isFocusable() const; 00060 00061 virtual bool childShouldCreateRenderer(Node*) const; 00062 00063 // KHTML ElementImpl pure virtual method 00064 virtual quint32 id() const { return SVGNames::aTag.id(); } 00065 00066 protected: 00067 virtual const SVGElement* contextElement() const { return this; } 00068 00069 private: 00070 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href) 00071 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired) 00072 00073 ANIMATED_PROPERTY_DECLARATIONS(SVGAElement, String, String, Target, target) 00074 }; 00075 00076 } // namespace WebCore 00077 00078 #endif // ENABLE(SVG) 00079 #endif // SVGAElement_h
KDE 4.6 API Reference