20#ifndef __SVGEXPORT_H__
21#define __SVGEXPORT_H__
28#include "svggraphiccontext.h"
30#include <tqptrstack.h>
46class SvgExport : public KoFilter, private VVisitor
52 SvgExport( KoFilter* parent, const char* name, const TQStringList& );
53 virtual ~SvgExport() {}
55 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to );
58 virtual void visitVPath( VPath& composite );
59 virtual void visitVDocument( VDocument& document );
60 virtual void visitVGroup( VGroup& group );
61 virtual void visitVImage( VImage& image );
62 virtual void visitVLayer( VLayer& layer );
63 virtual void visitVSubpath( VSubpath& path );
64 virtual void visitVText( VText& text );
66 void getStroke( const VStroke& stroke, TQTextStream *stream );
67 void getColorStops( const TQPtrVector<VColorStop> &colorStops );
68 void getFill( const VFill& fill, TQTextStream *stream );
69 void getGradient( const VGradient& grad );
70 void getPattern( const VPattern& patt );
71 void getHexColor( TQTextStream *, const VColor& color );
72 TQString getID( VObject *obj );
74 void writePathToStream( VPath &composite, const TQString & id, TQTextStream *stream, unsigned int indent );
76 TQTextStream* m_stream;
80 TQPtrStack<SvgGraphicsContext> m_gc;
82 unsigned int m_indent;
83 unsigned int m_indent2;
85 VTransformCmd *m_trans;
|