summaryrefslogtreecommitdiff
path: root/scripting/examples
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-10-22 12:49:33 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-10-22 12:49:33 +0000
commit6560a51801250e55bf49479b665c912e0412968b (patch)
treefe299e20ae173224e1d5f84bef2297001f397645 /scripting/examples
parentbfddf22b6f78529b9743c11fada0916a1f10db9f (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.bsh6
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