From c260fcd615791615b33f55459dabe38e64ee3471 Mon Sep 17 00:00:00 2001 From: Jasper van de Gronde Date: Fri, 15 Apr 2011 09:17:08 +0200 Subject: No more PrintWin32, including no special cases for non-Unicode Windows anymore. (bzr r9508.1.82) --- src/print.cpp | 37 ------------------------------------- 1 file changed, 37 deletions(-) (limited to 'src/print.cpp') diff --git a/src/print.cpp b/src/print.cpp index fe52ea6dd..0774f5751 100644 --- a/src/print.cpp +++ b/src/print.cpp @@ -84,43 +84,6 @@ unsigned int sp_print_text(SPPrintContext *ctx, char const *text, Geom::Point p, /* UI */ -void -sp_print_preview_document(SPDocument *doc) -{ - Inkscape::Extension::Print *mod; - unsigned int ret; - - doc->ensureUpToDate(); - - mod = Inkscape::Extension::get_print(SP_MODULE_KEY_PRINT_DEFAULT); - - ret = mod->set_preview(); - - if (ret) { - SPPrintContext context; - context.module = mod; - - /* fixme: This has to go into module constructor somehow */ - /* Create new arena */ - mod->base = SP_ITEM(doc->getRoot()); - mod->arena = NRArena::create(); - mod->dkey = SPItem::display_key_new(1); - mod->root = (mod->base)->invoke_show(mod->arena, mod->dkey, SP_ITEM_SHOW_DISPLAY); - /* Print document */ - ret = mod->begin(doc); - (mod->base)->invoke_print(&context); - ret = mod->finish(); - /* Release arena */ - (mod->base)->invoke_hide(mod->dkey); - mod->base = NULL; - mod->root = NULL; - nr_object_unref((NRObject *) mod->arena); - mod->arena = NULL; - } - - return; -} - void sp_print_document(Gtk::Window& parentWindow, SPDocument *doc) { -- cgit v1.2.3