15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/*
25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or
65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public
75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either
85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version.
95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful,
115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of
125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details.
145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) *
155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License
165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB.  If not, write to
175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA.
195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */
205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#ifndef SVGFECompositeElement_h
225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#define SVGFECompositeElement_h
235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
2453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/svg/SVGAnimatedEnumeration.h"
2553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/svg/SVGAnimatedNumber.h"
2653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
27a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)#include "platform/graphics/filters/FEComposite.h"
285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
29c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink {
305c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
31d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)template<> const SVGEnumerationStringEntries& getStaticStringEntries<CompositeOperationType>();
325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
3353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)class SVGFECompositeElement FINAL : public SVGFilterPrimitiveStandardAttributes {
347242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci    DEFINE_WRAPPERTYPEINFO();
355c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public:
365d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles)    DECLARE_NODE_FACTORY(SVGFECompositeElement);
375c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
3809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedNumber* k1() { return m_k1.get(); }
3909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedNumber* k2() { return m_k2.get(); }
4009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedNumber* k3() { return m_k3.get(); }
4109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedNumber* k4() { return m_k4.get(); }
4209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedString* in1() { return m_in1.get(); }
4309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    SVGAnimatedString* in2() { return m_in2.get(); }
44d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)    SVGAnimatedEnumeration<CompositeOperationType>* svgOperator() { return m_svgOperator.get(); }
4509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)
465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private:
4751b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles)    explicit SVGFECompositeElement(Document&);
485c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
495c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    bool isSupportedAttribute(const QualifiedName&);
50926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles)    virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
5109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) OVERRIDE;
5209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
5309380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
545c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
5509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedNumber> m_k1;
5609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedNumber> m_k2;
5709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedNumber> m_k3;
5809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedNumber> m_k4;
5909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedString> m_in1;
6009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)    RefPtr<SVGAnimatedString> m_in2;
61d5428f32f5d1719f774f62e19147104ca245a3abTorne (Richard Coles)    RefPtr<SVGAnimatedEnumeration<CompositeOperationType> > m_svgOperator;
625c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)};
635c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
64c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)} // namespace blink
655c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
667242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci#endif // SVGFECompositeElement_h
67