diff options
author | Frank Schönheit <fs@openoffice.org> | 2002-10-09 13:53:54 +0000 |
---|---|---|
committer | Frank Schönheit <fs@openoffice.org> | 2002-10-09 13:53:54 +0000 |
commit | b0b88d57205a12d4e118901e1fb4f5a0fabb4075 (patch) | |
tree | c693c7e953e9278f148b18b554264e0d2a8b4aeb /forms/source/component/DatabaseForm.cxx | |
parent | db28fbd258f0956a329e5c12dc32406a59704239 (diff) |
#103388# introduced ElementDescription to cache some information (interfaces) about to-be-inserted objects
Diffstat (limited to 'forms/source/component/DatabaseForm.cxx')
-rw-r--r-- | forms/source/component/DatabaseForm.cxx | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index 499331e5da79..c868c44654ee 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -2,9 +2,9 @@ * * $RCSfile: DatabaseForm.cxx,v $ * - * $Revision: 1.48 $ + * $Revision: 1.49 $ * - * last change: $Author: fs $ $Date: 2002-09-13 08:31:08 $ + * last change: $Author: fs $ $Date: 2002-10-09 14:53:54 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -4452,15 +4452,16 @@ void SAL_CALL ODatabaseForm::read(const Reference<XObjectInputStream>& _rxInStre } //------------------------------------------------------------------------------ -void ODatabaseForm::implInserted(const InterfaceRef& _rxObject) +void ODatabaseForm::implInserted( const ElementDescription* _pElement ) { - OFormComponents::implInserted( _rxObject ); + OFormComponents::implInserted( _pElement ); - Reference<XSQLErrorBroadcaster> xBroadcaster(_rxObject, UNO_QUERY); - Reference<XForm> xForm(_rxObject, UNO_QUERY); - if (xBroadcaster.is() && !xForm.is()) + Reference< XSQLErrorBroadcaster > xBroadcaster( _pElement->xInterface, UNO_QUERY ); + Reference< XForm > xForm ( _pElement->xInterface, UNO_QUERY ); + + if ( xBroadcaster.is() && !xForm.is() ) { // the object is an error broadcaster, but no form itself -> add ourself as listener - xBroadcaster->addSQLErrorListener(this); + xBroadcaster->addSQLErrorListener( this ); } } |