LibreOffice Module toolkit (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
toolkit::UnoControlFormattedFieldModel Class Referencefinal

#include <formattedcontrol.hxx>

Inheritance diagram for toolkit::UnoControlFormattedFieldModel:
[legend]
Collaboration diagram for toolkit::UnoControlFormattedFieldModel:
[legend]

Public Member Functions

 UnoControlFormattedFieldModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
 UnoControlFormattedFieldModel (const UnoControlFormattedFieldModel &rModel)
 
rtl::Reference< UnoControlModelClone () const override
 
OUString SAL_CALL getServiceName () override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
OUString SAL_CALL getImplementationName () override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
- Public Member Functions inherited from UnoControlModel
 UnoControlModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
 UnoControlModel (const UnoControlModel &rModel)
 
virtual rtl::Reference< UnoControlModelClone () const =0
 
css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
void SAL_CALL acquire () noexcept override
 
void SAL_CALL release () noexcept override
 
css::uno::Any SAL_CALL queryAggregation (const css::uno::Type &rType) override
 
css::uno::Reference< css::util::XCloneable > SAL_CALL createClone () override
 
void SAL_CALL dispose () override
 
void SAL_CALL addEventListener (const css::uno::Reference< css::lang::XEventListener > &xListener) override
 
void SAL_CALL removeEventListener (const css::uno::Reference< css::lang::XEventListener > &aListener) override
 
css::beans::PropertyState SAL_CALL getPropertyState (const OUString &PropertyName) override
 
css::uno::Sequence< css::beans::PropertyState > SAL_CALL getPropertyStates (const css::uno::Sequence< OUString > &aPropertyName) override
 
void SAL_CALL setPropertyToDefault (const OUString &PropertyName) override
 
css::uno::Any SAL_CALL getPropertyDefault (const OUString &aPropertyName) override
 
OUString SAL_CALL getServiceName () override
 
void SAL_CALL write (const css::uno::Reference< css::io::XObjectOutputStream > &OutStream) override
 
void SAL_CALL read (const css::uno::Reference< css::io::XObjectInputStream > &InStream) override
 
OUString SAL_CALL getImplementationName () override
 
sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
::cppu::IPropertyArrayHelpergetInfoHelper () override=0
 
bool convertFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue) override
 
void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const override
 
css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL getPropertySetInfo () override
 
void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override
 
- Public Member Functions inherited from cppu::WeakAggImplHelper6< class Ifc1, class Ifc2, class Ifc3, class Ifc4, class Ifc5, class Ifc6 >
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< 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::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 comphelper::OPropertySetHelper
 OPropertySetHelper ()
 
 OPropertySetHelper (bool bIgnoreRuntimeExceptionsWhileFiring)
 
virtual css::uno::Any SAL_CALL queryInterface (const css::uno::Type &rType) override
 
void disposing (std::unique_lock< std::mutex > &rGuard)
 
virtual void SAL_CALL setPropertyValue (const ::rtl::OUString &rPropertyName, const css::uno::Any &aValue) override final
 
virtual css::uno::Any SAL_CALL getPropertyValue (const ::rtl::OUString &aPropertyName) override final
 
virtual void SAL_CALL addPropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override final
 
virtual void SAL_CALL removePropertyChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override final
 
virtual void SAL_CALL addVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override final
 
virtual void SAL_CALL removeVetoableChangeListener (const ::rtl::OUString &aPropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override final
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32 nHandle, const css::uno::Any &rValue) override final
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override final
 
virtual void SAL_CALL setPropertyValues (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override
 
virtual css::uno::Sequence< css::uno::Any > SAL_CALL getPropertyValues (const css::uno::Sequence<::rtl::OUString > &PropertyNames) override final
 
virtual void SAL_CALL addPropertiesChangeListener (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
virtual void SAL_CALL removePropertiesChangeListener (const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
virtual void SAL_CALL firePropertiesChangeEvent (const css::uno::Sequence<::rtl::OUString > &PropertyNames, const css::uno::Reference< css::beans::XPropertiesChangeListener > &Listener) override final
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Member Functions

virtual ~UnoControlFormattedFieldModel () override
 
void SAL_CALL dispose () override
 
void SAL_CALL setPropertyValues (const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values) override
 
virtual void ImplNormalizePropertySequence (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 *_pValidHandles) const override
 called before setting multiple properties, allows to care for property dependencies More...
 
void impl_updateTextFromValue_nothrow (std::unique_lock< std::mutex > &rGuard)
 
void impl_updateCachedFormatter_nothrow (std::unique_lock< std::mutex > &rGuard)
 
void impl_updateCachedFormatKey_nothrow (std::unique_lock< std::mutex > &rGuard)
 
css::uno::Any ImplGetDefaultValue (sal_uInt16 nPropId) const override
 
::cppu::IPropertyArrayHelpergetInfoHelper () override
 
bool convertFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nPropId, const css::uno::Any &rValue) override
 
void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue) override
 

Private Attributes

css::uno::Any m_aCachedFormat
 
bool m_bRevokedAsClient
 
bool m_bSettingValueAndText
 
css::uno::Reference< css::util::XNumberFormatter > m_xCachedFormatter
 

Additional Inherited Members

- Static Public Member Functions inherited from comphelper::OPropertySetHelper
static css::uno::Sequence< css::uno::Type > getTypes ()
 
static css::uno::Reference< css::beans::XPropertySetInfo > createPropertySetInfo (cppu::IPropertyArrayHelper &rProperties)
 
- Protected Member Functions inherited from UnoControlModel
void ImplRegisterProperty (sal_uInt16 nPropType)
 
void ImplRegisterProperties (const std::vector< sal_uInt16 > &rIds)
 
void ImplRegisterProperty (sal_uInt16 nPropId, const css::uno::Any &rDefault)
 
css::uno::Sequence< sal_Int32 > ImplGetPropertyIds () const
 
virtual css::uno::Any ImplGetDefaultValue (sal_uInt16 nPropId) const
 
bool ImplHasProperty (sal_uInt16 nPropId) const
 
virtual void ImplNormalizePropertySequence (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 *_pValidHandles) const
 called before setting multiple properties, allows to care for property dependencies More...
 
template<typename T >
void UNO_CONTROL_MODEL_REGISTER_PROPERTIES ()
 
void setFastPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &aValue) override
 
css::beans::PropertyState getPropertyStateImpl (std::unique_lock< std::mutex > &rGuard, const OUString &PropertyName)
 
void setPropertyValuesImpl (std::unique_lock< std::mutex > &rGuard, const css::uno::Sequence< OUString > &PropertyNames, const css::uno::Sequence< css::uno::Any > &Values)
 
- 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 comphelper::OPropertySetHelper
 ~OPropertySetHelper ()
 
virtual void setFastPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue)
 
virtual css::uno::Any getPropertyValueImpl (std::unique_lock< std::mutex > &rGuard, const ::rtl::OUString &aPropertyName)
 
void fire (std::unique_lock< std::mutex > &rGuard, sal_Int32 *pnHandles, const css::uno::Any *pNewValues, const css::uno::Any *pOldValues, sal_Int32 nCount, bool bVetoable)
 
void setFastPropertyValues (std::unique_lock< std::mutex > &rGuard, sal_Int32 nSeqLen, sal_Int32 *pHandles, const css::uno::Any *pValues, sal_Int32 nHitCount)
 
virtual cppu::IPropertyArrayHelpergetInfoHelper ()=0
 
virtual bool convertFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rConvertedValue, css::uno::Any &rOldValue, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void setFastPropertyValue_NoBroadcast (std::unique_lock< std::mutex > &rGuard, sal_Int32 nHandle, const css::uno::Any &rValue)=0
 
virtual void getFastPropertyValue (std::unique_lock< std::mutex > &rGuard, css::uno::Any &rValue, sal_Int32 nHandle) const=0
 
void setDependentFastPropertyValue (std::unique_lock< std::mutex > &rGuard, sal_Int32 i_handle, const css::uno::Any &i_value)
 
- Static Protected Member Functions inherited from UnoControlModel
static void ImplEnsureHandleOrder (const sal_Int32 _nCount, sal_Int32 *_pHandles, css::uno::Any *_pValues, sal_Int32 _nFirstHandle, sal_Int32 _nSecondHandle)
 ensures that two property values in a sequence have a certain order More...
 
- Protected Attributes inherited from UnoControlModel
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
- Protected Attributes inherited from cppu::OWeakAggObject
css::uno::WeakReferenceHelper xDelegator
 
- Protected Attributes inherited from cppu::OWeakObject
oslInterlockedCount m_refCount
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 34 of file formattedcontrol.hxx.

Constructor & Destructor Documentation

◆ UnoControlFormattedFieldModel() [1/2]

toolkit::UnoControlFormattedFieldModel::UnoControlFormattedFieldModel ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

Referenced by Clone().

◆ UnoControlFormattedFieldModel() [2/2]

toolkit::UnoControlFormattedFieldModel::UnoControlFormattedFieldModel ( const UnoControlFormattedFieldModel rModel)
inline

Definition at line 38 of file formattedcontrol.hxx.

◆ ~UnoControlFormattedFieldModel()

toolkit::UnoControlFormattedFieldModel::~UnoControlFormattedFieldModel ( )
overrideprivatevirtual

Definition at line 146 of file formattedcontrol.cxx.

Member Function Documentation

◆ Clone()

rtl::Reference< UnoControlModel > toolkit::UnoControlFormattedFieldModel::Clone ( ) const
inlineoverridevirtual

Implements UnoControlModel.

Definition at line 45 of file formattedcontrol.hxx.

References UnoControlFormattedFieldModel().

◆ convertFastPropertyValue()

bool toolkit::UnoControlFormattedFieldModel::convertFastPropertyValue ( std::unique_lock< std::mutex > &  rGuard,
css::uno::Any &  rConvertedValue,
css::uno::Any &  rOldValue,
sal_Int32  nPropId,
const css::uno::Any &  rValue 
)
overrideprivatevirtual

◆ dispose()

void toolkit::UnoControlFormattedFieldModel::dispose ( void  )
overrideprivate

Definition at line 247 of file formattedcontrol.cxx.

References UnoControlModel::dispose(), and m_aMutex.

◆ getImplementationName()

OUString toolkit::UnoControlFormattedFieldModel::getImplementationName ( )
override

Definition at line 397 of file formattedcontrol.cxx.

◆ getInfoHelper()

cppu::IPropertyArrayHelper & toolkit::UnoControlFormattedFieldModel::getInfoHelper ( )
overrideprivatevirtual

Implements UnoControlModel.

Definition at line 383 of file formattedcontrol.cxx.

References aHelper.

◆ getPropertySetInfo()

Reference< XPropertySetInfo > toolkit::UnoControlFormattedFieldModel::getPropertySetInfo ( )
override

Definition at line 391 of file formattedcontrol.cxx.

◆ getServiceName()

OUString toolkit::UnoControlFormattedFieldModel::getServiceName ( )
override

Definition at line 151 of file formattedcontrol.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > toolkit::UnoControlFormattedFieldModel::getSupportedServiceNames ( )
override

Definition at line 403 of file formattedcontrol.cxx.

References UnoControlModel::getSupportedServiceNames().

◆ impl_updateCachedFormatKey_nothrow()

void toolkit::UnoControlFormattedFieldModel::impl_updateCachedFormatKey_nothrow ( std::unique_lock< std::mutex > &  rGuard)
private

Definition at line 239 of file formattedcontrol.cxx.

References Any, and BASEPROPERTY_FORMATKEY.

◆ impl_updateCachedFormatter_nothrow()

void toolkit::UnoControlFormattedFieldModel::impl_updateCachedFormatter_nothrow ( std::unique_lock< std::mutex > &  rGuard)
private

◆ impl_updateTextFromValue_nothrow()

void toolkit::UnoControlFormattedFieldModel::impl_updateTextFromValue_nothrow ( std::unique_lock< std::mutex > &  rGuard)
private

◆ ImplGetDefaultValue()

Any toolkit::UnoControlFormattedFieldModel::ImplGetDefaultValue ( sal_uInt16  nPropId) const
overrideprivatevirtual

◆ ImplNormalizePropertySequence()

void toolkit::UnoControlFormattedFieldModel::ImplNormalizePropertySequence ( const sal_Int32  _nCount,
sal_Int32 *  _pHandles,
css::uno::Any *  _pValues,
sal_Int32 *  _pValidHandles 
) const
overrideprivatevirtual

called before setting multiple properties, allows to care for property dependencies

When multiple property values are set (e.g. XPropertySet::setPropertyValues), it may happen that some of them are dependent. For this, derivees which know such dependencies can affect the order in which the properties are internally really set.

Parameters
_pHandlesthe number of entries in the arrays
_pValuesthe handles of the properties to set
_pValidHandlesthe values of the properties to set pointer to the valid handles, allowed to be adjusted

Reimplemented from UnoControlModel.

Definition at line 260 of file formattedcontrol.cxx.

References BASEPROPERTY_EFFECTIVE_VALUE, BASEPROPERTY_TEXT, and UnoControlModel::ImplNormalizePropertySequence().

◆ setFastPropertyValue_NoBroadcast()

void toolkit::UnoControlFormattedFieldModel::setFastPropertyValue_NoBroadcast ( std::unique_lock< std::mutex > &  rGuard,
sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprivatevirtual

◆ setPropertyValues()

void SAL_CALL toolkit::UnoControlFormattedFieldModel::setPropertyValues ( const css::uno::Sequence< OUString > &  PropertyNames,
const css::uno::Sequence< css::uno::Any > &  Values 
)
overrideprivate

Member Data Documentation

◆ m_aCachedFormat

css::uno::Any toolkit::UnoControlFormattedFieldModel::m_aCachedFormat
private

Definition at line 95 of file formattedcontrol.hxx.

◆ m_bRevokedAsClient

bool toolkit::UnoControlFormattedFieldModel::m_bRevokedAsClient
private

Definition at line 96 of file formattedcontrol.hxx.

◆ m_bSettingValueAndText

bool toolkit::UnoControlFormattedFieldModel::m_bSettingValueAndText
private

Definition at line 97 of file formattedcontrol.hxx.

◆ m_xCachedFormatter

css::uno::Reference< css::util::XNumberFormatter > toolkit::UnoControlFormattedFieldModel::m_xCachedFormatter
private

Definition at line 99 of file formattedcontrol.hxx.


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