3
* Ted Gould <ted@gould.cx>
5
* Copyright (C) 2002-2004 Authors
7
* Released under GNU GPL, read the file 'COPYING' for more information
10
#ifndef INKSCAPE_EXTENSION_PRINT_H__
11
#define INKSCAPE_EXTENSION_PRINT_H__
13
#include "extension.h"
15
#include "display/nr-arena-forward.h"
21
class Print : public Extension {
23
public: /* TODO: These are public for the short term, but this should be fixed */
24
SPItem *base; /**< TODO: Document these */
25
NRArena *arena; /**< TODO: Document these */
26
NRArenaItem *root; /**< TODO: Document these */
27
unsigned int dkey; /**< TODO: Document these */
30
Print (Inkscape::XML::Node * in_repr,
31
Implementation::Implementation * in_imp);
32
virtual ~Print (void);
33
virtual bool check (void);
35
/* FALSE means user hit cancel */
36
unsigned int setup (void);
37
unsigned int set_preview (void);
39
unsigned int begin (SPDocument *doc);
40
unsigned int finish (void);
42
/* Rendering methods */
43
unsigned int bind (Geom::Matrix const *transform,
45
unsigned int release (void);
46
unsigned int comment (const char * comment);
47
unsigned int fill (Geom::PathVector const &pathv,
48
Geom::Matrix const *ctm,
53
unsigned int stroke (Geom::PathVector const &pathv,
54
Geom::Matrix const *transform,
59
unsigned int image (unsigned char *px,
63
Geom::Matrix const *transform,
64
SPStyle const *style);
65
unsigned int text (char const *text,
67
SPStyle const *style);
68
bool textToPath (void);
69
bool fontEmbedded (void);
72
} } /* namespace Inkscape, Extension */
73
#endif /* INKSCAPE_EXTENSION_PRINT_H__ */
78
c-file-style:"stroustrup"
79
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
84
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :