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
commit24680cb0dbfc200d91eda495e5909021cf53a47b (patch)
tree2e6908cd0c76cf3b02bd103b178a933ba689c80e /scripting/examples
parent4a788b71039eb5c81ca83b84ded7db54fa3b9f35 (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 a3989b994c7a..742471844309 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