15#include <com/sun/star/lang/XServiceInfo.hpp>
16#include <com/sun/star/uno/Sequence.hxx>
18#include <rtl/ustring.hxx>
22 assert(implementation !=
nullptr);
23 const css::uno::Sequence<OUString> s(implementation->getSupportedServiceNames());
24 return std::find(s.begin(), s.end(), name) != s.end();
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
A helper for implementations of com.sun.star.lang.XServiceInfo.