KHtml

SVGAElement.h
1 /*
2  Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <[email protected]>
3  2004, 2005 Rob Buis <[email protected]>
4  2007 Eric Seidel <[email protected]>
5 
6  This file is part of the KDE project
7 
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.
12 
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.
17 
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.
22 */
23 
24 #ifndef SVGAElement_h
25 #define SVGAElement_h
26 
27 #if ENABLE(SVG)
28 #include "SVGExternalResourcesRequired.h"
29 #include "SVGLangSpace.h"
30 #include "SVGStyledTransformableElement.h"
31 #include "SVGTests.h"
32 #include "SVGURIReference.h"
33 
34 namespace WebCore
35 {
36 
37 class SVGAElement : public SVGStyledTransformableElement,
38  public SVGURIReference,
39  public SVGTests,
40  public SVGLangSpace,
41  public SVGExternalResourcesRequired
42 {
43 public:
44  SVGAElement(const QualifiedName &, Document *);
45  virtual ~SVGAElement();
46 
47  bool isValid() const override
48  {
49  return SVGTests::isValid();
50  }
51 
52  virtual String title() const;
53 
54  void parseMappedAttribute(MappedAttribute *) override;
55  void svgAttributeChanged(const QualifiedName &) override;
56 
57  RenderObject *createRenderer(RenderArena *, RenderStyle *) override;
58 
59  void defaultEventHandler(Event *) override;
60 
61  virtual bool supportsFocus() const;
62  bool isFocusableImpl(FocusType ft) const override;
63 
64  bool childShouldCreateRenderer(Node *) const override;
65 
66  // KHTML ElementImpl pure virtual method
67  quint32 id() const override
68  {
69  return SVGNames::aTag.id();
70  }
71 
72 protected:
73  const SVGElement *contextElement() const override
74  {
75  return this;
76  }
77 
78 private:
79  ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href)
80  ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired)
81 
82  ANIMATED_PROPERTY_DECLARATIONS(SVGAElement, String, String, Target, target)
83 };
84 
85 } // namespace WebCore
86 
87 #endif // ENABLE(SVG)
88 #endif // SVGAElement_h
bool isValid(QStringView ifopt)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Oct 25 2021 22:48:22 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.