KHTML
SVGForeignObjectElement.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2006 Apple Computer, Inc. 00003 00004 This file is part of the WebKit project 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License as published by the Free Software Foundation; either 00009 version 2 of the License, or (at your option) any later version. 00010 00011 This library is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00014 Library General Public License for more details. 00015 00016 You should have received a copy of the GNU Library General Public License 00017 along with this library; see the file COPYING.LIB. If not, write to 00018 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00019 Boston, MA 02110-1301, USA. 00020 */ 00021 00022 #ifndef SVGForeignObjectElement_h 00023 #define SVGForeignObjectElement_h 00024 00025 #if ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT) 00026 #include "SVGTests.h" 00027 #include "SVGLangSpace.h" 00028 #include "SVGURIReference.h" 00029 #include "SVGStyledTransformableElement.h" 00030 #include "SVGExternalResourcesRequired.h" 00031 00032 namespace WebCore { 00033 class SVGLength; 00034 00035 class SVGForeignObjectElement : public SVGStyledTransformableElement, 00036 public SVGTests, 00037 public SVGLangSpace, 00038 public SVGExternalResourcesRequired, 00039 public SVGURIReference { 00040 public: 00041 SVGForeignObjectElement(const QualifiedName&, Document*); 00042 virtual ~SVGForeignObjectElement(); 00043 00044 virtual bool isValid() const { return SVGTests::isValid(); } 00045 virtual void parseMappedAttribute(MappedAttribute*); 00046 virtual void svgAttributeChanged(const QualifiedName&); 00047 00048 bool childShouldCreateRenderer(Node*) const; 00049 virtual RenderObject* createRenderer(RenderArena* arena, RenderStyle* style); 00050 00051 protected: 00052 virtual const SVGElement* contextElement() const { return this; } 00053 00054 private: 00055 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGExternalResourcesRequired, bool, ExternalResourcesRequired, externalResourcesRequired) 00056 ANIMATED_PROPERTY_FORWARD_DECLARATIONS(SVGURIReference, String, Href, href) 00057 00058 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, X, x) 00059 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Y, y) 00060 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Width, width) 00061 ANIMATED_PROPERTY_DECLARATIONS(SVGForeignObjectElement, SVGLength, SVGLength, Height, height) 00062 }; 00063 00064 } // namespace WebCore 00065 00066 #endif // ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT) 00067 #endif
KDE 4.6 API Reference