diff --git a/src/bind/javabind.h b/src/bind/javabind.h
index 144e633e70c5b1061dc0f6f2428b2e13cf37f927..894f52d5dddffe902625054a7b4d97ffbbf34f8f 100644 (file)
--- a/src/bind/javabind.h
+++ b/src/bind/javabind.h
-#ifndef __JAVABIND_H__
-#define __JAVABIND_H__
/**
- * This is a simple mechanism to bind Inkscape to Java, and thence
+ * @file
+ * @brief This is a simple mechanism to bind Inkscape to Java, and thence
* to all of the nice things that can be layered upon that.
*
* Authors:
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#ifndef __JAVABIND_H__
+#define __JAVABIND_H__
+
#include <glibmm.h>
#include <vector>
init();
}
+ /**
+ *
+ */
+ Value(int ival)
+ {
+ init();
+ setInt(ival);
+ }
+
+ /**
+ *
+ */
+ Value(bool bval)
+ {
+ init();
+ setBoolean(bval);
+ }
+
+ /**
+ *
+ */
+ Value(double dval)
+ {
+ init();
+ setDouble(dval);
+ }
+
+ /**
+ *
+ */
+ Value(const String &sval)
+ {
+ init();
+ setString(sval);
+ }
+
/**
*
*/
/**
*
*/
- virtual bool doBinding()
+ virtual bool scriptRun(const String &/*lang*/, const String &/*script*/)
{
return false;
}
-
+
/**
*
*/
- virtual String getException()
+ virtual bool scriptRunFile(const String &/*lang*/, const String &/*fileName*/)
{
- return "";
- }
-
- virtual String stdOutGet()
- {
- return stdOutBuf;
- }
-
- virtual void stdOutClear()
- {
- stdOutBuf.clear();
- }
-
- virtual void stdOut(int ch)
- {
- stdOutBuf.push_back((char)ch);
+ return false;
}
- virtual String stdErrGet()
+ /**
+ *
+ */
+ virtual bool showConsole()
{
- return stdErrBuf;
+ return false;
}
- virtual void stdErrClear()
+ /**
+ *
+ */
+ virtual bool doBinding()
{
- stdErrBuf.clear();
+ return false;
}
-
- virtual void stdErr(int ch)
+
+ /**
+ *
+ */
+ virtual String getException()
{
- stdErrBuf.push_back((char)ch);
- }
-
+ return "";
+ }
+
virtual String logGet()
{
return logBuf;