filters

epsexport.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002, The Karbon Developers
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 __EPSEXPORT_H__
00021 #define __EPSEXPORT_H__
00022 
00023 
00024 #include <KoFilter.h>
00025 
00026 #include "vvisitor.h"
00027 
00028 class QTextStream;
00029 class VColor;
00030 class VPath;
00031 class VDocument;
00032 class VFill;
00033 class VGroup;
00034 class VLayer;
00035 class VSubpath;
00036 class VStroke;
00037 class VText;
00038 
00039 
00040 class EpsExport : public KoFilter, private VVisitor
00041 {
00042     Q_OBJECT
00043 
00044 public:
00045     EpsExport( KoFilter* parent, const char* name, const QStringList& );
00046     virtual ~EpsExport() {}
00047 
00048     virtual KoFilter::ConversionStatus convert( const QCString& from, const QCString& to );
00049 
00050 private:
00051     virtual void visitVPath( VPath& composite );
00052     virtual void visitVDocument( VDocument& document );
00053     virtual void visitVSubpath( VSubpath& path );
00054     virtual void visitVText( VText& text );
00055 
00056     void getStroke( const VStroke& stroke );
00057     void getFill( const VFill& fill );
00058     void getColor( const VColor& color );
00059 
00060     QTextStream* m_stream;
00061 
00062     uint m_psLevel;
00063 };
00064 
00065 #endif
00066 
KDE Home | KDE Accessibility Home | Description of Access Keys