Kaydet (Commit) 24680cb0 authored tarafından Rüdiger Timm's avatar Rüdiger Timm

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#
üst 4a788b71
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment