summaryrefslogtreecommitdiff
path: root/scripting/java/org/openoffice/netbeans/modules/office/resources/templates/Empty.java_
blob: cf997b0f108204ce9a1de6f959d37d599edec811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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();
        
  }

}