incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 121308] New: ActionTriggerContainer.createInstance ("com.sun.star.ui.ActionTrigger") creates an actionTrigger with no PropertySet interfaces
Date Sat, 03 Nov 2012 19:50:00 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=121308

          Priority: P3
            Bug ID: 121308
          Assignee: ooo-issues@incubator.apache.org
           Summary: ActionTriggerContainer.createInstance
                    ("com.sun.star.ui.ActionTrigger") creates an
                    actionTrigger with no PropertySet interfaces
          Severity: normal
        Issue Type: DEFECT
    Classification: Unclassified
                OS: Linux32
          Reporter: ahzeeman@yahoo.ca
          Hardware: PC
            Status: UNCONFIRMED
           Version: AOO 3.4.1
         Component: api
           Product: app dev

Using the createInstanceService of ActionTriggerContainer creates an
ActionTrigger with no PropertySet methods.  The properties are shown as
existing, but there is no way to change them using Basic.

Properties shown:

SbxOBJECT SourceWindow
SbxOBJECT ExecutePosition
SbxOBJECT ActionTriggerContainer
SbxOBJECT Selection
SbxSTRING Dbg_SupportedInterfaces
SbxSTRING Dbg_Properties
SbxSTRING Dbg_Methods

Methods shown:

No methods found

Debug supported interfaces shown:

Dbg_SupportedInterfaces not available.
(TypeClass is not TypeClass_INTERFACE)


Function MenuOverride_notifyContextMenuExecute(oActionTrigger)    
    dim oNewMenuItem
    oNewMenuItem = oActionTrigger.ActionTriggerContainer.createInstance
("com.sun.star.ui.ActionTrigger")
    'The 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.

Mime
View raw message