Code

emf import: redefine the device scale (Bug 341847)
[inkscape.git] / src / extension / print.cpp
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 Geom::Matrix *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 (Geom::PathVector const &pathv, const Geom::Matrix *ctm, const SPStyle *style,
83                    const NRRect *pbox, const NRRect *dbox, const NRRect *bbox)
84 {
85     return imp->fill (this, pathv, ctm, style, pbox, dbox, bbox);
86 }
88 unsigned int
89 Print::stroke (Geom::PathVector const &pathv, const Geom::Matrix *transform, const SPStyle *style,
90                  const NRRect *pbox, const NRRect *dbox, const NRRect *bbox)
91 {
92     return imp->stroke (this, pathv, 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 Geom::Matrix *transform, const SPStyle *style)
98 {
99     return imp->image (this, px, w, h, rs, transform, style);
102 unsigned int
103 Print::text (const char* text, Geom::Point p, const SPStyle* style)
105     return imp->text (this, text, p, style);
108 bool
109 Print::textToPath (void)
111         return imp->textToPath(this);
114 //whether embed font in print output (EPS especially)
115 bool
116 Print::fontEmbedded (void)
118         return imp->fontEmbedded(this);
121 } }  /* namespace Inkscape, Extension */
123 /*
124   Local Variables:
125   mode:c++
126   c-file-style:"stroustrup"
127   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
128   indent-tabs-mode:nil
129   fill-column:99
130   End:
131 */
132 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :