1
#ifndef __INKSCAPE_SCRIPT_H__
2
#define __INKSCAPE_SCRIPT_H__
5
* Inkscape Scripting container
8
* Bob Jamison <rjamison@titan.com>
10
* Copyright (C) 2004-2008 Bob Jamison
12
* Released under GNU GPL, read the file 'COPYING' for more information
29
* This class is used to run scripts, either from a file or buffer
36
* Which type of language?
46
* Creates a generic script interpreter.
53
virtual ~InkscapeScript();
56
* Interprets the script in the 'script' buffer,
57
* storing the stdout output in 'output', and any
58
* error messages in 'error.' Language is one of the
59
* enumerated types in ScriptLanguage above.
61
bool interpretScript(const Glib::ustring &script,
62
Glib::ustring &output,
64
ScriptLanguage language);
67
* Interprets the script in the named file,
68
* storing the stdout output in 'output', and any
69
* error messages in 'error.' Language is one of the
70
* enumerated types in ScriptLanguage above.
72
bool interpretFile(const Glib::ustring &fname,
73
Glib::ustring &output,
75
ScriptLanguage language);
79
}; //class InkscapeScript
85
} // namespace Extension
86
} // namespace Inkscape
90
#endif /* __INKSCAPE_SCRIPT_H__ */
95
c-file-style:"stroustrup"
96
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
101
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:encoding=utf-8:textwidth=99 :