23#include <com/sun/star/ucb/CheckinArgument.hpp>
24#include <com/sun/star/ucb/XUniversalContentBroker.hpp>
25#include <com/sun/star/lang/XInitialization.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
27#include <com/sun/star/util/XChangesListener.hpp>
28#include <com/sun/star/util/XChangesNotifier.hpp>
32#include <osl/mutex.hxx>
41 struct GlobalTransferCommandArgument2;
45 public cppu::WeakImplHelper<
46 css::ucb::XUniversalContentBroker,
47 css::lang::XServiceInfo,
48 css::lang::XInitialization,
49 css::util::XChangesListener>
64 addEventListener(
const css::uno::Reference< css::lang::XEventListener >& Listener )
override;
67 css::lang::XEventListener >& Listener )
override;
74 virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL
80 const OUString&
Scheme )
override;
81 virtual css::uno::Sequence< css::ucb::ContentProviderInfo > SAL_CALL
83 virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL
87 virtual css::uno::Reference< css::ucb::XContent > SAL_CALL
89 virtual sal_Int32 SAL_CALL
90 compareContentIds(
const css::uno::Reference< css::ucb::XContentIdentifier >& Id1,
91 const css::uno::Reference< css::ucb::XContentIdentifier >& Id2 )
override;
94 virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL
98 virtual sal_Int32 SAL_CALL
100 virtual css::uno::Any SAL_CALL
103 const css::uno::Reference< css::ucb::XCommandEnvironment >&
Environment )
override;
104 virtual void SAL_CALL
105 abort( sal_Int32 CommandId )
override;
111 virtual void SAL_CALL
changesOccurred(
const css::util::ChangesEvent& Event )
override;
114 virtual void SAL_CALL
disposing(
const css::lang::EventObject&
Source )
override;
117 css::uno::Reference< css::ucb::XContentProvider >
121 static css::uno::Reference< css::ucb::XCommandInfo >
127 const css::ucb::GlobalTransferCommandArgument2 & rArg,
128 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
131 css::uno::Any
checkIn(
const css::ucb::CheckinArgument& rArg,
132 const css::uno::Reference< css::ucb::XCommandEnvironment >& xEnv );
139 std::u16string_view rKey1,
140 std::u16string_view rKey2,
virtual void SAL_CALL deregisterContentProvider(const css::uno::Reference< css::ucb::XContentProvider > &Provider, const OUString &Scheme) override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &Listener) override
UniversalContentBroker(const css::uno::Reference< css::uno::XComponentContext > &xContext)
virtual ~UniversalContentBroker() override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &Listener) override
static css::uno::Reference< css::ucb::XCommandInfo > getCommandInfo()
css::uno::Reference< css::util::XChangesNotifier > m_xNotifier
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual void SAL_CALL releaseCommandIdentifier(sal_Int32 aCommandId) override
virtual OUString SAL_CALL getImplementationName() override
void globalTransfer(const css::ucb::GlobalTransferCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual sal_Int32 SAL_CALL createCommandIdentifier() override
virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL registerContentProvider(const css::uno::Reference< css::ucb::XContentProvider > &Provider, const OUString &Scheme, sal_Bool ReplaceExisting) override
ProviderMap_Impl m_aProviders
virtual void SAL_CALL abort(sal_Int32 CommandId) override
virtual void SAL_CALL dispose() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL changesOccurred(const css::util::ChangesEvent &Event) override
std::unique_ptr< comphelper::OInterfaceContainerHelper3< css::lang::XEventListener > > m_pDisposeEventListeners
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
bool getContentProviderData(std::u16string_view rKey1, std::u16string_view rKey2, ucbhelper::ContentProviderDataList &rListToFill)
void prepareAndRegister(const ucbhelper::ContentProviderDataList &rData)
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL queryContent(const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) override
virtual css::uno::Sequence< css::ucb::ContentProviderInfo > SAL_CALL queryContentProviders() override
css::uno::Any checkIn(const css::ucb::CheckinArgument &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv)
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
virtual sal_Int32 SAL_CALL compareContentIds(const css::uno::Reference< css::ucb::XContentIdentifier > &Id1, const css::uno::Reference< css::ucb::XContentIdentifier > &Id2) override
virtual css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL createContentIdentifier(const OUString &ContentId) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Any SAL_CALL execute(const css::ucb::Command &aCommand, sal_Int32 CommandId, const css::uno::Reference< css::ucb::XCommandEnvironment > &Environment) override
css::uno::Sequence< css::uno::Any > m_aArguments
virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL queryContentProvider(const OUString &Identifier) override
Sequence< PropertyValue > aArguments
std::vector< ContentProviderData > ContentProviderDataList