Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
print.h
Go to the documentation of this file.
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Authors:
4 * Ted Gould <ted@gould.cx>
5 * Abhishek Sharma
6 *
7 * Copyright (C) 2002-2004 Authors
8 *
9 * Released under GNU GPL v2+, read the file 'COPYING' for more information.
10 */
11
12#ifndef INKSCAPE_EXTENSION_PRINT_H__
13#define INKSCAPE_EXTENSION_PRINT_H__
14
15#include <2geom/affine.h>
16#include <2geom/generic-rect.h>
17#include <2geom/pathvector.h>
18#include <2geom/point.h>
19#include "extension.h"
20
21class SPItem;
22class SPStyle;
23
24namespace Inkscape {
25
26class Drawing;
27class DrawingItem;
28
29namespace Extension {
30
31class Print : public Extension {
32
33public: /* TODO: These are public for the short term, but this should be fixed */
37 unsigned int dkey;
38
39public:
40 Print(Inkscape::XML::Node *in_repr, ImplementationHolder implementation, std::string *base_directory);
41 ~Print() override;
42
43 /* FALSE means user hit cancel */
44 unsigned int setup ();
45 unsigned int set_preview ();
46
47 unsigned int begin (SPDocument *doc);
48 unsigned int finish ();
49
50 /* Rendering methods */
51 unsigned int bind (Geom::Affine const &transform,
52 float opacity);
53 unsigned int release ();
54 unsigned int comment (const char * comment);
55 unsigned int fill (Geom::PathVector const &pathv,
56 Geom::Affine const &ctm,
57 SPStyle const *style,
58 Geom::OptRect const &pbox,
59 Geom::OptRect const &dbox,
60 Geom::OptRect const &bbox);
61 unsigned int stroke (Geom::PathVector const &pathv,
62 Geom::Affine const &transform,
63 SPStyle const *style,
64 Geom::OptRect const &pbox,
65 Geom::OptRect const &dbox,
66 Geom::OptRect const &bbox);
67 unsigned int image (unsigned char *px,
68 unsigned int w,
69 unsigned int h,
70 unsigned int rs,
71 Geom::Affine const &transform,
72 SPStyle const *style);
73 unsigned int text (char const *text,
74 Geom::Point const &p,
75 SPStyle const *style);
76 bool textToPath ();
77 bool fontEmbedded ();
78};
79
80} } /* namespace Inkscape, Extension */
81#endif /* INKSCAPE_EXTENSION_PRINT_H__ */
82
83/*
84 Local Variables:
85 mode:c++
86 c-file-style:"stroustrup"
87 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
88 indent-tabs-mode:nil
89 fill-column:99
90 End:
91*/
92// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :
Cartesian point / 2D vector and related operations.
3x3 affine transformation matrix.
3x3 matrix representing an affine transformation.
Definition affine.h:70
Axis-aligned rectangle that can be empty.
Definition rect.h:203
Sequence of subpaths.
Definition pathvector.h:122
Two-dimensional point that doubles as a vector.
Definition point.h:66
SVG drawing item for display.
The object that is the basis for the Extension system.
Definition extension.h:133
unsigned int bind(Geom::Affine const &transform, float opacity)
Definition print.cpp:54
unsigned int fill(Geom::PathVector const &pathv, Geom::Affine const &ctm, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox)
Definition print.cpp:66
unsigned int begin(SPDocument *doc)
Definition print.cpp:42
unsigned int text(char const *text, Geom::Point const &p, SPStyle const *style)
Definition print.cpp:87
unsigned int release()
Definition print.cpp:60
unsigned int stroke(Geom::PathVector const &pathv, Geom::Affine const &transform, SPStyle const *style, Geom::OptRect const &pbox, Geom::OptRect const &dbox, Geom::OptRect const &bbox)
Definition print.cpp:73
unsigned int dkey
Definition print.h:37
Inkscape::Drawing * drawing
Definition print.h:35
unsigned int setup()
Definition print.cpp:30
unsigned int set_preview()
Definition print.cpp:36
unsigned int finish()
Definition print.cpp:48
Inkscape::DrawingItem * root
Definition print.h:36
unsigned int comment(const char *comment)
Interface for refcounted XML nodes.
Definition node.h:80
Typed SVG document implementation.
Definition document.h:103
Base class for visual SVG elements.
Definition sp-item.h:109
An SVG style object.
Definition style.h:45
const double w
Definition conic-4.cpp:19
vector< vpsc::Rectangle * > rs
Inkscape::Extension::Extension: Frontend to certain, possibly pluggable, actions.
Axis-aligned rectangle.
std::unique_ptr< Magick::Image > image
Helper class to stream background task notifications as a series of messages.
PathVector - a sequence of subpaths.