svg text alignment
[dia.git] / app / render_eps.h
blobf7ad460052cf48e0f3a6d4dffcc0b05c3ca63d57
1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef RENDER_EPS_H
19 #define RENDER_EPS_H
21 #include <stdio.h>
23 typedef struct _RendererEPS RendererEPS;
25 #include "geometry.h"
26 #include "render.h"
27 #include "display.h"
28 #include "filter.h"
29 #ifdef HAVE_UNICODE
30 #include "ps-utf8.h"
31 #endif
34 struct _RendererEPS {
35 Renderer renderer;
37 FILE *file;
38 int is_ps;
39 int pagenum;
41 LineStyle saved_line_style;
42 real dash_length;
43 real dot_length;
44 #ifdef HAVE_UNICODE
45 PSUnicoder *psu;
46 #endif
47 Color lcolor;
50 RendererEPS *new_eps_renderer(Diagram *dia, char *filename);
51 RendererEPS *new_psprint_renderer(Diagram *dia, FILE *file);
52 void destroy_eps_renderer(RendererEPS *renderer);
54 extern DiaExportFilter eps_export_filter;
56 #endif /* RENDER_EPS_H */