1 /* imposter (OO.org Impress viewer)
2 ** Copyright (C) 2003-2005 Gurer Ozen
3 ** This code is free software; you can redistribute it and/or
4 ** modify it under the terms of GNU General Public License.
12 struct ImpDoc_struct {
21 void (*get_geometry)(ImpRenderCtx *ctx);
22 void (*render_page)(ImpRenderCtx *ctx, void *drw_data);
25 struct ImpPage_struct {
26 struct ImpPage_struct *next;
27 struct ImpPage_struct *prev;
34 struct ImpRenderCtx_struct {
43 double fact_x, fact_y;
46 char *r_get_style (ImpRenderCtx *ctx, iks *node, char *attr);
47 int r_get_color(ImpRenderCtx *ctx, iks *node, char *name, ImpColor *ic);
48 void r_parse_color(const char *color, ImpColor *ic);
49 int r_get_x (ImpRenderCtx *ctx, iks *node, char *name);
50 int r_get_y (ImpRenderCtx *ctx, iks *node, char *name);
51 int r_get_angle (iks *node, char *name, int def);
63 IMP_LE_ROUND_LARGE_ARROW,
69 void _imp_draw_rect(ImpRenderCtx *ctx, void *drw_data, int fill, int x, int y, int w, int h, int round);
70 void _imp_draw_line_end(ImpRenderCtx *ctx, void *drw_data, int type, int size, int x, int y, int x2, int y2);
71 void _imp_draw_image(ImpRenderCtx *ctx, void *drw_data, const char *name, int x, int y, int w, int h);
72 void _imp_tile_image(ImpRenderCtx *ctx, void *drw_data, const char *name, int x, int y, int w, int h);
74 int _imp_fill_back(ImpRenderCtx *ctx, void *drw_data, iks *node);
75 void r_text(ImpRenderCtx *ctx, void *drw_data, iks *node);
76 void r_polygon(ImpRenderCtx *ctx, void *drw_data, iks *node);
77 void r_circle(ImpRenderCtx *ctx, void *drw_data, iks *node);
78 void r_polyline(ImpRenderCtx *ctx, void *drw_data, iks *node);
79 void r_draw_gradient (ImpRenderCtx *ctx, void *drw_data, iks *node);
81 int _imp_oo13_load(ImpDoc *doc);
82 int _imp_oasis_load(ImpDoc *doc);
85 #endif /* INTERNAL_H */