summaryrefslogtreecommitdiff
path: root/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
diff options
context:
space:
mode:
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_')
-rwxr-xr-xscripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_27
1 files changed, 27 insertions, 0 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
new file mode 100755
index 000000000000..cf997b0f1082
--- /dev/null
+++ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
@@ -0,0 +1,27 @@
+// If using XComponentContext need to uncomment import directive below:
+// import com.sun.star.uno.XComponentContext;
+
+// If using XDesktop need to uncomment import directive below:
+// import com.sun.star.frame.XDesktop;
+
+// If using XComponent need to uncomment import directive below:
+// import com.sun.star.frame.XModel;
+
+import drafts.com.sun.star.script.framework.runtime.XScriptContext;
+
+public class Empty {
+
+ public void doMethod(XScriptContext xSc) {
+
+ /* Methods available from XScriptContext:
+ xSc.getDocument() returns XModel
+ xSc.getDesktop() returns XDesktop
+ xSc.getComponentContext() returns XComponentContext
+ */
+
+ // Uncomment to get the current document as a component
+ // XComponent xcomponent = xSc.getDocument();
+
+ }
+
+}