Code

change API: separate functions creating a blur filter, one for a given item, another...
[inkscape.git] / src / dom / jsengine.h
index 3f63c60607786412a2dd1923ba47f1bd4344f0c1..abcbb23e91457bd29d36b3db6d00d1ac672b9731 100644 (file)
@@ -73,7 +73,24 @@ public:
     bool evaluateFile(const DOMString &script);
 
 
-    JSObject *wrapDocument(const Document *doc);
+    /**
+     *  Return the runtime of the wrapped JS engine
+     */
+    JSRuntime *getRuntime()
+           { return rt; }
+               
+    /**
+     *  Return the current context of the wrapped JS engine
+     */
+       JSContext *getContext()
+           { return cx; }
+               
+    /**
+     *  Return the current global object of the wrapped JS engine
+     */
+       JSObject *getGlobalObject()
+           { return globalObj; } 
+    
 
 private:
 
@@ -137,11 +154,8 @@ private:
         engine->error((char *)message);
         }
 
-    JSObject *nodeProto;
-    JSObject *characterDataProto;
-    JSObject *textProto;
-    JSObject *cdataProto;
-    JSObject *documentProto;
+    
+    
 
 };