summaryrefslogtreecommitdiff
path: root/scripting/workben
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2003-06-16 10:23:55 +0000
committerNoel Power <npower@openoffice.org>2003-06-16 10:23:55 +0000
commit9c658092b2d5c1bb58520a0cb19eb4f25bb14c16 (patch)
treeb4e6a192002486bdb1589453c259359a61bcf1f9 /scripting/workben
parent18e19c15ceb9ea371d137cc9beb263772547c9b1 (diff)
Updates to event processing for reading from events in doc bug #15552
Diffstat (limited to 'scripting/workben')
-rw-r--r--scripting/workben/bindings/ScriptBinding.xba15
1 files changed, 8 insertions, 7 deletions
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba
index 78c6557d456b..49adbfe4e109 100644
--- a/scripting/workben/bindings/ScriptBinding.xba
+++ b/scripting/workben/bindings/ScriptBinding.xba
@@ -597,15 +597,16 @@ sub evaluateForEvent( xmlline as string, lineCount as integer )
next n
end sub
-function isOKscriptProps( eventName as string )
+
+function isOKscriptProps( props() as Object, eventName as string ) as Boolean
On Error Goto ErrorHandler
- scriptProps = ThisComponent.getEvents().getByName( eventName )
- test = ubound( scriptProps )
- isOKscriptProps = true
+ props = ThisComponent.getEvents().getByName( eventName )
+ test = ubound( props() )
+ isOKscriptProps() = true
exit function
ErrorHandler:
- isOKscriptProps = false
+ isOKscriptProps() = false
end function
sub ReadEventsFromDoc()
@@ -613,8 +614,8 @@ sub ReadEventsFromDoc()
eventSupplier = ThisComponent
for n = 0 to ubound( allEventTypes() )
- scriptProps = eventSupplier.getEvents().getByName( allEventTypes( n ).Name )
- if (isOKscriptProps(allEventTypes( n ).Name)) then
+ Dim scriptProps() as Object
+ if (isOKscriptProps( scriptProps(), allEventTypes( n ).Name) ) then
if ( ubound( scriptProps ) &gt; 0 ) then
if ( scriptProps(0).Value = &quot;Script&quot; ) then
&apos;Script binding