summaryrefslogtreecommitdiff
path: root/backend/impress/render.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-04-27 20:33:21 +0200
committerStefano Karapetsas <[email protected]>2013-04-27 20:33:21 +0200
commit0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd (patch)
tree85befc9e4e4568c2cc0d5960f3dbb1d55b647223 /backend/impress/render.c
parent360c4652feef85e15c936d9da9d3c49b081cd502 (diff)
downloadatril-0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd.tar.bz2
atril-0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd.tar.xz
Remove broken impress backend
Diffstat (limited to 'backend/impress/render.c')
-rw-r--r--backend/impress/render.c54
1 files changed, 0 insertions, 54 deletions
diff --git a/backend/impress/render.c b/backend/impress/render.c
deleted file mode 100644
index 67b80756..00000000
--- a/backend/impress/render.c
+++ /dev/null
@@ -1,54 +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 <config.h>
-#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);
-}