LibreOffice Module extensions (master) 1
|
an implementation of the IPropertyEnumRepresentation More...
#include <formmetadata.hxx>
Public Member Functions | |
DefaultEnumRepresentation (const IPropertyInfoService &_rInfo, const css::uno::Type &_rType, sal_Int32 _nPropertyId) | |
constructs an instance More... | |
virtual std::vector< OUString > | getDescriptions () const =0 |
retrieves all descriptions of all possible values of the enumeration property More... | |
virtual void | getValueFromDescription (const OUString &_rDescription, css::uno::Any &_out_rValue) const =0 |
converts a given description into a property value More... | |
virtual OUString | getDescriptionForValue (const css::uno::Any &_rEnumValue) const =0 |
converts a given property value into a description More... | |
Public Member Functions inherited from salhelper::SimpleReferenceObject | |
SimpleReferenceObject () | |
void | acquire () |
void | release () |
Protected Member Functions | |
virtual | ~DefaultEnumRepresentation () override |
virtual std::vector< OUString > | getDescriptions () const override |
retrieves all descriptions of all possible values of the enumeration property More... | |
virtual void | getValueFromDescription (const OUString &_rDescription, css::uno::Any &_out_rValue) const override |
converts a given description into a property value More... | |
virtual OUString | getDescriptionForValue (const css::uno::Any &_rEnumValue) const override |
converts a given property value into a description More... | |
Protected Member Functions inherited from salhelper::SimpleReferenceObject | |
virtual | ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE |
Private Member Functions | |
DefaultEnumRepresentation (const DefaultEnumRepresentation &)=delete | |
DefaultEnumRepresentation & | operator= (const DefaultEnumRepresentation &)=delete |
Private Attributes | |
const IPropertyInfoService & | m_rMetaData |
css::uno::Type | m_aType |
const sal_Int32 | m_nPropertyId |
Additional Inherited Members | |
Static Public Member Functions inherited from salhelper::SimpleReferenceObject | |
static void * | operator new (std::size_t nSize) |
static void * | operator new (std::size_t nSize, std::nothrow_t const &rNothrow) |
static void | operator delete (void *pPtr) |
static void | operator delete (void *pPtr, std::nothrow_t const &rNothrow) |
Protected Attributes inherited from salhelper::SimpleReferenceObject | |
oslInterlockedCount | m_nCount |
an implementation of the IPropertyEnumRepresentation
To be used with properties which, in formmetadata.cxx, are declared as ENUM.
Definition at line 67 of file formmetadata.hxx.
pcr::DefaultEnumRepresentation::DefaultEnumRepresentation | ( | const IPropertyInfoService & | _rInfo, |
const css::uno::Type & | _rType, | ||
sal_Int32 | _nPropertyId | ||
) |
constructs an instance
_rInfo | An instance implementing IPropertyInfoService. Must live at least as long as the DefaultEnumRepresentation should live. |
|
overrideprotectedvirtual |
Definition at line 613 of file formmetadata.cxx.
|
privatedelete |
|
overrideprotectedvirtual |
converts a given property value into a description
Implements pcr::IPropertyEnumRepresentation.
Definition at line 667 of file formmetadata.cxx.
References pcr::IPropertyInfoService::getPropertyEnumRepresentations(), pcr::IPropertyInfoService::getPropertyUIFlags(), m_nPropertyId, m_rMetaData, o3tl::make_unsigned(), and PROP_FLAG_ENUM_ONE.
|
overrideprotectedvirtual |
retrieves all descriptions of all possible values of the enumeration property
Implements pcr::IPropertyEnumRepresentation.
Definition at line 618 of file formmetadata.cxx.
References pcr::IPropertyInfoService::getPropertyEnumRepresentations(), m_nPropertyId, and m_rMetaData.
|
overrideprotectedvirtual |
converts a given description into a property value
Implements pcr::IPropertyEnumRepresentation.
Definition at line 624 of file formmetadata.cxx.
References pcr::IPropertyInfoService::getPropertyEnumRepresentations(), pcr::IPropertyInfoService::getPropertyUIFlags(), m_aType, m_nPropertyId, m_rMetaData, nPos, pos, and PROP_FLAG_ENUM_ONE.
|
privatedelete |
|
private |
Definition at line 71 of file formmetadata.hxx.
Referenced by getValueFromDescription().
|
private |
Definition at line 72 of file formmetadata.hxx.
Referenced by getDescriptionForValue(), getDescriptions(), and getValueFromDescription().
|
private |
Definition at line 70 of file formmetadata.hxx.
Referenced by getDescriptionForValue(), getDescriptions(), and getValueFromDescription().