LibreOffice Module vcl (master)  1
Classes | Macros | Functions
calendar.cxx File Reference
#include <vcl/svapp.hxx>
#include <vcl/help.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 <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

#define CALENDAR_HITTEST_DAY   (sal_uInt16(0x0001))
#define CALENDAR_HITTEST_MONTHTITLE   (sal_uInt16(0x0004))
#define CALENDAR_HITTEST_NEXT   (sal_uInt16(0x0010))
#define CALENDAR_HITTEST_PREV   (sal_uInt16(0x0008))
#define DAY_OFFX   4
#define DAY_OFFY   2
#define MENU_YEAR_COUNT   3

Definition at line 55 of file calendar.cxx.

Referenced by Calendar::ImplShowMenu().

#define MONTH_BORDERX   4

Definition at line 42 of file calendar.cxx.

Referenced by Calendar::CalcWindowSizePixel(), and Calendar::ImplFormat().

#define MONTH_OFFY   3

Definition at line 43 of file calendar.cxx.

Referenced by Calendar::CalcWindowSizePixel(), and Calendar::ImplFormat().

#define SPIN_OFFX   4

Definition at line 47 of file calendar.cxx.

Referenced by Calendar::ImplFormat().

#define SPIN_OFFY   TITLE_BORDERY

Definition at line 48 of file calendar.cxx.

Referenced by Calendar::ImplFormat().

#define TITLE_BORDERY   2
#define TITLE_OFFY   3

Definition at line 45 of file calendar.cxx.

Referenced by Calendar::CalcWindowSizePixel(), and Calendar::ImplFormat().

#define WEEKDAY_OFFY   3

Definition at line 44 of file calendar.cxx.

Referenced by Calendar::CalcWindowSizePixel(), and Calendar::ImplFormat().

Function Documentation

IMPL_LINK ( CalendarField  ,
ImplSelectHdl  ,
weld::Calendar ,
rCalendar  ,
void   
)
IMPL_LINK ( CalendarField  ,
ImplClickHdl  ,
weld::Button ,
rBtn  ,
void   
)
IMPL_LINK_NOARG ( CalendarField  ,
ImplPopupModeEndHdl  ,
FloatingWindow ,
void   
)

Definition at line 1666 of file calendar.cxx.

References GrabFocus.

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

Definition at line 59 of file calendar.cxx.

References Date::GetDate().

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