index 256b18a2cf83a4e4c36382559d036b5f06a7401e..98508e4e645ce56c8120536c90add9dd2602ae1c 100644 (file)
* Authors:
* Bob Jamison <rjamison@titan.com>
*
- * Copyright (C) 2004-2006 Bob Jamison
+ * Copyright (C) 2004-2008 Bob Jamison
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include <glibmm.h>
-namespace Inkscape {
-namespace Extension {
-namespace Script {
+namespace Inkscape
+{
+namespace Extension
+{
+namespace Script
+{
+
+/**
+ * This class is used to run scripts, either from a file or buffer
+ */
class InkscapeScript
{
public:
*/
typedef enum
{
+ JAVASCRIPT,
PYTHON,
- PERL
+ RUBY
} ScriptLanguage;
/**
ScriptLanguage language);
/**
- * Interprets the script at the uri (file) named by 'uri',
+ * Interprets the script in the named file,
* storing the stdout output in 'output', and any
* error messages in 'error.' Language is one of the
* enumerated types in ScriptLanguage above.
*/
- bool interpretUri(const Glib::ustring &uri,
+ bool interpretFile(const Glib::ustring &fname,
Glib::ustring &output,
Glib::ustring &error,
ScriptLanguage language);