darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 1 | /* |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 2 | Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
rwlbuis | 7998312 | 2006-10-09 07:40:41 +0000 | [diff] [blame] | 3 | 2004, 2005, 2006 Rob Buis <buis@kde.org> |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 4 | |
| 5 | This file is part of the KDE project |
| 6 | |
| 7 | This library is free software; you can redistribute it and/or |
| 8 | modify it under the terms of the GNU Library General Public |
| 9 | License as published by the Free Software Foundation; either |
| 10 | version 2 of the License, or (at your option) any later version. |
| 11 | |
| 12 | This library is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 15 | Library General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU Library General Public License |
| 18 | along with this library; see the file COPYING.LIB. If not, write to |
ddkilzer | c8eccec | 2007-09-26 02:29:57 +0000 | [diff] [blame] | 19 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 20 | Boston, MA 02110-1301, USA. |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 21 | */ |
| 22 | |
eseidel | 8eddecf | 2007-01-16 00:49:43 +0000 | [diff] [blame] | 23 | #ifndef SVGComponentTransferFunctionElement_h |
| 24 | #define SVGComponentTransferFunctionElement_h |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 25 | |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 26 | #if ENABLE(SVG) && ENABLE(SVG_FILTERS) |
rwlbuis | 7998312 | 2006-10-09 07:40:41 +0000 | [diff] [blame] | 27 | #include "SVGElement.h" |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 28 | #include "SVGNumberList.h" |
oliver@apple.com | f83ba18 | 2008-07-04 05:21:56 +0000 | [diff] [blame] | 29 | #include "FEComponentTransfer.h" |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 30 | |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 31 | namespace WebCore { |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 32 | |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 33 | extern char SVGComponentTransferFunctionElementIdentifier[]; |
| 34 | |
| 35 | class SVGComponentTransferFunctionElement : public SVGElement { |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 36 | public: |
eseidel | 4e52462 | 2006-05-31 17:25:30 +0000 | [diff] [blame] | 37 | SVGComponentTransferFunctionElement(const QualifiedName&, Document*); |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 38 | virtual ~SVGComponentTransferFunctionElement(); |
| 39 | |
rwlbuis | 7998312 | 2006-10-09 07:40:41 +0000 | [diff] [blame] | 40 | virtual void parseMappedAttribute(MappedAttribute* attr); |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 41 | |
oliver@apple.com | fa8c954 | 2008-07-04 01:10:08 +0000 | [diff] [blame] | 42 | ComponentTransferFunction transferFunction() const; |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 43 | |
| 44 | private: |
zimmermann@webkit.org | 057741d | 2008-07-19 15:46:48 +0000 | [diff] [blame] | 45 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::typeAttrString, int, Type, type) |
| 46 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::tableValuesAttrString, SVGNumberList, TableValues, tableValues) |
| 47 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::slopeAttrString, float, Slope, slope) |
| 48 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::interceptAttrString, float, Intercept, intercept) |
| 49 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::amplitudeAttrString, float, Amplitude, amplitude) |
| 50 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::exponentAttrString, float, Exponent, exponent) |
| 51 | ANIMATED_PROPERTY_DECLARATIONS(SVGComponentTransferFunctionElement, SVGComponentTransferFunctionElementIdentifier, SVGNames::offsetAttrString, float, Offset, offset) |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 52 | }; |
weinig | ab5f09e | 2006-07-29 23:15:25 +0000 | [diff] [blame] | 53 | |
| 54 | } // namespace WebCore |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 55 | |
oliver@apple.com | 22b1ad9 | 2007-12-09 00:27:57 +0000 | [diff] [blame] | 56 | #endif // ENABLE(SVG) && ENABLE(SVG_FILTERS) |
darin | b9481ed | 2006-03-20 02:57:59 +0000 | [diff] [blame] | 57 | #endif |