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

#include <ComponentDefinition.hxx>

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

Public Member Functions

 OComponentDefinition (const css::uno::Reference< css::uno::XComponentContext > &, const css::uno::Reference< css::uno::XInterface > &_xParentContainer, const TContentPtr &_pImpl, bool _bTable=true)
 
 OComponentDefinition (const css::uno::Reference< css::uno::XInterface > &_rxContainer, const OUString &_rElementName, const css::uno::Reference< css::uno::XComponentContext > &, const TContentPtr &_pImpl, bool _bTable=true)
 
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 void SAL_CALL initialize (css::uno::Sequence< css::uno::Any > const &rArguments) override
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual css::uno::Reference< css::container::XNameAccess > SAL_CALL getColumns () override
 
virtual ::cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual rtl::Reference< OColumncreateColumn (const OUString &_rName) const override
 creates an OColumn object which should represent the column with a given name More...
 
virtual css::uno::Reference< css::beans::XPropertySetcreateColumnDescriptor () override
 creates a column descriptor object. More...
 
virtual void columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor) override
 notifies that a column, created from a column descriptor, has been appended More...
 
virtual void columnDropped (const OUString &_sName) override
 notifies that a column with a given name has been dropped More...
 
void notifyDataSourceModified ()
 
- 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 comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
virtual rtl::Reference< OColumncreateColumn (const OUString &_rName) const =0
 creates an OColumn object which should represent the column with a given name More...
 
virtual css::uno::Reference< css::beans::XPropertySetcreateColumnDescriptor ()=0
 creates a column descriptor object. More...
 
virtual void columnAppended (const css::uno::Reference< css::beans::XPropertySet > &_rxSourceDescriptor)=0
 notifies that a column, created from a column descriptor, has been appended More...
 
virtual void columnDropped (const OUString &_sName)=0
 notifies that a column with a given name has been dropped More...
 
- 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
 
- Public Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OComponentDefinition >
 OPropertyArrayUsageHelper ()
 
virtual ~OPropertyArrayUsageHelper ()
 
::cppu::IPropertyArrayHelpergetArrayHelper ()
 

Protected Member Functions

virtual ~OComponentDefinition () override
 
virtual void SAL_CALL disposing () override
 
const OComponentDefinition_ImplgetDefinition () const
 
OComponentDefinition_ImplgetDefinition ()
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const override
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual OUString determineContentType () const override
 
- 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 dbaccess::ODataSettings
 ODataSettings (::cppu::OBroadcastHelper &_rBHelper, bool _bQuery=false)
 
virtual void getPropertyDefaultByHandle (sal_Int32 _nHandle, css::uno::Any &_rDefault) const override
 
void registerPropertiesFor (ODataSettings_Base *_pItem)
 register the properties from the param given. More...
 
- 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
 
- Protected Member Functions inherited from dbaccess::ODataSettings_Base
 ODataSettings_Base ()
 
 ODataSettings_Base (const ODataSettings_Base &_rSource)=delete
 
 ~ODataSettings_Base ()
 
- Protected Member Functions inherited from dbaccess::IColumnFactory
 ~IColumnFactory ()
 
- Protected Member Functions inherited from cppu::ImplHelper1< class Ifc1 >
 ~ImplHelper1 () SAL_NOEXCEPT
 
virtual ::cppu::IPropertyArrayHelpercreateArrayHelper () const =0
 

Private Member Functions

void registerProperties ()
 

Private Attributes

std::unique_ptr< OColumnsm_pColumns
 
rtl::Reference< OColumnPropertyListenerm_xColumnPropertyListener
 
bool m_bTable
 

Additional Inherited Members

- Public Attributes inherited from dbaccess::ODataSettings_Base
OUString m_sFilter
 
OUString m_sHavingClause
 
OUString m_sGroupBy
 
OUString m_sOrder
 
bool m_bApplyFilter
 
bool m_bAutoGrow
 
css::awt::FontDescriptor m_aFont
 
css::uno::Any m_aRowHeight
 
css::uno::Any m_aTextColor
 
css::uno::Any m_aTextLineColor
 
sal_Int16 m_nFontEmphasis
 
sal_Int16 m_nFontRelief
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyArrayUsageHelper< OComponentDefinition >
static std::mutextheMutex ()
 
- 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< OComponentDefinition >
static sal_Int32 s_nRefCount
 
::cppu::IPropertyArrayHelpers_pProps
 

Detailed Description

Definition at line 81 of file ComponentDefinition.hxx.

Constructor & Destructor Documentation

◆ ~OComponentDefinition()

dbaccess::OComponentDefinition::~OComponentDefinition ( )
overrideprotectedvirtual

Definition at line 121 of file ComponentDefinition.cxx.

◆ OComponentDefinition() [1/2]

dbaccess::OComponentDefinition::OComponentDefinition ( const css::uno::Reference< css::uno::XComponentContext > &  ,
const css::uno::Reference< css::uno::XInterface > &  _xParentContainer,
const TContentPtr _pImpl,
bool  _bTable = true 
)

◆ OComponentDefinition() [2/2]

dbaccess::OComponentDefinition::OComponentDefinition ( const css::uno::Reference< css::uno::XInterface > &  _rxContainer,
const OUString &  _rElementName,
const css::uno::Reference< css::uno::XComponentContext > &  ,
const TContentPtr _pImpl,
bool  _bTable = true 
)

References DECLARE_XINTERFACE.

Member Function Documentation

◆ columnAppended()

void dbaccess::OComponentDefinition::columnAppended ( const css::uno::Reference< css::beans::XPropertySet > &  _rxSourceDescriptor)
overridevirtual

notifies that a column, created from a column descriptor, has been appended

Implements dbaccess::IColumnFactory.

Definition at line 254 of file ComponentDefinition.cxx.

References getDefinition(), dbaccess::OComponentDefinition_Impl::insert(), notifyDataSourceModified(), PROPERTY_NAME(), and sName.

◆ columnDropped()

void dbaccess::OComponentDefinition::columnDropped ( const OUString &  _sName)
overridevirtual

notifies that a column with a given name has been dropped

Implements dbaccess::IColumnFactory.

Definition at line 248 of file ComponentDefinition.cxx.

References dbaccess::OComponentDefinition_Impl::erase(), getDefinition(), and notifyDataSourceModified().

◆ createArrayHelper()

IPropertyArrayHelper * dbaccess::OComponentDefinition::createArrayHelper ( ) const
overrideprotectedvirtual

◆ createColumn()

rtl::Reference< OColumn > dbaccess::OComponentDefinition::createColumn ( const OUString &  _rName) const
overridevirtual

creates an OColumn object which should represent the column with a given name

Implements dbaccess::IColumnFactory.

Definition at line 223 of file ComponentDefinition.cxx.

References dbaccess::OComponentDefinition_Impl::end(), dbaccess::OComponentDefinition_Impl::find(), getDefinition(), and m_xColumnPropertyListener.

◆ createColumnDescriptor()

Reference< XPropertySet > dbaccess::OComponentDefinition::createColumnDescriptor ( )
overridevirtual

creates a column descriptor object.

A column descriptor object is used to append new columns to the collection. If such an append actually happened, columnAppended is called afterwards.

Implements dbaccess::IColumnFactory.

Definition at line 237 of file ComponentDefinition.cxx.

◆ determineContentType()

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

Implements dbaccess::OContentHelper.

Definition at line 194 of file ComponentDefinition.cxx.

References m_bTable.

◆ disposing()

void SAL_CALL dbaccess::OComponentDefinition::disposing ( )
overrideprotectedvirtual

◆ getColumns()

Reference< XNameAccess > dbaccess::OComponentDefinition::getColumns ( )
overridevirtual

◆ getDefinition() [1/2]

OComponentDefinition_Impl & dbaccess::OComponentDefinition::getDefinition ( )
inlineprotected

Definition at line 97 of file ComponentDefinition.hxx.

◆ getDefinition() [2/2]

const OComponentDefinition_Impl & dbaccess::OComponentDefinition::getDefinition ( ) const
inlineprotected

◆ getImplementationId()

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

Reimplemented from cppu::ImplHelper1< class Ifc1 >.

Reimplemented in dbaccess::OCommandDefinition.

Definition at line 140 of file ComponentDefinition.cxx.

◆ getImplementationName()

OUString SAL_CALL dbaccess::OComponentDefinition::getImplementationName ( )
overridevirtual

Reimplemented from dbaccess::OContentHelper.

Reimplemented in dbaccess::OCommandDefinition.

Definition at line 155 of file ComponentDefinition.cxx.

◆ getInfoHelper()

IPropertyArrayHelper & dbaccess::OComponentDefinition::getInfoHelper ( )
override

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL dbaccess::OComponentDefinition::getPropertySetInfo ( )
overridevirtual

Reimplemented in dbaccess::OCommandDefinition.

Definition at line 188 of file ComponentDefinition.cxx.

References getInfoHelper().

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL dbaccess::OComponentDefinition::getSupportedServiceNames ( )
overridevirtual

Reimplemented from dbaccess::OContentHelper.

Reimplemented in dbaccess::OCommandDefinition.

Definition at line 160 of file ComponentDefinition.cxx.

◆ getTypes()

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

◆ initialize()

void dbaccess::OComponentDefinition::initialize ( css::uno::Sequence< css::uno::Any > const &  rArguments)
overridevirtual

◆ notifyDataSourceModified()

void dbaccess::OContentHelper::notifyDataSourceModified ( )

◆ registerProperties()

void dbaccess::OComponentDefinition::registerProperties ( )
private

◆ setFastPropertyValue_NoBroadcast()

void dbaccess::OComponentDefinition::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

Member Data Documentation

◆ m_bTable

bool dbaccess::OComponentDefinition::m_bTable
private

Definition at line 90 of file ComponentDefinition.hxx.

Referenced by determineContentType(), and registerProperties().

◆ m_pColumns

std::unique_ptr<OColumns> dbaccess::OComponentDefinition::m_pColumns
private

Definition at line 88 of file ComponentDefinition.hxx.

Referenced by disposing(), and getColumns().

◆ m_xColumnPropertyListener

rtl::Reference<OColumnPropertyListener> dbaccess::OComponentDefinition::m_xColumnPropertyListener
private

Definition at line 89 of file ComponentDefinition.hxx.

Referenced by createColumn(), disposing(), and registerProperties().


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