INTEGRATION: CWS dba203c (1.2.12); FILE MERGED

2006/04/20 07:47:38 fs 1.2.12.3: #i64196# use FormController as secondary component only if it's really a form
2006/04/20 07:17:03 fs 1.2.12.2: proper fix for #ii64511#: XRowSetListener is in sdbc, not sdb
2006/04/19 13:33:11 fs 1.2.12.1: #i64511# proper event name in AddEvent call
This commit is contained in:
Rüdiger Timm 2006-05-04 08:01:11 +00:00
parent 20e1bb9731
commit 7b7166a29e

View file

@ -4,9 +4,9 @@
*
* $RCSfile: eventhandler.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2006-03-14 11:22:12 $
* last change: $Author: rt $ $Date: 2006-05-04 09:01:11 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@ -301,9 +301,9 @@ namespace pcr
DESCRIBE_EVENT( "form", "XLoadListener", "unloaded", UNLOADED );
DESCRIBE_EVENT( "form", "XConfirmDeleteListener", "confirmDelete", CONFIRMDELETE );
DESCRIBE_EVENT( "sdb", "XRowSetApproveListener", "approveRowChange", APPROVEROWCHANGE );
DESCRIBE_EVENT( "sdb", "XRowSetListener", "rowChanged", ROWCHANGE );
DESCRIBE_EVENT( "sdbc", "XRowSetListener", "rowChanged", ROWCHANGE );
DESCRIBE_EVENT( "sdb", "XRowSetApproveListener", "approveCursorMove", POSITIONING );
DESCRIBE_EVENT( "sdb", "XRowSetListener", "cursorMoved", POSITIONED );
DESCRIBE_EVENT( "sdbc", "XRowSetListener", "cursorMoved", POSITIONED );
DESCRIBE_EVENT( "form", "XDatabaseParameterListener", "approveParameter", APPROVEPARAMETER );
DESCRIBE_EVENT( "sdb", "XSQLErrorListener", "errorOccured", ERROROCCURED );
DESCRIBE_EVENT( "awt", "XAdjustmentListener", "adjustmentValueChanged", ADJUSTMENTVALUECHANGED );
@ -830,7 +830,7 @@ namespace pcr
++event
)
{
// the script which is assigned to the current event (if any
// the script which is assigned to the current event (if any)
::rtl::OUString sAssignedMacroURL = lcl_getAssignedMacroURL( event->second, aAssignedEvents );
pEventHolder->AddEvent( event->second.nId, event->second.sListenerMethodName, sAssignedMacroURL );
@ -1010,9 +1010,12 @@ namespace pcr
lcl_addListenerTypesFor_throw(
m_xComponent, xIntrospection, aListeners );
// --- control listeners
lcl_addListenerTypesFor_throw(
impl_getSecondaryComponentForEventInspection_throw(), xIntrospection, aListeners );
// --- "secondary component" (usually: "control" listeners)
{
Reference< XInterface > xSecondaryComponent( impl_getSecondaryComponentForEventInspection_throw() );
lcl_addListenerTypesFor_throw( xSecondaryComponent, xIntrospection, aListeners );
::comphelper::disposeComponent( xSecondaryComponent );
}
// now that they're disambiguated, copy these types into our member
_out_rTypes.realloc( aListeners.size() );
@ -1055,9 +1058,10 @@ namespace pcr
Reference< XInterface > xReturn;
// if it's a form, create a form controller for the additional events
Reference< XTabControllerModel > xComponentAsTCModel( m_xComponent, UNO_QUERY );
if ( xComponentAsTCModel.is() )
Reference< XForm > xComponentAsForm( m_xComponent, UNO_QUERY );
if ( xComponentAsForm.is() )
{
Reference< XTabControllerModel > xComponentAsTCModel( m_xComponent, UNO_QUERY_THROW );
Reference< XFormController > xController(
m_aContext.createComponent( (const rtl::OUString&)SERVICE_FORMCONTROLLER ), UNO_QUERY_THROW );
xController->setModel( xComponentAsTCModel );