diff options
author | Noel Power <npower@openoffice.org> | 2003-03-05 07:56:18 +0000 |
---|---|---|
committer | Noel Power <npower@openoffice.org> | 2003-03-05 07:56:18 +0000 |
commit | 95e8723c6650ca613ee67330c06feed7806eafb3 (patch) | |
tree | 249ac8970f01fdf8c5a2ac2d8b9abfa9a89dfb99 /scripting/workben | |
parent | eb941a623775db0285a7be0f51fd8382c926afbb (diff) |
Bug #12024, should not display framework helper scripts in assign dialogs.
Diffstat (limited to 'scripting/workben')
-rw-r--r-- | scripting/workben/bindings/ScriptBinding.xba | 24 |
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 = "_$" if ( length > -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() + " [" + implementations( n ).getFunctionName() + "]" - 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 ) + 'Only display scripts whose logicalnames don't begin with "_$" + if ( firstTwoChars <> reservedScriptTag ) then + if ( lang = implementations( n ).getLanguage() ) then + if ( detailedView ) then + tempDisplayList( n ).Name = logicalName _ + + " [" + logicalName + "]" + 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 |