summaryrefslogtreecommitdiff
path: root/scripting/examples/javascript/Highlight/ButtonPressHandler.js
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 20:05:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 08:37:40 -0600
commitb0308236d26c4b97532abf40ffd443ebb464ed92 (patch)
treeddd71ffee2d11cfbe5612861978ee347f050b0dc /scripting/examples/javascript/Highlight/ButtonPressHandler.js
parente6bd9d718d9962bbb88428a31173fa607f46d45c (diff)
Remove visual noise from scripting
Change-Id: Id9f177a20d911ce1e041407aa556c9cf13f0efc8 Reviewed-on: https://gerrit.libreoffice.org/8305 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'scripting/examples/javascript/Highlight/ButtonPressHandler.js')
-rwxr-xr-xscripting/examples/javascript/Highlight/ButtonPressHandler.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripting/examples/javascript/Highlight/ButtonPressHandler.js b/scripting/examples/javascript/Highlight/ButtonPressHandler.js
index 292993784689..e0fbde2400e6 100755
--- a/scripting/examples/javascript/Highlight/ButtonPressHandler.js
+++ b/scripting/examples/javascript/Highlight/ButtonPressHandler.js
@@ -56,7 +56,7 @@ if (pset.getPropertyValue("Label").equals("Exit"))
// getContext() on the XControl interface
xDialog = UnoRuntime.queryInterface(
XDialog, control.getContext());
-
+
// Close the dialog
xDialog.endExecute();
}
@@ -78,7 +78,7 @@ else
red = java.awt.Color.red.getRGB();
replaceable =
- UnoRuntime.queryInterface(XReplaceable, XSCRIPTCONTEXT.getDocument());
+ UnoRuntime.queryInterface(XReplaceable, XSCRIPTCONTEXT.getDocument());
descriptor = replaceable.createReplaceDescriptor();
@@ -110,9 +110,9 @@ else
descriptor.setPropertyValue("SearchWords", new java.lang.Boolean(true));
// Replaces all instances of searchKey with new Text properties
- // and gets the number of instances of the searchKey
- descriptor.setSearchString(searchKey);
- descriptor.setReplaceString(searchKey);
+ // and gets the number of instances of the searchKey
+ descriptor.setSearchString(searchKey);
+ descriptor.setReplaceString(searchKey);
replaceable.replaceAll(descriptor);
}
catch (e) {