Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/impress/render.c
diff options
context:
space:
mode:
Diffstat (limited to 'impress/render.c')
-rw-r--r--impress/render.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/impress/render.c b/impress/render.c
deleted file mode 100644
index 0338600..0000000
--- a/impress/render.c
+++ /dev/null
@@ -1,53 +0,0 @@
-/* imposter (OO.org Impress viewer)
-** Copyright (C) 2003-2005 Gurer Ozen
-** This code is free software; you can redistribute it and/or
-** modify it under the terms of GNU General Public License.
-*/
-
-#include "common.h"
-#include "internal.h"
-
-ImpRenderCtx *
-imp_create_context(const ImpDrawer *drw)
-{
- ImpRenderCtx *ctx;
-
- ctx = calloc(1, sizeof(ImpRenderCtx));
- if (!ctx) return NULL;
- ctx->drw = drw;
- return ctx;
-}
-
-void
-imp_context_set_page(ImpRenderCtx *ctx, ImpPage *page)
-{
- ctx->page = page;
- ctx->content = page->doc->content;
- ctx->styles = page->doc->styles;
-}
-
-void
-imp_context_set_step(ImpRenderCtx *ctx, int step)
-{
- ctx->step = step;
-}
-
-void
-imp_render(ImpRenderCtx *ctx, void *drw_data)
-{
- // find drawing area size
- ctx->drw->get_size(drw_data, &ctx->pix_w, &ctx->pix_h);
- // find page size
- ctx->page->doc->get_geometry(ctx);
- // calculate ratio
- ctx->fact_x = ctx->pix_w / ctx->cm_w;
- ctx->fact_y = ctx->pix_h / ctx->cm_h;
- // call renderer
- ctx->page->doc->render_page(ctx, drw_data);
-}
-
-void
-imp_delete_context(ImpRenderCtx *ctx)
-{
- free(ctx);
-}