Tag: cws_src680_rptchart01 User: oj Date: 2008-02-19 07:35:32+0000 Removed: dba/dbaccess/source/inc/dba_reghelper.hxx dba/dbaccess/source/shared/dba_reghelper.cxx
Modified: dba/dbaccess/source/core/dataaccess/connection.cxx dba/dbaccess/source/core/dataaccess/connection.hxx dba/dbaccess/source/core/dataaccess/datasource.hxx dba/dbaccess/source/core/dataaccess/documentdefinition.cxx dba/dbaccess/source/core/misc/makefile.mk dba/dbaccess/source/core/misc/services.cxx Log: RESYNC: (1.53-1.54); FILE MERGED File Changes: Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: connection.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/connection.cxx?r1=1.53.32.1&r2=1.53.32.2 Delta lines: +6 -5 ------------------- --- connection.cxx 2008-02-13 07:45:37+0000 1.53.32.1 +++ connection.cxx 2008-02-19 07:34:35+0000 1.53.32.2 @@ -361,6 +361,7 @@ ,m_pTables(NULL) ,m_pViews(NULL) ,m_aWarnings( Reference< XWarningsSupplier >( _rxMaster, UNO_QUERY ) ) + ,m_nInAppend(0) ,m_bSupportsViews(sal_False) ,m_bSupportsUsers(sal_False) ,m_bSupportsGroups(sal_False) @@ -398,7 +399,7 @@ { } Reference< XNameContainer > xTableDefinitions(_rDB.getTables(),UNO_QUERY); - m_pTables = new OTableContainer( *this, m_aMutex, this, bCase, xTableDefinitions, this, &m_aWarnings ); + m_pTables = new OTableContainer( *this, m_aMutex, this, bCase, xTableDefinitions, this, &m_aWarnings,m_nInAppend ); // check if we supports types if ( xMeta.is() ) @@ -428,7 +429,7 @@ } if(m_bSupportsViews) { - m_pViews = new OViewContainer(*this, m_aMutex, this, bCase,this,&m_aWarnings); + m_pViews = new OViewContainer(*this, m_aMutex, this, bCase,this,&m_aWarnings,m_nInAppend); m_pViews->addContainerListener(m_pTables); m_pTables->addContainerListener(m_pViews); } Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: connection.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/connection.hxx?r1=1.25.202.1&r2=1.25.202.2 Delta lines: +4 -3 ------------------- --- connection.hxx 2008-02-13 07:45:37+0000 1.25.202.1 +++ connection.hxx 2008-02-19 07:34:39+0000 1.25.202.2 @@ -160,6 +160,7 @@ OTableContainer* m_pTables; OViewContainer* m_pViews; WarningsContainer m_aWarnings; + oslInterlockedCount m_nInAppend; sal_Bool m_bSupportsViews; // true when the getTableTypes return "VIEW" as type sal_Bool m_bSupportsUsers; sal_Bool m_bSupportsGroups; Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: datasource.hxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/datasource.hxx?r1=1.37.222.1&r2=1.37.222.2 Delta lines: +7 -18 -------------------- --- datasource.hxx 2008-01-24 12:19:14+0000 1.37.222.1 +++ datasource.hxx 2008-02-19 07:34:42+0000 1.37.222.2 @@ -45,9 +45,6 @@ #ifndef _COM_SUN_STAR_SDBC_XDATASOURCE_HPP_ #include <com/sun/star/sdbc/XDataSource.hpp> #endif -#ifndef _COM_SUN_STAR_LANG_XMULTISERVICEFACTORY_HPP_ -#include <com/sun/star/lang/XMultiServiceFactory.hpp> -#endif #ifndef _COM_SUN_STAR_CONTAINER_XCONTAINERLISTENER_HPP_ #include <com/sun/star/container/XContainerListener.hpp> #endif @@ -90,9 +87,6 @@ #ifndef _DBASHARED_APITOOLS_HXX_ #include "apitools.hxx" #endif -#ifndef _DBA_REGHELPER_HXX_ -#include "dba_reghelper.hxx" -#endif #ifndef _DBA_CORE_BOOKMARKCONTAINER_HXX_ #include "bookmarkcontainer.hxx" #endif @@ -153,9 +147,6 @@ //============================================================ //= ODatabaseSource //============================================================ -::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > - ODatabaseSource_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&); - typedef ::cppu::ImplHelper11 < ::com::sun::star::lang::XServiceInfo , ::com::sun::star::sdbc::XDataSource , ::com::sun::star::sdb::XBookmarksSupplier @@ -179,8 +170,6 @@ friend class ODatabaseContext; friend class OConnection; friend class OSharedConnectionManager; - friend ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > - ODatabaseSource_CreateInstance(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&); private: @@ -193,7 +182,7 @@ virtual ~ODatabaseSource(); public: - ODatabaseSource(const ::rtl::Reference<ODatabaseModelImpl>& _pImpl); + ODatabaseSource( const ::rtl::Reference< ODatabaseModelImpl >& _pImpl ); // XContainerListener virtual void SAL_CALL elementInserted( const ::com::sun::star::container::ContainerEvent& Event ) throw (::com::sun::star::uno::RuntimeException); @@ -217,10 +206,10 @@ virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames( ) throw(::com::sun::star::uno::RuntimeException); // ::com::sun::star::lang::XServiceInfo - static methods - static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_Static(void) throw( ::com::sun::star::uno::RuntimeException ); - static ::rtl::OUString getImplementationName_Static(void) throw( ::com::sun::star::uno::RuntimeException ); + static ::com::sun::star::uno::Sequence< ::rtl::OUString > getSupportedServiceNames_static(void) throw( ::com::sun::star::uno::RuntimeException ); + static ::rtl::OUString getImplementationName_static(void) throw( ::com::sun::star::uno::RuntimeException ); static ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > - SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&); + SAL_CALL Create(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >&); // OComponentHelper virtual void SAL_CALL disposing(void); Directory: /dba/dbaccess/source/core/dataaccess/ ================================================ File [changed]: documentdefinition.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/dataaccess/documentdefinition.cxx?r1=1.50.28.1&r2=1.50.28.2 Delta lines: +199 -37 ---------------------- --- documentdefinition.cxx 2008-02-13 07:45:37+0000 1.50.28.1 +++ documentdefinition.cxx 2008-02-19 07:34:48+0000 1.50.28.2 @@ -292,7 +292,8 @@ { Reference< XEmbeddedObject > m_xBroadCaster; ODocumentDefinition* m_pDefinition; - sal_Bool m_bInStateChange; + bool m_bInStateChange; + bool m_bInChangingState; protected: virtual void SAL_CALL disposing(); public: @@ -300,7 +301,8 @@ : TEmbedObjectHolder(m_aMutex) ,m_xBroadCaster(_xBroadCaster) ,m_pDefinition(_pDefinition) - ,m_bInStateChange(sal_False) + ,m_bInStateChange(false) + ,m_bInChangingState(false) { osl_incrementInterlockedCount( &m_refCount ); { @@ -323,22 +325,28 @@ m_pDefinition = NULL; } //------------------------------------------------------------------ - void SAL_CALL OEmbedObjectHolder::changingState( const ::com::sun::star::lang::EventObject& /*aEvent*/, ::sal_Int32 /*nOldState*/, ::sal_Int32 /*nNewState*/ ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) + void SAL_CALL OEmbedObjectHolder::changingState( const ::com::sun::star::lang::EventObject& /*aEvent*/, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::embed::WrongStateException, ::com::sun::star::uno::RuntimeException) { + if ( !m_bInChangingState && nNewState == EmbedStates::RUNNING && nOldState == EmbedStates::ACTIVE && m_pDefinition ) + { + m_bInChangingState = true; + //m_pDefinition->save(sal_False); + m_bInChangingState = false; + } } //------------------------------------------------------------------ void SAL_CALL OEmbedObjectHolder::stateChanged( const ::com::sun::star::lang::EventObject& aEvent, ::sal_Int32 nOldState, ::sal_Int32 nNewState ) throw (::com::sun::star::uno::RuntimeException) { if ( !m_bInStateChange && nNewState == EmbedStates::RUNNING && nOldState == EmbedStates::ACTIVE && m_pDefinition ) { - m_bInStateChange = sal_True; + m_bInStateChange = true; Reference<XInterface> xInt(static_cast< ::cppu::OWeakObject* >(m_pDefinition),UNO_QUERY); { Reference<XEmbeddedObject> xEmbeddedObject(aEvent.Source,UNO_QUERY); if ( xEmbeddedObject.is() ) xEmbeddedObject->changeState(EmbedStates::LOADED); } - m_bInStateChange = sal_False; + m_bInStateChange = false; } } //------------------------------------------------------------------ @@ -848,12 +856,6 @@ Reference< XConnection > xConnection; sal_Int32 nOpenMode = OpenMode::DOCUMENT; - // our own macro execution mode - // Note that we don't pass an interaction handler here. If the user has not been asked/notified - // by now (i.e. during loading the whole DB document), then this won't happen anymore. - bool bExecuteOwnMacros = m_pImpl->m_pDataSource->adjustMacroMode_AutoReject(); - sal_Int16 nDocumentMacroMode = MacroExecMode::ALWAYS_EXECUTE_NO_WARN; - ::comphelper::NamedValueCollection aDocumentArgs; // for the document, default to the interaction handler as used for loading the DB doc @@ -861,6 +863,8 @@ ::comphelper::NamedValueCollection aDBDocArgs( m_pImpl->m_pDataSource->m_aArgs ); aDocumentArgs.put( "InteractionHandler", aDBDocArgs.getOrDefault( "InteractionHandler", Reference< XInteractionHandler >() ) ); + ::boost::optional< sal_Int16 > aDocumentMacroMode; + if ( !lcl_extractOpenMode( _rOpenArgument, nOpenMode ) ) { Sequence< PropertyValue > aArguments; @@ -870,7 +874,7 @@ const PropertyValue* pEnd = pIter + aArguments.getLength(); for ( ;pIter != pEnd; ++pIter ) { - if ( pIter->Name == PROPERTY_ACTIVECONNECTION ) + if ( pIter->Name == PROPERTY_ACTIVE_CONNECTION ) { xConnection.set( pIter->Value, UNO_QUERY ); continue; @@ -881,7 +885,9 @@ if ( pIter->Name.equalsAscii( "MacroExecutionMode" ) ) { - OSL_VERIFY( pIter->Value >>= nDocumentMacroMode ); + sal_Int16 nMacroExecMode( *aDocumentMacroMode ); + OSL_VERIFY( pIter->Value >>= nMacroExecMode ); + aDocumentMacroMode.reset( nMacroExecMode ); continue; } @@ -891,20 +897,54 @@ } } + // our database document's macro execution mode + // Note that we don't pass an interaction handler here. If the user has not been asked/notified + // by now (i.e. during loading the whole DB document), then this won't happen anymore. + bool bExecuteDBDocMacros = m_pImpl->m_pDataSource->adjustMacroMode_AutoReject(); + // allow the command arguments to downgrade the macro execution mode, but not to upgrade // it - if ( !bExecuteOwnMacros ) + if ( ( m_pImpl->m_pDataSource->getImposedMacroExecMode() == MacroExecMode::USE_CONFIG ) + && bExecuteDBDocMacros + ) { - // no macros per DB doc -> no macros in the embedded doc - nDocumentMacroMode = MacroExecMode::NEVER_EXECUTE; + // while loading the whole database document, USE_CONFIG, or *no* macro exec mode was passed. + // Additionally, *by now* executing macros from the DB doc is allowed (this is what bExecuteDBDocMacros + // indicates). This means either one of: + // 1. The DB doc or one of the sub docs contained macros and + // 1a. the user explicitly allowed executing them + // 1b. the configuration allows executing them without asking the user + // 2. Neither the DB doc nor the sub docs contained macros, thus macro + // execution was silently enabled, assuming that any macro will be a + // user-created macro + // + // The problem with this: If the to-be-opened sub document has macros embedded in + // the content.xml (which is valid ODF, but normally not produced by OOo itself), + // then this has not been detecte while loading the database document - it would + // be too expensive, as it effectively would require loading all forms/reports. + // + // So, in such a case, and with 2. above, we would silently execute those macros, + // regardless of the global security settings - which would be a security issue, of + // course. + if ( !m_pImpl->m_pDataSource->hasAnyObjectWithMacros() ) + { + // this is case 2. from above (not *exactly*, but sufficiently) + // So, pass a USE_CONFIG to the to-be-loaded document. This means that + // the user will be prompted with a security message upon opening this + // sub document, in case the settings require this, *and* the document + // contains scripts in the content.xml. But this is better than the security + // issue we had before ... + aDocumentMacroMode.reset( MacroExecMode::USE_CONFIG ); } - else - { - // DB doc allows macros -> allow macros in the embedded doc, unless explicitly prohibited - if ( nDocumentMacroMode != MacroExecMode::NEVER_EXECUTE ) - nDocumentMacroMode = MacroExecMode::ALWAYS_EXECUTE_NO_WARN; } - aDocumentArgs.put( "MacroExecutionMode", nDocumentMacroMode ); + + if ( !aDocumentMacroMode ) + { + // nobody so far felt responsible for setting it + // => use the DBDoc-wide macro exec mode for the document, too + aDocumentMacroMode.reset( bExecuteDBDocMacros ? MacroExecMode::ALWAYS_EXECUTE_NO_WARN : MacroExecMode::NEVER_EXECUTE ); + } + aDocumentArgs.put( "MacroExecutionMode", *aDocumentMacroMode ); if ( xConnection.is() ) @@ -1065,6 +1105,13 @@ notifyDataSourceModified(); } } + else if ( aCommand.Name.compareToAscii( "shutdown" ) == 0 ) + { + bool bClose = prepareClose(); + if ( bClose && m_xEmbeddedObject.is() ) + m_xEmbeddedObject->changeState(EmbedStates::LOADED); + aRet <<= bClose; + } else aRet = OContentHelper::execute(aCommand,CommandId,Environment); } @@ -1263,6 +1310,112 @@ } } + ::osl::MutexGuard aGuard(m_aMutex); + Reference<XEmbedPersist> xPersist(m_xEmbeddedObject,UNO_QUERY); + if ( xPersist.is() ) + { + xPersist->storeOwn(); + notifyDataSourceModified(); + } + } + catch(Exception&) + { + OSL_ENSURE(0,"ODocumentDefinition::save: caught an Exception (tried to let the InteractionHandler handle it)!"); + } + return sal_True; +} +// ----------------------------------------------------------------------------- +sal_Bool ODocumentDefinition::saveAs() +{ + // default handling: instantiate an interaction handler and let it handle the parameter request + if ( !m_bOpenInDesign ) + return sal_False; + try + { + { + ::vos::OGuard aSolarGuard(Application::GetSolarMutex()); + + // the request + Reference<XNameAccess> xName(m_xParentContainer,UNO_QUERY); + DocumentSaveRequest aRequest; + aRequest.Name = m_pImpl->m_aProps.aTitle; + if ( !aRequest.Name.getLength() ) + { + if ( m_bForm ) + aRequest.Name = DBACORE_RESSTRING( RID_STR_FORM ); + else + aRequest.Name = DBACORE_RESSTRING( RID_STR_REPORT ); + aRequest.Name = ::dbtools::createUniqueName(xName,aRequest.Name); + } + + aRequest.Content.set(m_xParentContainer,UNO_QUERY); + OInteractionRequest* pRequest = new OInteractionRequest(makeAny(aRequest)); + Reference< XInteractionRequest > xRequest(pRequest); + // some knittings + // two continuations allowed: OK and Cancel + ODocumentSaveContinuation* pDocuSave = new ODocumentSaveContinuation; + pRequest->addContinuation(pDocuSave); + OInteraction< XInteractionDisapprove >* pDisApprove = new OInteraction< XInteractionDisapprove >; + pRequest->addContinuation(pDisApprove); + OInteractionAbort* pAbort = new OInteractionAbort; + pRequest->addContinuation(pAbort); + + // create the handler, let it handle the request + Reference< XInteractionHandler > xHandler(m_aContext.createComponent(::rtl::OUString(SERVICE_SDB_INTERACTION_HANDLER)), UNO_QUERY); + if ( xHandler.is() ) + xHandler->handle(xRequest); + + if ( pAbort->wasSelected() ) + return sal_False; + if ( pDisApprove->wasSelected() ) + return sal_True; + if ( pDocuSave->wasSelected() ) + { + ::osl::MutexGuard aGuard(m_aMutex); + Reference<XNameContainer> xNC(pDocuSave->getContent(),UNO_QUERY); + if ( xNC.is() ) + { + try + { + Reference< XStorage> xStorage = getStorage(); + const static ::rtl::OUString sBaseName(RTL_CONSTASCII_USTRINGPARAM("Obj")); + // ----------------------------------------------------------------------------- + Reference<XNameAccess> xElements(xStorage,UNO_QUERY_THROW); + ::rtl::OUString sPersistentName = ::dbtools::createUniqueName(xElements,sBaseName); + xStorage->copyElementTo(m_pImpl->m_aProps.sPersistentName,xStorage,sPersistentName); + + ::rtl::OUString sOldName = m_pImpl->m_aProps.aTitle; + rename(pDocuSave->getName()); + updateDocumentTitle(); + + Sequence< Any > aArguments(3); + PropertyValue aValue; + // set as folder + aValue.Name = PROPERTY_NAME; + aValue.Value <<= sOldName; + aArguments[0] <<= aValue; + + aValue.Name = PROPERTY_PERSISTENT_NAME; + aValue.Value <<= sPersistentName; + aArguments[1] <<= aValue; + + aValue.Name = PROPERTY_AS_TEMPLATE; + aValue.Value <<= m_pImpl->m_aProps.bAsTemplate; + aArguments[2] <<= aValue; + + Reference< XMultiServiceFactory > xORB( m_xParentContainer, UNO_QUERY_THROW ); + Reference< XInterface > xComponent( xORB->createInstanceWithArguments( SERVICE_SDB_DOCUMENTDEFINITION, aArguments ) ); + Reference< XNameContainer > xNameContainer( m_xParentContainer, UNO_QUERY_THROW ); + xNameContainer->insertByName( sOldName, makeAny( xComponent ) ); + } + catch(Exception&) + { + DBG_UNHANDLED_EXCEPTION(); + } + } + } + } + } catch(Exception&) @@ -1389,12 +1542,12 @@ sDocumentService = GetDocumentServiceFromMediaType( xStorage, m_pImpl->m_aProps.sPersistentName, m_aContext.getLegacyServiceFactory(), aClassID ); // check if we are not a form and // the com.sun.star.report.pentaho.SOReportJobFactory is not present. - if (m_bForm == 0 /* MAGIC! */ && !sDocumentService.equalsAscii("com.sun.star.text.TextDocument")) + if ( !m_bForm && !sDocumentService.equalsAscii("com.sun.star.text.TextDocument")) { // we seems to be a new report, check if report extension is present. Reference< XContentEnumerationAccess > xEnumAccess( m_aContext.getLegacyServiceFactory(), UNO_QUERY ); - static ::rtl::OUString s_sReportDesign(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.report.pentaho.SOReportJobFactory")); - Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(s_sReportDesign); + const ::rtl::OUString sReportEngineServiceName = ::dbtools::getDefaultReportEngineServiceName(m_aContext.getLegacyServiceFactory()); + Reference< XEnumeration > xEnumDrivers = xEnumAccess->createContentEnumeration(sReportEngineServiceName); if ( !xEnumDrivers.is() || !xEnumDrivers->hasMoreElements() ) { com::sun::star::io::WrongFormatException aWFE; @@ -1651,7 +1804,15 @@ // controller vetoed the closing return false; - if ( isModified() && !save( sal_True ) ) + if ( isModified() ) + { + Reference< XFrame > xFrame( xController->getFrame() ); + if ( xFrame.is() ) + { + Reference< XTopWindow > xTopWindow( xFrame->getContainerWindow(), UNO_QUERY_THROW ); + xTopWindow->toFront(); + } + if ( !save( sal_True ) ) { if ( bCouldSuspend ) // revert suspension @@ -1660,6 +1821,7 @@ return false; } } + } catch( const Exception& ) { DBG_UNHANDLED_EXCEPTION(); Directory: /dba/dbaccess/source/core/misc/ ========================================== File [changed]: makefile.mk Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/makefile.mk?r1=1.15.130.1&r2=1.15.130.2 Delta lines: +6 -5 ------------------- --- makefile.mk 2008-01-24 12:15:10+0000 1.15.130.1 +++ makefile.mk 2008-02-19 07:34:51+0000 1.15.130.2 @@ -56,8 +56,9 @@ $(SLO)$/ContainerListener.obj \ $(SLO)$/objectnameapproval.obj \ $(SLO)$/warnings.obj \ - $(SLO)$/veto.obj \ - $(SLO)$/DatabaseDataProvider.obj + $(SLO)$/DatabaseDataProvider.obj \ + $(SLO)$/module_dba.obj \ + $(SLO)$/veto.obj # --- Targets ---------------------------------- Directory: /dba/dbaccess/source/core/misc/ ========================================== File [changed]: services.cxx Url: http://dba.openoffice.org/source/browse/dba/dbaccess/source/core/misc/services.cxx?r1=1.14.70.1&r2=1.14.70.2 Delta lines: +13 -15 --------------------- --- services.cxx 2008-01-24 12:15:10+0000 1.14.70.1 +++ services.cxx 2008-02-19 07:34:54+0000 1.14.70.2 @@ -36,16 +36,10 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_dbaccess.hxx" -#ifndef _CPPUHELPER_FACTORY_HXX_ #include <cppuhelper/factory.hxx> -#endif #include <cppuhelper/implementationentry.hxx> -#ifndef _OSL_DIAGNOSE_H_ +#include "module_dba.hxx" #include <osl/diagnose.h> -#endif -#ifndef _DBA_REGHELPER_HXX_ -#include "dba_reghelper.hxx" -#endif #include "DatabaseDataProvider.hxx" /********************************************************************************************/ @@ -64,6 +58,7 @@ extern "C" void SAL_CALL createRegistryInfo_ODatabaseDocument(); extern "C" void SAL_CALL createRegistryInfo_ODatabaseSource(); extern "C" void SAL_CALL createRegistryInfo_OPropertyBag(); +extern "C" void SAL_CALL createRegistryInfo_DataAccessDescriptorFactory(); namespace { //-------------------------------------------------------------------------- @@ -91,6 +86,7 @@ createRegistryInfo_ODatabaseDocument(); createRegistryInfo_ODatabaseSource(); createRegistryInfo_OPropertyBag(); + createRegistryInfo_DataAccessDescriptorFactory(); bInit = sal_True; } } @@ -115,12 +111,14 @@ if (pRegistryKey) try { - return ::dbaccess::OModuleRegistration::writeComponentInfos(static_cast<XMultiServiceFactory*>(pServiceManager),static_cast<XRegistryKey*>(pRegistryKey)) + return ::dba::DbaModule::getInstance().writeComponentInfos( + static_cast< XMultiServiceFactory* >( pServiceManager ), + static_cast< XRegistryKey* >( pRegistryKey ) ) && cppu::component_writeInfoHelper(pServiceManager, pRegistryKey, entries); } catch (InvalidRegistryException& ) { - OSL_ENSURE(sal_False, "DBA::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !"); + OSL_ENSURE( false, "DBA::component_writeInfo : could not create a registry key ! ## InvalidRegistryException !" ); } return sal_False; @@ -135,9 +133,9 @@ Reference< XInterface > xRet; if (pServiceManager && pImplementationName) { - xRet = ::dbaccess::OModuleRegistration::getComponentFactory( - ::rtl::OUString::createFromAscii(pImplementationName), - static_cast< XMultiServiceFactory* >(pServiceManager)); + xRet = ::dba::DbaModule::getInstance().getComponentFactory( + ::rtl::OUString::createFromAscii( pImplementationName ), + static_cast< XMultiServiceFactory* >( pServiceManager ) ); } if (xRet.is()) Directory: /dba/dbaccess/source/inc/ ==================================== File [removed]: dba_reghelper.hxx Directory: /dba/dbaccess/source/shared/ ======================================= File [removed]: dba_reghelper.cxx --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
