https://bugs.freedesktop.org/show_bug.cgi?id=56725
Priority: medium
Bug ID: 56725
Assignee: [email protected]
Summary: ActionTriggerContainer.createInstance
("com.sun.star.ui.ActionTrigger") creates an
actionTrigger with no PropertySet interfaces
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: All
Status: UNCONFIRMED
Version: 3.5.4 release
Component: BASIC
Product: LibreOffice
ActionTriggerContainer.createInstance ("com.sun.star.ui.ActionTrigger") creates
an ActionTrigger with no methods to change the property values.
DBG_Properties returns the following:
SbxOBJECT SourceWindow
SbxOBJECT ExecutePosition
SbxOBJECT ActionTriggerContainer
SbxOBJECT Selection
SbxSTRING Dbg_SupportedInterfaces
SbxSTRING Dbg_Properties
SbxSTRING Dbg_Methods
DBG_Methods returns the following:
No methods found
DBG_SupportedInterfaces returns the following:
No methods found
Following code will crash:
Function MenuOverride_notifyContextMenuExecute(oActionTrigger)
dim oNewMenuItem
oNewMenuItem = oActionTrigger.ActionTriggerContainer.createInstance
("com.sun.star.ui.ActionTrigger")
'No property set methods available, following code will crash
oNewMenuItem.setPropertyValue("Text", "New Menu Item")
oNewMenuItem.setPropertyValue("CommandURL", "macro:///SomeMacro")
oActionTrigger.ActionTriggerContainer.insertByIndex (0, oNewMenuItem)
MenuOverride_notifyContextMenuExecute =
com.sun.star.ui.ContextMenuInterceptorAction.EXECUTE_MODIFIED
End Function
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs