LibreOffice Module forms (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
GenericPropertyAccessor< CLASS, VALUE, WRITER, READER > Class Template Reference

helper class for implementing property accessors through public member functions More...

#include <propertysetbase.hxx>

Inheritance diagram for GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >:
[legend]
Collaboration diagram for GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >:
[legend]

Public Types

typedef WRITER Writer
 
typedef READER Reader
 

Public Member Functions

 GenericPropertyAccessor (CLASS *pInstance, Writer pWriter, Reader pReader)
 
virtual bool approveValue (const css::uno::Any &rValue) const override
 
virtual void setValue (const css::uno::Any &rValue) override
 
virtual void getValue (css::uno::Any &rValue) const override
 
virtual bool isWriteable () const override
 
virtual bool approveValue (const css::uno::Any &rValue) const =0
 
virtual void setValue (const css::uno::Any &rValue)=0
 
virtual void getValue (css::uno::Any &rValue) const =0
 
virtual bool isWriteable () const =0
 
- Public Member Functions inherited from salhelper::SimpleReferenceObject
 SimpleReferenceObject ()
 
void acquire ()
 
void release ()
 

Private Attributes

CLASSm_pInstance
 
Writer m_pWriter
 
Reader m_pReader
 

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 Member Functions inherited from PropertyAccessorBase
 PropertyAccessorBase ()
 
virtual ~PropertyAccessorBase () override
 
- Protected Member Functions inherited from salhelper::SimpleReferenceObject
virtual ~SimpleReferenceObject () COVERITY_NOEXCEPT_FALSE
 
- Protected Attributes inherited from salhelper::SimpleReferenceObject
oslInterlockedCount m_nCount
 

Detailed Description

template<typename CLASS, typename VALUE, class WRITER, class READER>
class GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >

helper class for implementing property accessors through public member functions

Definition at line 57 of file propertysetbase.hxx.

Member Typedef Documentation

◆ Reader

template<typename CLASS , typename VALUE , class WRITER , class READER >
typedef READER GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::Reader

Definition at line 61 of file propertysetbase.hxx.

◆ Writer

template<typename CLASS , typename VALUE , class WRITER , class READER >
typedef WRITER GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::Writer

Definition at line 60 of file propertysetbase.hxx.

Constructor & Destructor Documentation

◆ GenericPropertyAccessor()

template<typename CLASS , typename VALUE , class WRITER , class READER >
GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::GenericPropertyAccessor ( CLASS pInstance,
Writer  pWriter,
Reader  pReader 
)
inline

Definition at line 69 of file propertysetbase.hxx.

Member Function Documentation

◆ approveValue()

template<typename CLASS , typename VALUE , class WRITER , class READER >
virtual bool GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::approveValue ( const css::uno::Any &  rValue) const
inlineoverridevirtual

Implements PropertyAccessorBase.

Definition at line 76 of file propertysetbase.hxx.

References VALUE.

◆ getValue()

template<typename CLASS , typename VALUE , class WRITER , class READER >
virtual void GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::getValue ( css::uno::Any &  rValue) const
inlineoverridevirtual

◆ isWriteable()

template<typename CLASS , typename VALUE , class WRITER , class READER >
virtual bool GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::isWriteable ( ) const
inlineoverridevirtual

◆ setValue()

template<typename CLASS , typename VALUE , class WRITER , class READER >
virtual void GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::setValue ( const css::uno::Any &  rValue)
inlineoverridevirtual

Member Data Documentation

◆ m_pInstance

template<typename CLASS , typename VALUE , class WRITER , class READER >
CLASS* GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::m_pInstance
private

◆ m_pReader

template<typename CLASS , typename VALUE , class WRITER , class READER >
Reader GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::m_pReader
private

◆ m_pWriter

template<typename CLASS , typename VALUE , class WRITER , class READER >
Writer GenericPropertyAccessor< CLASS, VALUE, WRITER, READER >::m_pWriter
private

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