Code

A simple layout document as to what, why and how is cppification.
[inkscape.git] / src / extension / internal / cairo-ps-out.h
1 /*
2  * A quick hack to use the print output to write out a file.  This
3  * then makes 'save as...' PS.
4  *
5  * Authors:
6  *   Ted Gould <ted@gould.cx>
7  *   Ulf Erikson <ulferikson@users.sf.net>
8  *   Adib Taraben <theAdib@yahoo.com>
9  *
10  * Copyright (C) 2004-2006 Authors
11  *
12  * Released under GNU GPL, read the file 'COPYING' for more information
13  */
15 #ifndef EXTENSION_INTERNAL_CAIRO_PS_OUT_H
16 #define EXTENSION_INTERNAL_CAIRO_PS_OUT_H
18 #include "extension/implementation/implementation.h"
19 #include "sp-item.h"
21 #ifdef HAVE_CAIRO_PDF
23 namespace Inkscape {
24 namespace Extension {
25 namespace Internal {
27 class CairoPsOutput : Inkscape::Extension::Implementation::Implementation {
29 public:
30     bool check(Inkscape::Extension::Extension *module);
31     void save(Inkscape::Extension::Output *mod,
32               SPDocument *doc,
33               gchar const *filename);
34     static void init();
35     bool textToPath(Inkscape::Extension::Print *ext);
37 };
39 class CairoEpsOutput : Inkscape::Extension::Implementation::Implementation {
41 public:
42     bool check(Inkscape::Extension::Extension *module);
43     void save(Inkscape::Extension::Output *mod,
44               SPDocument *doc,
45               gchar const *uri);
46     static void init();
47     bool textToPath(Inkscape::Extension::Print *ext);
49 };
51 } } }  /* namespace Inkscape, Extension, Implementation */
53 #endif /* HAVE_CAIRO_PDF */
55 #endif /* !EXTENSION_INTERNAL_CAIRO_PS_OUT_H */
57 /*
58   Local Variables:
59   mode:c++
60   c-file-style:"stroustrup"
61   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
62   indent-tabs-mode:nil
63   fill-column:99
64   End:
65 */
66 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :