diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-27 20:33:21 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-27 20:33:21 +0200 |
commit | 0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd (patch) | |
tree | 85befc9e4e4568c2cc0d5960f3dbb1d55b647223 /backend/impress/r_back.c | |
parent | 360c4652feef85e15c936d9da9d3c49b081cd502 (diff) | |
download | atril-0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd.tar.bz2 atril-0ccbc83f09c65cdb252c63ee110bac7e91f4c7bd.tar.xz |
Remove broken impress backend
Diffstat (limited to 'backend/impress/r_back.c')
-rw-r--r-- | backend/impress/r_back.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/backend/impress/r_back.c b/backend/impress/r_back.c deleted file mode 100644 index 3f050d9e..00000000 --- a/backend/impress/r_back.c +++ /dev/null @@ -1,46 +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" - -int -_imp_fill_back(ImpRenderCtx *ctx, void *drw_data, iks *node) -{ - ImpColor col; - char *type; - char *stil, *gfx; - iks *x; - - type = r_get_style(ctx, node, "draw:fill"); - if (type == 0) return 0; - - if (strcmp(type, "solid") == 0) { - if (r_get_color(ctx, node, "draw:fill-color", &col)) { - ctx->drw->set_fg_color(drw_data, &col); - } - ctx->drw->draw_rect(drw_data, 1, 0, 0, ctx->pix_w, ctx->pix_h); - } else if (strcmp (type, "bitmap") == 0) { - stil = r_get_style(ctx, node, "draw:fill-image-name"); - x = iks_find_with_attrib(iks_find(ctx->styles, "office:styles"), - "draw:fill-image", "draw:name", stil - ); - gfx = iks_find_attrib(x, "xlink:href"); - if (gfx) { - if (iks_strcmp(r_get_style(ctx, node, "style:repeat"), "stretch") == 0) { - _imp_draw_image(ctx, drw_data, gfx, 0, 0, ctx->pix_w, ctx->pix_h); - } else { - _imp_tile_image(ctx, drw_data, gfx, 0, 0, ctx->pix_w, ctx->pix_h); - } - } - } else if (strcmp(type, "gradient") == 0) { - r_draw_gradient(ctx, drw_data, node); - } else { - return 0; - } - return 1; -} |