Code

Merge and cleanup of GSoC C++-ification project.
[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  *   Abhishek Sharma
10  *
11  * Copyright (C) 2004-2006 Authors
12  *
13  * Released under GNU GPL, read the file 'COPYING' for more information
14  */
16 #ifndef EXTENSION_INTERNAL_CAIRO_PS_OUT_H
17 #define EXTENSION_INTERNAL_CAIRO_PS_OUT_H
19 #include "extension/implementation/implementation.h"
20 #include "sp-item.h"
22 #ifdef HAVE_CAIRO_PDF
24 namespace Inkscape {
25 namespace Extension {
26 namespace Internal {
28 class CairoPsOutput : Inkscape::Extension::Implementation::Implementation {
30 public:
31     bool check(Inkscape::Extension::Extension *module);
32     void save(Inkscape::Extension::Output *mod,
33               SPDocument *doc,
34               gchar const *filename);
35     static void init();
36     bool textToPath(Inkscape::Extension::Print *ext);
38 };
40 class CairoEpsOutput : Inkscape::Extension::Implementation::Implementation {
42 public:
43     bool check(Inkscape::Extension::Extension *module);
44     void save(Inkscape::Extension::Output *mod,
45               SPDocument *doc,
46               gchar const *uri);
47     static void init();
48     bool textToPath(Inkscape::Extension::Print *ext);
50 };
52 } } }  /* namespace Inkscape, Extension, Implementation */
54 #endif /* HAVE_CAIRO_PDF */
56 #endif /* !EXTENSION_INTERNAL_CAIRO_PS_OUT_H */
58 /*
59   Local Variables:
60   mode:c++
61   c-file-style:"stroustrup"
62   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
63   indent-tabs-mode:nil
64   fill-column:99
65   End:
66 */
67 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :