LibreOffice Module extensions (master) 1
|
implements a base class for <type scope="css::inspection">XPropertyControl</type> implementations More...
#include <commoncontrol.hxx>
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::Builder > | m_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::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) | |
implements a base class for <type scope="css::inspection">XPropertyControl</type> implementations
TControlInterface | an interface class which is derived from (or identical to) <type scope="css::inspection">XPropertyControl</type> |
TControlWindow | a class which is derived from weld::Widget |
Definition at line 111 of file commoncontrol.hxx.
|
protected |
Definition at line 116 of file commoncontrol.hxx.
|
inlineprotected |
Definition at line 183 of file commoncontrol.hxx.
References bReadOnly, m_xControlWindow, and pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow.
|
inlineoverrideprotectedvirtual |
Definition at line 123 of file commoncontrol.hxx.
References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry().
|
inlineprotected |
Definition at line 142 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::getWidget(), pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xBuilder, pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow, and weld::Widget::weld_parent().
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::disposing(), and pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::~CommonBehaviourControl().
|
inlineoverrideprotectedvirtual |
Reimplemented in pcr::OTimeControl, pcr::ODateControl, pcr::ODateTimeControl, pcr::OHyperlinkControl, pcr::OMultilineEditControl, and pcr::OFormatSampleControl.
Definition at line 154 of file commoncontrol.hxx.
References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry().
Referenced by pcr::OTimeControl::disposing(), pcr::ODateControl::disposing(), pcr::ODateTimeControl::disposing(), pcr::OHyperlinkControl::disposing(), pcr::OMultilineEditControl::disposing(), and pcr::OFormatSampleControl::disposing().
|
inlineoverrideprotectedvirtual |
Definition at line 131 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::getControlContext().
|
inlineoverrideprotected |
Definition at line 129 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::getControlType().
|
inlineoverrideprotectedvirtual |
Definition at line 135 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::getWidget().
|
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().
|
inlineprotected |
Definition at line 161 of file commoncontrol.hxx.
References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow.
|
inlineprotected |
checks whether the instance is already disposed
DisposedException | if the instance is already disposed |
Definition at line 200 of file commoncontrol.hxx.
Referenced by pcr::OMultilineEditControl::getValue(), and pcr::OMultilineEditControl::setValue().
|
inlineoverrideprotectedvirtual |
Definition at line 137 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::isModified().
|
inlineoverrideprotectedvirtual |
Definition at line 139 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::notifyModifiedValue().
Referenced by pcr::OEditControl::setModified(), pcr::OColorControl::setModified(), and pcr::OListboxControl::setModified().
|
inlineoverrideprotectedvirtual |
Definition at line 133 of file commoncontrol.hxx.
References pcr::CommonBehaviourControlHelper::setControlContext().
|
inlineprotectedvirtual |
Reimplemented 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.
Definition at line 164 of file commoncontrol.hxx.
References LINK, and pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::m_xControlWindow.
Referenced by pcr::OTimeControl::SetModifyHandler(), pcr::ODateControl::SetModifyHandler(), pcr::OEditControl::SetModifyHandler(), pcr::ONumericControl::SetModifyHandler(), pcr::OColorControl::SetModifyHandler(), pcr::OListboxControl::SetModifyHandler(), pcr::OComboboxControl::SetModifyHandler(), pcr::OFormattedNumericControl::SetModifyHandler(), and pcr::OFileUrlControl::SetModifyHandler().
|
protected |
Definition at line 176 of file commoncontrol.hxx.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry().
|
private |
Definition at line 178 of file commoncontrol.hxx.
Referenced by pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::clear_widgetry(), pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::CommonBehaviourControl(), pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getTypedControlWindow(), and pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::SetModifyHandler().