• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3  * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB.  If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 
21 #ifndef SVGCursorElement_h
22 #define SVGCursorElement_h
23 
24 #if ENABLE(SVG)
25 #include "SVGAnimatedBoolean.h"
26 #include "SVGAnimatedLength.h"
27 #include "SVGAnimatedString.h"
28 #include "SVGElement.h"
29 #include "SVGExternalResourcesRequired.h"
30 #include "SVGTests.h"
31 #include "SVGURIReference.h"
32 
33 namespace WebCore {
34 
35 class SVGCursorElement : public SVGElement,
36                          public SVGTests,
37                          public SVGExternalResourcesRequired,
38                          public SVGURIReference {
39 public:
40     static PassRefPtr<SVGCursorElement> create(const QualifiedName&, Document*);
41 
42     virtual ~SVGCursorElement();
43 
44     void addClient(SVGElement*);
45     void removeClient(SVGElement*);
46     void removeReferencedElement(SVGElement*);
47 
48 private:
49     SVGCursorElement(const QualifiedName&, Document*);
50 
isValid()51     virtual bool isValid() const { return SVGTests::isValid(); }
52 
53     virtual void parseMappedAttribute(Attribute*);
54     virtual void svgAttributeChanged(const QualifiedName&);
55     virtual void synchronizeProperty(const QualifiedName&);
56     virtual void fillAttributeToPropertyTypeMap();
57     virtual AttributeToPropertyTypeMap& attributeToPropertyTypeMap();
58 
59     virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
60 
61     // Animated property declarations
62     DECLARE_ANIMATED_LENGTH(X, x)
63     DECLARE_ANIMATED_LENGTH(Y, y)
64 
65     // SVGURIReference
66     DECLARE_ANIMATED_STRING(Href, href)
67 
68     // SVGExternalResourcesRequired
69     DECLARE_ANIMATED_BOOLEAN(ExternalResourcesRequired, externalResourcesRequired)
70 
71     HashSet<SVGElement*> m_clients;
72 };
73 
74 } // namespace WebCore
75 
76 #endif // ENABLE(SVG)
77 #endif
78