summaryrefslogtreecommitdiffstats
path: root/src/extension/implementation/script.cpp
diff options
context:
space:
mode:
authorMaximilian Albert <maximilian.albert@gmail.com>2009-08-06 14:17:17 +0000
committercilix42 <cilix42@users.sourceforge.net>2009-08-06 14:17:17 +0000
commit51c2905fd3e99955db2d823b79abb763d8097028 (patch)
tree90128509479f5498e1125d1e4eb9cdc05bf6b6e6 /src/extension/implementation/script.cpp
parentAdding one more control to Smart Jelly (diff)
downloadinkscape-51c2905fd3e99955db2d823b79abb763d8097028.tar.gz
inkscape-51c2905fd3e99955db2d823b79abb763d8097028.zip
Revert recent refactoring changes by johnce because they break the build, which cannot be fixed easily.
(bzr r8422)
Diffstat (limited to 'src/extension/implementation/script.cpp')
-rw-r--r--src/extension/implementation/script.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/extension/implementation/script.cpp b/src/extension/implementation/script.cpp
index d207c1a19..e6ce40bc0 100644
--- a/src/extension/implementation/script.cpp
+++ b/src/extension/implementation/script.cpp
@@ -545,7 +545,7 @@ Script::prefs_output(Inkscape::Extension::Output *module)
the incoming filename (so that it's not the temporary filename).
That document is then returned from this function.
*/
-Document *
+SPDocument *
Script::open(Inkscape::Extension::Input *module,
const gchar *filenameArg)
{
@@ -567,7 +567,7 @@ Script::open(Inkscape::Extension::Input *module,
int data_read = execute(command, params, lfilename, fileout);
fileout.toFile(tempfilename_out);
- Document * mydoc = NULL;
+ SPDocument * mydoc = NULL;
if (data_read > 10) {
if (helper_extension.size()==0) {
mydoc = Inkscape::Extension::open(
@@ -623,7 +623,7 @@ Script::open(Inkscape::Extension::Input *module,
*/
void
Script::save(Inkscape::Extension::Output *module,
- Document *doc,
+ SPDocument *doc,
const gchar *filenameArg)
{
std::list<std::string> params;
@@ -757,7 +757,7 @@ Script::effect(Inkscape::Extension::Effect *module,
pump_events();
- Document * mydoc = NULL;
+ SPDocument * mydoc = NULL;
if (data_read > 10) {
mydoc = Inkscape::Extension::open(
Inkscape::Extension::db.get(SP_MODULE_KEY_INPUT_SVG),