Tag: cws_src680_oj14 User: oj Date: 2007-06-04 18:05:41+0000 Log: RESYNC: (1.12-1.13); FILE MERGED
File Changes: Directory: /dba/dbaccess/source/ui/browser/ =========================================== File [changed]: formadapter.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/browser/formadapter.cxx?r1=1.9.4.5&r2=1.9.4.6 Delta lines: +0 -36 -------------------- --- formadapter.cxx 2006-11-07 09:13:21+0000 1.9.4.5 +++ formadapter.cxx 2007-06-04 18:05:37+0000 1.9.4.6 @@ -78,11 +78,6 @@ // SbaXFormAdapter //================================================================== -//------------------------------------------------------------------ -Reference< XInterface > SbaXFormAdapter_CreateInstance(const Reference< ::com::sun::star::lang::XMultiServiceFactory>& /*_rxFactory*/) -{ - return *(new SbaXFormAdapter()); -} DBG_NAME(SbaXFormAdapter) // ------------------------------------------------------------------------- SbaXFormAdapter::SbaXFormAdapter() @@ -1435,37 +1430,6 @@ xCancel->cancel(); } -// Helper -//------------------------------------------------------------------------------ -void SbaXFormAdapter::onError(::com::sun::star::sdbc::SQLException& rException) -{ - // just notify all listeners - if (m_aErrorListeners.getLength()) - { - rException.Context = *this; - - Any aVal; - aVal <<= rException; - ::com::sun::star::sdb::SQLErrorEvent aEvt(*this, aVal); - - ::cppu::OInterfaceIteratorHelper aIt((::cppu::OInterfaceContainerHelper&)m_aErrorListeners); - while (aIt.hasMoreElements()) - ((::com::sun::star::sdb::XSQLErrorListener*)aIt.next())->errorOccured(aEvt); - } -} - -// ------------------------------------------------------------------------- -sal_Bool SbaXFormAdapter::checkMainForm() -{ - if (m_xMainForm.is()) - return sal_True; - - ::com::sun::star::sdbc::SQLException aException; - aException.Message = String(ModuleRes(RID_STR_CONNECTION_LOST)); - onError(aException); - return sal_False; -} - // ::com::sun::star::beans::XPropertyState // ------------------------------------------------------------------------- ::com::sun::star::beans::PropertyState SAL_CALL SbaXFormAdapter::getPropertyState(const ::rtl::OUString& PropertyName) throw( ::com::sun::star::beans::UnknownPropertyException, RuntimeException ) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
