LibreOffice Module ucb (master) 1
|
#include <ucb.hxx>
Public Member Functions | |
UniversalContentBroker (const css::uno::Reference< css::uno::XComponentContext > &xContext) | |
virtual | ~UniversalContentBroker () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &Listener) override |
virtual void SAL_CALL | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) 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 |
virtual void SAL_CALL | deregisterContentProvider (const css::uno::Reference< css::ucb::XContentProvider > &Provider, const OUString &Scheme) override |
virtual css::uno::Sequence< css::ucb::ContentProviderInfo > SAL_CALL | queryContentProviders () override |
virtual css::uno::Reference< css::ucb::XContentProvider > SAL_CALL | queryContentProvider (const OUString &Identifier) override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | queryContent (const css::uno::Reference< css::ucb::XContentIdentifier > &Identifier) 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_Int32 SAL_CALL | createCommandIdentifier () 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 |
virtual void SAL_CALL | abort (sal_Int32 CommandId) override |
virtual void SAL_CALL | releaseCommandIdentifier (sal_Int32 aCommandId) override |
virtual void SAL_CALL | changesOccurred (const css::util::ChangesEvent &Event) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
Private Member Functions | |
css::uno::Reference< css::ucb::XContentProvider > | queryContentProvider (const OUString &Identifier, bool bResolved) |
void | globalTransfer (const css::ucb::GlobalTransferCommandArgument2 &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
css::uno::Any | checkIn (const css::ucb::CheckinArgument &rArg, const css::uno::Reference< css::ucb::XCommandEnvironment > &xEnv) |
void | configureUcb () |
bool | getContentProviderData (std::u16string_view rKey1, std::u16string_view rKey2, ucbhelper::ContentProviderDataList &rListToFill) |
void | prepareAndRegister (const ucbhelper::ContentProviderDataList &rData) |
Static Private Member Functions | |
static css::uno::Reference< css::ucb::XCommandInfo > | getCommandInfo () |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::util::XChangesNotifier > | m_xNotifier |
css::uno::Sequence< css::uno::Any > | m_aArguments |
ProviderMap_Impl | m_aProviders |
osl::Mutex | m_aMutex |
std::unique_ptr< comphelper::OInterfaceContainerHelper3< css::lang::XEventListener > > | m_pDisposeEventListeners |
sal_Int32 | m_nCommandId |
|
explicit |
Definition at line 224 of file ucb.cxx.
References m_xContext, and m_xContext.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Definition at line 259 of file ucb.cxx.
References m_aMutex, and m_pDisposeEventListeners.
|
overridevirtual |
Definition at line 654 of file ucb.cxx.
References aData, and prepareAndRegister().
|
private |
css::uno::Exception |
Definition at line 1846 of file ucbcmds.cxx.
References aCommand, ucbhelper::cancelCommandExecution(), createContentIdentifier(), comphelper::InitAnyPropertySequence(), m_xContext, queryContent(), and xTarget.
Referenced by execute().
|
overridevirtual |
Definition at line 480 of file ucb.cxx.
References queryContentProvider().
|
private |
css::uno::RuntimeException |
Definition at line 721 of file ucb.cxx.
References aData, getContentProviderData(), m_aArguments, prepareAndRegister(), and SAL_WARN.
Referenced by initialize().
|
overridevirtual |
Definition at line 539 of file ucb.cxx.
References m_aMutex, and m_nCommandId.
|
overridevirtual |
Definition at line 507 of file ucb.cxx.
References queryContentProvider().
Referenced by checkIn(), and globalTransfer().
|
overridevirtual |
Definition at line 390 of file ucb.cxx.
References ucb_impl::RegexpMap< Val >::end(), ucb_impl::RegexpMap< Val >::erase(), ucb_impl::RegexpMap< Val >::find(), m_aMutex, m_aProviders, and Scheme.
|
overridevirtual |
Definition at line 244 of file ucb.cxx.
References m_pDisposeEventListeners, and m_xNotifier.
|
overridevirtual |
Definition at line 694 of file ucb.cxx.
References m_aMutex, and m_xNotifier.
|
overridevirtual |
Definition at line 549 of file ucb.cxx.
References aCommand, Any, ucbhelper::cancelCommandExecution(), checkIn(), CHECKIN_HANDLE, CHECKIN_NAME, Environment, getCommandInfo(), GETCOMMANDINFO_HANDLE, GETCOMMANDINFO_NAME, globalTransfer(), GLOBALTRANSFER_HANDLE, and GLOBALTRANSFER_NAME.
|
staticprivate |
Definition at line 1526 of file ucbcmds.cxx.
Referenced by execute().
|
private |
Definition at line 765 of file ucb.cxx.
References aArguments, comphelper::InitAnyPropertySequence(), m_xContext, m_xNotifier, and TOOLS_WARN_EXCEPTION.
Referenced by configureUcb().
|
overridevirtual |
|
overridevirtual |
|
private |
css::uno::Exception |
Definition at line 1532 of file ucbcmds.cxx.
References ABORT, aCommand, ucbhelper::cancelCommandExecution(), createContentIdentifier(), comphelper::InitAnyPropertySequence(), m_xContext, OVERWRITE, queryContent(), cppu::throwException(), UNKNOWN, and xTarget.
Referenced by execute().
|
overridevirtual |
Definition at line 308 of file ucb.cxx.
References aArguments, Any, configureUcb(), m_aArguments, and m_aMutex.
|
private |
Definition at line 742 of file ucb.cxx.
References m_aArguments, m_xContext, and registerAtUcb().
Referenced by changesOccurred(), and configureUcb().
|
overridevirtual |
Definition at line 459 of file ucb.cxx.
References Identifier, and queryContentProvider().
Referenced by checkIn(), and globalTransfer().
|
overridevirtual |
Definition at line 448 of file ucb.cxx.
References Identifier, and queryContentProvider().
Referenced by compareContentIds(), createContentIdentifier(), queryContent(), and queryContentProvider().
|
private |
Definition at line 709 of file ucb.cxx.
References Identifier, m_aMutex, m_aProviders, and ucb_impl::RegexpMap< Val >::map().
|
overridevirtual |
Definition at line 423 of file ucb.cxx.
References aSeq, ucb_impl::RegexpMap< Val >::begin(), end, ucb_impl::RegexpMap< Val >::end(), m_aMutex, m_aProviders, and ucb_impl::RegexpMap< Val >::size().
|
overridevirtual |
Definition at line 344 of file ucb.cxx.
References ucb_impl::RegexpMap< Val >::add(), ucb_impl::RegexpMap< Val >::end(), ucb_impl::RegexpMap< Val >::find(), m_aMutex, m_aProviders, and Scheme.
|
overridevirtual |
|
overridevirtual |
Definition at line 270 of file ucb.cxx.
References m_pDisposeEventListeners.
|
overridevirtual |
Definition at line 286 of file ucb.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 151 of file ucb.hxx.
Referenced by configureUcb(), initialize(), and prepareAndRegister().
|
private |
Definition at line 153 of file ucb.hxx.
Referenced by addEventListener(), createCommandIdentifier(), deregisterContentProvider(), disposing(), initialize(), queryContentProvider(), queryContentProviders(), and registerContentProvider().
|
private |
Definition at line 152 of file ucb.hxx.
Referenced by deregisterContentProvider(), queryContentProvider(), queryContentProviders(), and registerContentProvider().
|
private |
Definition at line 155 of file ucb.hxx.
Referenced by createCommandIdentifier().
|
private |
Definition at line 154 of file ucb.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 146 of file ucb.hxx.
Referenced by checkIn(), getContentProviderData(), globalTransfer(), prepareAndRegister(), and UniversalContentBroker().
|
private |
Definition at line 149 of file ucb.hxx.
Referenced by dispose(), disposing(), and getContentProviderData().