2 Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org>
4 2007 Eric Seidel <eric@webkit.org>
6 This file is part of the KDE project
8 This library is free software; you can redistribute it and/or
9 modify it under the terms of the GNU Library General Public
10 License as published by the Free Software Foundation; either
11 version 2 of the License, or (at your option) any later version.
13 This library is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Library General Public License for more details.
18 You should have received a copy of the GNU Library General Public License
19 along with this library; see the file COPYING.LIB. If not, write to
20 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 Boston, MA 02110-1301, USA.
28 #include "SVGExternalResourcesRequired.h"
29 #include "SVGLangSpace.h"
30 #include "SVGStyledTransformableElement.h"
32 #include "SVGURIReference.h"
36 class SVGAElement
: public SVGStyledTransformableElement
,
37 public SVGURIReference
,
40 public SVGExternalResourcesRequired
{
42 SVGAElement(const QualifiedName
&, Document
*);
43 virtual ~SVGAElement();
45 virtual bool isValid() const { return SVGTests::isValid(); }
47 virtual String
title() const;
49 virtual void parseMappedAttribute(MappedAttribute
*);
50 virtual void svgAttributeChanged(const QualifiedName
&);
52 virtual RenderObject
* createRenderer(RenderArena
*, RenderStyle
*);
54 virtual void defaultEventHandler(Event
*);
56 virtual bool supportsFocus() const;
57 virtual bool isMouseFocusable() const;
58 virtual bool isKeyboardFocusable(KeyboardEvent
*) const;
59 virtual bool isFocusable() const;
61 virtual bool childShouldCreateRenderer(Node
*) const;
63 // KHTML ElementImpl pure virtual method
64 virtual quint32
id() const { return SVGNames::aTag
.id(); }
65 virtual DOMString
tagName() const { return SVGNames::aTag
.tagName(); }
68 virtual const SVGElement
* contextElement() const { return this; }
71 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference
, String
, Href
, href
)
72 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired
, bool, ExternalResourcesRequired
, externalResourcesRequired
)
74 ANIMATED_PROPERTY_DECLARATIONS(SVGAElement
, String
, String
, Target
, target
)
77 } // namespace WebCore
80 #endif // SVGAElement_h