office-gobmx/include/cppuhelper/supportsservice.hxx
David Tardon 6c7659b584 move URE headers to include/
Change-Id: Ib48a12e902f2311c295b2007f08f44dee28f431d
Reviewed-on: https://gerrit.libreoffice.org/3499
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
2013-04-24 05:17:10 +00:00

49 lines
1.5 KiB
C++

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
#define INCLUDED_CPPUHELPER_SUPPORTSSERVICE_HXX
#include "sal/config.h"
#include "cppuhelper/cppuhelperdllapi.h"
namespace com { namespace sun { namespace star { namespace lang {
class XServiceInfo;
} } } }
namespace rtl { class OUString; }
namespace cppu {
/** A helper for implementations of com.sun.star.lang.XServiceInfo.
This function is supposed to be called from implementations of
com::sun::star::lang::XServiceInfo::supportsService (and therefore, for
easier coding takes the caller's this pointer by pointer rather than by
com::sun::star::uno::Reference).
@param implementation points to the service implementation whose
getSupportedServices method is consulted; must be non-null
@param name the service name to test
@return true iff the sequence returned by the given implementation's
getSupportedServices method contains the given name
@since LibreOffice 4.0
*/
bool CPPUHELPER_DLLPUBLIC supportsService(
com::sun::star::lang::XServiceInfo * implementation,
rtl::OUString const & name);
}
#endif
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */