|
LibreOffice Module extensions (master) 1
|
#include <usercontrol.hxx>
Public Member Functions | |
| OFormatSampleControl (std::unique_ptr< weld::Container > xWidget, std::unique_ptr< weld::Builder > xBuilder, bool bReadOnly) | |
| virtual css::uno::Any SAL_CALL | getValue () override |
| virtual void SAL_CALL | setValue (const css::uno::Any &_value) override |
| virtual css::uno::Type SAL_CALL | getValueType () override |
| virtual void SAL_CALL | disposing () override |
| virtual void | SetModifyHandler () override |
| void | SetFormatSupplier (const SvNumberFormatsSupplierObj *pSupplier) |
| virtual weld::Widget * | getWidget () override |
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) | |
Static Public Member Functions | |
| static double | getPreviewValue (SvNumberFormatter const *pNF, sal_Int32 nFormatKey) |
| returns the default preview value for the given format key More... | |
Private Member Functions | |
| DECL_LINK (KeyInputHdl, const KeyEvent &, bool) | |
Static Private Member Functions | |
| static double | getPreviewValue (const SvNumberformat &i_rEntry) |
Private Attributes | |
| std::unique_ptr< weld::FormattedSpinButton > | m_xSpinButton |
| std::unique_ptr< weld::Entry > | m_xEntry |
Additional Inherited Members | |
Protected Types inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow > | |
| typedef ::cppu::WeakComponentImplHelper< TControlInterface > | ComponentBaseClass |
Protected Member Functions inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow > | |
| 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 inherited from pcr::CommonBehaviourControl< TControlInterface, TControlWindow > | |
| std::unique_ptr< weld::Builder > | m_xBuilder |
Protected Attributes inherited from cppu::BaseMutex | |
| mutable::osl::Mutex | m_aMutex |
Definition at line 32 of file usercontrol.hxx.
| pcr::OFormatSampleControl::OFormatSampleControl | ( | std::unique_ptr< weld::Container > | xWidget, |
| std::unique_ptr< weld::Builder > | xBuilder, | ||
| bool | bReadOnly | ||
| ) |
Definition at line 78 of file usercontrol.cxx.
References bReadOnly, Formatter::ClearMaxValue(), Formatter::ClearMinValue(), LINK, m_xEntry, m_xSpinButton, Formatter::TreatAsNumber(), and Unknown.
|
private |
|
inlineoverridevirtual |
Reimplemented from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >.
Definition at line 48 of file usercontrol.hxx.
References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::disposing(), m_xEntry, and m_xSpinButton.
|
staticprivate |
Definition at line 115 of file usercontrol.cxx.
References Date::GetDate(), tools::Time::GetTime(), SvNumberformat::GetType(), nValue, Date::SYSTEM, and tools::Time::SYSTEM.
|
static |
returns the default preview value for the given format key
| _pNF | the number formatter |
| _nFormatKey | the format key |
Definition at line 141 of file usercontrol.cxx.
References DBG_ASSERT, SvNumberFormatter::GetEntry(), getPreviewValue(), and nValue.
Referenced by getPreviewValue(), and setValue().
|
overridevirtual |
Definition at line 151 of file usercontrol.cxx.
References Any, Formatter::GetValue(), and m_xSpinButton.
|
overridevirtual |
Definition at line 162 of file usercontrol.cxx.
|
inlineoverridevirtual |
Implements pcr::CommonBehaviourControlHelper.
Definition at line 65 of file usercontrol.hxx.
References pcr::CommonBehaviourControl< TControlInterface, TControlWindow >::getTypedControlWindow().
| void pcr::OFormatSampleControl::SetFormatSupplier | ( | const SvNumberFormatsSupplierObj * | pSupplier | ) |
Definition at line 57 of file usercontrol.cxx.
References SvNumberFormatsSupplierObj::GetNumberFormatter(), m_xEntry, m_xSpinButton, Formatter::SetFormatter(), Formatter::SetValue(), and Formatter::TreatAsNumber().
|
inlineoverridevirtual |
Reimplemented from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >.
Definition at line 55 of file usercontrol.hxx.
References LINK, m_xEntry, and m_xSpinButton.
|
overridevirtual |
Definition at line 90 of file usercontrol.cxx.
References SvNumberFormatter::GetEntry(), Formatter::GetFormatter(), getPreviewValue(), SvNumberformat::IsTextFormat(), m_xEntry, m_xSpinButton, pcr::PcrRes(), Formatter::SetFormatKey(), and Formatter::SetValue().
|
private |
Definition at line 36 of file usercontrol.hxx.
Referenced by disposing(), OFormatSampleControl(), SetFormatSupplier(), SetModifyHandler(), and setValue().
|
private |
Definition at line 35 of file usercontrol.hxx.
Referenced by disposing(), getValue(), OFormatSampleControl(), SetFormatSupplier(), SetModifyHandler(), and setValue().