LibreOffice Module forms (master) 1
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
frm::OControlModel Class Referenceabstract

#include <FormComponent.hxx>

Inheritance diagram for frm::OControlModel:
[legend]
Collaboration diagram for frm::OControlModel:
[legend]

Classes

struct  LockAccess
 

Public Member Functions

virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &_rType) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual void SAL_CALL disposing () override
 
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) 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=0
 
virtual OUString SAL_CALL getServiceName () override=0
 
virtual void SAL_CALL write (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) override
 
virtual void SAL_CALL read (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream) 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 disposing (const css::lang::EventObject &Source) override
 
virtual void SAL_CALL getFastPropertyValue (css::uno::Any &rValue, sal_Int32 nHandle) const override
 
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 css::beans::PropertyState getPropertyStateByHandle (sal_Int32 nHandle) override
 
virtual void setPropertyToDefaultByHandle (sal_Int32 nHandle) override
 
virtual css::uno::Any getPropertyDefaultByHandle (sal_Int32 nHandle) const override
 
virtual css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () override=0
 
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 css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getPropertyValues () override
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence< css::beans::PropertyValue > &aProps) override
 
void lockInstance (LockAccess)
 
oslInterlockedCount unlockInstance (LockAccess)
 
void firePropertyChanges (const std::vector< sal_Int32 > &_rHandles, const std::vector< css::uno::Any > &_rOldValues, const std::vector< css::uno::Any > &_rNewValues, LockAccess)
 
::osl::Mutex & getInstanceMutex ()
 
- Public Member Functions inherited from cppu::OComponentHelper
 OComponentHelper (::osl::Mutex &rMutex)
 
virtual ~OComponentHelper () SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (css::uno::Type const &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () SAL_OVERRIDE=0
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () SAL_OVERRIDE
 
virtual void SAL_CALL dispose () SAL_OVERRIDE
 
virtual void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
virtual void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakAggObject
 OWeakAggObject ()
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL setDelegator (const css::uno::Reference< css::uno::XInterface > &Delegator) SAL_OVERRIDE
 
virtual css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) SAL_OVERRIDE
 
- Public Member Functions inherited from cppu::OWeakObject
 OWeakObject ()
 
 OWeakObject (const OWeakObject &)
 
OWeakObject &SAL_CALL operator= (const OWeakObject &)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) SAL_OVERRIDE
 
virtual void SAL_CALL acquire () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual void SAL_CALL release () SAL_NOEXCEPT SAL_OVERRIDE
 
virtual css::uno::Reference< css::uno::XAdapter > SAL_CALL queryAdapter () SAL_OVERRIDE
 
SAL_CALL operator css::uno::Reference< css::uno::XInterface > ()
 
- 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
 
virtual ::osl::Mutex & getMutex ()=0
 
virtual void describeFixedAndAggregateProperties (css::uno::Sequence< css::beans::Property > &_out_rFixedProperties, css::uno::Sequence< css::beans::Property > &_out_rAggregateProperties) const =0
 
virtual css::uno::Reference< css::beans::XMultiPropertySet > getPropertiesInterface ()=0
 

Static Public Member Functions

static css::uno::Sequence< OUString > getSupportedServiceNames_Static ()
 

Protected Member Functions

const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
 OControlModel (const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const OUString &_rUnoControlModelTypeName, const OUString &rDefault=OUString(), const bool _bSetDelegator=true)
 
 OControlModel (const OControlModel *_pOriginal, const css::uno::Reference< css::uno::XComponentContext > &_rFactory, const bool _bCloneAggregate=true, const bool _bSetDelegator=true)
 
virtual ~OControlModel () override
 
virtual void clonedFrom (const OControlModel *_pOriginal)
 to be called after an OBoundControlModel (a derivee, respectively) has been cloned More...
 
virtual css::uno::Sequence< css::uno::Type > _getTypes ()
 
void readHelpTextCompatibly (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream)
 
void writeHelpTextCompatibly (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream)
 
void doSetDelegator ()
 
void doResetDelegator ()
 
css::uno::Sequence< OUString > getAggregateServiceNames () const
 
virtual void writeAggregate (const css::uno::Reference< css::io::XObjectOutputStream > &_rxOutStream) const
 
virtual void readAggregate (const css::uno::Reference< css::io::XObjectInputStream > &_rxInStream)
 
virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
virtual cppu::IPropertyArrayHelper &SAL_CALL getInfoHelper () override
 
virtual void describeFixedProperties (css::uno::Sequence< css::beans::Property > &_rProps) const
 describes the properties provided by this class, or its respective derived class More...
 
virtual ::osl::Mutex & getMutex () override
 
virtual void describeFixedAndAggregateProperties (css::uno::Sequence< css::beans::Property > &_out_rFixedProperties, css::uno::Sequence< css::beans::Property > &_out_rAggregateProperties) const override
 
virtual css::uno::Reference< css::beans::XMultiPropertySet > getPropertiesInterface () override
 
virtual void describeAggregateProperties (css::uno::Sequence< css::beans::Property > &_rAggregateProps) const
 describes the properties of our aggregate More...
 
virtual void SAL_CALL disposing ()
 
- Protected Member Functions inherited from cppu::OWeakAggObject
virtual ~OWeakAggObject () SAL_OVERRIDE
 
- Protected Member Functions inherited from cppu::OWeakObject
virtual ~OWeakObject () COVERITY_NOEXCEPT_FALSE
 
void disposeWeakConnectionPoint ()
 
- 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 frm::IPropertyBagHelperContext
 ~IPropertyBagHelperContext ()
 

Protected Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
::osl::Mutex m_aMutex
 
oslInterlockedCount m_lockCount
 
css::uno::Reference< css::uno::XInterface > m_xParent
 
PropertyBagHelper m_aPropertyBagHelper
 
OUString m_aName
 
OUString m_aTag
 
sal_Int16 m_nTabIndex
 
sal_Int16 m_nClassId
 
bool m_bNativeLook
 
bool m_bStandardTheme
 
bool m_bGenerateVbEvents
 
sal_Int16 m_nControlTypeinMSO
 
sal_uInt16 m_nObjIDinMSO
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from frm::OCloneableAggregation
css::uno::Reference< css::uno::XAggregation > m_xAggregate
 

Additional Inherited Members

- Static Protected Member Functions inherited from frm::OCloneableAggregation
static css::uno::Reference< css::uno::XAggregation > createAggregateClone (const OCloneableAggregation *_pOriginal)
 

Detailed Description

Definition at line 299 of file FormComponent.hxx.

Constructor & Destructor Documentation

◆ OControlModel() [1/2]

frm::OControlModel::OControlModel ( const css::uno::Reference< css::uno::XComponentContext > &  _rFactory,
const OUString &  _rUnoControlModelTypeName,
const OUString &  rDefault = OUString(),
const bool  _bSetDelegator = true 
)
protected

◆ OControlModel() [2/2]

frm::OControlModel::OControlModel ( const OControlModel _pOriginal,
const css::uno::Reference< css::uno::XComponentContext > &  _rFactory,
const bool  _bCloneAggregate = true,
const bool  _bSetDelegator = true 
)
protected

◆ ~OControlModel()

frm::OControlModel::~OControlModel ( )
overrideprotectedvirtual

Definition at line 578 of file FormComponent.cxx.

References doResetDelegator().

Member Function Documentation

◆ _getTypes()

Sequence< Type > frm::OControlModel::_getTypes ( )
protectedvirtual

◆ addProperty()

void SAL_CALL frm::OControlModel::addProperty ( const OUString &  Name,
::sal_Int16  Attributes,
const css::uno::Any &  DefaultValue 
)
overridevirtual

◆ clonedFrom()

void frm::OControlModel::clonedFrom ( const OControlModel _pOriginal)
protectedvirtual

to be called after an OBoundControlModel (a derivee, respectively) has been cloned

This method contains late initializations which cannot be done in the constructor of this base class, since the virtual method of derived classes do not yet work there.

Reimplemented in frm::OBoundControlModel.

Definition at line 584 of file FormComponent.cxx.

◆ convertFastPropertyValue()

sal_Bool frm::OControlModel::convertFastPropertyValue ( css::uno::Any &  _rConvertedValue,
css::uno::Any &  _rOldValue,
sal_Int32  _nHandle,
const css::uno::Any &  _rValue 
)
overridevirtual

◆ createClone()

virtual css::uno::Reference< css::util::XCloneable > SAL_CALL frm::OControlModel::createClone ( )
overridepure virtual

◆ describeAggregateProperties()

void frm::OControlModel::describeAggregateProperties ( css::uno::Sequence< css::beans::Property > &  _rAggregateProps) const
protectedvirtual

describes the properties of our aggregate

The default implementation simply asks m_xAggregateSet for its properties.

You usually only need to override this method if you want to filter the aggregate properties.

Reimplemented in frm::OComboBoxModel, frm::OEditModel, frm::OFormattedModel, frm::OGroupBoxModel, frm::OImageControlModel, frm::OListBoxModel, frm::ORichTextModel, and frm::OFixedTextModel.

Definition at line 1041 of file FormComponent.cxx.

Referenced by frm::OComboBoxModel::describeAggregateProperties(), frm::OFormattedModel::describeAggregateProperties(), frm::OImageControlModel::describeAggregateProperties(), frm::OListBoxModel::describeAggregateProperties(), and describeFixedAndAggregateProperties().

◆ describeFixedAndAggregateProperties()

void frm::OControlModel::describeFixedAndAggregateProperties ( css::uno::Sequence< css::beans::Property > &  _out_rFixedProperties,
css::uno::Sequence< css::beans::Property > &  _out_rAggregateProperties 
) const
overrideprotectedvirtual

◆ describeFixedProperties()

void frm::OControlModel::describeFixedProperties ( css::uno::Sequence< css::beans::Property > &  _rProps) const
protectedvirtual

◆ disposing() [1/2]

void frm::OControlModel::disposing ( )
overridevirtual

◆ disposing() [2/2]

void SAL_CALL frm::OControlModel::disposing ( const css::lang::EventObject &  Source)
overridevirtual

◆ doResetDelegator()

void frm::OControlModel::doResetDelegator ( )
protected

◆ doSetDelegator()

void frm::OControlModel::doSetDelegator ( )
protected

◆ firePropertyChanges()

void frm::OControlModel::firePropertyChanges ( const std::vector< sal_Int32 > &  _rHandles,
const std::vector< css::uno::Any > &  _rOldValues,
const std::vector< css::uno::Any > &  _rNewValues,
LockAccess   
)

◆ getAggregateServiceNames()

Sequence< OUString > frm::OControlModel::getAggregateServiceNames ( ) const
protected

◆ getContext()

const css::uno::Reference< css::uno::XComponentContext > & frm::OControlModel::getContext ( ) const
inlineprotected

◆ getFastPropertyValue()

void frm::OControlModel::getFastPropertyValue ( css::uno::Any &  rValue,
sal_Int32  nHandle 
) const
overridevirtual

◆ getImplementationId()

Sequence< sal_Int8 > SAL_CALL frm::OControlModel::getImplementationId ( )
overridevirtual

◆ getImplementationName()

virtual OUString SAL_CALL frm::OControlModel::getImplementationName ( )
overridepure virtual

◆ getInfoHelper()

cppu::IPropertyArrayHelper & frm::OControlModel::getInfoHelper ( )
overrideprotectedvirtual

◆ getInstanceMutex()

::osl::Mutex & frm::OControlModel::getInstanceMutex ( )
inline

Definition at line 485 of file FormComponent.hxx.

References m_aMutex.

◆ getMutex()

osl::Mutex & frm::OControlModel::getMutex ( )
overrideprotectedvirtual

Implements frm::IPropertyBagHelperContext.

Reimplemented in frm::OClickableImageBaseModel.

Definition at line 1051 of file FormComponent.cxx.

References m_aMutex.

◆ getName()

OUString SAL_CALL frm::OControlModel::getName ( )
overridevirtual

◆ getParent()

Reference< XInterface > SAL_CALL frm::OControlModel::getParent ( )
overridevirtual

◆ getPropertiesInterface()

Reference< XMultiPropertySet > frm::OControlModel::getPropertiesInterface ( )
overrideprotectedvirtual

Implements frm::IPropertyBagHelperContext.

Definition at line 1062 of file FormComponent.cxx.

◆ getPropertyDefaultByHandle()

Any frm::OControlModel::getPropertyDefaultByHandle ( sal_Int32  nHandle) const
overridevirtual

◆ getPropertySetInfo()

Reference< XPropertySetInfo > SAL_CALL frm::OControlModel::getPropertySetInfo ( )
overrideprotectedvirtual

Definition at line 1067 of file FormComponent.cxx.

References getInfoHelper().

◆ getPropertyStateByHandle()

PropertyState frm::OControlModel::getPropertyStateByHandle ( sal_Int32  nHandle)
overridevirtual

Definition at line 836 of file FormComponent.cxx.

References Any, getFastPropertyValue(), and getPropertyDefaultByHandle().

◆ getPropertyValues()

Sequence< PropertyValue > SAL_CALL frm::OControlModel::getPropertyValues ( )
overridevirtual

◆ getServiceName()

virtual OUString SAL_CALL frm::OControlModel::getServiceName ( )
overridepure virtual

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL frm::OControlModel::getSupportedServiceNames ( )
overridevirtual

◆ getSupportedServiceNames_Static()

Sequence< OUString > frm::OControlModel::getSupportedServiceNames_Static ( )
static
Exceptions
css::uno::RuntimeException

Definition at line 686 of file FormComponent.cxx.

References FRM_SUN_FORMCOMPONENT.

Referenced by getSupportedServiceNames(), and frm::OBoundControlModel::getSupportedServiceNames_Static().

◆ getTypes()

Sequence< Type > SAL_CALL frm::OControlModel::getTypes ( )
overridevirtual

◆ lockInstance()

void frm::OControlModel::lockInstance ( LockAccess  )

Definition at line 1097 of file FormComponent.cxx.

References m_aMutex, and m_lockCount.

Referenced by frm::ControlModelLock::acquire().

◆ queryAggregation()

Any SAL_CALL frm::OControlModel::queryAggregation ( const css::uno::Type &  _rType)
overridevirtual

◆ read()

void frm::OControlModel::read ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream)
overridevirtual

◆ readAggregate()

void frm::OControlModel::readAggregate ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream)
protectedvirtual

Reimplemented in frm::OEditModel.

Definition at line 732 of file FormComponent.cxx.

References frm::OCloneableAggregation::m_xAggregate, and query_aggregation().

Referenced by read().

◆ readHelpTextCompatibly()

void frm::OControlModel::readHelpTextCompatibly ( const css::uno::Reference< css::io::XObjectInputStream > &  _rxInStream)
protected

◆ removeProperty()

void SAL_CALL frm::OControlModel::removeProperty ( const OUString &  Name)
overridevirtual

◆ setFastPropertyValue_NoBroadcast()

void frm::OControlModel::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overridevirtual

◆ setName()

void SAL_CALL frm::OControlModel::setName ( const OUString &  aName)
overridevirtual

Definition at line 646 of file FormComponent.cxx.

References a, Any, cppu::getCaughtException(), and PROPERTY_ID_NAME.

◆ setParent()

void SAL_CALL frm::OControlModel::setParent ( const css::uno::Reference< css::uno::XInterface > &  Parent)
overridevirtual

Reimplemented in frm::OGridControlModel, and frm::OBoundControlModel.

Definition at line 611 of file FormComponent.cxx.

References m_aMutex, and m_xParent.

Referenced by disposing(), and frm::OBoundControlModel::setParent().

◆ setPropertyToDefaultByHandle()

void frm::OControlModel::setPropertyToDefaultByHandle ( sal_Int32  nHandle)
overridevirtual

◆ setPropertyValues()

void SAL_CALL frm::OControlModel::setPropertyValues ( const css::uno::Sequence< css::beans::PropertyValue > &  aProps)
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL frm::OControlModel::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 664 of file FormComponent.cxx.

References cppu::supportsService().

◆ unlockInstance()

oslInterlockedCount frm::OControlModel::unlockInstance ( LockAccess  )

Definition at line 1103 of file FormComponent.cxx.

References m_aMutex, and m_lockCount.

Referenced by frm::ControlModelLock::release().

◆ write()

void SAL_CALL frm::OControlModel::write ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream)
overridevirtual

◆ writeAggregate()

void frm::OControlModel::writeAggregate ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream) const
protectedvirtual

Reimplemented in frm::OEditModel.

Definition at line 725 of file FormComponent.cxx.

References frm::OCloneableAggregation::m_xAggregate, and query_aggregation().

Referenced by write().

◆ writeHelpTextCompatibly()

void frm::OControlModel::writeHelpTextCompatibly ( const css::uno::Reference< css::io::XObjectOutputStream > &  _rxOutStream)
protected

Member Data Documentation

◆ m_aMutex

::osl::Mutex frm::OControlModel::m_aMutex
protected

◆ m_aName

OUString frm::OControlModel::m_aName
protected

◆ m_aPropertyBagHelper

PropertyBagHelper frm::OControlModel::m_aPropertyBagHelper
protected

◆ m_aTag

OUString frm::OControlModel::m_aTag
protected

◆ m_bGenerateVbEvents

bool frm::OControlModel::m_bGenerateVbEvents
protected

Definition at line 325 of file FormComponent.hxx.

Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ m_bNativeLook

bool frm::OControlModel::m_bNativeLook
protected

◆ m_bStandardTheme

bool frm::OControlModel::m_bStandardTheme
protected

Definition at line 324 of file FormComponent.hxx.

Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ m_lockCount

oslInterlockedCount frm::OControlModel::m_lockCount
protected

Definition at line 310 of file FormComponent.hxx.

Referenced by lockInstance(), and unlockInstance().

◆ m_nClassId

sal_Int16 frm::OControlModel::m_nClassId
protected

Definition at line 322 of file FormComponent.hxx.

Referenced by getFastPropertyValue().

◆ m_nControlTypeinMSO

sal_Int16 frm::OControlModel::m_nControlTypeinMSO
protected

Definition at line 327 of file FormComponent.hxx.

Referenced by getFastPropertyValue(), and setFastPropertyValue_NoBroadcast().

◆ m_nObjIDinMSO

sal_uInt16 frm::OControlModel::m_nObjIDinMSO
protected

Definition at line 328 of file FormComponent.hxx.

Referenced by setFastPropertyValue_NoBroadcast().

◆ m_nTabIndex

sal_Int16 frm::OControlModel::m_nTabIndex
protected

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> frm::OControlModel::m_xContext
protected

◆ m_xParent

css::uno::Reference<css::uno::XInterface> frm::OControlModel::m_xParent
protected

Definition at line 312 of file FormComponent.hxx.

Referenced by disposing(), getParent(), and setParent().


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