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 <libnr/nr-path.h>
15 #include "forward.h"
16 #include "extension/extension-forward.h"
18 struct SPPrintContext {
19 Inkscape::Extension::Print *module;
20 };
22 unsigned int sp_print_bind(SPPrintContext *ctx, NR::Matrix const &transform, float opacity);
23 unsigned int sp_print_bind(SPPrintContext *ctx, NRMatrix const *transform, float opacity);
24 unsigned int sp_print_release(SPPrintContext *ctx);
25 unsigned int sp_print_comment(SPPrintContext *ctx, char const *comment);
26 unsigned int sp_print_fill(SPPrintContext *ctx, NRBPath const *bpath, NRMatrix const *ctm, SPStyle const *style,
27 NRRect const *pbox, NRRect const *dbox, NRRect const *bbox);
28 unsigned int sp_print_stroke(SPPrintContext *ctx, NRBPath const *bpath, NRMatrix const *transform, SPStyle const *style,
29 NRRect const *pbox, NRRect const *dbox, NRRect const *bbox);
31 unsigned int sp_print_image_R8G8B8A8_N(SPPrintContext *ctx,
32 guchar *px, unsigned int w, unsigned int h, unsigned int rs,
33 NRMatrix const *transform, SPStyle const *style);
35 unsigned int sp_print_text(SPPrintContext *ctx, char const *text, NR::Point p,
36 SPStyle const *style);
38 void sp_print_get_param(SPPrintContext *ctx, gchar *name, bool *value);
41 /* UI */
42 void sp_print_preview_document(SPDocument *doc);
43 void sp_print_document(SPDocument *doc, unsigned int direct);
44 void sp_print_document_to_file(SPDocument *doc, gchar const *filename);
47 #endif /* !PRINT_H_INKSCAPE */
49 /*
50 Local Variables:
51 mode:c++
52 c-file-style:"stroustrup"
53 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54 indent-tabs-mode:nil
55 fill-column:99
56 End:
57 */
58 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :