diff options
| author | Bob Jamison <ishmalius@gmail.com> | 2008-03-10 00:03:28 +0000 |
|---|---|---|
| committer | ishmal <ishmal@users.sourceforge.net> | 2008-03-10 00:03:28 +0000 |
| commit | 5421346cad32ea60be596291c74200bed21c2ef2 (patch) | |
| tree | aaa13c90610c1e087007608851b36dc1f24e1f82 /src/extension/script/InkscapeInterpreter.cpp | |
| parent | Don't steal 'del' key in pen context when there is no curve being drawn (clos... (diff) | |
| download | inkscape-5421346cad32ea60be596291c74200bed21c2ef2.tar.gz inkscape-5421346cad32ea60be596291c74200bed21c2ef2.zip | |
Switch to newer binding stuff
(bzr r5016)
Diffstat (limited to 'src/extension/script/InkscapeInterpreter.cpp')
| -rw-r--r-- | src/extension/script/InkscapeInterpreter.cpp | 93 |
1 files changed, 0 insertions, 93 deletions
diff --git a/src/extension/script/InkscapeInterpreter.cpp b/src/extension/script/InkscapeInterpreter.cpp deleted file mode 100644 index c28163489..000000000 --- a/src/extension/script/InkscapeInterpreter.cpp +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Python Interpreter wrapper for Inkscape - * - * Authors: - * Bob Jamison <rjamison@titan.com> - * - * Copyright (C) 2004 Authors - * - * Released under GNU GPL, read the file 'COPYING' for more information - */ - -#include "InkscapeInterpreter.h" - -#include <fstream> - -namespace Inkscape { -namespace Extension { -namespace Script { - -/* - * - */ -InkscapeInterpreter::InkscapeInterpreter() -{ -} - - - -/* - * - */ -InkscapeInterpreter::~InkscapeInterpreter() -{ - -} - - - - -/* - * Interpret an in-memory string - */ -bool InkscapeInterpreter::interpretScript(const Glib::ustring &script, - Glib::ustring &output, - Glib::ustring &error) -{ - //do nothing. let the subclasses implement this - return true; -} - - - - -/* - * Interpret a named file - */ -bool InkscapeInterpreter::interpretUri(const Glib::ustring &uri, - Glib::ustring &output, - Glib::ustring &error) -{ - char *curi = (char *)uri.raw().c_str(); - std::ifstream ins(curi); - if (!ins.good()) - { - g_error("interpretUri: Could not open %s for reading\n", curi); - return false; - } - - Glib::ustring buf; - - while (!ins.eof()) - { - gunichar ch = (gunichar) ins.get(); - buf.push_back(ch); - } - - ins.close(); - - bool ret = interpretScript(buf, output, error); - - return ret; - -} - - - -} // namespace Script -} // namespace Extension -} // namespace Inkscape - -//######################################################################### -//# E N D O F F I L E -//######################################################################### |
