LibreOffice Module extensions (master) 1
Protected Types | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
pcr::CommonBehaviourControl< TControlInterface, TControlWindow > Class Template Reference

implements a base class for <type scope="css::inspection">XPropertyControl</type> implementations More...

#include <commoncontrol.hxx>

Inheritance diagram for pcr::CommonBehaviourControl< TControlInterface, TControlWindow >:
[legend]
Collaboration diagram for pcr::CommonBehaviourControl< TControlInterface, TControlWindow >:
[legend]

Protected Types

typedef ::cppu::WeakComponentImplHelper< TControlInterface > ComponentBaseClass
 

Protected Member Functions

 CommonBehaviourControl (sal_Int16 nControlType, std::unique_ptr< weld::Builder > xBuilder, std::unique_ptr< TControlWindow > xWidget, bool bReadOnly)
 
virtual ~CommonBehaviourControl () override
 
virtual ::sal_Int16 SAL_CALL getControlType () override
 
virtual css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL getControlContext () override
 
virtual void SAL_CALL setControlContext (const css::uno::Reference< css::inspection::XPropertyControlContext > &controlcontext) override
 
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL getControlWindow () override
 
virtual sal_Bool SAL_CALL isModified () override
 
virtual void SAL_CALL notifyModifiedValue () override
 
void clear_widgetry ()
 
virtual void SAL_CALL disposing () override
 
TControlWindow * getTypedControlWindow ()
 
const TControlWindow * getTypedControlWindow () const
 
virtual void SetModifyHandler ()
 
void impl_checkDisposed_throw ()
 checks whether the instance is already disposed More...
 

Protected Attributes

std::unique_ptr< weld::Builderm_xBuilder
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Private Attributes

std::unique_ptr< TControlWindow > m_xControlWindow
 

Additional Inherited Members

- Public Member Functions inherited from pcr::CommonBehaviourControlHelper
 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)
 

Detailed Description

template<class TControlInterface, class TControlWindow>
class pcr::CommonBehaviourControl< TControlInterface, TControlWindow >

implements a base class for <type scope="css::inspection">XPropertyControl</type> implementations

Parameters
TControlInterfacean interface class which is derived from (or identical to) <type scope="css::inspection">XPropertyControl</type>
TControlWindowa class which is derived from weld::Widget

Definition at line 111 of file commoncontrol.hxx.

Member Typedef Documentation

◆ ComponentBaseClass

template<class TControlInterface , class TControlWindow >
typedef ::cppu::WeakComponentImplHelper< TControlInterface > pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::ComponentBaseClass
protected

Definition at line 116 of file commoncontrol.hxx.

Constructor & Destructor Documentation

◆ CommonBehaviourControl()

template<class TControlInterface , class TControlWindow >
pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::CommonBehaviourControl ( sal_Int16  nControlType,
std::unique_ptr< weld::Builder xBuilder,
std::unique_ptr< TControlWindow >  xWidget,
bool  bReadOnly 
)
inlineprotected

◆ ~CommonBehaviourControl()

template<class TControlInterface , class TControlWindow >
virtual pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::~CommonBehaviourControl ( )
inlineoverrideprotectedvirtual

Member Function Documentation

◆ clear_widgetry()

template<class TControlInterface , class TControlWindow >
void pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry ( )
inlineprotected

◆ disposing()

template<class TControlInterface , class TControlWindow >
virtual void SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::disposing ( )
inlineoverrideprotectedvirtual

◆ getControlContext()

template<class TControlInterface , class TControlWindow >
virtual css::uno::Reference< css::inspection::XPropertyControlContext > SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlContext ( )
inlineoverrideprotectedvirtual

◆ getControlType()

template<class TControlInterface , class TControlWindow >
virtual ::sal_Int16 SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlType ( )
inlineoverrideprotected

◆ getControlWindow()

template<class TControlInterface , class TControlWindow >
virtual css::uno::Reference< css::awt::XWindow > SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlWindow ( )
inlineoverrideprotectedvirtual

Definition at line 135 of file commoncontrol.hxx.

References pcr::CommonBehaviourControlHelper::getWidget().

◆ getTypedControlWindow() [1/2]

template<class TControlInterface , class TControlWindow >
TControlWindow * pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getTypedControlWindow ( )
inlineprotected

Definition at line 159 of file commoncontrol.hxx.

References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow.

Referenced by pcr::OListboxControl::appendListEntry(), pcr::OComboboxControl::appendListEntry(), pcr::OListboxControl::clearList(), pcr::OComboboxControl::clearList(), pcr::ONumericControl::getDecimalDigits(), pcr::ONumericControl::getDisplayUnit(), pcr::OListboxControl::getListEntries(), pcr::OComboboxControl::getListEntries(), pcr::ONumericControl::getMaxValue(), pcr::ONumericControl::getMinValue(), pcr::OTimeControl::getValue(), pcr::OEditControl::getValue(), pcr::ONumericControl::getValue(), pcr::OColorControl::getValue(), pcr::OListboxControl::getValue(), pcr::OComboboxControl::getValue(), pcr::OFormattedNumericControl::getValue(), pcr::OFileUrlControl::getValue(), pcr::OTimeControl::getWidget(), pcr::ODateControl::getWidget(), pcr::OEditControl::getWidget(), pcr::ODateTimeControl::getWidget(), pcr::OHyperlinkControl::getWidget(), pcr::ONumericControl::getWidget(), pcr::OColorControl::getWidget(), pcr::OListboxControl::getWidget(), pcr::OComboboxControl::getWidget(), pcr::OMultilineEditControl::getWidget(), pcr::OFormatSampleControl::getWidget(), pcr::OFormattedNumericControl::getWidget(), pcr::OFileUrlControl::getWidget(), pcr::ONumericControl::impl_apiValueToFieldValue_nothrow(), pcr::ONumericControl::impl_fieldValueToApiValue_nothrow(), pcr::OColorControl::OColorControl(), pcr::OComboboxControl::OComboboxControl(), pcr::OEditControl::OEditControl(), pcr::OFileUrlControl::OFileUrlControl(), pcr::OFormattedNumericControl::OFormattedNumericControl(), pcr::OHyperlinkControl::OHyperlinkControl(), pcr::OListboxControl::prependListEntry(), pcr::OComboboxControl::prependListEntry(), pcr::ONumericControl::setDecimalDigits(), pcr::OFormattedNumericControl::SetDecimalDigits(), pcr::OFormattedNumericControl::SetDefaultValue(), pcr::ONumericControl::setDisplayUnit(), pcr::OFormattedNumericControl::SetFormatDescription(), pcr::ONumericControl::setMaxValue(), pcr::ONumericControl::setMinValue(), pcr::OTimeControl::SetModifyHandler(), pcr::OEditControl::SetModifyHandler(), pcr::ONumericControl::SetModifyHandler(), pcr::OColorControl::SetModifyHandler(), pcr::OListboxControl::SetModifyHandler(), pcr::OComboboxControl::SetModifyHandler(), pcr::OFormattedNumericControl::SetModifyHandler(), pcr::OFileUrlControl::SetModifyHandler(), pcr::OTimeControl::setValue(), pcr::OEditControl::setValue(), pcr::ONumericControl::setValue(), pcr::OColorControl::setValue(), pcr::OListboxControl::setValue(), pcr::OComboboxControl::setValue(), pcr::OFormattedNumericControl::setValue(), and pcr::OFileUrlControl::setValue().

◆ getTypedControlWindow() [2/2]

template<class TControlInterface , class TControlWindow >
const TControlWindow * pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getTypedControlWindow ( ) const
inlineprotected

◆ impl_checkDisposed_throw()

template<class TControlInterface , class TControlWindow >
void pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::impl_checkDisposed_throw
inlineprotected

checks whether the instance is already disposed

Exceptions
DisposedExceptionif the instance is already disposed

Definition at line 200 of file commoncontrol.hxx.

Referenced by pcr::OMultilineEditControl::getValue(), and pcr::OMultilineEditControl::setValue().

◆ isModified()

template<class TControlInterface , class TControlWindow >
virtual sal_Bool SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::isModified ( )
inlineoverrideprotectedvirtual

◆ notifyModifiedValue()

template<class TControlInterface , class TControlWindow >
virtual void SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::notifyModifiedValue ( )
inlineoverrideprotectedvirtual

◆ setControlContext()

template<class TControlInterface , class TControlWindow >
virtual void SAL_CALL pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::setControlContext ( const css::uno::Reference< css::inspection::XPropertyControlContext > &  controlcontext)
inlineoverrideprotectedvirtual

◆ SetModifyHandler()

template<class TControlInterface , class TControlWindow >
virtual void pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::SetModifyHandler ( )
inlineprotectedvirtual

Member Data Documentation

◆ m_xBuilder

template<class TControlInterface , class TControlWindow >
std::unique_ptr<weld::Builder> pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xBuilder
protected

◆ m_xControlWindow

template<class TControlInterface , class TControlWindow >
std::unique_ptr<TControlWindow> pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow
private

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