diff options
author | Noel Power <npower@openoffice.org> | 2003-03-13 06:56:07 +0000 |
---|---|---|
committer | Noel Power <npower@openoffice.org> | 2003-03-13 06:56:07 +0000 |
commit | 5ce3eca124ad6dfb0a24d87078d687eff932b2ad (patch) | |
tree | f5e4abbda318d3064636bf584ca32be22953f4ce /scripting/workben | |
parent | cfca72516976d09266b2eec775383c802d6b9278 (diff) |
#Bug 12136 12135 Code review rework & Format menu issues
Diffstat (limited to 'scripting/workben')
-rw-r--r-- | scripting/workben/bindings/ScriptBinding.xba | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba index 7ca53bd137ec..acc932a3b30c 100644 --- a/scripting/workben/bindings/ScriptBinding.xba +++ b/scripting/workben/bindings/ScriptBinding.xba @@ -572,9 +572,10 @@ sub WriteEventsToDoc() endif 'Otherwise it is a StarBasic binding - leave alone next n - + 'Mark document as modified ( should happen automatically as a result of calling the API ) + ThisComponent.CurrentController.getModel().setModified( True ) exit sub - + ErrorHandler: reset msgbox( "Error calling UNO API for writing event bindings to the document" ) @@ -1003,7 +1004,7 @@ sub PopulateScriptList( lang as String, loc as String ) if ( lang = implementations( n ).getLanguage() ) then if ( detailedView ) then tempDisplayList( n ).Name = logicalName _ - + " [" + logicalName + "]" + + " [" + implementations( n ).getFunctionName() + "]" tempDisplayList( n ).Value = implementations( n ) else tempDisplayList( n ).Name = logicalName @@ -1083,8 +1084,9 @@ sub PopulateSubMenuList( menuItemPosition as integer ) subMenuList.removeItems( 0, subMenuList.getItemCount() ) 'If there are no sub-menus i.e. a dynamically generated menu like Format - if subMenuCount = 1 then - subMenuList.addItem( "Unable to Assign Scripts to this menu", 0 ) + 'if subMenuCount = 1 then + if menuItems( menuItemPosition ) = "Format" then + subMenuList.addItem( "Unable to Assign Scripts to this menu", 0 ) else for n = 1 to subMenuCount - 1 subMenuList.addItem( subMenuItems( n ), n - 1 ) @@ -1775,4 +1777,4 @@ end sub sub HelpOKButton() helpDialog.endExecute() end sub -</script:module> +</script:module>
\ No newline at end of file |