~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/extension/input.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
9
 
 
10
 
 
11
#ifndef INKSCAPE_EXTENSION_INPUT_H__
 
12
#define INKSCAPE_EXTENSION_INPUT_H__
 
13
 
 
14
#include <glib.h>
 
15
#include "extension.h"
 
16
#include "xml/repr.h"
 
17
#include "document.h"
 
18
#include <gtk/gtkdialog.h>
 
19
 
 
20
namespace Inkscape {
 
21
namespace Extension {
 
22
 
 
23
class Input : public Extension {
 
24
    gchar *mimetype;             /**< What is the mime type this inputs? */
 
25
    gchar *extension;            /**< The extension of the input files */
 
26
    gchar *filetypename;         /**< A userfriendly name for the file type */
 
27
    gchar *filetypetooltip;      /**< A more detailed description of the filetype */
 
28
 
 
29
public: /* this is a hack for this release, this will be private shortly */
 
30
    gchar *output_extension;     /**< Setting of what output extension should be used */
 
31
 
 
32
public:
 
33
    class open_failed {};        /**< Generic failure for an undescribed reason */
 
34
    class no_extension_found {}; /**< Failed because we couldn't find an extension to match the filename */
 
35
 
 
36
                  Input                (Inkscape::XML::Node * in_repr,
 
37
                                        Implementation::Implementation * in_imp);
 
38
    virtual      ~Input                (void);
 
39
    virtual bool  check                (void);
 
40
    SPDocument *  open                 (gchar const *uri);
 
41
    gchar *       get_mimetype         (void);
 
42
    gchar *       get_extension        (void);
 
43
    gchar *       get_filetypename     (void);
 
44
    gchar *       get_filetypetooltip  (void);
 
45
    bool          prefs                (gchar const *uri);
 
46
};
 
47
 
 
48
} }  /* namespace Inkscape, Extension */
 
49
#endif /* INKSCAPE_EXTENSION_INPUT_H__ */
 
50
 
 
51
/*
 
52
  Local Variables:
 
53
  mode:c++
 
54
  c-file-style:"stroustrup"
 
55
  c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
 
56
  indent-tabs-mode:nil
 
57
  fill-column:99
 
58
  End:
 
59
*/
 
60
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :