Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / uui / source / requeststringresolver.hxx
blob27a94e6ba299fb82ea099bba906989f8f9d0a363
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_UUI_SOURCE_REQUESTSTRINGRESOLVER_HXX
21 #define INCLUDED_UUI_SOURCE_REQUESTSTRINGRESOLVER_HXX
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <com/sun/star/task/XInteractionRequestStringResolver.hpp>
25 #include <com/sun/star/uno/XComponentContext.hpp>
26 #include <cppuhelper/implbase.hxx>
27 #include <memory>
29 class UUIInteractionHelper;
31 class UUIInteractionRequestStringResolver:
32 public cppu::WeakImplHelper<
33 css::lang::XServiceInfo,
34 css::task::XInteractionRequestStringResolver >
36 public:
37 explicit UUIInteractionRequestStringResolver(
38 css::uno::Reference< css::uno::XComponentContext > const & rxContext);
40 private:
41 std::unique_ptr<UUIInteractionHelper> m_pImpl;
43 UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver const &) = delete;
44 void operator =(UUIInteractionRequestStringResolver const &) = delete;
46 virtual ~UUIInteractionRequestStringResolver() override;
48 virtual OUString SAL_CALL getImplementationName() override;
50 virtual sal_Bool SAL_CALL supportsService(OUString const &
51 rServiceName) override;
53 virtual css::uno::Sequence< OUString > SAL_CALL
54 getSupportedServiceNames() override;
56 virtual css::beans::Optional< OUString > SAL_CALL
57 getStringFromInformationalRequest(
58 const css::uno::Reference< css::task::XInteractionRequest >& Request ) override;
61 #endif // INCLUDED_UUI_SOURCE_REQUESTSTRINGRESOLVER_HXX
63 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */