c967bd86e2415c0da87eefdf4941426584d8e42b
1 /*
2 * Authors:
3 * Ted Gould <ted@gould.cx>
4 *
5 * Copyright (C) 2002-2004 Authors
6 *
7 * Released under GNU GPL, read the file 'COPYING' for more information
8 */
10 #include "implementation/implementation.h"
11 #include "print.h"
13 /* Inkscape::Extension::Print */
15 namespace Inkscape {
16 namespace Extension {
18 Print::Print (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) : Extension(in_repr, in_imp)
19 {
20 base = NULL;
21 arena = NULL;
22 root = NULL;
23 dkey = 0;
25 return;
26 }
28 Print::~Print (void)
29 {
30 return;
31 }
33 bool
34 Print::check (void)
35 {
36 return Extension::check();
37 }
39 unsigned int
40 Print::setup (void)
41 {
42 return imp->setup(this);
43 }
45 unsigned int
46 Print::set_preview (void)
47 {
48 return imp->set_preview(this);
49 }
51 unsigned int
52 Print::begin (SPDocument *doc)
53 {
54 return imp->begin(this, doc);
55 }
57 unsigned int
58 Print::finish (void)
59 {
60 return imp->finish(this);
61 }
63 unsigned int
64 Print::bind (const NRMatrix *transform, float opacity)
65 {
66 return imp->bind (this, transform, opacity);
67 }
69 unsigned int
70 Print::release (void)
71 {
72 return imp->release(this);
73 }
75 unsigned int
76 Print::comment (const char * comment)
77 {
78 return imp->comment(this,comment);
79 }
81 unsigned int
82 Print::fill (const NRBPath *bpath, const NRMatrix *ctm, const SPStyle *style,
83 const NRRect *pbox, const NRRect *dbox, const NRRect *bbox)
84 {
85 return imp->fill (this, bpath, ctm, style, pbox, dbox, bbox);
86 }
88 unsigned int
89 Print::stroke (const NRBPath *bpath, const NRMatrix *transform, const SPStyle *style,
90 const NRRect *pbox, const NRRect *dbox, const NRRect *bbox)
91 {
92 return imp->stroke (this, bpath, transform, style, pbox, dbox, bbox);
93 }
95 unsigned int
96 Print::image (unsigned char *px, unsigned int w, unsigned int h, unsigned int rs,
97 const NRMatrix *transform, const SPStyle *style)
98 {
99 return imp->image (this, px, w, h, rs, transform, style);
100 }
102 unsigned int
103 Print::text (const char* text, NR::Point p, const SPStyle* style)
104 {
105 return imp->text (this, text, p, style);
106 }
108 bool
109 Print::textToPath (void)
110 {
111 return imp->textToPath(this);
112 }
114 } } /* namespace Inkscape, Extension */
116 /*
117 Local Variables:
118 mode:c++
119 c-file-style:"stroustrup"
120 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
121 indent-tabs-mode:nil
122 fill-column:99
123 End:
124 */
125 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :