don't include dlfcn.h on win32
[dia.git] / lib / diasvgrenderer.h
blob0aa02258b61c6dc1351baff9488408b823d475ae
1 #ifndef DIA_SVG_RENDERER_H
2 #define DIA_SVG_RENDERER_H
4 #include "diatypes.h"
5 #include "diarenderer.h"
7 G_BEGIN_DECLS
9 #define DIA_TYPE_SVG_RENDERER (dia_svg_renderer_get_type ())
10 #define DIA_SVG_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_SVG_RENDERER, DiaSvgRenderer))
11 #define DIA_SVG_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_SVG_RENDERER, DiaSvgRendererClass))
12 #define DIA_IS_SVG_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_SVG_RENDERER))
13 #define DIA_SVG_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_SVG_RENDERER, DiaSvgRendererClass))
15 GType dia_svg_renderer_get_type (void) G_GNUC_CONST;
17 struct _DiaSvgRenderer
19 DiaRenderer parent_instance;
21 /*< protected >*/
22 char *filename;
24 xmlDocPtr doc;
25 xmlNodePtr root;
26 xmlNsPtr svg_name_space;
28 LineStyle saved_line_style;
29 real dash_length;
30 real dot_length;
32 real linewidth;
33 const char *linecap;
34 const char *linejoin;
35 char *linestyle; /* not const -- must free */
37 DiaFont* font;
38 real fontsize;
41 struct _DiaSvgRendererClass
43 DiaRendererClass parent_class;
45 const gchar* (*get_draw_style) (DiaSvgRenderer*, Color*);
46 const gchar* (*get_fill_style) (DiaSvgRenderer*, Color*);
49 G_END_DECLS
51 #endif /* DIA_SVG_RENDERER_H */