X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fextension%2Finternal%2Fpdf-cairo.h;h=b37cfe22dc20f81f143b7a2f0869f1f0bc5b4135;hb=db3d7e286956ffa1408807197971d5277eea3b31;hp=8a7b43f3fda038cd097fef380ecde4d349deb2fd;hpb=244d15759c66c5c5db1c54bda3d95af10600a816;p=inkscape.git diff --git a/src/extension/internal/pdf-cairo.h b/src/extension/internal/pdf-cairo.h index 8a7b43f3f..b37cfe22d 100644 --- a/src/extension/internal/pdf-cairo.h +++ b/src/extension/internal/pdf-cairo.h @@ -17,6 +17,8 @@ # include "config.h" #endif +#ifdef HAVE_CAIRO_PDF + #include "extension/extension.h" #include "extension/implementation/implementation.h" #include @@ -42,8 +44,7 @@ class PrintCairoPDF : public Inkscape::Extension::Implementation::Implementation cairo_surface_t *pdf_surface; PangoLayout *_layout; // PangoContext *_context; - float *_alpha_stack; - int _num_alphas, _alpha_ptr; + std::vector _alpha_stack; double _last_tx, _last_ty; unsigned short _dpi; @@ -55,7 +56,7 @@ class PrintCairoPDF : public Inkscape::Extension::Implementation::Implementation void print_fill_style(cairo_t *cr, SPStyle const *const style, NRRect const *pbox); void print_stroke_style(cairo_t *cr, SPStyle const *style, NRRect const *pbox); -#ifndef HAVE_PANGO_CAIRO +#ifndef RENDER_WITH_PANGO_CAIRO NR::Point draw_glyphs(cairo_t *cr, NR::Point p, PangoFont *font, PangoGlyphString *glyph_string, bool vertical, bool stroke); #endif @@ -74,15 +75,15 @@ public: virtual unsigned int finish(Inkscape::Extension::Print *module); /* Rendering methods */ - virtual unsigned int bind(Inkscape::Extension::Print *module, NRMatrix const *transform, float opacity); + virtual unsigned int bind(Inkscape::Extension::Print *module, NR::Matrix const *transform, float opacity); virtual unsigned int release(Inkscape::Extension::Print *module); virtual unsigned int comment(Inkscape::Extension::Print *module, char const *comment); - virtual unsigned int fill(Inkscape::Extension::Print *module, NRBPath const *bpath, NRMatrix const *ctm, SPStyle const *style, + virtual unsigned int fill(Inkscape::Extension::Print *module, const_NRBPath const *bpath, NR::Matrix const *ctm, SPStyle const *style, NRRect const *pbox, NRRect const *dbox, NRRect const *bbox); - virtual unsigned int stroke(Inkscape::Extension::Print *module, NRBPath const *bpath, NRMatrix const *transform, SPStyle const *style, + virtual unsigned int stroke(Inkscape::Extension::Print *module, const_NRBPath const *bpath, NR::Matrix const *transform, SPStyle const *style, NRRect const *pbox, NRRect const *dbox, NRRect const *bbox); virtual unsigned int image(Inkscape::Extension::Print *module, unsigned char *px, unsigned int w, unsigned int h, unsigned int rs, - NRMatrix const *transform, SPStyle const *style); + NR::Matrix const *transform, SPStyle const *style); virtual unsigned int text(Inkscape::Extension::Print *module, char const *text, NR::Point p, SPStyle const *style); @@ -94,6 +95,7 @@ public: } /* namespace Extension */ } /* namespace Inkscape */ +#endif /* HAVE_CAIRO_PDF */ #endif /* !EXTENSION_INTERNAL_PDF_CAIRO_H_SEEN */