public class MacroModule extends Object
| Constructor and Description |
|---|
MacroModule(String name,
String language,
CharSequence code) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(XMLUtil util,
OdsDocument document,
String libraryNameSlash)
Add this module to a document
|
void |
appendIndexLine(XMLUtil util,
Appendable appendable)
Append a line to script-lc.xml
|
static MacroModule |
createBasic(String name,
CharSequence code)
A StarBasic module
|
public MacroModule(String name, String language, CharSequence code)
name - name of the modulelanguage - language, e.g. StarBasic or Pythoncode - the contentpublic static MacroModule createBasic(String name, CharSequence code)
name - the name of the modulecode - the contentpublic void add(XMLUtil util, OdsDocument document, String libraryNameSlash) throws IOException
util - an util to write XMLdocument - the documentlibraryNameSlash - path to this module, name exceptedIOException - if can't writepublic void appendIndexLine(XMLUtil util, Appendable appendable) throws IOException
util - an util to write XMLappendable - where to writeIOException - if can't writeCopyright © 2016–2021. All rights reserved.