xref: /trunk/main/uui/source/requeststringresolver.hxx (revision 91144cd0085a7583d2099b982122deb2184ab956)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef UUI_REQUESTSTRINGRESOLVER_HXX
25 #define UUI_REQUESTSTRINGRESOLVER_HXX
26 
27 #include "com/sun/star/lang/XServiceInfo.hpp"
28 #include "com/sun/star/task/XInteractionRequestStringResolver.hpp"
29 #include "cppuhelper/implbase2.hxx"
30 
31 class UUIInteractionHelper;
32 
33 class UUIInteractionRequestStringResolver:
34     public cppu::WeakImplHelper2<
35         com::sun::star::lang::XServiceInfo,
36         com::sun::star::task::XInteractionRequestStringResolver >
37 {
38 public:
39     static char const m_aImplementationName[];
40 
41     static com::sun::star::uno::Sequence< rtl::OUString >
42     getSupportedServiceNames_static();
43 
44     static com::sun::star::uno::Reference< com::sun::star::uno::XInterface >
45     SAL_CALL
46     createInstance(
47         com::sun::star::uno::Reference<
48         com::sun::star::lang::XMultiServiceFactory > const &
49     rServiceFactory);
50 
51 private:
52     com::sun::star::uno::Reference<
53     com::sun::star::lang::XMultiServiceFactory > m_xServiceFactory;
54     UUIInteractionHelper * m_pImpl;
55 
56     UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver &); // not implemented
57     void operator =(UUIInteractionRequestStringResolver); // not implemented
58 
59     UUIInteractionRequestStringResolver(
60         com::sun::star::uno::Reference<
61             com::sun::star::lang::XMultiServiceFactory >
62                 const & rServiceFactory)
63         SAL_THROW(());
64 
65     virtual ~UUIInteractionRequestStringResolver() SAL_THROW(());
66 
67     virtual rtl::OUString SAL_CALL getImplementationName();
68 
69     virtual sal_Bool SAL_CALL supportsService(rtl::OUString const &
70                           rServiceName);
71 
72     virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
73     getSupportedServiceNames();
74 
75     virtual com::sun::star::beans::Optional< rtl::OUString > SAL_CALL
76     getStringFromInformationalRequest(
77         const com::sun::star::uno::Reference<
78             com::sun::star::task::XInteractionRequest >& Request );
79 };
80 
81 #endif // UUI_REQUESTSTRINGRESOLVER_HXX
82