LibreOffice Module vcl (master) 1
Classes | Macros | Functions
calendar.cxx File Reference
#include <vcl/builder.hxx>
#include <vcl/svapp.hxx>
#include <vcl/help.hxx>
#include <vcl/kernarray.hxx>
#include <vcl/menu.hxx>
#include <vcl/settings.hxx>
#include <vcl/event.hxx>
#include <vcl/toolkit/calendar.hxx>
#include <vcl/commandevent.hxx>
#include <vcl/dockwin.hxx>
#include <unotools/calendarwrapper.hxx>
#include <unotools/localedatawrapper.hxx>
#include <com/sun/star/i18n/Weekdays.hpp>
#include <com/sun/star/i18n/CalendarDisplayIndex.hpp>
#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
#include <sal/log.hxx>
#include <tools/json_writer.hxx>
#include <calendar.hxx>
#include <svdata.hxx>
#include <strings.hrc>
#include <memory>
Include dependency graph for calendar.cxx:

Go to the source code of this file.

Classes

struct  ImplCFieldFloatWin
 

Macros

#define DAY_OFFX   4
 
#define DAY_OFFY   2
 
#define MONTH_BORDERX   4
 
#define MONTH_OFFY   3
 
#define WEEKDAY_OFFY   3
 
#define TITLE_OFFY   3
 
#define TITLE_BORDERY   2
 
#define SPIN_OFFX   4
 
#define SPIN_OFFY   TITLE_BORDERY
 
#define CALENDAR_HITTEST_DAY   (sal_uInt16(0x0001))
 
#define CALENDAR_HITTEST_MONTHTITLE   (sal_uInt16(0x0004))
 
#define CALENDAR_HITTEST_PREV   (sal_uInt16(0x0008))
 
#define CALENDAR_HITTEST_NEXT   (sal_uInt16(0x0010))
 
#define MENU_YEAR_COUNT   3
 

Functions

static void ImplCalendarSelectDate (IntDateSet *pTable, const Date &rDate, bool bSelect)
 
 IMPL_LINK (CalendarField, ImplSelectHdl, weld::Calendar &, rCalendar, void)
 
 IMPL_LINK (CalendarField, ImplClickHdl, weld::Button &, rBtn, void)
 
 IMPL_LINK_NOARG (CalendarField, ImplPopupModeEndHdl, FloatingWindow *, void)
 

Macro Definition Documentation

◆ CALENDAR_HITTEST_DAY

#define CALENDAR_HITTEST_DAY   (sal_uInt16(0x0001))

Definition at line 53 of file calendar.cxx.

◆ CALENDAR_HITTEST_MONTHTITLE

#define CALENDAR_HITTEST_MONTHTITLE   (sal_uInt16(0x0004))

Definition at line 54 of file calendar.cxx.

◆ CALENDAR_HITTEST_NEXT

#define CALENDAR_HITTEST_NEXT   (sal_uInt16(0x0010))

Definition at line 56 of file calendar.cxx.

◆ CALENDAR_HITTEST_PREV

#define CALENDAR_HITTEST_PREV   (sal_uInt16(0x0008))

Definition at line 55 of file calendar.cxx.

◆ DAY_OFFX

#define DAY_OFFX   4

Definition at line 43 of file calendar.cxx.

◆ DAY_OFFY

#define DAY_OFFY   2

Definition at line 44 of file calendar.cxx.

◆ MENU_YEAR_COUNT

#define MENU_YEAR_COUNT   3

Definition at line 58 of file calendar.cxx.

◆ MONTH_BORDERX

#define MONTH_BORDERX   4

Definition at line 45 of file calendar.cxx.

◆ MONTH_OFFY

#define MONTH_OFFY   3

Definition at line 46 of file calendar.cxx.

◆ SPIN_OFFX

#define SPIN_OFFX   4

Definition at line 50 of file calendar.cxx.

◆ SPIN_OFFY

#define SPIN_OFFY   TITLE_BORDERY

Definition at line 51 of file calendar.cxx.

◆ TITLE_BORDERY

#define TITLE_BORDERY   2

Definition at line 49 of file calendar.cxx.

◆ TITLE_OFFY

#define TITLE_OFFY   3

Definition at line 48 of file calendar.cxx.

◆ WEEKDAY_OFFY

#define WEEKDAY_OFFY   3

Definition at line 47 of file calendar.cxx.

Function Documentation

◆ IMPL_LINK() [1/2]

IMPL_LINK ( CalendarField  ,
ImplClickHdl  ,
weld::Button ,
rBtn  ,
void   
)

◆ IMPL_LINK() [2/2]

IMPL_LINK ( CalendarField  ,
ImplSelectHdl  ,
weld::Calendar ,
rCalendar  ,
void   
)

◆ IMPL_LINK_NOARG()

IMPL_LINK_NOARG ( CalendarField  ,
ImplPopupModeEndHdl  ,
FloatingWindow ,
void   
)

Definition at line 1684 of file calendar.cxx.

References GrabFocus.

◆ ImplCalendarSelectDate()

static void ImplCalendarSelectDate ( IntDateSet pTable,
const Date rDate,
bool  bSelect 
)
static

Definition at line 62 of file calendar.cxx.

References Date::GetDate().

Referenced by Calendar::ImplInit(), Calendar::ImplMouseSelect(), and Calendar::SetCurDate().