26#include <com/sun/star/beans/XPropertySet.hpp>
27#include <com/sun/star/embed/XStorage.hpp>
53 if ( !sTemp.isEmpty() )
56 if (
aURL.GetFileExtension().equalsIgnoreAsciiCase(
"orp") )
57 return "StarBaseReport";
66 xProp->getPropertyValue(
"MediaType") >>=
sMediaType;
68 return "StarBaseReport";
69 ::comphelper::disposeComponent(xProp);
83 return "com.sun.star.comp.report.ORptTypeDetection";
96 return {
"com.sun.star.document.ExtendedTypeDetection" };
102extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
104 css::uno::XComponentContext* context, css::uno::Sequence<css::uno::Any>
const&)
Reference< XComponentContext > m_xContext
constexpr OUStringLiteral sMediaType
static css::uno::Reference< css::embed::XStorage > GetStorageFromURL(const OUString &aURL, sal_Int32 nStorageMode, const css::uno::Reference< css::uno::XComponentContext > &rxContext=css::uno::Reference< css::uno::XComponentContext >())
TValueType getUnpackedValueOrDefault(const OUString &sKey, const TValueType &aDefault) const
virtual OUString SAL_CALL detect(css::uno::Sequence< css::beans::PropertyValue > &Descriptor) override
ORptTypeDetection(css::uno::Reference< css::uno::XComponentContext > const &xContext)
OUString SAL_CALL getImplementationName() override
css::uno::Reference< css::uno::XComponentContext > m_xContext
sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * reportdesign_ORptTypeDetection_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
constexpr OUStringLiteral MIMETYPE_OASIS_OPENDOCUMENT_REPORT_ASCII
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)