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

#include <usercontrol.hxx>

Inheritance diagram for pcr::OFormatSampleControl:
[legend]
Collaboration diagram for pcr::OFormatSampleControl:
[legend]

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::WidgetgetWidget () 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::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)
 

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::FormattedSpinButtonm_xSpinButton
 
std::unique_ptr< weld::Entrym_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::Builderm_xBuilder
 
- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 32 of file usercontrol.hxx.

Constructor & Destructor Documentation

◆ OFormatSampleControl()

pcr::OFormatSampleControl::OFormatSampleControl ( std::unique_ptr< weld::Container xWidget,
std::unique_ptr< weld::Builder xBuilder,
bool  bReadOnly 
)

Member Function Documentation

◆ DECL_LINK()

pcr::OFormatSampleControl::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ disposing()

virtual void SAL_CALL pcr::OFormatSampleControl::disposing ( )
inlineoverridevirtual

◆ getPreviewValue() [1/2]

double pcr::OFormatSampleControl::getPreviewValue ( const SvNumberformat i_rEntry)
staticprivate

◆ getPreviewValue() [2/2]

double pcr::OFormatSampleControl::getPreviewValue ( SvNumberFormatter const *  pNF,
sal_Int32  nFormatKey 
)
static

returns the default preview value for the given format key

Parameters
_pNFthe number formatter
_nFormatKeythe format key
Returns
current date or time or the value 1234.56789

Definition at line 141 of file usercontrol.cxx.

References DBG_ASSERT, SvNumberFormatter::GetEntry(), getPreviewValue(), and nValue.

Referenced by getPreviewValue(), and setValue().

◆ getValue()

Any SAL_CALL pcr::OFormatSampleControl::getValue ( )
overridevirtual

Definition at line 151 of file usercontrol.cxx.

References Any, Formatter::GetValue(), and m_xSpinButton.

◆ getValueType()

Type SAL_CALL pcr::OFormatSampleControl::getValueType ( )
overridevirtual

Definition at line 162 of file usercontrol.cxx.

◆ getWidget()

virtual weld::Widget * pcr::OFormatSampleControl::getWidget ( )
inlineoverridevirtual

◆ SetFormatSupplier()

void pcr::OFormatSampleControl::SetFormatSupplier ( const SvNumberFormatsSupplierObj pSupplier)

◆ SetModifyHandler()

virtual void pcr::OFormatSampleControl::SetModifyHandler ( )
inlineoverridevirtual

Reimplemented from pcr::CommonBehaviourControl< TControlInterface, TControlWindow >.

Definition at line 55 of file usercontrol.hxx.

References LINK, m_xEntry, and m_xSpinButton.

◆ setValue()

void SAL_CALL pcr::OFormatSampleControl::setValue ( const css::uno::Any &  _value)
overridevirtual

Member Data Documentation

◆ m_xEntry

std::unique_ptr<weld::Entry> pcr::OFormatSampleControl::m_xEntry
private

◆ m_xSpinButton

std::unique_ptr<weld::FormattedSpinButton> pcr::OFormatSampleControl::m_xSpinButton
private

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