20#ifndef __XAMLIMPORT_H__
21#define __XAMLIMPORT_H__
26#include <tqptrstack.h>
27#include <core/vdocument.h>
28#include <core/vgradient.h>
29#include <core/vfill.h>
30#include <core/vstroke.h>
31#include <core/vfillrule.h>
32#include "xamlgraphiccontext.h"
37class XAMLImport : public KoFilter
43 XAMLImport(KoFilter *parent, const char *name, const TQStringList&);
44 virtual ~XAMLImport();
46 virtual KoFilter::ConversionStatus convert( const TQCString& from, const TQCString& to);
58 TQWMatrix gradientTransform;
61 void parseGroup( VGroup *, const TQDomElement & );
62 void parseStyle( VObject *, const TQDomElement & );
63 void parsePA( VObject *, XAMLGraphicsContext *, const TQString &, const TQString & );
64 void parseGradient( const TQDomElement & );
65 void parseColorStops( VGradient *, const TQDomElement & );
66 double parseUnit( const TQString &, bool horiz = false, bool vert = false, KoRect bbox = KoRect() );
67 void parseColor( VColor &, const TQString & );
68 TQColor parseColor( const TQString & );
69 double toPercentage( TQString );
70 double fromPercentage( TQString );
71 void setupTransform( const TQDomElement & );
72 void addGraphicContext();
76 VObject* createObject( const TQDomElement & );
77 void createText( VGroup *, const TQDomElement & );
78 void parseFont( const TQDomElement & );
80 VObject* findObject( const TQString &name );
82 VObject* findObject( const TQString &name, VGroup * );
86 TQPtrStack<XAMLGraphicsContext> m_gc;
87 TQMap<TQString, GradientHelper> m_gradients;
88 TQMap<TQString, TQDomElement> m_paths;
|