1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: requeststringresolver.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef UUI_REQUESTSTRINGRESOLVER_HXX
32 #define UUI_REQUESTSTRINGRESOLVER_HXX
34 #include "com/sun/star/lang/XServiceInfo.hpp"
35 #include "com/sun/star/task/XInteractionRequestStringResolver.hpp"
36 #include "cppuhelper/implbase2.hxx"
38 class UUIInteractionHelper
;
40 class UUIInteractionRequestStringResolver
:
41 public cppu::WeakImplHelper2
<
42 com::sun::star::lang::XServiceInfo
,
43 com::sun::star::task::XInteractionRequestStringResolver
>
46 static char const m_aImplementationName
[];
48 static com::sun::star::uno::Sequence
< rtl::OUString
>
49 getSupportedServiceNames_static();
51 static com::sun::star::uno::Reference
< com::sun::star::uno::XInterface
>
54 com::sun::star::uno::Reference
<
55 com::sun::star::lang::XMultiServiceFactory
> const &
57 SAL_THROW((com::sun::star::uno::Exception
));
60 com::sun::star::uno::Reference
<
61 com::sun::star::lang::XMultiServiceFactory
> m_xServiceFactory
;
62 UUIInteractionHelper
* m_pImpl
;
64 UUIInteractionRequestStringResolver(UUIInteractionRequestStringResolver
&); // not implemented
65 void operator =(UUIInteractionRequestStringResolver
); // not implemented
67 UUIInteractionRequestStringResolver(
68 com::sun::star::uno::Reference
<
69 com::sun::star::lang::XMultiServiceFactory
>
70 const & rServiceFactory
)
73 virtual ~UUIInteractionRequestStringResolver() SAL_THROW(());
75 virtual rtl::OUString SAL_CALL
getImplementationName()
76 throw (com::sun::star::uno::RuntimeException
);
78 virtual sal_Bool SAL_CALL
supportsService(rtl::OUString
const &
80 throw (com::sun::star::uno::RuntimeException
);
82 virtual com::sun::star::uno::Sequence
< rtl::OUString
> SAL_CALL
83 getSupportedServiceNames()
84 throw (com::sun::star::uno::RuntimeException
);
86 virtual com::sun::star::beans::Optional
< rtl::OUString
> SAL_CALL
87 getStringFromInformationalRequest(
88 const com::sun::star::uno::Reference
<
89 com::sun::star::task::XInteractionRequest
>& Request
)
90 throw (com::sun::star::uno::RuntimeException
);
93 #endif // UUI_REQUESTSTRINGRESOLVER_HXX