LibreOffice Module extensions (master) 1
|
A helper class for implementing the <type scope="css::inspection">XPropertyControl</type> or one of its derived interfaces. More...
#include <commoncontrol.hxx>
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::Widget * | getWidget ()=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 |
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.
pcr::CommonBehaviourControlHelper::CommonBehaviourControlHelper | ( | sal_Int16 | nControlType, |
css::inspection::XPropertyControl & | rAntiImpl | ||
) |
creates the instance
nControlType | the type of the control - one of the <type scope="css::inspection">PropertyControlType</type> constants |
pAntiImpl | Reference 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.
|
virtual |
Definition at line 41 of file commoncontrol.cxx.
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | ColorModifiedHdl | , |
ColorListBox & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | DateModifiedHdl | , |
SvtCalendarBox & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | EditModifiedHdl | , |
weld::Entry & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | FormattedModifiedHdl | , |
weld::FormattedSpinButton & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | GetFocusHdl | , |
weld::Widget & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | LoseFocusHdl | , |
weld::Widget & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | MetricModifiedHdl | , |
weld::MetricSpinButton & | , | ||
void | |||
) |
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | ModifiedHdl | , |
weld::ComboBox & | , | ||
void | |||
) |
may be used by derived classes, they forward the event to the PropCtrListener
pcr::CommonBehaviourControlHelper::DECL_LINK | ( | TimeModifiedHdl | , |
weld::FormattedSpinButton & | , | ||
void | |||
) |
|
virtual |
Reimplemented in pcr::OMultilineEditControl.
Definition at line 66 of file commoncontrol.cxx.
References setModified().
|
inline |
css::uno::RuntimeException |
Definition at line 77 of file commoncontrol.hxx.
References m_xContext.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlContext().
|
inline |
css::uno::RuntimeException |
Definition at line 75 of file commoncontrol.hxx.
References m_nControlType.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlType().
|
pure virtual |
Implemented in pcr::OTimeControl, pcr::ODateControl, pcr::OEditControl, pcr::ODateTimeControl, pcr::OHyperlinkControl, pcr::ONumericControl, pcr::OColorControl, pcr::OListboxControl, pcr::OComboboxControl, pcr::OMultilineEditControl, pcr::OFormatSampleControl, pcr::OFormattedNumericControl, and pcr::OFileUrlControl.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry(), and pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getControlWindow().
|
inline |
css::uno::RuntimeException |
Definition at line 81 of file commoncontrol.hxx.
References m_bModified.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::isModified(), and notifyModifiedValue().
void pcr::CommonBehaviourControlHelper::notifyModifiedValue | ( | ) |
css::uno::RuntimeException |
Definition at line 50 of file commoncontrol.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, isModified(), m_bModified, m_rAntiImpl, and m_xContext.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::notifyModifiedValue().
void pcr::CommonBehaviourControlHelper::setControlContext | ( | const css::uno::Reference< css::inspection::XPropertyControlContext > & | controlcontext | ) |
css::uno::RuntimeException |
Definition at line 45 of file commoncontrol.cxx.
References m_xContext.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::setControlContext().
|
inlinevirtual |
Reimplemented in pcr::OEditControl, pcr::OColorControl, and pcr::OListboxControl.
Definition at line 69 of file commoncontrol.hxx.
References m_bModified.
Referenced by editChanged(), pcr::OMultilineEditControl::editChanged(), pcr::OEditControl::setModified(), pcr::OColorControl::setModified(), and pcr::OListboxControl::setModified().
|
private |
Definition at line 52 of file commoncontrol.hxx.
Referenced by isModified(), notifyModifiedValue(), and setModified().
|
private |
Definition at line 47 of file commoncontrol.hxx.
Referenced by getControlType().
|
private |
Definition at line 51 of file commoncontrol.hxx.
Referenced by notifyModifiedValue().
|
private |
Definition at line 49 of file commoncontrol.hxx.
Referenced by getControlContext(), notifyModifiedValue(), and setControlContext().