diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-03-04 23:34:30 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-03-04 23:34:30 +0000 |
| commit | 6d833eac6f8775095c3c0a0979a6dcab1e4f5c3c (patch) | |
| tree | b2765fbd0d101c27da577a95ec2ce75d78c92d7e /src/extension/input.h | |
| parent | Clean up the unordered containers fix. (diff) | |
| download | inkscape-6d833eac6f8775095c3c0a0979a6dcab1e4f5c3c.tar.gz inkscape-6d833eac6f8775095c3c0a0979a6dcab1e4f5c3c.zip | |
Improve behavior when pasting, DnDing and importing bitmap images
(bzr r9143)
Diffstat (limited to 'src/extension/input.h')
| -rw-r--r-- | src/extension/input.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/extension/input.h b/src/extension/input.h index 55d807ce2..24cbc4896 100644 --- a/src/extension/input.h +++ b/src/extension/input.h @@ -11,6 +11,7 @@ #ifndef INKSCAPE_EXTENSION_INPUT_H__ #define INKSCAPE_EXTENSION_INPUT_H__ +#include <exception> #include <glib.h> #include "extension.h" #include "xml/repr.h" @@ -30,8 +31,14 @@ public: /* this is a hack for this release, this will be private shortly */ gchar *output_extension; /**< Setting of what output extension should be used */ public: - class open_failed {}; /**< Generic failure for an undescribed reason */ - class no_extension_found {}; /**< Failed because we couldn't find an extension to match the filename */ + struct open_failed : public std::exception { + virtual ~open_failed() throw() {} + const char *what() const throw() { return "Open failed"; } + }; + struct no_extension_found : public std::exception { + virtual ~no_extension_found() throw() {} + const char *what() const throw() { return "No suitable input extension found"; } + }; Input (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp); |
