LibreOffice Module dbaccess (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
dbaccess::ODocumentContainer Class Reference

#include <documentcontainer.hxx>

Inheritance diagram for dbaccess::ODocumentContainer:
[legend]
Collaboration diagram for dbaccess::ODocumentContainer:
[legend]

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< OContentHelpergetContent (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 ContentPropertiesgetContentProperties () 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 TContentPtrgetImpl () 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::IPropertyArrayHelpergetArrayHelper ()
 

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::IPropertyArrayHelpercreateArrayHelper () 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 PContainerApprovegetElementApproval () const
 
virtual ~ODefinitionContainer () override
 
const ODefinitionContainer_ImplgetDefinitions () const
 
ODefinitionContainer_ImplgetDefinitions ()
 
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::IPropertyArrayHelpercreateArrayHelper () const =0
 

Private Attributes

bool m_bFormsContainer
 

Additional Inherited Members

- Protected Types inherited from dbaccess::ODefinitionContainer
enum  ContainerOperation {
  E_REPLACED ,
  E_REMOVED ,
  E_INSERTED
}
 
enum  ListenerType {
  ApproveListeners ,
  ContainerListemers
}
 
typedef std::map< OUString, css::uno::WeakReference< css::ucb::XContent > > Documents
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< ODocumentContainer >
static std::mutextheMutex ()
 
- Protected Attributes inherited from dbaccess::ODefinitionContainer
std::vector< Documents::iterator > m_aDocuments
 
Documents m_aDocumentMap
 
::comphelper::OInterfaceContainerHelper2 m_aApproveListeners
 
::comphelper::OInterfaceContainerHelper2 m_aContainerListeners
 
bool m_bInPropertyChange
 
bool m_bCheckSlash
 
- Protected Attributes inherited from dbaccess::OContentHelper
::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
 
- Static Protected Attributes inherited from comphelper::OPropertyArrayUsageHelper< ODocumentContainer >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 45 of file documentcontainer.hxx.

Constructor & Destructor Documentation

◆ ODocumentContainer()

dbaccess::ODocumentContainer::ODocumentContainer ( const css::uno::Reference< css::uno::XComponentContext > &  _xORB,
const css::uno::Reference< css::uno::XInterface > &  _xParentContainer,
const TContentPtr _pImpl,
bool  _bFormsContainer 
)

◆ ~ODocumentContainer()

dbaccess::ODocumentContainer::~ODocumentContainer ( )
overrideprotectedvirtual

Definition at line 103 of file documentcontainer.cxx.

References dispose().

Member Function Documentation

◆ commit()

void SAL_CALL dbaccess::ODocumentContainer::commit ( )
overridevirtual

◆ composeHierarchicalName()

OUString SAL_CALL dbaccess::ODocumentContainer::composeHierarchicalName ( const OUString &  aRelativeName)
overridevirtual

Definition at line 660 of file documentcontainer.cxx.

References aBuffer, and getHierarchicalName().

◆ createArrayHelper()

cppu::IPropertyArrayHelper * dbaccess::ODocumentContainer::createArrayHelper ( ) const
overrideprotectedvirtual

◆ createInstance()

Reference< XInterface > SAL_CALL dbaccess::ODocumentContainer::createInstance ( const OUString &  aServiceSpecifier)
overridevirtual

Definition at line 178 of file documentcontainer.cxx.

References createInstanceWithArguments().

◆ createInstanceWithArguments()

Reference< XInterface > SAL_CALL dbaccess::ODocumentContainer::createInstanceWithArguments ( const OUString &  ServiceSpecifier,
const css::uno::Sequence< css::uno::Any > &  Arguments 
)
overridevirtual

◆ createObject()

Reference< XContent > dbaccess::ODocumentContainer::createObject ( const OUString &  _rName)
overrideprotectedvirtual

create an object from its persistent data within the configuration.

To be overwritten by derived classes.

Parameters
_rNamethe name the object has within the container
Returns
the newly created object or an empty reference if something went wrong

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().

◆ DECLARE_SERVICE_INFO()

dbaccess::ODocumentContainer::DECLARE_SERVICE_INFO ( )

◆ determineContentType()

OUString dbaccess::ODocumentContainer::determineContentType ( ) const
overrideprotectedvirtual

OContentHelper.

Implements dbaccess::OContentHelper.

Definition at line 163 of file documentcontainer.cxx.

◆ execute()

Any SAL_CALL dbaccess::ODocumentContainer::execute ( const css::ucb::Command &  aCommand,
sal_Int32  CommandId,
const css::uno::Reference< css::ucb::XCommandEnvironment > &  Environment 
)
overridevirtual

◆ getAvailableServiceNames()

Sequence< OUString > SAL_CALL dbaccess::ODocumentContainer::getAvailableServiceNames ( )
overridevirtual

◆ getByHierarchicalName()

Any SAL_CALL dbaccess::ODocumentContainer::getByHierarchicalName ( const OUString &  _sName)
overridevirtual

Definition at line 576 of file documentcontainer.cxx.

References Any, cppu::BaseMutex::m_aMutex, and sName.

◆ getContainerStorage()

Reference< XStorage > dbaccess::ODocumentContainer::getContainerStorage ( ) const

◆ getContent()

rtl::Reference< OContentHelper > dbaccess::ODocumentContainer::getContent ( const OUString &  _sName) const

◆ getHierarchicalName()

OUString SAL_CALL dbaccess::ODocumentContainer::getHierarchicalName ( )
overridevirtual

◆ getImplementationId()

css::uno::Sequence< sal_Int8 > dbaccess::ODocumentContainer::getImplementationId ( )
overridevirtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper & dbaccess::ODocumentContainer::getInfoHelper ( )
override

◆ getPropertyDefaultByHandle()

void dbaccess::ODocumentContainer::getPropertyDefaultByHandle ( sal_Int32  _nHandle,
css::uno::Any &  _rDefault 
) const
overrideprotectedvirtual

Implements comphelper::OPropertyStateContainer.

Definition at line 679 of file documentcontainer.cxx.

◆ getPropertySetInfo()

css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL dbaccess::ODocumentContainer::getPropertySetInfo ( )
overridevirtual

Definition at line 141 of file documentcontainer.cxx.

References getInfoHelper().

◆ getTypes()

css::uno::Sequence< css::uno::Type > dbaccess::ODocumentContainer::getTypes ( )
overridevirtual

◆ hasByHierarchicalName()

sal_Bool SAL_CALL dbaccess::ODocumentContainer::hasByHierarchicalName ( const OUString &  _sName)
overridevirtual

Definition at line 587 of file documentcontainer.cxx.

References Any, cppu::BaseMutex::m_aMutex, and sName.

◆ insertByHierarchicalName()

void SAL_CALL dbaccess::ODocumentContainer::insertByHierarchicalName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

◆ loadComponentFromURL()

Reference< XComponent > SAL_CALL dbaccess::ODocumentContainer::loadComponentFromURL ( const OUString &  URL,
const OUString &  TargetFrameName,
sal_Int32  SearchFlags,
const css::uno::Sequence< css::beans::PropertyValue > &  Arguments 
)
overridevirtual

◆ removeByHierarchicalName()

void SAL_CALL dbaccess::ODocumentContainer::removeByHierarchicalName ( const OUString &  Name)
overridevirtual

Definition at line 622 of file documentcontainer.cxx.

References Any, cppu::BaseMutex::m_aMutex, and sName.

◆ removeByName()

void SAL_CALL dbaccess::ODocumentContainer::removeByName ( const OUString &  _rName)
overridevirtual

◆ rename()

void SAL_CALL dbaccess::ODocumentContainer::rename ( const OUString &  newName)
overridevirtual

◆ replaceByHierarchicalName()

void SAL_CALL dbaccess::ODocumentContainer::replaceByHierarchicalName ( const OUString &  aName,
const css::uno::Any &  aElement 
)
overridevirtual

Definition at line 638 of file documentcontainer.cxx.

References Any, cppu::BaseMutex::m_aMutex, and sName.

◆ revert()

void SAL_CALL dbaccess::ODocumentContainer::revert ( )
overridevirtual

Member Data Documentation

◆ m_bFormsContainer

bool dbaccess::ODocumentContainer::m_bFormsContainer
private

The documentation for this class was generated from the following files: