/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: confapifactory.hxx,v $ * $Revision: 1.19 $ * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef CONFIGMGR_API_FACTORY_HXX_ #define CONFIGMGR_API_FACTORY_HXX_ #include namespace com { namespace sun { namespace star { namespace uno { class XInterface; template class Reference; class XComponentContext; } namespace lang { class XSingleComponentFactory; } } } } namespace rtl { class OUString; } namespace configmgr { namespace uno = ::com::sun::star::uno; namespace lang = ::com::sun::star::lang; extern uno::Reference< lang::XSingleComponentFactory > SAL_CALL createProviderFactory( ::rtl::OUString const & aImplementationName, bool bAdmin ) SAL_THROW( () ); struct ServiceRegistrationInfo; struct SingletonRegistrationInfo; typedef uno::Reference< uno::XComponentContext > CreationContext; // provider instantiation uno::Reference SAL_CALL getDefaultConfigProviderSingleton( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateDefaultProvider( CreationContext const& xContext ); // provider service info const SingletonRegistrationInfo * getDefaultProviderSingletonInfo(); const ServiceRegistrationInfo * getConfigurationProviderServiceInfo(); const ServiceRegistrationInfo * getDefaultProviderServiceInfo(); const ServiceRegistrationInfo * getAdminProviderServiceInfo(); // other services - instantiation and info uno::Reference< uno::XInterface > SAL_CALL instantiateConfigRegistry( CreationContext const& xContext ); const ServiceRegistrationInfo* getConfigurationRegistryServiceInfo(); // bootstrap context support uno::Reference SAL_CALL instantiateBootstrapContext( CreationContext const& xContext ); const SingletonRegistrationInfo * getBootstrapContextSingletonInfo(); const ServiceRegistrationInfo * getBootstrapContextServiceInfo(); namespace xml { uno::Reference< uno::XInterface > SAL_CALL instantiateSchemaParser ( CreationContext const& xContext ); uno::Reference< uno::XInterface > SAL_CALL instantiateLayerParser ( CreationContext const& xContext ); uno::Reference< uno::XInterface > SAL_CALL instantiateLayerWriter ( CreationContext const& xContext ); const ServiceRegistrationInfo* getSchemaParserServiceInfo(); const ServiceRegistrationInfo* getLayerParserServiceInfo(); const ServiceRegistrationInfo* getLayerWriterServiceInfo(); } namespace backend { uno::Reference SAL_CALL getDefaultBackendSingleton( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateDefaultBackend( CreationContext const& xContext ); uno::Reference< uno::XInterface > SAL_CALL instantiateUpdateMerger( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateSingleBackendAdapter( CreationContext const& xContext ); uno::Reference< uno::XInterface > SAL_CALL instantiateMergeImporter( CreationContext const& xContext ); uno::Reference< uno::XInterface > SAL_CALL instantiateCopyImporter( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateMultiStratumBackend( CreationContext const& xContext ); const SingletonRegistrationInfo * getDefaultBackendSingletonInfo(); const ServiceRegistrationInfo * getDefaultBackendServiceInfo(); const ServiceRegistrationInfo * getUpdateMergerServiceInfo(); const ServiceRegistrationInfo * getSingleBackendAdapterServiceInfo(); const ServiceRegistrationInfo * getMergeImportServiceInfo(); const ServiceRegistrationInfo * getCopyImportServiceInfo(); const ServiceRegistrationInfo * getMultiStratumBackendServiceInfo(); } namespace localbe { uno::Reference SAL_CALL instantiateLocalBackend( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalDataImporter( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalHierarchyBrowser( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalSchemaSupplier( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalLegacyStratum( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalDataStratum( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalReadonlyStratum( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalResourceStratum( CreationContext const& xContext ); uno::Reference SAL_CALL instantiateLocalMultiStratum( CreationContext const& xContext ); const ServiceRegistrationInfo * getLocalBackendServiceInfo(); const ServiceRegistrationInfo * getLocalDataImportServiceInfo(); const ServiceRegistrationInfo * getLocalHierarchyBrowserServiceInfo(); const ServiceRegistrationInfo * getLocalSchemaSupplierServiceInfo(); const ServiceRegistrationInfo * getLocalLegacyStratumServiceInfo(); const ServiceRegistrationInfo * getLocalDataStratumServiceInfo(); const ServiceRegistrationInfo * getLocalReadonlyStratumServiceInfo(); const ServiceRegistrationInfo * getLocalResourceStratumServiceInfo(); const ServiceRegistrationInfo * getLocalMultiStratumServiceInfo(); } // localbe } // namespace configmgr #endif // CONFIGMGR_API_FACTORY_HXX_