1 #ifndef PRINT_H_INKSCAPE
2 #define PRINT_H_INKSCAPE
4 /** \file
5 * Frontend to printing
6 */
7 /*
8 * Author:
9 * Lauris Kaplinski <lauris@kaplinski.com>
10 *
11 * This code is in public domain
12 */
14 #include <gtkmm.h>
15 //#include <libnr/nr-path.h>
16 #include <2geom/forward.h>
17 #include "forward.h"
18 #include "extension/extension-forward.h"
20 struct SPPrintContext {
21 Inkscape::Extension::Print *module;
22 };
24 unsigned int sp_print_bind(SPPrintContext *ctx, Geom::Matrix const &transform, float opacity);
25 unsigned int sp_print_bind(SPPrintContext *ctx, Geom::Matrix const *transform, float opacity);
26 unsigned int sp_print_release(SPPrintContext *ctx);
27 unsigned int sp_print_comment(SPPrintContext *ctx, char const *comment);
28 unsigned int sp_print_fill(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Matrix const *ctm, SPStyle const *style,
29 NRRect const *pbox, NRRect const *dbox, NRRect const *bbox);
30 unsigned int sp_print_stroke(SPPrintContext *ctx, Geom::PathVector const &pathv, Geom::Matrix const *transform, SPStyle const *style,
31 NRRect const *pbox, NRRect const *dbox, NRRect const *bbox);
33 unsigned int sp_print_image_R8G8B8A8_N(SPPrintContext *ctx,
34 guchar *px, unsigned int w, unsigned int h, unsigned int rs,
35 Geom::Matrix const *transform, SPStyle const *style);
37 unsigned int sp_print_text(SPPrintContext *ctx, char const *text, Geom::Point p,
38 SPStyle const *style);
40 void sp_print_get_param(SPPrintContext *ctx, gchar *name, bool *value);
43 /* UI */
44 void sp_print_preview_document(SPDocument *doc);
45 void sp_print_document(Gtk::Window& parentWindow, SPDocument *doc);
46 void sp_print_document_to_file(SPDocument *doc, gchar const *filename);
49 #endif /* !PRINT_H_INKSCAPE */
51 /*
52 Local Variables:
53 mode:c++
54 c-file-style:"stroustrup"
55 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
56 indent-tabs-mode:nil
57 fill-column:99
58 End:
59 */
60 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :