Issue 26676 - API: toolkit.UnoControlContainer::XAccessible
Summary: API: toolkit.UnoControlContainer::XAccessible
Status: CLOSED IRREPRODUCIBLE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: stephan.wunderlich
QA Contact: issues@api
URL:
Keywords: accessibility
Depends on:
Blocks:
 
Reported: 2004-03-18 14:43 UTC by stephan.wunderlich
Modified: 2013-02-24 21:08 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description stephan.wunderlich 2004-03-18 14:43:51 UTC
The method getAccessibleContext return NULL

Just execute the following macro to reproduce
	ucc = createUnoService("com.sun.star.awt.UnoControlContainer")
	accessibleContext = ucc.getAccessibleContext()
	msgbox isNull(accessibleContext)
Comment 1 malte_timmermann 2004-03-20 17:47:01 UTC
TBE...
Comment 2 thomas.benisch 2004-03-23 10:21:48 UTC
accepted
Comment 3 christof.pintaske 2004-06-17 18:16:53 UTC
 cp: retargeted to Office-Later due to limited ressources
Comment 4 stephan.wunderlich 2005-09-20 14:13:07 UTC
changed target
Comment 5 thomas.benisch 2005-09-26 11:47:13 UTC
added keyword accessibility
Comment 6 mdxonefour 2005-09-29 10:58:04 UTC
re-targeted to OOo 3.0
Comment 7 mdxonefour 2005-09-29 13:23:21 UTC
re-targeted back to OOo 2.0.2, the re-targeting to OOo 3.0 was done by error
Comment 8 thomas.benisch 2005-12-19 13:52:08 UTC
The com.sun.star.awt.UnoControlContainer supports the 
com::sun::star::accessibility::XAccessible interface,
but an XAccessibleContext is only returned, if a window
peer exists for the control container. This behaviour
is the same for all com.sun.star.awt toolkit controls.
Please see the macro below, which creates a peer
for the control container.

------------------------------------------------------------------------------

REM  *****  BASIC  *****

Sub Main

    Dim oControlModel As Object
    Dim oControl As Object
    Dim oToolkit As Object
    Dim oContext As Object

    REM create the control model
    oControlModel = CreateUnoService( "com.sun.star.awt.UnoControlContainerModel" )

    REM create the control and set the model
    oControl = CreateUnoService( "com.sun.star.awt.UnoControlContainer" )	
    oControl.setModel( oControlModel )	
	
    REM create a peer
    oToolkit = CreateUnoService( "com.sun.star.awt.Toolkit" )	
    oControl.createPeer( oToolkit, NULL )
	
    REM get the accessible context	
    oContext = oControl.getAccessibleContext()
    MsgBox isNull( oContext )
	
End Sub

------------------------------------------------------------------------------
Comment 9 thomas.benisch 2005-12-19 13:53:24 UTC
TBE->SW: I propose to close this task.
Comment 10 stephan.wunderlich 2005-12-19 14:48:56 UTC
the sample works nicely
Comment 11 stephan.wunderlich 2005-12-19 14:49:31 UTC
closing