25#include <com/sun/star/ucb/ContentCreationException.hpp>
26#include <com/sun/star/ucb/IllegalIdentifierException.hpp>
32css::uno::Reference< css::ucb::XContent > SAL_CALL
34 const css::uno::Reference< css::ucb::XContentIdentifier >& Identifier )
48 catch ( css::ucb::ContentCreationException
const & )
50 throw css::ucb::IllegalIdentifierException();
53 if ( !xContent->getIdentifier().is() )
54 throw css::ucb::IllegalIdentifierException();
60 const css::uno::Reference< css::uno::XComponentContext >& rxContext )
61: ::
ucbhelper::ContentProviderImplHelper( rxContext )
73 OWeakObject::acquire();
79 OWeakObject::release();
85 static_cast< css::lang::XTypeProvider*
>(
this),
86 static_cast< css::lang::XServiceInfo*
>(
this),
87 static_cast< css::ucb::XContentProvider*
>(
this)
89 return aRet.hasValue() ? aRet : OWeakObject::queryInterface( rType );
93 css::lang::XTypeProvider,
94 css::lang::XServiceInfo,
95 css::ucb::XContentProvider );
99 return {
"com.sun.star.ucb.GIOContentProvider" };
104 return "com.sun.star.comp.GIOContentProvider";
118 const char *pDisable = getenv(
"UNODISABLELIBRARY");
121 OString aDisable(pDisable, strlen(pDisable));
122 return aDisable.indexOf(
"ucpgio1") >= 0;
127extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface*
129 css::uno::XComponentContext* context , css::uno::Sequence<css::uno::Any>
const&)
133#if !GLIB_CHECK_VERSION(2,36,0)
virtual void SAL_CALL release() noexcept override
virtual OUString SAL_CALL getImplementationName() override
ContentProvider(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL acquire() noexcept override
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
virtual ~ContentProvider() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
rtl::Reference< ContentImplHelper > queryExistingContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier)
css::uno::Reference< css::uno::XComponentContext > m_xContext
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * ucb_gio_ContentProvider_get_implementation(css::uno::XComponentContext *context, css::uno::Sequence< css::uno::Any > const &)
#define SAL_INFO(area, stream)
css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType, Interface1 *p1)
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
XTYPEPROVIDER_IMPL_3(ContentProvider, css::lang::XTypeProvider, css::lang::XServiceInfo, css::ucb::XContentProvider)