Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / include / cppuhelper / supportsservice.hxx
blob0a1bee42f9266fee982a5f2f48f0e7f17ca88f32
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/.
8 */
10 #ifndef INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
11 #define INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
13 #include <sal/config.h>
15 #include <cppuhelper/cppuhelperdllapi.h>
17 namespace com { namespace sun { namespace star { namespace lang {
18 class XServiceInfo;
19 } } } }
20 namespace rtl { class OUString; }
22 namespace cppu {
24 /** A helper for implementations of com.sun.star.lang.XServiceInfo.
26 This function is supposed to be called from implementations of
27 css::lang::XServiceInfo::supportsService (and therefore, for
28 easier coding takes the caller's this pointer by pointer rather than by
29 css::uno::Reference).
31 @param implementation points to the service implementation whose
32 getSupportedServices method is consulted; must be non-null
34 @param name the service name to test
36 @return true iff the sequence returned by the given implementation's
37 getSupportedServices method contains the given name
39 @since LibreOffice 4.0
41 bool CPPUHELPER_DLLPUBLIC supportsService(
42 css::lang::XServiceInfo * implementation,
43 rtl::OUString const & name);
47 #endif
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */