filters

epsexport.h
1/* This file is part of the KDE project
2 Copyright (C) 2002, The Karbon Developers
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Library General Public
6 License as published by the Free Software Foundation; either
7 version 2 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 Library General Public License for more details.
13
14 You should have received a copy of the GNU Library General Public License
15 along with this library; see the file COPYING.LIB. If not, write to
16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18*/
19
20#ifndef __EPSEXPORT_H__
21#define __EPSEXPORT_H__
22
23
24#include <KoFilter.h>
25
26#include "vvisitor.h"
27
28class TQTextStream;
29class VColor;
30class VPath;
31class VDocument;
32class VFill;
33class VGroup;
34class VLayer;
35class VSubpath;
36class VStroke;
37class VText;
38
39
40class EpsExport : public KoFilter, private VVisitor
41{
42 TQ_OBJECT
43
44
45public:
46 EpsExport( KoFilter* parent, const char* name, const TQStringList& );
47 virtual ~EpsExport() {}
48
49 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
50
51private:
52 virtual void visitVPath( VPath& composite );
53 virtual void visitVDocument( VDocument& document );
54 virtual void visitVSubpath( VSubpath& path );
55 virtual void visitVText( VText& text );
56 virtual void visitVGroup( VGroup& group );
57 virtual void visitVLayer( VLayer& layer );
58
59 void getStroke( const VStroke& stroke );
60 void getFill( const VFill& fill );
61 void getColor( const VColor& color );
62
63 bool isVisible( const VObject* object ) const;
64
65 TQTextStream* m_stream;
66
67 uint m_psLevel;
68 bool m_exportHidden;
69};
70
71#endif
72