Rubber-stamped by Brady Eidson.
[webbrowser.git] / WebCore / svg / SVGFEImageElement.h
blob7c6d89bad46370e9b0cdad60561d02a3561389ee
1 /*
2 Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org>
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.
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.
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.
21 #ifndef SVGFEImageElement_h
22 #define SVGFEImageElement_h
24 #if ENABLE(SVG) && ENABLE(FILTERS)
25 #include "CachedResourceHandle.h"
26 #include "SVGFilterPrimitiveStandardAttributes.h"
27 #include "SVGURIReference.h"
28 #include "SVGLangSpace.h"
29 #include "SVGExternalResourcesRequired.h"
30 #include "SVGFEImage.h"
31 #include "SVGPreserveAspectRatio.h"
33 namespace WebCore {
35 class SVGFEImageElement : public SVGFilterPrimitiveStandardAttributes,
36 public SVGURIReference,
37 public SVGLangSpace,
38 public SVGExternalResourcesRequired,
39 public CachedResourceClient {
40 public:
41 SVGFEImageElement(const QualifiedName&, Document*);
42 virtual ~SVGFEImageElement();
44 virtual void parseMappedAttribute(MappedAttribute*);
45 virtual void notifyFinished(CachedResource*);
47 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const;
48 virtual bool build(SVGResourceFilter*);
50 private:
51 ANIMATED_PROPERTY_DECLARATIONS(SVGFEImageElement, SVGNames::feImageTagString, SVGNames::preserveAspectRatioAttrString, SVGPreserveAspectRatio, PreserveAspectRatio, preserveAspectRatio)
53 // SVGURIReference
54 ANIMATED_PROPERTY_DECLARATIONS(SVGFEImageElement, SVGURIReferenceIdentifier, XLinkNames::hrefAttrString, String, Href, href)
56 // SVGExternalResourcesRequired
57 ANIMATED_PROPERTY_DECLARATIONS(SVGFEImageElement, SVGExternalResourcesRequiredIdentifier,
58 SVGNames::externalResourcesRequiredAttrString, bool,
59 ExternalResourcesRequired, externalResourcesRequired)
61 CachedResourceHandle<CachedImage> m_cachedImage;
64 } // namespace WebCore
66 #endif // ENABLE(SVG)
67 #endif