1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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
{
20 namespace rtl
{ class OUString
; }
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
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
);
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */