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

#include <commandcontainer.hxx>

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

Public Member Functions

 OCommandContainer (const css::uno::Reference< css::uno::XComponentContext > &_xORB, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bTables)
 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 css::uno::Reference< css::uno::XInterface > SAL_CALL createInstance () override
 
virtual css::uno::Reference< css::uno::XInterface > SAL_CALL createInstanceWithArguments (const css::uno::Sequence< css::uno::Any > &aArguments) override
 
- 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::ImplHelper1< class Ifc1 >
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
 

Protected Member Functions

virtual ~OCommandContainer () override
 
virtual css::uno::Reference< css::ucb::XContent > createObject (const OUString &_rName) override
 create an object from its persistent data within the configuration. More...
 
virtual OUString determineContentType () 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::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 

Private Attributes

bool m_bTables
 

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
 
- 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
 

Detailed Description

Definition at line 35 of file commandcontainer.hxx.

Constructor & Destructor Documentation

◆ OCommandContainer()

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

constructs the container.


Definition at line 40 of file commandcontainer.cxx.

◆ ~OCommandContainer()

dbaccess::OCommandContainer::~OCommandContainer ( )
overrideprotectedvirtual

Definition at line 50 of file commandcontainer.cxx.

Member Function Documentation

◆ createInstance()

Reference< XInterface > SAL_CALL dbaccess::OCommandContainer::createInstance ( )
overridevirtual

Definition at line 85 of file commandcontainer.cxx.

References dbaccess::OContentHelper::m_aContext, and m_bTables.

Referenced by createInstanceWithArguments().

◆ createInstanceWithArguments()

Reference< XInterface > SAL_CALL dbaccess::OCommandContainer::createInstanceWithArguments ( const css::uno::Sequence< css::uno::Any > &  aArguments)
overridevirtual

Definition at line 80 of file commandcontainer.cxx.

References createInstance().

◆ createObject()

Reference< XContent > dbaccess::OCommandContainer::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 68 of file commandcontainer.cxx.

References dbaccess::ODefinitionContainer_Impl::end(), dbaccess::ODefinitionContainer_Impl::find(), dbaccess::ODefinitionContainer::getDefinitions(), dbaccess::OContentHelper::m_aContext, and m_bTables.

◆ determineContentType()

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

Implements dbaccess::OContentHelper.

Definition at line 93 of file commandcontainer.cxx.

◆ getImplementationId()

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

Reimplemented from cppu::ImplHelper1< class Ifc1 >.

Definition at line 63 of file commandcontainer.cxx.

◆ getTypes()

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

Member Data Documentation

◆ m_bTables

bool dbaccess::OCommandContainer::m_bTables
private

Definition at line 38 of file commandcontainer.hxx.

Referenced by createInstance(), and createObject().


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