LibreOffice Module ucb (master) 1
|
#include <bc.hxx>
Public Member Functions | |
BaseContent (TaskManager *pMyShell, const css::uno::Reference< css::ucb::XContentIdentifier > &xContentIdentifier, OUString aUnqPath) | |
virtual | ~BaseContent () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override |
virtual void SAL_CALL | removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) 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 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 css::uno::Reference< css::ucb::XContentIdentifier > SAL_CALL | getIdentifier () override |
virtual OUString SAL_CALL | getContentType () override |
virtual void SAL_CALL | addContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual void SAL_CALL | removeContentEventListener (const css::uno::Reference< css::ucb::XContentEventListener > &Listener) override |
virtual void SAL_CALL | addPropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertiesChangeListener (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override |
virtual void SAL_CALL | addProperty (const OUString &Name, sal_Int16 Attributes, const css::uno::Any &DefaultValue) override |
virtual void SAL_CALL | removeProperty (const OUString &Name) override |
virtual void SAL_CALL | addPropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override |
virtual void SAL_CALL | removePropertySetInfoChangeListener (const css::uno::Reference< css::beans::XPropertySetInfoChangeListener > &Listener) override |
virtual css::uno::Sequence< css::ucb::ContentInfo > SAL_CALL | queryCreatableContentsInfo () override |
virtual css::uno::Reference< css::ucb::XContent > SAL_CALL | createNewContent (const css::ucb::ContentInfo &Info) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | getParent () override |
virtual void SAL_CALL | setParent (const css::uno::Reference< css::uno::XInterface > &Parent) override |
std::optional< ContentEventNotifier > | cDEL () override |
std::optional< ContentEventNotifier > | cEXC (const OUString &aNewName) override |
std::optional< ContentEventNotifier > | cCEL () override |
std::optional< PropertySetInfoChangeNotifier > | cPSL () override |
std::optional< PropertyChangeNotifier > | cPCL () override |
virtual std::optional< ContentEventNotifier > | cEXC (const OUString &aNewName)=0 |
virtual std::optional< ContentEventNotifier > | cDEL ()=0 |
virtual std::optional< ContentEventNotifier > | cCEL ()=0 |
virtual std::optional< PropertySetInfoChangeNotifier > | cPSL ()=0 |
virtual std::optional< PropertyChangeNotifier > | cPCL ()=0 |
Private Types | |
enum | state { NameForInsertionSet = 1 , JustInserted = 2 , Deleted = 4 , FullFeatured = 8 } |
Private Member Functions | |
BaseContent (TaskManager *pMyShell, OUString parentName, bool bFolder) | |
css::uno::Reference< css::ucb::XCommandInfo > | getCommandInfo () |
css::uno::Reference< css::beans::XPropertySetInfo > | getPropertySetInfo () |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::Property > &PropertySet) |
css::uno::Sequence< css::uno::Any > | setPropertyValues (sal_Int32 nMyCommandIdentifier, const css::uno::Sequence< css::beans::PropertyValue > &Values) |
css::uno::Reference< css::ucb::XDynamicResultSet > | open (sal_Int32 nMyCommandIdentifier, const css::ucb::OpenCommandArgument2 &aCommandArgument) |
void | deleteContent (sal_Int32 nMyCommandIdentifier) |
void | transfer (sal_Int32 nMyCommandIdentifier, const css::ucb::TransferInfo &aTransferInfo) |
void | insert (sal_Int32 nMyCommandIdentifier, const css::ucb::InsertCommandArgument &aInsertArgument) |
void | endTask (sal_Int32 CommandId) |
Private Attributes | |
TaskManager * | m_pMyShell |
css::uno::Reference< css::ucb::XContentIdentifier > | m_xContentIdentifier |
OUString | m_aUncPath |
bool | m_bFolder |
sal_uInt16 | m_nState |
std::mutex | m_aMutex |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | m_aDisposeEventListeners |
comphelper::OInterfaceContainerHelper4< css::ucb::XContentEventListener > | m_aContentEventListeners |
comphelper::OInterfaceContainerHelper4< css::beans::XPropertySetInfoChangeListener > | m_aPropertySetInfoChangeListeners |
std::unique_ptr< PropertyListeners > | m_pPropertyListener |
Friends | |
class | ContentEventNotifier |
Additional Inherited Members | |
Protected Member Functions inherited from fileaccess::Notifier | |
~Notifier () | |
|
private |
|
private |
Definition at line 111 of file bc.cxx.
References m_pMyShell, and fileaccess::TaskManager::m_pProvider.
Referenced by createNewContent().
fileaccess::BaseContent::BaseContent | ( | TaskManager * | pMyShell, |
const css::uno::Reference< css::ucb::XContentIdentifier > & | xContentIdentifier, | ||
OUString | aUnqPath | ||
) |
|
overridevirtual |
Definition at line 141 of file bc.cxx.
References Deleted, fileaccess::TaskManager::deregisterNotifier(), FullFeatured, m_aUncPath, m_nState, m_pMyShell, and fileaccess::TaskManager::m_pProvider.
|
overridevirtual |
|
overridevirtual |
Definition at line 436 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aContentEventListeners, and m_aMutex.
|
overridevirtual |
Definition at line 155 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aDisposeEventListeners, and m_aMutex.
|
overridevirtual |
Definition at line 338 of file bc.cxx.
References fileaccess::TaskManager::info_p(), m_aMutex, m_aUncPath, m_pMyShell, and m_pPropertyListener.
|
overridevirtual |
Definition at line 459 of file bc.cxx.
References fileaccess::TaskManager::associate(), Deleted, JustInserted, m_aUncPath, m_nState, m_pMyShell, Name, and THROW_WHERE.
|
overridevirtual |
Definition at line 550 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aMutex, and m_aPropertySetInfoChangeListeners.
|
overridevirtual |
Implements fileaccess::Notifier.
Definition at line 1124 of file bc.cxx.
References ContentEventNotifier, comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), m_aContentEventListeners, m_aMutex, m_pMyShell, and m_xContentIdentifier.
|
overridevirtual |
Implements fileaccess::Notifier.
Definition at line 1088 of file bc.cxx.
References ContentEventNotifier, Deleted, comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), m_aContentEventListeners, m_aMutex, m_nState, m_pMyShell, and m_xContentIdentifier.
|
overridevirtual |
Implements fileaccess::Notifier.
Definition at line 1105 of file bc.cxx.
References ContentEventNotifier, comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), m_aContentEventListeners, m_aMutex, m_aUncPath, m_pMyShell, and m_xContentIdentifier.
|
overridevirtual |
Implements fileaccess::Notifier.
Definition at line 1146 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), m_aMutex, and m_pPropertyListener.
|
overridevirtual |
Implements fileaccess::Notifier.
Definition at line 1136 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::getElements(), comphelper::OInterfaceContainerHelper4< class ListenerT >::getLength(), m_aMutex, and m_aPropertySetInfoChangeListeners.
|
overridevirtual |
Definition at line 215 of file bc.cxx.
References fileaccess::TaskManager::getCommandId(), and m_pMyShell.
Referenced by execute().
|
overridevirtual |
Definition at line 495 of file bc.cxx.
References BaseContent(), fileaccess::TaskManager::FileContentType, fileaccess::TaskManager::FolderContentType, cppu::UnoType< typename T >::get(), fileaccess::getParentName(), getPropertyValues(), Info, IsDocument(), m_aUncPath, m_pMyShell, and TOOLS_WARN_EXCEPTION.
Referenced by execute().
|
private |
Definition at line 891 of file bc.cxx.
References Deleted, m_aMutex, m_aUncPath, m_nState, m_pMyShell, and fileaccess::TaskManager::remove().
Referenced by execute().
|
overridevirtual |
Definition at line 173 of file bc.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::disposeAndClear(), m_aContentEventListeners, m_aDisposeEventListeners, m_aMutex, m_aPropertySetInfoChangeListeners, and m_pPropertyListener.
|
private |
Definition at line 1080 of file bc.cxx.
References fileaccess::TaskManager::endTask(), m_aUncPath, and m_pMyShell.
Referenced by execute(), and setPropertyValues().
|
overridevirtual |
Definition at line 228 of file bc.cxx.
References aCommand, Any, CasePreservingURL(), createCommandIdentifier(), createNewContent(), deleteContent(), endTask(), Environment, cppu::UnoType< typename T >::get(), getCommandInfo(), getPropertySetInfo(), getPropertyValues(), insert(), fileaccess::TaskManager::installError(), m_pMyShell, open(), result, setPropertyValues(), fileaccess::TaskManager::startTask(), TASKHANDLER_UNSUPPORTED_COMMAND, TASKHANDLING_WRONG_CREATENEWCONTENT_ARGUMENT, TASKHANDLING_WRONG_DELETE_ARGUMENT, TASKHANDLING_WRONG_GETPROPERTYVALUES_ARGUMENT, TASKHANDLING_WRONG_INSERT_ARGUMENT, TASKHANDLING_WRONG_OPEN_ARGUMENT, TASKHANDLING_WRONG_SETPROPERTYVALUES_ARGUMENT, TASKHANDLING_WRONG_TRANSFER_ARGUMENT, and transfer().
|
private |
css::uno::RuntimeException |
Definition at line 608 of file bc.cxx.
References Deleted, fileaccess::TaskManager::info_c(), m_nState, and m_pMyShell.
Referenced by execute().
|
overridevirtual |
Definition at line 393 of file bc.cxx.
References Deleted, fileaccess::TaskManager::FileContentType, fileaccess::TaskManager::FolderContentType, cppu::UnoType< typename T >::get(), getPropertyValues(), IsDocument(), JustInserted, m_bFolder, m_nState, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Definition at line 386 of file bc.cxx.
References m_xContentIdentifier.
|
overridevirtual |
|
overridevirtual |
Definition at line 573 of file bc.cxx.
References err, fileaccess::getParentName(), fileaccess::TaskManager::getUrlFromUnq(), Identifier, m_aUncPath, m_pMyShell, fileaccess::TaskManager::m_pProvider, and fileaccess::FileProvider::queryContent().
|
private |
css::uno::RuntimeException |
Definition at line 618 of file bc.cxx.
References Deleted, fileaccess::TaskManager::info_p(), m_aUncPath, m_nState, and m_pMyShell.
Referenced by execute().
|
private |
css::uno::RuntimeException |
Definition at line 627 of file bc.cxx.
References Any, Deleted, fileaccess::TaskManager::FileContentType, fileaccess::TaskManager::FolderContentType, fileaccess::TaskManager::getv(), JustInserted, m_aUncPath, m_bFolder, m_nState, m_pMyShell, n, and pValues.
Referenced by createNewContent(), execute(), getContentType(), insert(), and transfer().
|
overridevirtual |
|
private |
Definition at line 969 of file bc.cxx.
References fileaccess::XInteractionRequestImpl::aborted(), fileaccess::TaskManager::clearError(), FullFeatured, cppu::UnoType< typename T >::get(), fileaccess::getParentName(), getPropertyValues(), fileaccess::XInteractionRequestImpl::getRequest(), fileaccess::getTitle(), fileaccess::TaskManager::handleTask(), fileaccess::TaskManager::insertDefaultProperties(), fileaccess::TaskManager::installError(), JustInserted, m_aMutex, m_aUncPath, m_nState, m_pMyShell, m_xContentIdentifier, fileaccess::TaskManager::mkdir(), fileaccess::TaskManager::mkfil(), NameForInsertionSet, fileaccess::XInteractionRequestImpl::newName(), fileaccess::TaskManager::registerNotifier(), TASKHANDLING_NOCONTENTTYPE_INSERT_COMMAND, TASKHANDLING_NOFRESHINSERT_IN_INSERT_COMMAND, TASKHANDLING_NONAMESET_INSERT_COMMAND, TOOLS_WARN_EXCEPTION, and fileaccess::TaskManager::write().
Referenced by execute().
|
private |
Definition at line 815 of file bc.cxx.
References Deleted, tdoc_ucp::DOCUMENT, fileaccess::TaskManager::installError(), JustInserted, fileaccess::TaskManager::ls(), m_aUncPath, m_nState, m_pMyShell, fileaccess::TaskManager::open(), fileaccess::TaskManager::open_rw(), fileaccess::TaskManager::page(), TASKHANDLING_DELETED_STATE_IN_OPEN_COMMAND, TASKHANDLING_INSERTED_STATE_IN_OPEN_COMMAND, and TASKHANDLING_UNSUPPORTED_OPEN_MODE.
Referenced by execute().
|
overridevirtual |
Definition at line 488 of file bc.cxx.
References fileaccess::TaskManager::queryCreatableContentsInfo().
|
overridevirtual |
Definition at line 446 of file bc.cxx.
References m_aContentEventListeners, m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 164 of file bc.cxx.
References m_aDisposeEventListeners, m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 364 of file bc.cxx.
References m_aMutex, and m_pPropertyListener.
|
overridevirtual |
Definition at line 474 of file bc.cxx.
References fileaccess::TaskManager::deassociate(), Deleted, m_aUncPath, m_nState, m_pMyShell, and Name.
|
overridevirtual |
Definition at line 560 of file bc.cxx.
References m_aMutex, m_aPropertySetInfoChangeListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
overridevirtual |
Definition at line 597 of file bc.cxx.
References THROW_WHERE.
|
private |
Definition at line 679 of file bc.cxx.
References aBuf, Deleted, endTask(), Exception, fileaccess::getParentName(), i, JustInserted, m_aUncPath, m_nState, m_pMyShell, fileaccess::TaskManager::move(), Name, NameForInsertionSet, fileaccess::TaskManager::setv(), THROW_WHERE, Title, u, Value, and Values.
Referenced by execute().
|
overridevirtual |
Definition at line 199 of file bc.cxx.
References ServiceName, and cppu::supportsService().
|
private |
Definition at line 905 of file bc.cxx.
References fileaccess::TaskManager::copy(), Deleted, cppu::UnoType< typename T >::get(), getPropertyValues(), fileaccess::TaskManager::getUnqFromUrl(), fileaccess::TaskManager::installError(), IsDocument(), comphelper::isFileUrl(), m_aUncPath, m_nState, m_pMyShell, fileaccess::TaskManager::move(), TASKHANDLING_TRANSFER_DESTFILETYPE, TASKHANDLING_TRANSFER_INVALIDSCHEME, and TASKHANDLING_TRANSFER_INVALIDURL.
Referenced by execute().
|
friend |
|
private |
Definition at line 208 of file bc.hxx.
Referenced by addContentEventListener(), cCEL(), cDEL(), cEXC(), dispose(), and removeContentEventListener().
|
private |
Definition at line 207 of file bc.hxx.
Referenced by addEventListener(), dispose(), and removeEventListener().
|
private |
Definition at line 206 of file bc.hxx.
Referenced by addContentEventListener(), addEventListener(), addPropertiesChangeListener(), addPropertySetInfoChangeListener(), cCEL(), cDEL(), cEXC(), cPCL(), cPSL(), deleteContent(), dispose(), insert(), removeContentEventListener(), removeEventListener(), removePropertiesChangeListener(), and removePropertySetInfoChangeListener().
|
private |
Definition at line 209 of file bc.hxx.
Referenced by addPropertySetInfoChangeListener(), cPSL(), dispose(), and removePropertySetInfoChangeListener().
|
private |
Definition at line 197 of file bc.hxx.
Referenced by addPropertiesChangeListener(), addProperty(), cEXC(), createNewContent(), deleteContent(), endTask(), getParent(), getPropertySetInfo(), getPropertyValues(), insert(), open(), removeProperty(), setPropertyValues(), transfer(), and ~BaseContent().
|
private |
Definition at line 203 of file bc.hxx.
Referenced by getContentType(), and getPropertyValues().
|
private |
Definition at line 204 of file bc.hxx.
Referenced by addProperty(), cDEL(), deleteContent(), getCommandInfo(), getContentType(), getPropertySetInfo(), getPropertyValues(), insert(), open(), removeProperty(), setPropertyValues(), transfer(), and ~BaseContent().
|
private |
Definition at line 195 of file bc.hxx.
Referenced by addPropertiesChangeListener(), addProperty(), BaseContent(), cCEL(), cDEL(), cEXC(), createCommandIdentifier(), createNewContent(), deleteContent(), endTask(), execute(), getCommandInfo(), getParent(), getPropertySetInfo(), getPropertyValues(), insert(), open(), removeProperty(), setPropertyValues(), transfer(), and ~BaseContent().
|
private |
Definition at line 210 of file bc.hxx.
Referenced by addPropertiesChangeListener(), cPCL(), dispose(), and removePropertiesChangeListener().
|
private |