LibreOffice Module forms (master) 1
Protected Member Functions | Protected Attributes | List of all members
xforms::OValueLimitedType_Base Class Referenceabstract

#include <datatypes.hxx>

Inheritance diagram for xforms::OValueLimitedType_Base:
[legend]
Collaboration diagram for xforms::OValueLimitedType_Base:
[legend]

Protected Member Functions

 OValueLimitedType_Base (const OUString &_rName, sal_Int16 _nTypeClass)
 
virtual void initializeClone (const OXSDDataType &_rCloneSource) override
 
void initializeTypedClone (const OValueLimitedType_Base &_rCloneSource)
 
virtual void SAL_CALL setFastPropertyValue_NoBroadcast (sal_Int32 nHandle, const css::uno::Any &rValue) override
 
virtual bool _getValue (const OUString &value, double &fValue)
 
virtual TranslateId _validate (const OUString &value) override
 
virtual OUString _explainInvalid (TranslateId rReason) override
 
virtual OUString typedValueAsHumanReadableString (const css::uno::Any &_rValue) const =0
 translate a given value into a human-readable string More...
 
virtual void normalizeValue (const css::uno::Any &_rValue, double &_rDoubleValue) const =0
 translates a <member>ValueType</member> value into a double value More...
 
- Protected Member Functions inherited from xforms::OXSDDataType
sal_Int16 getTypeClass () const
 
 OXSDDataType (OUString _aName, sal_Int16 _nTypeClass)
 
virtual ~OXSDDataType () 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 rtl::Reference< OXSDDataTypecreateClone (const OUString &_rName) const =0
 
virtual void initializeClone (const OXSDDataType &_rCloneSource)
 
virtual TranslateId _validate (const OUString &value)
 
virtual OUString _explainInvalid (TranslateId rReason)
 
virtual bool checkPropertySanity (sal_Int32 _nHandle, const css::uno::Any &_rNewValue, OUString &_rErrorMessage)
 
virtual void registerProperties ()
 
- 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 Attributes

css::uno::Any m_aMaxInclusive
 
css::uno::Any m_aMaxExclusive
 
css::uno::Any m_aMinInclusive
 
css::uno::Any m_aMinExclusive
 
double m_fCachedMaxInclusive
 
double m_fCachedMaxExclusive
 
double m_fCachedMinInclusive
 
double m_fCachedMinExclusive
 
- Protected Attributes inherited from comphelper::OMutexAndBroadcastHelper
::osl::Mutex m_aMutex
 
::cppu::OBroadcastHelper m_aBHelper
 

Additional Inherited Members

- Public Member Functions inherited from xforms::OXSDDataType
virtual OUString SAL_CALL getName () override
 
virtual void SAL_CALL setName (const OUString &aName) override
 
virtual OUString SAL_CALL getPattern () override
 
virtual void SAL_CALL setPattern (const OUString &_pattern) override
 
virtual sal_Int16 SAL_CALL getWhiteSpaceTreatment () override
 
virtual void SAL_CALL setWhiteSpaceTreatment (sal_Int16 _whitespacetreatment) override
 
virtual sal_Bool SAL_CALL getIsBasic () override
 
virtual sal_Int16 SAL_CALL getTypeClass () override
 
virtual sal_Bool SAL_CALL validate (const OUString &value) override
 
virtual OUString SAL_CALL explainInvalid (const OUString &value) override
 
virtual void SAL_CALL setPropertyValue (const OUString &aPropertyName, const css::uno::Any &aValue) override
 
virtual css::uno::Any SAL_CALL getPropertyValue (const OUString &PropertyName) override
 
virtual void SAL_CALL addPropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &xListener) override
 
virtual void SAL_CALL removePropertyChangeListener (const OUString &aPropertyName, const css::uno::Reference< css::beans::XPropertyChangeListener > &aListener) override
 
virtual void SAL_CALL addVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
virtual void SAL_CALL removeVetoableChangeListener (const OUString &PropertyName, const css::uno::Reference< css::beans::XVetoableChangeListener > &aListener) override
 
rtl::Reference< OXSDDataTypeclone (const OUString &_rNewName) const
 
- Public Member Functions inherited from comphelper::OMutexAndBroadcastHelper
 OMutexAndBroadcastHelper ()
 
::osl::Mutex & GetMutex ()
 
::cppu::OBroadcastHelperGetBroadcastHelper ()
 
const ::cppu::OBroadcastHelperGetBroadcastHelper () const
 
- Public Member Functions inherited from comphelper::OPropertyContainer
virtual ~OPropertyContainer ()
 
- Static Protected Member Functions inherited from comphelper::OPropertyContainer
static css::uno::Sequence< css::uno::Type > getBaseTypes ()
 

Detailed Description

Definition at line 136 of file datatypes.hxx.

Constructor & Destructor Documentation

◆ OValueLimitedType_Base()

xforms::OValueLimitedType_Base::OValueLimitedType_Base ( const OUString &  _rName,
sal_Int16  _nTypeClass 
)
protected

Definition at line 319 of file datatypes.cxx.

Member Function Documentation

◆ _explainInvalid()

OUString xforms::OValueLimitedType_Base::_explainInvalid ( TranslateId  rReason)
overrideprotectedvirtual

◆ _getValue()

bool xforms::OValueLimitedType_Base::_getValue ( const OUString &  value,
double &  fValue 
)
protectedvirtual

Definition at line 402 of file datatypes.cxx.

References u.

Referenced by _validate().

◆ _validate()

TranslateId xforms::OValueLimitedType_Base::_validate ( const OUString &  value)
overrideprotectedvirtual

◆ initializeClone()

void xforms::OValueLimitedType_Base::initializeClone ( const OXSDDataType _rCloneSource)
overrideprotectedvirtual

Reimplemented from xforms::OXSDDataType.

Definition at line 329 of file datatypes.cxx.

References xforms::OXSDDataType::initializeClone(), and initializeTypedClone().

◆ initializeTypedClone()

void xforms::OValueLimitedType_Base::initializeTypedClone ( const OValueLimitedType_Base _rCloneSource)
protected

◆ normalizeValue()

virtual void xforms::OValueLimitedType_Base::normalizeValue ( const css::uno::Any &  _rValue,
double &  _rDoubleValue 
) const
protectedpure virtual

translates a <member>ValueType</member> value into a double value

The normalization must respect the "<" and "==" relations on the value space. That is, if two values are equal, their normalizations must be equal, too. Similarly, if foo is less than bar, the same must hold for their normalizations.

Parameters
_rValuethe value to translate. Guaranteed to be not <NULL>, and of type <member>ValueType</member>
_rDoubleValueoutput parameter to hold the resulting double value

Referenced by setFastPropertyValue_NoBroadcast().

◆ setFastPropertyValue_NoBroadcast()

void SAL_CALL xforms::OValueLimitedType_Base::setFastPropertyValue_NoBroadcast ( sal_Int32  nHandle,
const css::uno::Any &  rValue 
)
overrideprotectedvirtual

◆ typedValueAsHumanReadableString()

virtual OUString xforms::OValueLimitedType_Base::typedValueAsHumanReadableString ( const css::uno::Any &  _rValue) const
protectedpure virtual

translate a given value into a human-readable string

The value is guaranteed to be not <NULL>, and is of type <member>ValueType</member>

Referenced by _explainInvalid().

Member Data Documentation

◆ m_aMaxExclusive

css::uno::Any xforms::OValueLimitedType_Base::m_aMaxExclusive
protected

◆ m_aMaxInclusive

css::uno::Any xforms::OValueLimitedType_Base::m_aMaxInclusive
protected

◆ m_aMinExclusive

css::uno::Any xforms::OValueLimitedType_Base::m_aMinExclusive
protected

◆ m_aMinInclusive

css::uno::Any xforms::OValueLimitedType_Base::m_aMinInclusive
protected

◆ m_fCachedMaxExclusive

double xforms::OValueLimitedType_Base::m_fCachedMaxExclusive
protected

◆ m_fCachedMaxInclusive

double xforms::OValueLimitedType_Base::m_fCachedMaxInclusive
protected

◆ m_fCachedMinExclusive

double xforms::OValueLimitedType_Base::m_fCachedMinExclusive
protected

◆ m_fCachedMinInclusive

double xforms::OValueLimitedType_Base::m_fCachedMinInclusive
protected

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