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

#include <standardcontrol.hxx>

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

Public Member Functions

 ODateControl (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 SetModifyHandler () override
 
virtual void SAL_CALL disposing () override
 
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)
 

Private Member Functions

 DECL_LINK (ActivateHdl, SvtCalendarBox &, void)
 
 DECL_LINK (ToggleHdl, weld::Toggleable &, void)
 

Private Attributes

std::unique_ptr< weld::Entrym_xEntry
 
std::unique_ptr< SvtCalendarBoxm_xCalendarBox
 
std::unique_ptr< weld::DateFormatterm_xEntryFormatter
 

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 65 of file standardcontrol.hxx.

Constructor & Destructor Documentation

◆ ODateControl()

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

Definition at line 94 of file standardcontrol.cxx.

References bReadOnly, LINK, m_xCalendarBox, m_xEntry, and m_xEntryFormatter.

Member Function Documentation

◆ DECL_LINK() [1/2]

pcr::ODateControl::DECL_LINK ( ActivateHdl  ,
SvtCalendarBox ,
void   
)
private

◆ DECL_LINK() [2/2]

pcr::ODateControl::DECL_LINK ( ToggleHdl  ,
weld::Toggleable ,
void   
)
private

◆ disposing()

void SAL_CALL pcr::ODateControl::disposing ( )
overridevirtual

◆ getValue()

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

Definition at line 155 of file standardcontrol.cxx.

References Any, Date::GetUNODate(), m_xEntry, and m_xEntryFormatter.

◆ getValueType()

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

Definition at line 166 of file standardcontrol.cxx.

◆ getWidget()

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

◆ SetModifyHandler()

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

◆ setValue()

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

Definition at line 121 of file standardcontrol.cxx.

References m_xEntry, and m_xEntryFormatter.

Member Data Documentation

◆ m_xCalendarBox

std::unique_ptr<SvtCalendarBox> pcr::ODateControl::m_xCalendarBox
private

Definition at line 68 of file standardcontrol.hxx.

Referenced by disposing(), ODateControl(), and SetModifyHandler().

◆ m_xEntry

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

Definition at line 67 of file standardcontrol.hxx.

Referenced by disposing(), getValue(), ODateControl(), SetModifyHandler(), and setValue().

◆ m_xEntryFormatter

std::unique_ptr<weld::DateFormatter> pcr::ODateControl::m_xEntryFormatter
private

Definition at line 69 of file standardcontrol.hxx.

Referenced by disposing(), getValue(), ODateControl(), SetModifyHandler(), and setValue().


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