1 #ifndef __INKSCAPE_SCRIPT_H__
2 #define __INKSCAPE_SCRIPT_H__
4 /**
5 * Inkscape Scripting container
6 *
7 * Authors:
8 * Bob Jamison <rjamison@titan.com>
9 *
10 * Copyright (C) 2004 Authors
11 *
12 * Released under GNU GPL, read the file 'COPYING' for more information
13 */
15 #include "config.h"
17 #include <glibmm.h>
19 namespace Inkscape {
20 namespace Extension {
21 namespace Script {
24 class InkscapeScript
25 {
26 public:
28 /**
29 * Which type of language?
30 */
31 typedef enum
32 {
33 PYTHON,
34 PERL
35 } ScriptLanguage;
37 /**
38 *
39 */
40 InkscapeScript();
42 /**
43 *
44 */
45 ~InkscapeScript();
47 /**
48 *
49 */
50 bool interpretScript(Glib::ustring &script,
51 Glib::ustring &output,
52 Glib::ustring &error,
53 ScriptLanguage language);
55 /**
56 *
57 */
58 bool interpretUri(Glib::ustring &uri,
59 Glib::ustring &output,
60 Glib::ustring &error,
61 ScriptLanguage language);
65 }; //class InkscapeScript
70 } // namespace Script
71 } // namespace Extension
72 } // namespace Inkscape
76 #endif /* __INKSCAPE_SCRIPT_H__ */
78 /*
79 Local Variables:
80 mode:c++
81 c-file-style:"stroustrup"
82 c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
83 indent-tabs-mode:nil
84 fill-column:99
85 End:
86 */
87 // vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :