LibreOffice Module extensions (master) 1
Public Member Functions | Private Attributes | List of all members
pcr::CommonBehaviourControlHelper Class Referenceabstract

A helper class for implementing the <type scope="css::inspection">XPropertyControl</type> or one of its derived interfaces. More...

#include <commoncontrol.hxx>

Inheritance diagram for pcr::CommonBehaviourControlHelper:
[legend]

Public Member Functions

 CommonBehaviourControlHelper (sal_Int16 nControlType, css::inspection::XPropertyControl &rAntiImpl)
 creates the instance More...
 
virtual ~CommonBehaviourControlHelper ()
 
virtual void setModified ()
 
virtual void editChanged ()
 
::sal_Int16 getControlType () const
 
const css::uno::Reference< css::inspection::XPropertyControlContext > & getControlContext () const
 
void setControlContext (const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext)
 
bool isModified () const
 
void notifyModifiedValue ()
 
virtual weld::WidgetgetWidget ()=0
 
 DECL_LINK (ModifiedHdl, weld::ComboBox &, void)
 may be used by derived classes, they forward the event to the PropCtrListener More...
 
 DECL_LINK (ColorModifiedHdl, ColorListBox &, void)
 
 DECL_LINK (EditModifiedHdl, weld::Entry &, void)
 
 DECL_LINK (MetricModifiedHdl, weld::MetricSpinButton &, void)
 
 DECL_LINK (FormattedModifiedHdl, weld::FormattedSpinButton &, void)
 
 DECL_LINK (TimeModifiedHdl, weld::FormattedSpinButton &, void)
 
 DECL_LINK (DateModifiedHdl, SvtCalendarBox &, void)
 
 DECL_LINK (GetFocusHdl, weld::Widget &, void)
 
 DECL_LINK (LoseFocusHdl, weld::Widget &, void)
 

Private Attributes

sal_Int16 m_nControlType
 
css::uno::Reference< css::inspection::XPropertyControlContext > m_xContext
 
css::inspection::XPropertyControl & m_rAntiImpl
 
bool m_bModified
 

Detailed Description

A helper class for implementing the <type scope="css::inspection">XPropertyControl</type> or one of its derived interfaces.

This class is used as a base class the CommonBehaviourControl template.

Definition at line 44 of file commoncontrol.hxx.

Constructor & Destructor Documentation

◆ CommonBehaviourControlHelper()

pcr::CommonBehaviourControlHelper::CommonBehaviourControlHelper ( sal_Int16  nControlType,
css::inspection::XPropertyControl &  rAntiImpl 
)

creates the instance

Parameters
nControlTypethe type of the control - one of the <type scope="css::inspection">PropertyControlType</type> constants
pAntiImplReference to the instance as whose "impl-class" we act i.e. the CommonBehaviourControl<> template, which is why we hold it without acquiring it/

Definition at line 33 of file commoncontrol.cxx.

◆ ~CommonBehaviourControlHelper()

pcr::CommonBehaviourControlHelper::~CommonBehaviourControlHelper ( )
virtual

Definition at line 41 of file commoncontrol.cxx.

Member Function Documentation

◆ DECL_LINK() [1/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( ColorModifiedHdl  ,
ColorListBox ,
void   
)

◆ DECL_LINK() [2/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( DateModifiedHdl  ,
SvtCalendarBox ,
void   
)

◆ DECL_LINK() [3/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( EditModifiedHdl  ,
weld::Entry ,
void   
)

◆ DECL_LINK() [4/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( FormattedModifiedHdl  ,
weld::FormattedSpinButton ,
void   
)

◆ DECL_LINK() [5/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( GetFocusHdl  ,
weld::Widget ,
void   
)

◆ DECL_LINK() [6/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( LoseFocusHdl  ,
weld::Widget ,
void   
)

◆ DECL_LINK() [7/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( MetricModifiedHdl  ,
weld::MetricSpinButton ,
void   
)

◆ DECL_LINK() [8/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( ModifiedHdl  ,
weld::ComboBox ,
void   
)

may be used by derived classes, they forward the event to the PropCtrListener

◆ DECL_LINK() [9/9]

pcr::CommonBehaviourControlHelper::DECL_LINK ( TimeModifiedHdl  ,
weld::FormattedSpinButton ,
void   
)

◆ editChanged()

void pcr::CommonBehaviourControlHelper::editChanged ( )
virtual

Reimplemented in pcr::OMultilineEditControl.

Definition at line 66 of file commoncontrol.cxx.

References setModified().

◆ getControlContext()

const css::uno::Reference< css::inspection::XPropertyControlContext > & pcr::CommonBehaviourControlHelper::getControlContext ( ) const
inline
Exceptions
css::uno::RuntimeException

Definition at line 77 of file commoncontrol.hxx.

References m_xContext.

Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlContext().

◆ getControlType()

::sal_Int16 pcr::CommonBehaviourControlHelper::getControlType ( ) const
inline
Exceptions
css::uno::RuntimeException

Definition at line 75 of file commoncontrol.hxx.

References m_nControlType.

Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlType().

◆ getWidget()

virtual weld::Widget * pcr::CommonBehaviourControlHelper::getWidget ( )
pure virtual

◆ isModified()

bool pcr::CommonBehaviourControlHelper::isModified ( ) const
inline
Exceptions
css::uno::RuntimeException

Definition at line 81 of file commoncontrol.hxx.

References m_bModified.

Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::isModified(), and notifyModifiedValue().

◆ notifyModifiedValue()

void pcr::CommonBehaviourControlHelper::notifyModifiedValue ( )

◆ setControlContext()

void pcr::CommonBehaviourControlHelper::setControlContext ( const css::uno::Reference< css::inspection::XPropertyControlContext > &  controlcontext)
Exceptions
css::uno::RuntimeException

Definition at line 45 of file commoncontrol.cxx.

References m_xContext.

Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::setControlContext().

◆ setModified()

virtual void pcr::CommonBehaviourControlHelper::setModified ( )
inlinevirtual

Member Data Documentation

◆ m_bModified

bool pcr::CommonBehaviourControlHelper::m_bModified
private

Definition at line 52 of file commoncontrol.hxx.

Referenced by isModified(), notifyModifiedValue(), and setModified().

◆ m_nControlType

sal_Int16 pcr::CommonBehaviourControlHelper::m_nControlType
private

Definition at line 47 of file commoncontrol.hxx.

Referenced by getControlType().

◆ m_rAntiImpl

css::inspection::XPropertyControl& pcr::CommonBehaviourControlHelper::m_rAntiImpl
private

Definition at line 51 of file commoncontrol.hxx.

Referenced by notifyModifiedValue().

◆ m_xContext

css::uno::Reference< css::inspection::XPropertyControlContext > pcr::CommonBehaviourControlHelper::m_xContext
private

Definition at line 49 of file commoncontrol.hxx.

Referenced by getControlContext(), notifyModifiedValue(), and setControlContext().


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