To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67068
Issue #|67068
Summary|Services ActionTrigger and ActionTriggerContainer don'
|t implement XTypeProvider
Component|api
Version|OOo 2.0.3
Platform|All
URL|
OS/Version|All
Status|UNCONFIRMED
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|code
Assigned to|jsc
Reported by|leguff
------- Additional comments from [EMAIL PROTECTED] Thu Jul 6 03:17:48 -0700
2006 -------
Hi,
1. implement a com.sun.star.ui.XContextMenuInterceptor
2. register yourself at the controller of a OOoDraw-Document
3. handle the context menu event:
access com.sun.star.ui.XContextMenuInterceptor.ActionTriggerContainer
and create a
com.sun.star.ui.ActionTrigger or com.sun.star.ui.ActionTriggerContainer
with createInstance (XMultiServiceFactory of ActionTriggerContainer)
4. now check com.sun.star.ui.ActionTrigger against the interfaces
- XPropertySet (not null)
- XTypeProvider (null in Java!)
- XServiceInfo (not null)
5. now check com.sun.star.ui.ActionTriggerContainer against the interfaces
- XPropertySet (null in Java!)
- XTypeProvider (null in Java!)
- XServiceInfo (not null)
My understand of services was that EVERYONE must implement XTypeProvider in
order to be usable with OOoBasic.
It is a fact that OOoBasic seems to be able to use the above services partially.
I will attach a OOoDraw-document containing a macro for demonstration.
If you try a similar code with Java you'll see that queryInterface to
XTypeProvider returns null for the both services.
Actually I found an OOoBasic-example for handling context menus. This example
doesn't use the factory methods of the ActionTriggerContainer but use the global
service "com.sun.star.ucb.Store".
(See:
http://codesnippets.services.openoffice.org/Office/Office.ContexMenuInterceptor.snip)
btw.: The problem occurs also with OOo1.1.5, SO7 PP4, SO8 PP3.
bye
Mathias
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]