summaryrefslogtreecommitdiffstats
path: root/src/print.cpp
diff options
context:
space:
mode:
authorJasper van de Gronde <jasper.vandegronde@gmail.com>2011-04-15 07:17:08 +0000
committerJasper van de Gronde <jasper.vandegronde@gmail.com>2011-04-15 07:17:08 +0000
commitc260fcd615791615b33f55459dabe38e64ee3471 (patch)
tree0eb19c8b2ccae81bad3ce9ea16df296e29fc8245 /src/print.cpp
parentFix a rounding error that resulted in seams at some zoom levels when (diff)
downloadinkscape-c260fcd615791615b33f55459dabe38e64ee3471.tar.gz
inkscape-c260fcd615791615b33f55459dabe38e64ee3471.zip
No more PrintWin32, including no special cases for non-Unicode Windows anymore.
(bzr r9508.1.82)
Diffstat (limited to 'src/print.cpp')
-rw-r--r--src/print.cpp37
1 files changed, 0 insertions, 37 deletions
diff --git a/src/print.cpp b/src/print.cpp
index fe52ea6dd..0774f5751 100644
--- a/src/print.cpp
+++ b/src/print.cpp
@@ -85,43 +85,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)
{
doc->ensureUpToDate();