LibreOffice Module dbaccess (master) 1
|
#include <ComponentDefinition.hxx>
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< OColumn > | createColumn (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::XPropertySet > | createColumnDescriptor () 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 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 comphelper::OPropertyContainer | |
virtual | ~OPropertyContainer () |
virtual rtl::Reference< OColumn > | createColumn (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::XPropertySet > | createColumnDescriptor ()=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::IPropertyArrayHelper * | getArrayHelper () |
Protected Member Functions | |
virtual | ~OComponentDefinition () override |
virtual void SAL_CALL | disposing () override |
const OComponentDefinition_Impl & | getDefinition () const |
OComponentDefinition_Impl & | getDefinition () |
virtual ::cppu::IPropertyArrayHelper * | createArrayHelper () 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::IPropertyArrayHelper * | createArrayHelper () const =0 |
Private Member Functions | |
void | registerProperties () |
Private Attributes | |
std::unique_ptr< OColumns > | m_pColumns |
rtl::Reference< OColumnPropertyListener > | m_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::mutex & | theMutex () |
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::IPropertyArrayHelper * | s_pProps |
Definition at line 81 of file ComponentDefinition.hxx.
|
overrideprotectedvirtual |
Definition at line 121 of file ComponentDefinition.cxx.
dbaccess::OComponentDefinition::OComponentDefinition | ( | const css::uno::Reference< css::uno::XComponentContext > & | , |
const css::uno::Reference< css::uno::XInterface > & | _xParentContainer, | ||
const TContentPtr & | _pImpl, | ||
bool | _bTable = true |
||
) |
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.
|
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.
|
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().
|
overrideprotectedvirtual |
Implements comphelper::OPropertyArrayUsageHelper< OComponentDefinition >.
Definition at line 181 of file ComponentDefinition.cxx.
References comphelper::OPropertyContainerHelper::describeProperties().
|
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.
|
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.
|
overrideprotectedvirtual |
Implements dbaccess::OContentHelper.
Definition at line 194 of file ComponentDefinition.cxx.
References m_bTable.
|
overrideprotectedvirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 165 of file ComponentDefinition.cxx.
References dbaccess::OContentHelper::disposing(), m_pColumns, and m_xColumnPropertyListener.
|
overridevirtual |
Definition at line 201 of file ComponentDefinition.cxx.
References getDefinition(), cppu::BaseMutex::m_aMutex, m_pColumns, and dbaccess::OComponentDefinition_Impl::size().
|
inlineprotected |
Definition at line 97 of file ComponentDefinition.hxx.
|
inlineprotected |
Definition at line 96 of file ComponentDefinition.hxx.
Referenced by columnAppended(), columnDropped(), createColumn(), getColumns(), and registerProperties().
|
overridevirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 140 of file ComponentDefinition.cxx.
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 155 of file ComponentDefinition.cxx.
|
override |
Definition at line 176 of file ComponentDefinition.cxx.
References comphelper::OPropertyArrayUsageHelper< OComponentDefinition >::getArrayHelper().
Referenced by getPropertySetInfo().
|
overridevirtual |
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 188 of file ComponentDefinition.cxx.
References getInfoHelper().
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 160 of file ComponentDefinition.cxx.
|
overridevirtual |
Reimplemented from cppu::ImplHelper1< class Ifc1 >.
Reimplemented in dbaccess::OCommandDefinition.
Definition at line 145 of file ComponentDefinition.cxx.
References cppu::ImplHelper1< class Ifc1 >::getTypes().
Referenced by dbaccess::OCommandDefinition::getTypes().
|
overridevirtual |
Reimplemented from dbaccess::OContentHelper.
Definition at line 76 of file ComponentDefinition.cxx.
References aArguments, Any, comphelper::InitAnyPropertySequence(), dbaccess::OContentHelper::initialize(), and PROPERTY_NAME().
void dbaccess::OContentHelper::notifyDataSourceModified | ( | ) |
Definition at line 108 of file ContentHelper.cxx.
Referenced by columnAppended(), columnDropped(), dbaccess::OColumnPropertyListener::propertyChange(), and setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 91 of file ComponentDefinition.cxx.
References dbaccess::ContentProperties::aTitle, getDefinition(), dbaccess::OContentHelper_Impl::m_aProps, m_bTable, dbaccess::OComponentDefinition_Impl::m_sCatalogName, dbaccess::OComponentDefinition_Impl::m_sSchemaName, m_xColumnPropertyListener, PROPERTY_CATALOGNAME(), PROPERTY_ID_CATALOGNAME, PROPERTY_ID_NAME, PROPERTY_ID_SCHEMANAME, PROPERTY_NAME(), PROPERTY_SCHEMANAME(), dbaccess::ODataSettings::registerPropertiesFor(), and comphelper::OPropertyContainerHelper::registerProperty().
|
overrideprotectedvirtual |
Reimplemented from comphelper::OPropertyContainer.
Definition at line 242 of file ComponentDefinition.cxx.
References nHandle, notifyDataSourceModified(), and comphelper::OPropertyContainer::setFastPropertyValue_NoBroadcast().
|
private |
Definition at line 90 of file ComponentDefinition.hxx.
Referenced by determineContentType(), and registerProperties().
|
private |
Definition at line 88 of file ComponentDefinition.hxx.
Referenced by disposing(), and getColumns().
|
private |
Definition at line 89 of file ComponentDefinition.hxx.
Referenced by createColumn(), disposing(), and registerProperties().