diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-10-22 12:49:33 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-10-22 12:49:33 +0000 |
commit | 6560a51801250e55bf49479b665c912e0412968b (patch) | |
tree | fe299e20ae173224e1d5f84bef2297001f397645 /scripting/examples | |
parent | bfddf22b6f78529b9743c11fada0916a1f10db9f (diff) |
INTEGRATION: CWS scriptingf6 (1.5.40); FILE MERGED
2004/09/16 14:26:45 dfoster 1.5.40.2: #i33670#
Rename the context variable to XSCRIPTCONTEXT
2004/08/03 16:12:49 dfoster 1.5.40.1: #i32502#
Diffstat (limited to 'scripting/examples')
-rw-r--r-- | scripting/examples/beanshell/Highlight/highlighter.bsh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/examples/beanshell/Highlight/highlighter.bsh b/scripting/examples/beanshell/Highlight/highlighter.bsh index a3989b994c..7424718443 100644 --- a/scripting/examples/beanshell/Highlight/highlighter.bsh +++ b/scripting/examples/beanshell/Highlight/highlighter.bsh @@ -4,7 +4,7 @@ import com.sun.star.util.XReplaceDescriptor; import com.sun.star.util.XPropertyReplace; import com.sun.star.beans.PropertyValue; import com.sun.star.text.XTextDocument; -import drafts.com.sun.star.script.provider.XScriptContext; +import com.sun.star.script.provider.XScriptContext; int replaceText(searchKey, color, bold) { @@ -63,10 +63,10 @@ int replaceText(searchKey, color, bold) { searchKey = ""; -// The context variable is of type XScriptContext and is available to +// The XSCRIPTCONTEXT variable is of type XScriptContext and is available to // all BeanShell scripts executed by the Script Framework xTextDocument = (XTextDocument) - UnoRuntime.queryInterface(XTextDocument.class, context.getDocument()); + UnoRuntime.queryInterface(XTextDocument.class, XSCRIPTCONTEXT.getDocument()); // Create a JButton and add an ActionListener // When clicked the value for the searchKey is read and passed to replaceText |