LibreOffice Module svtools (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
SvtCalendarBox Class Reference

#include <ctrlbox.hxx>

Collaboration diagram for SvtCalendarBox:
[legend]

Public Member Functions

 SvtCalendarBox (std::unique_ptr< weld::MenuButton > pControl, bool bUseLabel=true)
 
 ~SvtCalendarBox ()
 
weld::MenuButtonget_button ()
 
void set_date (const Date &rDate)
 
Date get_date () const
 
void set_label (const OUString &rLabel)
 
OUString get_label () const
 
void set_sensitive (bool bSensitive)
 
bool get_sensitive () const
 
void set_visible (bool bSensitive)
 
void show ()
 
void grab_focus ()
 
void connect_activated (const Link< SvtCalendarBox &, void > &rActivatedHdl)
 
void connect_selected (const Link< SvtCalendarBox &, void > &rSelectHdl)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 

Private Member Functions

 DECL_DLLPRIVATE_LINK (SelectHdl, weld::Calendar &, void)
 
 DECL_DLLPRIVATE_LINK (ActivateHdl, weld::Calendar &, void)
 
void set_label_from_date ()
 

Private Attributes

bool m_bUseLabel
 
std::unique_ptr< weld::MenuButtonm_xControl
 
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Widgetm_xTopLevel
 
std::unique_ptr< weld::Calendarm_xCalendar
 
Link< SvtCalendarBox &, void > m_aActivatedHdl
 
Link< SvtCalendarBox &, void > m_aSelectHdl
 

Detailed Description

Definition at line 281 of file ctrlbox.hxx.

Constructor & Destructor Documentation

◆ SvtCalendarBox()

SvtCalendarBox::SvtCalendarBox ( std::unique_ptr< weld::MenuButton pControl,
bool  bUseLabel = true 
)

Definition at line 1575 of file ctrlbox.cxx.

References get(), LINK, m_xCalendar, m_xControl, m_xControl, and m_xTopLevel.

◆ ~SvtCalendarBox()

SvtCalendarBox::~SvtCalendarBox ( )

Definition at line 1614 of file ctrlbox.cxx.

Member Function Documentation

◆ connect_activated()

void SvtCalendarBox::connect_activated ( const Link< SvtCalendarBox &, void > &  rActivatedHdl)
inline

Definition at line 301 of file ctrlbox.hxx.

◆ connect_focus_in()

void SvtCalendarBox::connect_focus_in ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 304 of file ctrlbox.hxx.

References m_xControl.

◆ connect_focus_out()

void SvtCalendarBox::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 305 of file ctrlbox.hxx.

References m_xControl.

◆ connect_selected()

void SvtCalendarBox::connect_selected ( const Link< SvtCalendarBox &, void > &  rSelectHdl)
inline

Definition at line 302 of file ctrlbox.hxx.

◆ DECL_DLLPRIVATE_LINK() [1/2]

SvtCalendarBox::DECL_DLLPRIVATE_LINK ( ActivateHdl  ,
weld::Calendar ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/2]

SvtCalendarBox::DECL_DLLPRIVATE_LINK ( SelectHdl  ,
weld::Calendar ,
void   
)
private

◆ get_button()

weld::MenuButton & SvtCalendarBox::get_button ( )
inline

Definition at line 287 of file ctrlbox.hxx.

References m_xControl.

◆ get_date()

Date SvtCalendarBox::get_date ( ) const
inline

Definition at line 290 of file ctrlbox.hxx.

◆ get_label()

OUString SvtCalendarBox::get_label ( ) const
inline

Definition at line 293 of file ctrlbox.hxx.

References m_xControl.

◆ get_sensitive()

bool SvtCalendarBox::get_sensitive ( ) const
inline

Definition at line 296 of file ctrlbox.hxx.

References m_xControl.

◆ grab_focus()

void SvtCalendarBox::grab_focus ( )
inline

Definition at line 299 of file ctrlbox.hxx.

References m_xControl.

◆ set_date()

void SvtCalendarBox::set_date ( const Date rDate)

Definition at line 1587 of file ctrlbox.cxx.

References m_xCalendar, and set_label_from_date().

◆ set_label()

void SvtCalendarBox::set_label ( const OUString &  rLabel)
inline

Definition at line 292 of file ctrlbox.hxx.

References m_xControl.

◆ set_label_from_date()

void SvtCalendarBox::set_label_from_date ( )
private

◆ set_sensitive()

void SvtCalendarBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 295 of file ctrlbox.hxx.

References m_xControl.

◆ set_visible()

void SvtCalendarBox::set_visible ( bool  bSensitive)
inline

Definition at line 297 of file ctrlbox.hxx.

References m_xControl.

◆ show()

void SvtCalendarBox::show ( )
inline

Definition at line 298 of file ctrlbox.hxx.

Member Data Documentation

◆ m_aActivatedHdl

Link<SvtCalendarBox&, void> SvtCalendarBox::m_aActivatedHdl
private

Definition at line 317 of file ctrlbox.hxx.

◆ m_aSelectHdl

Link<SvtCalendarBox&, void> SvtCalendarBox::m_aSelectHdl
private

Definition at line 318 of file ctrlbox.hxx.

◆ m_bUseLabel

bool SvtCalendarBox::m_bUseLabel
private

Definition at line 310 of file ctrlbox.hxx.

Referenced by set_label_from_date().

◆ m_xBuilder

std::unique_ptr<weld::Builder> SvtCalendarBox::m_xBuilder
private

Definition at line 313 of file ctrlbox.hxx.

◆ m_xCalendar

std::unique_ptr<weld::Calendar> SvtCalendarBox::m_xCalendar
private

Definition at line 315 of file ctrlbox.hxx.

Referenced by set_date(), set_label_from_date(), and SvtCalendarBox().

◆ m_xControl

std::unique_ptr<weld::MenuButton> SvtCalendarBox::m_xControl
private

Definition at line 312 of file ctrlbox.hxx.

Referenced by set_label_from_date(), and SvtCalendarBox().

◆ m_xTopLevel

std::unique_ptr<weld::Widget> SvtCalendarBox::m_xTopLevel
private

Definition at line 314 of file ctrlbox.hxx.

Referenced by SvtCalendarBox().


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