summaryrefslogtreecommitdiff
path: root/scripting/workben
diff options
context:
space:
mode:
authorDuncan Foster <dfoster@openoffice.org>2003-05-29 14:31:20 +0000
committerDuncan Foster <dfoster@openoffice.org>2003-05-29 14:31:20 +0000
commit51aa713baa7cac8aca05555cdcb0a939c3dd5d03 (patch)
tree37aa56d7c0be0b604a6691219e2e59e1f9ebbc85 /scripting/workben
parent9e95c73731846d05fa69a1a56e8fa8fb2fa7e446 (diff)
#i13211# Fixed Events list.
Diffstat (limited to 'scripting/workben')
-rw-r--r--scripting/workben/bindings/ScriptBinding.xba12
1 files changed, 8 insertions, 4 deletions
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba
index 14a04fc07025..34f47230496a 100644
--- a/scripting/workben/bindings/ScriptBinding.xba
+++ b/scripting/workben/bindings/ScriptBinding.xba
@@ -1276,6 +1276,9 @@ sub populateEventList( focusPosition as integer )
for n = 0 to ubound( allEventTypes() )
&apos; If the line number is 1 then SB macro
&apos; more than 1 it is the line number of the script
+ if isApp and n &gt; 12 then
+ exit for
+ endif
if isApp then
lineNumber = allEventTypesApp( n ).Value
scriptName = allEventTypesApp( n ).Name
@@ -1359,10 +1362,11 @@ sub createAllEventTypes()
allEventTypes( 11 ).Value = &quot;DeActivate document&quot;
allEventTypes( 12 ).Name = &quot;OnPrint&quot;
allEventTypes( 12 ).Value = &quot;Print Document&quot;
- allEventTypes( 13 ).Name = &quot;OnError&quot;
- allEventTypes( 13 ).Value = &quot;JavaScript Error&quot;
- allEventTypes( 14 ).Name = &quot;OnNewMail&quot;
- allEventTypes( 14 ).Value = &quot;Message received&quot;
+ REM The following are document-only events
+ allEventTypes( 13 ).Name = &quot;on-mail-merge&quot;
+ allEventTypes( 13 ).Value = &quot;Print form letters&quot;
+ allEventTypes( 14 ).Name = &quot;page-count-change&quot;
+ allEventTypes( 14 ).Value = &quot;Changing the page count&quot;
end sub