LibreOffice Module dbaccess (master) 1
|
#include <documentcontainer.hxx>
Public Member Functions | |
ODocumentContainer (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bFormsContainer) | |
constructs the container. More... | |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
DECLARE_SERVICE_INFO () | |
virtual css::uno::Reference< css::lang::XComponent > SAL_CALL | loadComponentFromURL (const OUString &URL, const OUString &TargetFrameName, sal_Int32 SearchFlags, const css::uno::Sequence< css::beans::PropertyValue > &Arguments) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstance (const OUString &aServiceSpecifier) override |
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL | createInstanceWithArguments (const OUString &ServiceSpecifier, const css::uno::Sequence< css::uno::Any > &Arguments) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getAvailableServiceNames () 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 css::uno::Any SAL_CALL | getByHierarchicalName (const OUString &_sName) override |
virtual sal_Bool SAL_CALL | hasByHierarchicalName (const OUString &_sName) override |
virtual void SAL_CALL | insertByHierarchicalName (const OUString &aName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByHierarchicalName (const OUString &Name) override |
virtual OUString SAL_CALL | getHierarchicalName () override |
virtual OUString SAL_CALL | composeHierarchicalName (const OUString &aRelativeName) override |
virtual void SAL_CALL | removeByName (const OUString &_rName) override |
virtual void SAL_CALL | replaceByHierarchicalName (const OUString &aName, const css::uno::Any &aElement) override |
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL | getPropertySetInfo () override |
virtual void SAL_CALL | commit () override |
virtual void SAL_CALL | revert () override |
virtual void SAL_CALL | rename (const OUString &newName) override |
virtual ::cppu::IPropertyArrayHelper &SAL_CALL | getInfoHelper () override |
::rtl::Reference< OContentHelper > | getContent (const OUString &_sName) const |
css::uno::Reference< css::embed::XStorage > | getContainerStorage () const |
Public Member Functions inherited from dbaccess::ODefinitionContainer | |
ODefinitionContainer (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bCheckSlash=true) | |
constructs the container. More... | |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
virtual OUString SAL_CALL | getImplementationName () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedServiceNames () override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
virtual sal_Int32 SAL_CALL | getCount () override |
virtual css::uno::Any SAL_CALL | getByIndex (sal_Int32 _nIndex) override |
virtual void SAL_CALL | insertByName (const OUString &_rName, const css::uno::Any &aElement) override |
virtual void SAL_CALL | removeByName (const OUString &_rName) override |
virtual void SAL_CALL | replaceByName (const OUString &_rName, const css::uno::Any &aElement) override |
virtual css::uno::Any SAL_CALL | getByName (const OUString &aName) override |
virtual css::uno::Sequence< OUString > SAL_CALL | getElementNames () override |
virtual sal_Bool SAL_CALL | hasByName (const OUString &aName) override |
virtual void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
virtual void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &xListener) override |
virtual void SAL_CALL | addContainerApproveListener (const css::uno::Reference< css::container::XContainerApproveListener > &Listener) override |
virtual void SAL_CALL | removeContainerApproveListener (const css::uno::Reference< css::container::XContainerApproveListener > &Listener) override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | vetoableChange (const css::beans::PropertyChangeEvent &aEvent) override |
Public Member Functions inherited from dbaccess::OContentHelper | |
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 |
Public Member Functions inherited from cppu::ImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) SAL_OVERRIDE |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () SAL_OVERRIDE |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () SAL_OVERRIDE |
Public Member Functions inherited from comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ODocumentContainer > | |
OPropertyArrayUsageHelper () | |
virtual | ~OPropertyArrayUsageHelper () |
::cppu::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
virtual | ~ODocumentContainer () override |
virtual OUString | determineContentType () const override |
OContentHelper. More... | |
virtual css::uno::Reference< css::ucb::XContent > | createObject (const OUString &_rName) override |
create an object from its persistent data within the configuration. More... | |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const override |
Protected Member Functions inherited from dbaccess::ODefinitionContainer | |
void | setElementApproval (PContainerApprove _pElementApproval) |
Additionally to our own approvals which new elements must pass, derived classes can specify an additional approval instance here. More... | |
const PContainerApprove & | getElementApproval () const |
virtual | ~ODefinitionContainer () override |
const ODefinitionContainer_Impl & | getDefinitions () const |
ODefinitionContainer_Impl & | getDefinitions () |
virtual void SAL_CALL | disposing () override |
virtual css::uno::Reference< css::ucb::XContent > | createObject (const OUString &_rName)=0 |
create an object from its persistent data within the configuration. More... | |
css::uno::Reference< css::ucb::XContent > | implGetByName (const OUString &_rName, bool _bCreateIfNecessary) |
get the object specified by the given name. More... | |
virtual bool | checkExistence (const OUString &_rName) |
quickly checks if there already is an element with a given name. More... | |
void | implAppend (const OUString &_rName, const css::uno::Reference< css::ucb::XContent > &_rxNewObject) |
append a new object to the container. More... | |
void | implRemove (const OUString &_rName) |
remove all references to an object from the container. More... | |
void | implReplace (const OUString &_rName, const css::uno::Reference< css::ucb::XContent > &_rxNewObject) |
remove an object in the container. More... | |
void | notifyByName (::osl::ResettableMutexGuard &_rGuard, const OUString &_rName, const css::uno::Reference< css::ucb::XContent > &_xNewElement, const css::uno::Reference< css::ucb::XContent > &xOldElement, ContainerOperation _eOperation, ListenerType _eType) |
notifies our container/approve listeners More... | |
operator css::uno::Reference< css::uno::XInterface > () const | |
Protected Member Functions inherited from dbaccess::OContentHelper | |
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 Member Functions inherited from cppu::ImplHelper7< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6, class Ifc7 > | |
~ImplHelper7 () SAL_NOEXCEPT | |
Protected Member Functions inherited from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 > | |
~ImplHelper5 () SAL_NOEXCEPT | |
Protected Member Functions inherited from comphelper::OPropertyStateContainer | |
OPropertyStateContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual css::beans::PropertyState SAL_CALL | getPropertyState (const OUString &PropertyName) override |
virtual css::uno::Sequence< css::beans::PropertyState > SAL_CALL | getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override |
virtual void SAL_CALL | setPropertyToDefault (const OUString &PropertyName) override |
virtual css::uno::Any SAL_CALL | getPropertyDefault (const OUString &aPropertyName) override |
css::beans::PropertyState | getPropertyStateByHandle (sal_Int32 _nHandle) const |
void | setPropertyToDefaultByHandle (sal_Int32 _nHandle) |
virtual void | getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const=0 |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
sal_Int32 | getHandleForName (const OUString &_rPropertyName) |
Protected Member Functions inherited from comphelper::OPropertyContainer | |
OPropertyContainer (::cppu::OBroadcastHelper &_rBHelper) | |
virtual sal_Bool SAL_CALL | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override |
virtual void SAL_CALL | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override |
virtual css::uno::Any SAL_CALL | getFastPropertyValue (sal_Int32 nHandle) override final |
virtual void | getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const =0 |
virtual void SAL_CALL | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final |
Protected Member Functions inherited from comphelper::OPropertyContainerHelper | |
OPropertyContainerHelper () | |
~OPropertyContainerHelper () | |
void | registerProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, void *_pPointerToMember, const css::uno::Type &_rMemberType) |
void | registerMayBeVoidProperty (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, css::uno::Any *_pPointerToMember, const css::uno::Type &_rExpectedType) |
void | registerPropertyNoMember (const OUString &_rName, sal_Int32 _nHandle, sal_Int32 _nAttributes, const css::uno::Type &_rType, css::uno::Any const &_pInitialValue) |
void | revokeProperty (sal_Int32 _nHandle) |
bool | isRegisteredProperty (sal_Int32 _nHandle) const |
bool | isRegisteredProperty (const OUString &_rName) const |
bool | convertFastPropertyValue (css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) |
void | setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) |
void | getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const |
void | describeProperties (css::uno::Sequence< css::beans::Property > &_rProps) const |
const css::beans::Property & | getProperty (const OUString &_rName) const |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () const =0 |
Private Attributes | |
bool | m_bFormsContainer |
Definition at line 45 of file documentcontainer.hxx.
dbaccess::ODocumentContainer::ODocumentContainer | ( | const css::uno::Reference< css::uno::XComponentContext > & | _xORB, |
const css::uno::Reference< css::uno::XInterface > & | _xParentContainer, | ||
const TContentPtr & | _pImpl, | ||
bool | _bFormsContainer | ||
) |
constructs the container.
Definition at line 88 of file documentcontainer.cxx.
References dbaccess::OContentHelper::m_pImpl, PROPERTY_ID_NAME, PROPERTY_NAME(), comphelper::OPropertyContainerHelper::registerProperty(), and dbaccess::ODefinitionContainer::setElementApproval().
Referenced by createInstanceWithArguments(), and createObject().
|
overrideprotectedvirtual |
Definition at line 103 of file documentcontainer.cxx.
References dispose().
|
overridevirtual |
Definition at line 684 of file documentcontainer.cxx.
References getContainerStorage(), dbaccess::ODefinitionContainer::m_aDocumentMap, and cppu::BaseMutex::m_aMutex.
|
overridevirtual |
Definition at line 660 of file documentcontainer.cxx.
References aBuffer, and getHierarchicalName().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< ODocumentContainer >.
Definition at line 150 of file documentcontainer.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
overridevirtual |
Definition at line 178 of file documentcontainer.cxx.
References createInstanceWithArguments().
|
overridevirtual |
Definition at line 196 of file documentcontainer.cxx.
References aArguments, aClassID, aCommand, Any, aSeq, Command, dbaccess::ODefinitionContainer_Impl::end(), dbaccess::ODefinitionContainer_Impl::find(), comphelper::NamedValueCollection::get(), getContainerStorage(), dbaccess::ODefinitionContainer::getDefinitions(), dbaccess::ODocumentDefinition::GetDocumentServiceFromMediaType(), comphelper::MimeConfigurationHelper::GetObjectPropsByDocumentName(), comphelper::NamedValueCollection::getPropertyValues(), comphelper::MimeConfigurationHelper::GetSequenceClassIDRepresentation(), comphelper::MimeConfigurationHelper::GetStringClassIDRepresentation(), INFO_MEDIATYPE, comphelper::InitAnyPropertySequence(), dbaccess::OContentHelper::m_aContext, cppu::BaseMutex::m_aMutex, m_bFormsContainer, dbaccess::OContentHelper::m_pImpl, ODocumentContainer(), PROPERTY_ACTIVE_CONNECTION(), PROPERTY_AS_TEMPLATE(), PROPERTY_EMBEDDEDOBJECT(), PROPERTY_NAME(), PROPERTY_PERSISTENT_NAME(), PROPERTY_URL(), comphelper::NamedValueCollection::remove(), SERVICE_NAME_FORM_COLLECTION, SERVICE_NAME_REPORT_COLLECTION, SERVICE_SDB_DOCUMENTDEFINITION, dbaccess::ODefinitionContainer_Impl::size(), sMediaType, sName, and sServiceName.
Referenced by createInstance().
|
overrideprotectedvirtual |
create an object from its persistent data within the configuration.
To be overwritten by derived classes.
_rName | the name the object has within the container |
Implements dbaccess::ODefinitionContainer.
Definition at line 168 of file documentcontainer.cxx.
References dbaccess::ODefinitionContainer_Impl::end(), dbaccess::ODefinitionContainer_Impl::find(), dbaccess::ODefinitionContainer::getDefinitions(), dbaccess::OContentHelper::m_aContext, m_bFormsContainer, and ODocumentContainer().
dbaccess::ODocumentContainer::DECLARE_SERVICE_INFO | ( | ) |
|
overrideprotectedvirtual |
Implements dbaccess::OContentHelper.
Definition at line 163 of file documentcontainer.cxx.
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 415 of file documentcontainer.cxx.
References aCommand, Any, aSeq, ucbhelper::cancelCommandExecution(), dispose(), Environment, dbaccess::OContentHelper::execute(), dbaccess::ODefinitionContainer::getElementNames(), dbaccess::OContentHelper::m_aContext, and removeByName().
|
overridevirtual |
Definition at line 405 of file documentcontainer.cxx.
References SERVICE_NAME_FORM_COLLECTION, SERVICE_NAME_REPORT_COLLECTION, and SERVICE_SDB_DOCUMENTDEFINITION.
|
overridevirtual |
Definition at line 576 of file documentcontainer.cxx.
References Any, cppu::BaseMutex::m_aMutex, and sName.
Reference< XStorage > dbaccess::ODocumentContainer::getContainerStorage | ( | ) | const |
Definition at line 712 of file documentcontainer.cxx.
References dbaccess::ODatabaseModelImpl::Form, m_bFormsContainer, dbaccess::OContentHelper::m_pImpl, and dbaccess::ODatabaseModelImpl::Report.
Referenced by commit(), createInstanceWithArguments(), and revert().
rtl::Reference< OContentHelper > dbaccess::ODocumentContainer::getContent | ( | const OUString & | _sName | ) | const |
Definition at line 666 of file documentcontainer.cxx.
References Exception, and dbaccess::ODefinitionContainer::implGetByName().
|
overridevirtual |
Definition at line 654 of file documentcontainer.cxx.
References dbaccess::OContentHelper::impl_getHierarchicalName(), and cppu::BaseMutex::m_aMutex.
Referenced by composeHierarchicalName().
|
overridevirtual |
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
Definition at line 115 of file documentcontainer.cxx.
|
override |
Definition at line 146 of file documentcontainer.cxx.
References comphelper::OPropertyArrayUsageHelper< ODocumentContainer >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyStateContainer.
Definition at line 679 of file documentcontainer.cxx.
|
overridevirtual |
Definition at line 141 of file documentcontainer.cxx.
References getInfoHelper().
|
overridevirtual |
Reimplemented from cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >.
Definition at line 120 of file documentcontainer.cxx.
References dbaccess::ODefinitionContainer::getTypes(), and cppu::ImplHelper5< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5 >::getTypes().
|
overridevirtual |
Definition at line 587 of file documentcontainer.cxx.
References Any, cppu::BaseMutex::m_aMutex, and sName.
|
overridevirtual |
Definition at line 597 of file documentcontainer.cxx.
References Any, DBA_RES, o3tl::getToken(), index, cppu::BaseMutex::m_aMutex, sMessage, and sName.
|
overridevirtual |
Definition at line 527 of file documentcontainer.cxx.
References aCommand, Any, Command, DBA_RES, comphelper::NamedValueCollection::getOrDefault(), comphelper::NamedValueCollection::getPropertyValues(), cppu::BaseMutex::m_aMutex, comphelper::NamedValueCollection::put(), comphelper::NamedValueCollection::remove(), sMessage, and sName.
|
overridevirtual |
Definition at line 622 of file documentcontainer.cxx.
References Any, cppu::BaseMutex::m_aMutex, and sName.
|
overridevirtual |
Reimplemented from dbaccess::ODefinitionContainer.
Definition at line 719 of file documentcontainer.cxx.
References aCommand, dbaccess::ODefinitionContainer::checkExistence(), Command, dbaccess::ODefinitionContainer::ContainerListemers, dbaccess::ODefinitionContainer::E_REMOVED, dbaccess::ODefinitionContainer::implGetByName(), dbaccess::ODefinitionContainer::implRemove(), cppu::BaseMutex::m_aMutex, and dbaccess::ODefinitionContainer::notifyByName().
Referenced by execute().
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 745 of file documentcontainer.cxx.
References Any, cppu::BaseMutex::m_aMutex, dbaccess::OContentHelper::m_pImpl, newName(), nHandle, and PROPERTY_ID_NAME.
|
overridevirtual |
Definition at line 638 of file documentcontainer.cxx.
References Any, cppu::BaseMutex::m_aMutex, and sName.
|
overridevirtual |
Definition at line 698 of file documentcontainer.cxx.
References getContainerStorage(), dbaccess::ODefinitionContainer::m_aDocumentMap, and cppu::BaseMutex::m_aMutex.
|
private |
Definition at line 50 of file documentcontainer.hxx.
Referenced by createInstanceWithArguments(), createObject(), and getContainerStorage().