pdf-cairo.h revision e5183c603c61d36c2c145e99693cbc62463122f3
/** \file
* Declaration of PrintCairoPDF, the internal module used to do PDF printing with Cairo.
*/
/*
* Authors:
* Lauris Kaplinski <lauris@kaplinski.com>
* Ted Gould <ted@gould.cx>
*
* Lauris' original code is in the public domain.
* Ted's changes are licensed under the GNU GPL.
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#ifdef HAVE_CAIRO_PDF
#include "extension/extension.h"
#include "extension/implementation/implementation.h"
#include <set>
#include <string>
#include "libnrtype/font-instance.h"
#include "svg/stringstream.h"
#include "sp-gradient.h"
#include <cairo.h>
float _width;
float _height;
// PangoContext *_context;
unsigned short _dpi;
bool _bitmap;
cairo_pattern_t *create_pattern_for_paint(SPPaintServer const *const paintserver, NRRect const *pbox, float alpha);
#ifndef RENDER_WITH_PANGO_CAIRO
#endif
PrintCairoPDF(void);
virtual ~PrintCairoPDF(void);
/* Print functions */
/*
virtual unsigned int set_preview(Inkscape::Extension::Print *module);
*/
/* Rendering methods */
virtual unsigned int bind(Inkscape::Extension::Print *module, NR::Matrix const *transform, float opacity);
virtual unsigned int fill(Inkscape::Extension::Print *module, const_NRBPath const *bpath, NR::Matrix const *ctm, SPStyle const *style,
virtual unsigned int stroke(Inkscape::Extension::Print *module, const_NRBPath const *bpath, NR::Matrix const *transform, SPStyle const *style,
virtual unsigned int image(Inkscape::Extension::Print *module, unsigned char *px, unsigned int w, unsigned int h, unsigned int rs,
static void init(void);
};
} /* namespace Internal */
} /* namespace Extension */
} /* namespace Inkscape */
#endif /* HAVE_CAIRO_PDF */
#endif /* !EXTENSION_INTERNAL_PDF_CAIRO_H_SEEN */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :