summaryrefslogtreecommitdiff
path: root/scripting/workben
diff options
context:
space:
mode:
authorNoel Power <npower@openoffice.org>2003-03-05 07:56:18 +0000
committerNoel Power <npower@openoffice.org>2003-03-05 07:56:18 +0000
commit95e8723c6650ca613ee67330c06feed7806eafb3 (patch)
tree249ac8970f01fdf8c5a2ac2d8b9abfa9a89dfb99 /scripting/workben
parenteb941a623775db0285a7be0f51fd8382c926afbb (diff)
Bug #12024, should not display framework helper scripts in assign dialogs.
Diffstat (limited to 'scripting/workben')
-rw-r--r--scripting/workben/bindings/ScriptBinding.xba24
1 files changed, 15 insertions, 9 deletions
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba
index 140323874e2b..e5c823148339 100644
--- a/scripting/workben/bindings/ScriptBinding.xba
+++ b/scripting/workben/bindings/ScriptBinding.xba
@@ -952,19 +952,25 @@ sub PopulateScriptList( lang as String, loc as String )
storage = scriptstoragemgr.getScriptStorage( scriptStorageID )
implementations() = storage.getAllImplementations()
length = UBOUND( implementations() )
-
+ reservedScriptTag = &quot;_$&quot;
if ( length &gt; -1 ) then
dim tempDisplayList( length ) as new com.sun.star.beans.PropertyValue
for n = LBOUND( implementations() ) to UBOUND( implementations() )
- if ( lang = implementations( n ).getLanguage() ) then
- if ( detailedView ) then
- tempDisplayList( n ).Name = implementations( n ).getLogicalName() + &quot; [&quot; + implementations( n ).getFunctionName() + &quot;]&quot;
- tempDisplayList( n ).Value = implementations( n )
- else
- tempDisplayList( n ).Name = implementations( n ).getLogicalName()
- tempDisplayList( n ).Value = implementations( n )
+ logicalName = implementations( n ).getLogicalName()
+ firstTwoChars = LEFT( logicalName, 2 )
+ &apos;Only display scripts whose logicalnames don&apos;t begin with &quot;_$&quot;
+ if ( firstTwoChars &lt;&gt; reservedScriptTag ) then
+ if ( lang = implementations( n ).getLanguage() ) then
+ if ( detailedView ) then
+ tempDisplayList( n ).Name = logicalName _
+ + &quot; [&quot; + logicalName + &quot;]&quot;
+ tempDisplayList( n ).Value = implementations( n )
+ else
+ tempDisplayList( n ).Name = logicalName
+ tempDisplayList( n ).Value = implementations( n )
+ endif
+ scriptList.addItem( tempDisplayList( n ).Name, n )
endif
- scriptList.addItem( tempDisplayList( n ).Name, n )
endif
next n
endif