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 .
|
|
|
|
*/
|
2004-05-19 07:27:57 +00:00
|
|
|
|
2014-05-30 21:07:48 +00:00
|
|
|
#ifndef INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
|
|
|
|
#define INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
|
|
|
|
|
2006-06-19 09:20:39 +00:00
|
|
|
#include <rtl/ustring.hxx>
|
2015-08-29 07:48:41 +09:00
|
|
|
#include <cppuhelper/implbase.hxx>
|
2004-05-19 07:27:57 +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:06:15 +00:00
|
|
|
#include <com/sun/star/script/browse/XBrowseNode.hpp>
|
|
|
|
#include <com/sun/star/script/browse/BrowseNodeTypes.hpp>
|
|
|
|
#include <com/sun/star/script/browse/XBrowseNodeFactory.hpp>
|
2004-05-19 07:27:57 +00:00
|
|
|
|
|
|
|
namespace browsenodefactory
|
|
|
|
{
|
|
|
|
|
|
|
|
class BrowseNodeFactoryImpl :
|
2015-08-29 07:48:41 +09:00
|
|
|
public ::cppu::WeakImplHelper <
|
2004-10-22 13:06:15 +00:00
|
|
|
css::script::browse::XBrowseNodeFactory,
|
2004-05-19 07:27:57 +00:00
|
|
|
css::lang::XServiceInfo >
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
css::uno::Reference< css::uno::XComponentContext > m_xComponentContext;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual ~BrowseNodeFactoryImpl();
|
|
|
|
|
|
|
|
public:
|
2015-11-02 09:52:33 +00:00
|
|
|
explicit BrowseNodeFactoryImpl(
|
2004-05-19 07:27:57 +00:00
|
|
|
css::uno::Reference< css::uno::XComponentContext > const & xComponentContext );
|
|
|
|
|
|
|
|
// XServiceInfo
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual OUString SAL_CALL getImplementationName()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw ( css::uno::RuntimeException, std::exception ) override;
|
2004-05-19 07:27:57 +00:00
|
|
|
|
|
|
|
virtual sal_Bool SAL_CALL
|
2013-04-07 12:06:47 +02:00
|
|
|
supportsService( OUString const & serviceName )
|
2015-10-12 16:04:04 +02:00
|
|
|
throw ( css::uno::RuntimeException, std::exception ) override;
|
2004-05-19 07:27:57 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
virtual css::uno::Sequence< OUString > SAL_CALL
|
2004-05-19 07:27:57 +00:00
|
|
|
getSupportedServiceNames()
|
2015-10-12 16:04:04 +02:00
|
|
|
throw ( css::uno::RuntimeException, std::exception ) override;
|
2004-05-19 07:27:57 +00:00
|
|
|
|
|
|
|
// XBrowseNodeFactory
|
2004-10-22 13:06:15 +00:00
|
|
|
virtual css::uno::Reference< css::script::browse::XBrowseNode > SAL_CALL
|
|
|
|
createView( sal_Int16 viewType )
|
2015-10-12 16:04:04 +02:00
|
|
|
throw ( css::uno::RuntimeException, std::exception ) override;
|
2004-05-19 07:27:57 +00:00
|
|
|
private:
|
2004-10-22 13:06:15 +00:00
|
|
|
css::uno::Reference< css::script::browse::XBrowseNode >
|
2004-05-19 07:27:57 +00:00
|
|
|
getSelectorHierarchy()
|
|
|
|
throw ( css::uno::RuntimeException );
|
|
|
|
|
2004-10-22 13:06:15 +00:00
|
|
|
css::uno::Reference< css::script::browse::XBrowseNode >
|
2004-05-19 07:27:57 +00:00
|
|
|
getOrganizerHierarchy()
|
|
|
|
throw ( css::uno::RuntimeException );
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
} // namespace browsenodefactory
|
2010-10-27 13:11:31 +01:00
|
|
|
|
2014-05-30 21:07:48 +00:00
|
|
|
#endif // INCLUDED_SCRIPTING_SOURCE_PROVIDER_BROWSENODEFACTORYIMPL_HXX
|
|
|
|
|
2010-10-27 13:11:31 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|