29#include <tqvaluelist.h>
40class XFIGImport : public KoFilter
46 XFIGImport( KoFilter *parent, const char *name );
47 virtual ~XFIGImport();
49 virtual bool filterImport( const TQString &file, KoDocument *,
50 const TQString &from, const TQString &to,
51 const TQString &config=TQString() );
54 void parseColorObject (istream& fin);
55 void parseArc (istream& fin, GDocument* doc);
56 void parseEllipse (istream& fin, GDocument* doc);
57 void parsePolyline (istream& fin, GDocument* doc);
58 void parseSpline (istream& fin, GDocument* doc);
59 void parseText (istream& fin, GDocument* doc);
60 void parseCompoundObject (istream& fin, GDocument* doc);
61 void buildDocument (GDocument *doc);
63 void setProperties (GObject* obj, int pen_color, int style, int thickness,
64 int area_fill, int fill_color);
67 int coordinate_system;
69 TQIntDict<TQColor> colorTable;
73 struct GObjectListItem
75 GObjectListItem() : object(0L) {}
77 GObjectListItem( int d, GObject * obj ) :
78 object(obj), depth(d) {}
82 bool operator < ( const GObjectListItem & item ) const
85 return depth > item.depth;
87 bool operator == ( const GObjectListItem & item ) const
89 return depth == item.depth;
92 TQValueList<GObjectListItem> objList;
|