diff options
Diffstat (limited to 'src/extension/print.cpp')
| -rw-r--r-- | src/extension/print.cpp | 59 |
1 files changed, 28 insertions, 31 deletions
diff --git a/src/extension/print.cpp b/src/extension/print.cpp index ad8c4c38d..c37e9425c 100644 --- a/src/extension/print.cpp +++ b/src/extension/print.cpp @@ -15,35 +15,32 @@ namespace Inkscape { namespace Extension { -Print::Print (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) : Extension(in_repr, in_imp) +Print::Print (Inkscape::XML::Node *in_repr, Implementation::Implementation *in_imp) + : Extension(in_repr, in_imp) + , base(NULL) + , drawing(NULL) + , root(NULL) + , dkey(0) { - base = NULL; - arena = NULL; - root = NULL; - dkey = 0; - - return; } -Print::~Print (void) -{ - return; -} +Print::~Print () +{} bool -Print::check (void) +Print::check () { - return Extension::check(); + return Extension::check(); } unsigned int -Print::setup (void) +Print::setup () { return imp->setup(this); } unsigned int -Print::set_preview (void) +Print::set_preview () { return imp->set_preview(this); } @@ -55,67 +52,67 @@ Print::begin (SPDocument *doc) } unsigned int -Print::finish (void) +Print::finish () { return imp->finish(this); } unsigned int -Print::bind (const Geom::Affine *transform, float opacity) +Print::bind (const Geom::Affine &transform, float opacity) { return imp->bind (this, transform, opacity); } unsigned int -Print::release (void) +Print::release () { return imp->release(this); } unsigned int -Print::comment (const char * comment) +Print::comment (char const *comment) { - return imp->comment(this,comment); + return imp->comment(this, comment); } unsigned int -Print::fill (Geom::PathVector const &pathv, const Geom::Affine *ctm, const SPStyle *style, - const NRRect *pbox, const NRRect *dbox, const NRRect *bbox) +Print::fill (Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, + Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) { return imp->fill (this, pathv, ctm, style, pbox, dbox, bbox); } unsigned int -Print::stroke (Geom::PathVector const &pathv, const Geom::Affine *transform, const SPStyle *style, - const NRRect *pbox, const NRRect *dbox, const NRRect *bbox) +Print::stroke (Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, + Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox) { - return imp->stroke (this, pathv, transform, style, pbox, dbox, bbox); + return imp->stroke (this, pathv, ctm, style, pbox, dbox, bbox); } unsigned int Print::image (unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, - const Geom::Affine *transform, const SPStyle *style) + const Geom::Affine &transform, const SPStyle *style) { return imp->image (this, px, w, h, rs, transform, style); } unsigned int -Print::text (const char* text, Geom::Point p, const SPStyle* style) +Print::text (char const *text, Geom::Point const &p, SPStyle const *style) { return imp->text (this, text, p, style); } bool -Print::textToPath (void) +Print::textToPath () { - return imp->textToPath(this); + return imp->textToPath(this); } //whether embed font in print output (EPS especially) bool -Print::fontEmbedded (void) +Print::fontEmbedded () { - return imp->fontEmbedded(this); + return imp->fontEmbedded(this); } } } /* namespace Inkscape, Extension */ |
