2 Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
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.
24 #ifndef SVGFilterElement_h
25 #define SVGFilterElement_h
27 #if ENABLE(SVG) && ENABLE(SVG_FILTERS)
28 #include "SVGResourceFilter.h"
29 #include "SVGExternalResourcesRequired.h"
30 #include "SVGLangSpace.h"
31 #include "SVGStyledElement.h"
32 #include "SVGURIReference.h"
37 class SVGFilterElement
: public SVGStyledElement
,
38 public SVGURIReference
,
40 public SVGExternalResourcesRequired
43 SVGFilterElement(const QualifiedName
&, Document
*);
44 virtual ~SVGFilterElement();
46 virtual SVGResource
* canvasResource();
48 void setFilterRes(unsigned long filterResX
, unsigned long filterResY
) const;
50 virtual void parseMappedAttribute(MappedAttribute
*);
51 virtual bool rendererIsNeeded(RenderStyle
*) { return false; }
54 virtual const SVGElement
* contextElement() const { return this; }
57 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference
, String
, Href
, href
)
58 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired
, bool, ExternalResourcesRequired
, externalResourcesRequired
)
60 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, int, int, FilterUnits
, filterUnits
)
61 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, int, int, PrimitiveUnits
, primitiveUnits
)
62 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, SVGLength
, SVGLength
, X
, x
)
63 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, SVGLength
, SVGLength
, Y
, y
)
64 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, SVGLength
, SVGLength
, Width
, width
)
65 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, SVGLength
, SVGLength
, Height
, height
)
66 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, long, long, FilterResX
, filterResX
)
67 ANIMATED_PROPERTY_DECLARATIONS(SVGFilterElement
, long, long, FilterResY
, filterResY
)
69 RefPtr
<SVGResourceFilter
> m_filter
;
72 } // namespace WebCore