LibreOffice Module vcl (master)  1
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/commandevent.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 <vcl/calendar.hxx>
#include <svdata.hxx>
#include <strings.hrc>
#include <memory>
Include dependency graph for calendar.cxx:

Go to the source code of this file.

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)
 

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 53 of file calendar.cxx.

Referenced by Calendar::ImplShowMenu().

#define MONTH_BORDERX   4

Definition at line 40 of file calendar.cxx.

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

#define MONTH_OFFY   3

Definition at line 41 of file calendar.cxx.

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

#define SPIN_OFFX   4

Definition at line 45 of file calendar.cxx.

Referenced by Calendar::ImplFormat().

#define SPIN_OFFY   TITLE_BORDERY

Definition at line 46 of file calendar.cxx.

Referenced by Calendar::ImplFormat().

#define TITLE_BORDERY   2
#define TITLE_OFFY   3

Definition at line 43 of file calendar.cxx.

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

#define WEEKDAY_OFFY   3

Definition at line 42 of file calendar.cxx.

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

Function Documentation

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

Definition at line 57 of file calendar.cxx.

References Date::GetDate().

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