KHTML
SVGPathSeg.h
Go to the documentation of this file.
00001 /* 00002 Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org> 00003 2004, 2005, 2006 Rob Buis <buis@kde.org> 00004 00005 This file is part of the KDE project 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Library General Public 00009 License as published by the Free Software Foundation; either 00010 version 2 of the License, or (at your option) any later version. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Library General Public License for more details. 00016 00017 You should have received a copy of the GNU Library General Public License 00018 along with this library; see the file COPYING.LIB. If not, write to 00019 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00020 Boston, MA 02110-1301, USA. 00021 */ 00022 00023 #ifndef SVGPathSeg_h 00024 #define SVGPathSeg_h 00025 00026 #if ENABLE(SVG) 00027 #include "PlatformString.h" 00028 #include "SVGNames.h" 00029 00030 #include <wtf/RefCounted.h> 00031 #include <wtf/PassRefPtr.h> 00032 00033 namespace WebCore { 00034 class SVGPathElement; 00035 class SVGStyledElement; 00036 00037 class SVGPathSeg : public RefCounted<SVGPathSeg> { 00038 public: 00039 virtual ~SVGPathSeg() { } 00040 00041 enum SVGPathSegType { 00042 PATHSEG_UNKNOWN = 0, 00043 PATHSEG_CLOSEPATH = 1, 00044 PATHSEG_MOVETO_ABS = 2, 00045 PATHSEG_MOVETO_REL = 3, 00046 PATHSEG_LINETO_ABS = 4, 00047 PATHSEG_LINETO_REL = 5, 00048 PATHSEG_CURVETO_CUBIC_ABS = 6, 00049 PATHSEG_CURVETO_CUBIC_REL = 7, 00050 PATHSEG_CURVETO_QUADRATIC_ABS = 8, 00051 PATHSEG_CURVETO_QUADRATIC_REL = 9, 00052 PATHSEG_ARC_ABS = 10, 00053 PATHSEG_ARC_REL = 11, 00054 PATHSEG_LINETO_HORIZONTAL_ABS = 12, 00055 PATHSEG_LINETO_HORIZONTAL_REL = 13, 00056 PATHSEG_LINETO_VERTICAL_ABS = 14, 00057 PATHSEG_LINETO_VERTICAL_REL = 15, 00058 PATHSEG_CURVETO_CUBIC_SMOOTH_ABS = 16, 00059 PATHSEG_CURVETO_CUBIC_SMOOTH_REL = 17, 00060 PATHSEG_CURVETO_QUADRATIC_SMOOTH_ABS = 18, 00061 PATHSEG_CURVETO_QUADRATIC_SMOOTH_REL = 19 00062 }; 00063 00064 virtual unsigned short pathSegType() const { return PATHSEG_UNKNOWN; } 00065 virtual String pathSegTypeAsLetter() const { return ""; } 00066 virtual String toString() const { return ""; } 00067 00068 const QualifiedName& associatedAttributeName() const { return SVGNames::dAttr; } 00069 00070 protected: 00071 SVGPathSeg() { } 00072 }; 00073 00074 } // namespace WebCore 00075 00076 #endif // ENABLE(SVG) 00077 #endif
KDE 4.6 API Reference