merge duplicate part of branches
[LibreOffice.git] / include / cppuhelper / supportsservice.hxx
blob8834a3181f0b9499054856c3eafe6b83f4e9ea29
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 */
11 * This file is part of LibreOffice published API.
14 #ifndef INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
15 #define INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
17 #include "sal/config.h"
19 #include "cppuhelper/cppuhelperdllapi.h"
21 namespace com { namespace sun { namespace star { namespace lang {
22 class XServiceInfo;
23 } } } }
24 namespace rtl { class OUString; }
26 namespace cppu {
28 /** A helper for implementations of com.sun.star.lang.XServiceInfo.
30 This function is supposed to be called from implementations of
31 css::lang::XServiceInfo::supportsService (and therefore, for
32 easier coding takes the caller's this pointer by pointer rather than by
33 css::uno::Reference).
35 @param implementation points to the service implementation whose
36 getSupportedServices method is consulted; must be non-null
38 @param name the service name to test
40 @return true iff the sequence returned by the given implementation's
41 getSupportedServices method contains the given name
43 @since LibreOffice 4.0
45 bool CPPUHELPER_DLLPUBLIC supportsService(
46 css::lang::XServiceInfo * implementation,
47 rtl::OUString const & name);
51 #endif
53 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */