diff options
Diffstat (limited to 'scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_')
-rw-r--r-- | scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_ | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_ new file mode 100644 index 000000000000..9354dba121b6 --- /dev/null +++ b/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.bsh_ @@ -0,0 +1,24 @@ +// 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; + +/* Use the XScriptContext variable "context" to access the document for + which this script was invoked. This variable will be initialised + automatically by the Scripting Framework when the script is invoked. + + Methods available are: + + context.getDocument() returns XModel + context.getDesktop() returns XDesktop + context.getComponentContext() returns XComponentContext +*/ + +// Uncomment to get the current document model +// xmodel = context.getDocument(); |