LibreOffice Module dbaccess (master) 1
|
#include <ContentHelper.hxx>
Public Member Functions | |
OContentHelper (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, TContentPtr _pImpl) | |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual sal_Bool SAL_CALL | supportsService (const OUString &ServiceName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual OUString SAL_CALL | getImplementationName () 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 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 | 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 | initialize (const css::uno::Sequence< css::uno::Any > &aArguments) 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 |
virtual void SAL_CALL | rename (const OUString &newName) override |
const ContentProperties & | getContentProperties () const |
css::uno::Reference< css::sdbc::XRow > | getPropertyValues (const css::uno::Sequence< css::beans::Property > &rProperties) |
const css::uno::Reference< css::uno::XComponentContext > & | getContext () const |
const TContentPtr & | getImpl () const |
Protected Member Functions | |
virtual void SAL_CALL | disposing () override |
void | notifyDataSourceModified () |
void | notifyPropertiesChange (const css::uno::Sequence< css::beans::PropertyChangeEvent > &evt) const |
This method can be used to propagate changes of property values. More... | |
OUString | impl_getHierarchicalName (bool _includingRootContainer) const |
virtual OUString | determineContentType () const =0 |
Protected Attributes | |
::comphelper::OInterfaceContainerHelper3< css::ucb::XContentEventListener > | m_aContentListeners |
PropertyChangeListenerContainer | m_aPropertyChangeListeners |
css::uno::Reference< css::uno::XInterface > | m_xParentContainer |
const css::uno::Reference< css::uno::XComponentContext > | m_aContext |
const ::connectivity::SQLError | m_aErrorHelper |
TContentPtr | m_pImpl |
sal_uInt32 | m_nCommandId |
Protected Attributes inherited from cppu::BaseMutex | |
mutable::osl::Mutex | m_aMutex |
Private Member Functions | |
css::uno::Sequence< css::uno::Any > | setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &rValues) |
void | impl_rename_throw (const OUString &_sNewName, bool _bNotify=true) |
Definition at line 86 of file ContentHelper.hxx.
dbaccess::OContentHelper::OContentHelper | ( | const css::uno::Reference< css::uno::XComponentContext > & | _xORB, |
const css::uno::Reference< css::uno::XInterface > & | _xParentContainer, | ||
TContentPtr | _pImpl | ||
) |
Definition at line 65 of file ContentHelper.cxx.
|
overridevirtual |
Definition at line 257 of file ContentHelper.cxx.
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 157 of file ContentHelper.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::addInterface(), m_aContentListeners, and cppu::BaseMutex::m_aMutex.
Referenced by dbaccess::OCommandDefinition::addContentEventListener().
|
overridevirtual |
Definition at line 262 of file ContentHelper.cxx.
References comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::addInterface(), cppu::BaseMutex::m_aMutex, m_aPropertyChangeListeners, n, and nCount.
|
overridevirtual |
Definition at line 307 of file ContentHelper.cxx.
|
overridevirtual |
Definition at line 172 of file ContentHelper.cxx.
References cppu::BaseMutex::m_aMutex, and m_nCommandId.
|
protectedpure virtual |
Implemented in dbaccess::OQuery, dbaccess::OCommandContainer, dbaccess::OComponentDefinition, dbaccess::ODocumentContainer, dbaccess::ODocumentDefinition, and dbaccess::OQueryContainer.
Referenced by getContentType().
|
overrideprotectedvirtual |
Reimplemented in dbaccess::OQuery, dbaccess::OComponentDefinition, dbaccess::ODocumentDefinition, dbaccess::ODefinitionContainer, and dbaccess::OQueryContainer.
Definition at line 78 of file ContentHelper.cxx.
References comphelper::OInterfaceContainerHelper3< class ListenerT >::disposeAndClear(), m_aContentListeners, cppu::BaseMutex::m_aMutex, and m_xParentContainer.
Referenced by dbaccess::OComponentDefinition::disposing(), dbaccess::ODocumentDefinition::disposing(), and dbaccess::ODefinitionContainer::disposing().
|
overridevirtual |
Reimplemented in dbaccess::ODocumentContainer, and dbaccess::ODocumentDefinition.
Definition at line 179 of file ContentHelper.cxx.
References aCommand, Any, aProperties, ucbhelper::cancelCommandExecution(), Environment, getPropertyValues(), Properties, and setPropertyValues().
Referenced by dbaccess::ODocumentContainer::execute(), and dbaccess::ODocumentDefinition::execute().
|
inline |
Definition at line 163 of file ContentHelper.hxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 145 of file ContentHelper.cxx.
References determineContentType(), cppu::BaseMutex::m_aMutex, and m_pImpl.
Referenced by dbaccess::OCommandDefinition::getContentType(), getPropertyValues(), and dbaccess::ODocumentDefinition::loadEmbeddedObject().
|
inline |
Definition at line 167 of file ContentHelper.hxx.
References m_aContext.
Referenced by dbaccess::OInterceptor::dispatch().
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 114 of file ContentHelper.cxx.
References impl_getHierarchicalName(), and cppu::BaseMutex::m_aMutex.
Referenced by dbaccess::OCommandDefinition::getIdentifier().
|
inline |
Definition at line 169 of file ContentHelper.hxx.
References m_pImpl.
|
overridevirtual |
Reimplemented in dbaccess::OQuery, dbaccess::OCommandContainer, dbaccess::OCommandDefinition, dbaccess::OComponentDefinition, dbaccess::ODocumentContainer, dbaccess::ODocumentDefinition, and dbaccess::ODefinitionContainer.
Definition at line 108 of file ContentHelper.cxx.
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition, dbaccess::OComponentDefinition, and dbaccess::ODefinitionContainer.
Definition at line 89 of file ContentHelper.cxx.
|
overridevirtual |
Definition at line 549 of file ContentHelper.cxx.
References cppu::BaseMutex::m_aMutex, and m_xParentContainer.
Reference< XRow > dbaccess::OContentHelper::getPropertyValues | ( | const css::uno::Sequence< css::beans::Property > & | rProperties | ) |
Definition at line 423 of file ContentHelper.cxx.
References getContentType(), m_aContext, m_pImpl, n, nCount, and Property.
Referenced by execute().
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition, dbaccess::OComponentDefinition, and dbaccess::ODefinitionContainer.
Definition at line 102 of file ContentHelper.cxx.
Referenced by supportsService().
|
protected |
Definition at line 121 of file ContentHelper.cxx.
References m_pImpl, m_xParentContainer, PROPERTY_NAME(), and sName.
Referenced by dbaccess::ODocumentContainer::getHierarchicalName(), dbaccess::ODocumentDefinition::getHierarchicalName(), getIdentifier(), and dbaccess::ODocumentDefinition::impl_openUI_nolck_throw().
|
private |
Definition at line 561 of file ContentHelper.cxx.
References Any, cppu::BaseMutex::m_aMutex, m_pImpl, notifyDataSourceModified(), notifyPropertiesChange(), PROPERTY_ID_NAME, and PROPERTY_NAME().
Referenced by rename(), and setPropertyValues().
|
overridevirtual |
Reimplemented in dbaccess::OComponentDefinition.
Definition at line 318 of file ContentHelper.cxx.
References Any, m_pImpl, m_xParentContainer, PROPERTY_NAME(), and PROPERTY_PERSISTENT_NAME().
Referenced by dbaccess::OComponentDefinition::initialize().
|
protected |
Definition at line 597 of file ContentHelper.cxx.
References m_xParentContainer, and dbaccess::notifyDataSourceModified().
Referenced by impl_rename_throw(), dbaccess::ODocumentDefinition::impl_store_throw(), dbaccess::ODefinitionContainer::implAppend(), dbaccess::ODefinitionContainer::implRemove(), dbaccess::ODocumentDefinition::save(), dbaccess::ODocumentDefinition::saveAs(), and setPropertyValues().
|
protected |
This method can be used to propagate changes of property values.
evt | is a sequence of property change events. |
Definition at line 492 of file ContentHelper.cxx.
References aListeners, comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::getContainer(), comphelper::OInterfaceIteratorHelper3< class ListenerT >::hasMoreElements(), m_aPropertyChangeListeners, n, nCount, comphelper::OInterfaceIteratorHelper3< class ListenerT >::next(), and comphelper::OInterfaceContainerHelper3< class ListenerT >::notifyEach().
Referenced by impl_rename_throw(), and setPropertyValues().
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 164 of file ContentHelper.cxx.
References m_aContentListeners, cppu::BaseMutex::m_aMutex, and comphelper::OInterfaceContainerHelper3< class ListenerT >::removeInterface().
Referenced by dbaccess::OCommandDefinition::removeContentEventListener().
|
overridevirtual |
Definition at line 284 of file ContentHelper.cxx.
References cppu::BaseMutex::m_aMutex, m_aPropertyChangeListeners, n, nCount, and comphelper::OMultiTypeInterfaceContainerHelperVar3< class listener, class key, class equalImpl >::removeInterface().
|
overridevirtual |
Definition at line 312 of file ContentHelper.cxx.
|
overridevirtual |
Reimplemented in dbaccess::OQuery, dbaccess::OCommandDefinition, dbaccess::ODocumentContainer, and dbaccess::ODocumentDefinition.
Definition at line 590 of file ContentHelper.cxx.
References impl_rename_throw(), and newName().
|
overridevirtual |
Definition at line 555 of file ContentHelper.cxx.
References cppu::BaseMutex::m_aMutex, and m_xParentContainer.
|
private |
Definition at line 341 of file ContentHelper.cxx.
References aEvent, Exception, impl_rename_throw(), cppu::BaseMutex::m_aMutex, m_pImpl, n, nCount, notifyDataSourceModified(), notifyPropertiesChange(), pValues, and TOOLS_WARN_EXCEPTION.
Referenced by execute().
|
overridevirtual |
Definition at line 93 of file ContentHelper.cxx.
References getSupportedServiceNames().
|
protected |
Definition at line 95 of file ContentHelper.hxx.
Referenced by addContentEventListener(), disposing(), and removeContentEventListener().
|
protected |
Definition at line 100 of file ContentHelper.hxx.
Referenced by dbaccess::OQueryContainer::appendByDescriptor(), dbaccess::OCommandContainer::createInstance(), dbaccess::ODocumentContainer::createInstanceWithArguments(), dbaccess::OCommandContainer::createObject(), dbaccess::ODocumentContainer::createObject(), dbaccess::ODocumentContainer::execute(), dbaccess::ODocumentDefinition::fillLoadArgs(), getContext(), getPropertyValues(), dbaccess::ODocumentDefinition::impl_onActivateEmbeddedObject_nothrow(), dbaccess::ODocumentDefinition::loadEmbeddedObject(), dbaccess::ODocumentDefinition::onCommandInsert(), dbaccess::ODocumentDefinition::onCommandOpenSomething(), dbaccess::ODocumentDefinition::save(), and dbaccess::ODocumentDefinition::saveAs().
|
protected |
Definition at line 101 of file ContentHelper.hxx.
Referenced by dbaccess::ODefinitionContainer::approveNewObject(), and dbaccess::ODocumentDefinition::rename().
|
protected |
Definition at line 96 of file ContentHelper.hxx.
Referenced by addPropertiesChangeListener(), notifyPropertiesChange(), and removePropertiesChangeListener().
|
protected |
Definition at line 103 of file ContentHelper.hxx.
Referenced by createCommandIdentifier().
|
protected |
Definition at line 102 of file ContentHelper.hxx.
Referenced by dbaccess::ODocumentContainer::createInstanceWithArguments(), dbaccess::ODocumentDefinition::determineContentType(), dbaccess::ODocumentDefinition::disposing(), dbaccess::ODocumentDefinition::execute(), dbaccess::ODocumentDefinition::fillLoadArgs(), dbaccess::ODocumentContainer::getContainerStorage(), dbaccess::ODocumentDefinition::getContainerStorage(), getContentProperties(), getContentType(), dbaccess::ODocumentDefinition::getCurrentName(), dbaccess::ODocumentDefinition::getFastPropertyValue(), getImpl(), getPropertyValues(), impl_getHierarchicalName(), dbaccess::ODocumentDefinition::impl_openUI_nolck_throw(), impl_rename_throw(), initialize(), dbaccess::ODocumentDefinition::isNewReport(), dbaccess::ODocumentDefinition::loadEmbeddedObject(), dbaccess::ODocumentDefinition::objectSupportsEmbeddedScripts(), dbaccess::ODefinitionContainer::ODefinitionContainer(), dbaccess::ODocumentContainer::ODocumentContainer(), dbaccess::ODocumentDefinition::onCommandInsert(), dbaccess::ODocumentDefinition::onCommandOpenSomething(), dbaccess::OCommandDefinition::rename(), dbaccess::ODocumentContainer::rename(), dbaccess::ODocumentDefinition::rename(), dbaccess::ODocumentDefinition::save(), dbaccess::ODocumentDefinition::saveAs(), setPropertyValues(), and dbaccess::ODocumentDefinition::updateDocumentTitle().
|
protected |
Definition at line 98 of file ContentHelper.hxx.
Referenced by disposing(), getParent(), impl_getHierarchicalName(), initialize(), dbaccess::ODocumentDefinition::loadEmbeddedObject(), notifyDataSourceModified(), dbaccess::ODocumentDefinition::save(), dbaccess::ODocumentDefinition::saveAs(), and setParent().