10#include <com/sun/star/system/SystemShellExecuteFlags.hpp>
11#include <com/sun/star/system/XSystemShellExecute.hpp>
12#include <com/sun/star/uno/XComponentContext.hpp>
17using lang::XServiceInfo;
18using lang::XTypeProvider;
25 Reference<system::XSystemShellExecute> xShell(xMSF->createInstanceWithContext(
"com.sun.star.system.SystemShellExecute",
m_xContext), uno::UNO_QUERY);
28 css::system::SystemShellExecuteFlags::URIS_ONLY);
33 if(!xTypeProvider.is())
36 Reference<system::XSystemShellExecute> xShell(xMSF->createInstanceWithContext(
"com.sun.star.system.SystemShellExecute",
m_xContext), uno::UNO_QUERY);
37 const css::uno::Sequence<css::uno::Type>
aTypes = xTypeProvider->getTypes();
38 for(
const auto& aType :
aTypes)
40 auto sUrl = aType.getTypeName();
43 sUrl = sUrl.replaceFirst(
".",
"_1_1", &nIdx);
45 m_sServiceBaseUrl +
"/interface" + sUrl +
".html",
"",
46 css::system::SystemShellExecuteFlags::URIS_ONLY);
55 Reference<system::XSystemShellExecute> xShell(xMSF->createInstanceWithContext(
"com.sun.star.system.SystemShellExecute",
m_xContext), uno::UNO_QUERY);
56 const css::uno::Sequence<OUString>
aServiceNames = xService->getSupportedServiceNames();
62 sUrl = sUrl.replaceFirst(
".",
"_1_1", &nIdx);
64 m_sServiceBaseUrl +
"/service" + sUrl +
".html",
"",
65 css::system::SystemShellExecuteFlags::URIS_ONLY);
76 return "com.sun.star.comp.unotools.misc.ServiceDocumenter";
80 return {
"com.sun.star.script.ServiceDocumenter" };
84extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
86 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
Reference< XComponentContext > m_xContext
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * unotools_ServiceDocument_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
constexpr OUStringLiteral sServiceName
Sequence< OUString > aServiceNames
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)