LibreOffice Module toolkit (master) 1
|
#include <formattedcontrol.hxx>
Public Member Functions | |
UnoControlFormattedFieldModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
UnoControlFormattedFieldModel (const UnoControlFormattedFieldModel &rModel) | |
rtl::Reference< UnoControlModel > | Clone () 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 |
![]() | |
UnoControlModel (const css::uno::Reference< css::uno::XComponentContext > &rxContext) | |
UnoControlModel (const UnoControlModel &rModel) | |
virtual rtl::Reference< UnoControlModel > | Clone () 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::IPropertyArrayHelper & | getInfoHelper () 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 |
![]() | |
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 |
![]() | |
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 |
![]() | |
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 > () |
![]() | |
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 |
![]() | |
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::IPropertyArrayHelper & | getInfoHelper () 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 css::uno::Sequence< css::uno::Type > | getTypes () |
static css::uno::Reference< css::beans::XPropertySetInfo > | createPropertySetInfo (cppu::IPropertyArrayHelper &rProperties) |
![]() | |
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) |
![]() | |
virtual | ~OWeakAggObject () SAL_OVERRIDE |
![]() | |
virtual | ~OWeakObject () COVERITY_NOEXCEPT_FALSE |
void | disposeWeakConnectionPoint () |
![]() | |
~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::IPropertyArrayHelper & | getInfoHelper ()=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 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... | |
![]() | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
![]() | |
css::uno::WeakReferenceHelper | xDelegator |
![]() | |
oslInterlockedCount | m_refCount |
![]() | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Definition at line 34 of file formattedcontrol.hxx.
toolkit::UnoControlFormattedFieldModel::UnoControlFormattedFieldModel | ( | const css::uno::Reference< css::uno::XComponentContext > & | rxContext | ) |
Referenced by Clone().
|
inline |
Definition at line 38 of file formattedcontrol.hxx.
|
overrideprivatevirtual |
Definition at line 146 of file formattedcontrol.cxx.
|
inlineoverridevirtual |
Implements UnoControlModel.
Definition at line 45 of file formattedcontrol.hxx.
References UnoControlFormattedFieldModel().
|
overrideprivatevirtual |
Implements comphelper::OPropertySetHelper.
Definition at line 308 of file formattedcontrol.cxx.
References BASEPROPERTY_EFFECTIVE_DEFAULT, CompareProperties(), UnoControlModel::convertFastPropertyValue(), GetPropertyName(), and XPropertySet.
|
overrideprivate |
Definition at line 247 of file formattedcontrol.cxx.
References UnoControlModel::dispose(), and m_aMutex.
|
override |
Definition at line 397 of file formattedcontrol.cxx.
|
overrideprivatevirtual |
Implements UnoControlModel.
Definition at line 383 of file formattedcontrol.cxx.
References aHelper.
|
override |
Definition at line 391 of file formattedcontrol.cxx.
|
override |
Definition at line 151 of file formattedcontrol.cxx.
|
override |
Definition at line 403 of file formattedcontrol.cxx.
References UnoControlModel::getSupportedServiceNames().
|
private |
Definition at line 239 of file formattedcontrol.cxx.
References Any, and BASEPROPERTY_FORMATKEY.
|
private |
Definition at line 213 of file formattedcontrol.cxx.
References Any, BASEPROPERTY_FORMATSSUPPLIER, DBG_UNHANDLED_EXCEPTION, and Exception.
|
private |
Definition at line 179 of file formattedcontrol.cxx.
References Any, BASEPROPERTY_EFFECTIVE_VALUE, BASEPROPERTY_TEXT, DBG_UNHANDLED_EXCEPTION, and Exception.
|
overrideprivatevirtual |
Reimplemented from UnoControlModel.
Definition at line 358 of file formattedcontrol.cxx.
References Any, BASEPROPERTY_DEFAULTCONTROL, BASEPROPERTY_EFFECTIVE_DEFAULT, BASEPROPERTY_EFFECTIVE_MAX, BASEPROPERTY_EFFECTIVE_MIN, BASEPROPERTY_EFFECTIVE_VALUE, BASEPROPERTY_FORMATKEY, BASEPROPERTY_FORMATSSUPPLIER, BASEPROPERTY_TREATASNUMBER, and UnoControlModel::ImplGetDefaultValue().
|
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.
_pHandles | the number of entries in the arrays |
_pValues | the handles of the properties to set |
_pValidHandles | the 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().
|
overrideprivatevirtual |
Implements comphelper::OPropertySetHelper.
Definition at line 157 of file formattedcontrol.cxx.
References BASEPROPERTY_EFFECTIVE_VALUE, BASEPROPERTY_FORMATKEY, BASEPROPERTY_FORMATSSUPPLIER, nHandle, and UnoControlModel::setFastPropertyValue_NoBroadcast().
|
overrideprivate |
Definition at line 289 of file formattedcontrol.cxx.
References BASEPROPERTY_EFFECTIVE_VALUE, BASEPROPERTY_TEXT, GetPropertyId(), and UnoControlModel::setPropertyValues().
|
private |
Definition at line 95 of file formattedcontrol.hxx.
|
private |
Definition at line 96 of file formattedcontrol.hxx.
|
private |
Definition at line 97 of file formattedcontrol.hxx.
|
private |
Definition at line 99 of file formattedcontrol.hxx.