2010-10-27 13:11:31 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-07-06 17:28:37 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2014-05-30 21:07:48 +00:00
|
|
|
|
|
|
|
#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
|
|
|
|
#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
|
|
|
|
|
2005-03-04 08:18:39 +00:00
|
|
|
#include "rtl/ustring.hxx"
|
|
|
|
#include "rtl/ref.hxx"
|
2015-08-29 07:48:41 +09:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2004-05-19 07:28:48 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/uno/XComponentContext.hpp>
|
|
|
|
#include <com/sun/star/lang/XServiceInfo.hpp>
|
|
|
|
#include <com/sun/star/uno/RuntimeException.hpp>
|
|
|
|
#include <com/sun/star/registry/XRegistryKey.hpp>
|
|
|
|
|
2004-10-22 13:07:27 +00:00
|
|
|
#include <com/sun/star/script/provider/XScriptProviderFactory.hpp>
|
|
|
|
#include <com/sun/star/script/provider/XScriptProvider.hpp>
|
2004-05-19 07:28:48 +00:00
|
|
|
|
2004-12-23 10:50:41 +00:00
|
|
|
#include "ActiveMSPList.hxx"
|
|
|
|
|
2004-05-19 07:28:48 +00:00
|
|
|
namespace func_provider
|
|
|
|
{
|
|
|
|
|
|
|
|
class MasterScriptProviderFactory :
|
2015-08-29 07:48:41 +09:00
|
|
|
public ::cppu::WeakImplHelper <
|
2004-10-22 13:07:27 +00:00
|
|
|
css::script::provider::XScriptProviderFactory,
|
2004-05-19 07:28:48 +00:00
|
|
|
css::lang::XServiceInfo >
|
|
|
|
{
|
|
|
|
private:
|
2004-12-23 10:50:41 +00:00
|
|
|
|
2005-03-04 08:18:39 +00:00
|
|
|
mutable rtl::Reference< ActiveMSPList > m_MSPList;
|
2004-12-23 10:50:41 +00:00
|
|
|
|
2005-03-04 08:18:39 +00:00
|
|
|
const css::uno::Reference< css::uno::XComponentContext > m_xComponentContext;
|
2004-12-23 10:50:41 +00:00
|
|
|
|
2005-03-04 08:18:39 +00:00
|
|
|
const rtl::Reference< ActiveMSPList > & getActiveMSPList() const;
|
2004-12-23 10:50:41 +00:00
|
|
|
|
2004-05-19 07:28:48 +00:00
|
|
|
protected:
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~MasterScriptProviderFactory() override;
|
2004-05-19 07:28:48 +00:00
|
|
|
|
|
|
|
public:
|
2015-11-02 09:52:33 +00:00
|
|
|
explicit MasterScriptProviderFactory(
|
2004-05-19 07:28:48 +00:00
|
|
|
css::uno::Reference< css::uno::XComponentContext > const & xComponentContext );
|
|
|
|
|
|
|
|
// XServiceInfo
|
2017-01-26 12:28:58 +01:00
|
|
|
virtual OUString SAL_CALL getImplementationName() override;
|
2004-05-19 07:28:48 +00:00
|
|
|
|
|
|
|
virtual sal_Bool SAL_CALL
|
2017-01-26 12:28:58 +01:00
|
|
|
supportsService( OUString const & serviceName ) override;
|
2004-05-19 07:28:48 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL
|
2017-01-26 12:28:58 +01:00
|
|
|
getSupportedServiceNames() override;
|
2004-05-19 07:28:48 +00:00
|
|
|
|
|
|
|
// XScriptProviderFactory
|
2004-10-22 13:07:27 +00:00
|
|
|
virtual css::uno::Reference< css::script::provider::XScriptProvider >
|
2017-01-26 12:28:58 +01:00
|
|
|
SAL_CALL createScriptProvider( const css::uno::Any& context ) override;
|
2004-05-19 07:28:48 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace func_provider
|
2010-10-27 13:11:31 +01:00
|
|
|
|
2014-05-30 21:07:48 +00:00
|
|
|
#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_MASTERSCRIPTPROVIDERFACTORY_HXX
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|