1 #ifndef DIA_PS_RENDERER_H
2 #define DIA_PS_RENDERER_H
7 #include "diarenderer.h"
9 /* Distinguish between variants of postscript.
10 * EPS needs bounding box, EPSI also needs preview.
18 #define DIA_TYPE_PS_RENDERER (dia_ps_renderer_get_type ())
19 #define DIA_PS_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), DIA_TYPE_PS_RENDERER, DiaPsRenderer))
20 #define DIA_PS_RENDERER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), DIA_TYPE_PS_RENDERER, DiaPsRendererClass))
21 #define DIA_IS_PS_RENDERER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), DIA_TYPE_PS_RENDERER))
22 #define DIA_PS_RENDERER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), DIA_TYPE_PS_RENDERER, DiaPsRendererClass))
24 GType
dia_ps_renderer_get_type (void) G_GNUC_CONST
;
26 typedef struct _DiaPsRenderer DiaPsRenderer
;
27 typedef struct _DiaPsRendererClass DiaPsRendererClass
;
31 DiaRenderer parent_instance
;
33 /** Need this if we're doing preview */
44 LineStyle saved_line_style
;
54 struct _DiaPsRendererClass
56 DiaRendererClass parent_class
;
58 /* postscript specific renderer functions */
59 void (*begin_prolog
) (DiaPsRenderer
*renderer
);
60 void (*dump_fonts
) (DiaPsRenderer
*renderer
);
61 void (*end_prolog
) (DiaPsRenderer
*renderer
);
64 void lazy_setcolor(DiaPsRenderer
*renderer
, Color
*color
);
68 #endif /* DIA_PS_RENDERER_H */