Code

Fix image transform when there is no rotate or scale
[inkscape.git] / src / extension / output.h
1 /*
2  * Authors:
3  *   Ted Gould <ted@gould.cx>
4  *
5  * Copyright (C) 2002-2004 Authors
6  *
7  * Released under GNU GPL, read the file 'COPYING' for more information
8  */
12 #ifndef INKSCAPE_EXTENSION_OUTPUT_H__
13 #define INKSCAPE_EXTENSION_OUTPUT_H__
15 #include <gtk/gtkdialog.h>
16 #include "extension.h"
17 struct SPDocument;
19 namespace Inkscape {
20 namespace Extension {
22 class Output : public Extension {
23     gchar *mimetype;             /**< What is the mime type this inputs? */
24     gchar *extension;            /**< The extension of the input files */
25     gchar *filetypename;         /**< A userfriendly name for the file type */
26     gchar *filetypetooltip;      /**< A more detailed description of the filetype */
27     bool   dataloss;             /**< The extension causes data loss on save */
29 public:
30     class save_failed {};        /**< Generic failure for an undescribed reason */
31     class no_extension_found {}; /**< Failed because we couldn't find an extension to match the filename */
33                  Output (Inkscape::XML::Node * in_repr,
34                          Implementation::Implementation * in_imp);
35     virtual     ~Output (void);
36     virtual bool check                (void);
37     void         save (SPDocument *doc,
38                        gchar const *uri);
39     bool         prefs (void);
40     gchar *      get_mimetype(void);
41     gchar *      get_extension(void);
42     gchar *      get_filetypename(void);
43     gchar *      get_filetypetooltip(void);
44 };
46 } }  /* namespace Inkscape, Extension */
47 #endif /* INKSCAPE_EXTENSION_OUTPUT_H__ */
49 /*
50   Local Variables:
51   mode:c++
52   c-file-style:"stroustrup"
53   c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
54   indent-tabs-mode:nil
55   fill-column:99
56   End:
57 */
58 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :