nss: upgrade to release 3.73
[LibreOffice.git] / ucb / source / core / cmdenv.hxx
blob7ed048ff304b7b52381f95cee3a7a929f898b9c8
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_UCB_SOURCE_CORE_CMDENV_HXX
21 #define INCLUDED_UCB_SOURCE_CORE_CMDENV_HXX
23 #include <cppuhelper/compbase.hxx>
24 #include <cppuhelper/basemutex.hxx>
26 #include <com/sun/star/lang/XInitialization.hpp>
27 #include <com/sun/star/lang/XMultiServiceFactory.hpp>
28 #include <com/sun/star/lang/XServiceInfo.hpp>
29 #include <com/sun/star/lang/XSingleServiceFactory.hpp>
30 #include <com/sun/star/ucb/XCommandEnvironment.hpp>
32 namespace ucb_cmdenv {
34 using UcbCommandEnvironment_Base = cppu::WeakComponentImplHelper< css::lang::XInitialization,
35 css::lang::XServiceInfo,
36 css::ucb::XCommandEnvironment >;
38 class UcbCommandEnvironment : public cppu::BaseMutex, public UcbCommandEnvironment_Base
40 css::uno::Reference< css::task::XInteractionHandler > m_xIH;
41 css::uno::Reference< css::ucb::XProgressHandler > m_xPH;
43 public:
44 explicit UcbCommandEnvironment();
45 virtual ~UcbCommandEnvironment() override;
47 // XInitialization
48 virtual void SAL_CALL
49 initialize( const css::uno::Sequence< css::uno::Any >& aArguments ) override;
51 // XServiceInfo
52 virtual OUString SAL_CALL getImplementationName() override;
54 virtual sal_Bool SAL_CALL
55 supportsService( const OUString& ServiceName ) override;
57 virtual css::uno::Sequence< OUString > SAL_CALL
58 getSupportedServiceNames() override;
60 // XCommandEnvironment
61 virtual css::uno::Reference< css::task::XInteractionHandler > SAL_CALL
62 getInteractionHandler() override;
63 virtual css::uno::Reference< css::ucb::XProgressHandler > SAL_CALL
64 getProgressHandler() override;
67 } // namespace ucb_cmdenv
69 #endif // INCLUDED_UCB_SOURCE_CORE_CMDENV_HXX
71 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */