libs/flake

KoPathShapeLoader.h

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  * Copyright (C) 2007 Jan Hambrecht <jaham@gmx.net>
00003  *
00004  * This library is free software; you can redistribute it and/or
00005  * modify it under the terms of the GNU Library General Public
00006  * License as published by the Free Software Foundation; either
00007  * version 2 of the License, or (at your option) any later version.
00008  *
00009  * This library is distributed in the hope that it will be useful,
00010  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00011  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012  * Library General Public License for more details.
00013  *
00014  * You should have received a copy of the GNU Library General Public License
00015  * along with this library; see the file COPYING.LIB.  If not, write to
00016  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018  */
00019 
00020 #ifndef _KOPATHSHAPELOADER_H_
00021 #define _KOPATHSHAPELOADER_H_
00022 
00023 #include "KoSvgPathParser.h"
00024 
00025 class KoPathShape;
00026 
00028 class FLAKE_EXPORT KoPathShapeLoader : public KoSvgPathParser
00029 {
00030 public:
00031     KoPathShapeLoader(KoPathShape * path);
00032     ~KoPathShapeLoader();
00033 
00035     virtual void svgMoveTo(qreal x1, qreal y1, bool abs = true);
00037     virtual void svgLineTo(qreal x1, qreal y1, bool abs = true);
00039     virtual void svgLineToHorizontal(qreal x, bool abs = true);
00041     virtual void svgLineToVertical(qreal y, bool abs = true);
00043     virtual void svgCurveToCubic(qreal x1, qreal y1, qreal x2, qreal y2, qreal x, qreal y, bool abs = true);
00045     virtual void svgCurveToCubicSmooth(qreal x, qreal y, qreal x2, qreal y2, bool abs = true);
00047     virtual void svgCurveToQuadratic(qreal x, qreal y, qreal x1, qreal y1, bool abs = true);
00049     virtual void svgCurveToQuadraticSmooth(qreal x, qreal y, bool abs = true);
00051     virtual void svgArcTo(qreal x, qreal y, qreal r1, qreal r2, qreal angle, bool largeArcFlag, bool sweepFlag, bool abs = true);
00053     virtual void svgClosePath();
00054 
00055 private:
00056     class Private;
00057     Private * const d;
00058 };
00059 
00060 #endif // _KOPATHSHAPELOADER_H_