2002-06-12 10:43:30 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* $RCSfile: backendfactory.hxx,v $
|
|
|
|
* $Revision: 1.7 $
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* 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.
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* 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).
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
2008-04-11 06:41:53 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2002-06-12 10:43:30 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef CONFIGMGR_BACKENDFACTORY_HXX_
|
|
|
|
#define CONFIGMGR_BACKENDFACTORY_HXX_
|
|
|
|
|
|
|
|
#include <rtl/ref.hxx>
|
2003-03-19 09:20:19 -06:00
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
2003-04-17 07:27:47 -05:00
|
|
|
#include <com/sun/star/configuration/backend/XBackend.hpp>
|
2002-06-12 10:43:30 -05:00
|
|
|
|
|
|
|
namespace configmgr
|
|
|
|
{
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace backend
|
|
|
|
{
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
struct IMergedDataProvider;
|
|
|
|
//-----------------------------------------------------------------------------
|
2003-03-19 09:20:19 -06:00
|
|
|
class BackendFactory
|
2002-06-12 10:43:30 -05:00
|
|
|
{
|
2003-03-19 09:20:19 -06:00
|
|
|
public:
|
|
|
|
rtl::Reference<IMergedDataProvider> createBackend();
|
|
|
|
|
2008-10-29 09:38:47 -05:00
|
|
|
com::sun::star::uno::Reference< com::sun::star::configuration::backend::XBackend > getUnoBackend();
|
2002-06-12 10:43:30 -05:00
|
|
|
|
2008-10-29 09:38:47 -05:00
|
|
|
static BackendFactory instance(com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & _xCtx);
|
2002-10-24 09:42:16 -05:00
|
|
|
|
2003-03-19 09:20:19 -06:00
|
|
|
private:
|
|
|
|
explicit
|
2008-10-29 09:38:47 -05:00
|
|
|
BackendFactory(com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > const & _xCtx)
|
2003-03-19 09:20:19 -06:00
|
|
|
: m_xCtx(_xCtx)
|
|
|
|
{}
|
2002-10-24 09:42:16 -05:00
|
|
|
|
2008-10-29 09:38:47 -05:00
|
|
|
com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > m_xCtx;
|
2002-06-12 10:43:30 -05:00
|
|
|
};
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
}
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|