LibreOffice Module i18npool (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
i18npool::Calendar_hijri Class Referencefinal

#include <calendar_hijri.hxx>

Inheritance diagram for i18npool::Calendar_hijri:
Collaboration diagram for i18npool::Calendar_hijri:

Public Member Functions

 Calendar_hijri ()
- Public Member Functions inherited from i18npool::Calendar_gregorian
 Calendar_gregorian ()
 Calendar_gregorian (const Era *_eraArray)
void init (const Era *_eraArray)
bool setTimeZone (const OUString &rTimeZone)
virtual ~Calendar_gregorian () override
 Destructor. More...
virtual void SAL_CALL loadCalendar (const OUString &uniqueID, const css::lang::Locale &rLocale) override
virtual void SAL_CALL setDateTime (double fTimeInDays) override
virtual double SAL_CALL getDateTime () override
virtual void SAL_CALL setValue (sal_Int16 nFieldIndex, sal_Int16 nValue) override
virtual sal_Int16 SAL_CALL getValue (sal_Int16 nFieldIndex) override
virtual void SAL_CALL addValue (sal_Int16 nFieldIndex, sal_Int32 nAmount) override
virtual sal_Bool SAL_CALL isValid () override
virtual css::i18n::Calendar SAL_CALL getLoadedCalendar () override
virtual OUString SAL_CALL getUniqueID () override
virtual sal_Int16 SAL_CALL getFirstDayOfWeek () override
virtual void SAL_CALL setFirstDayOfWeek (sal_Int16 nDay) override
virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek (sal_Int16 nDays) override
virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek () override
virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear () override
virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek () override
virtual css::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getMonths () override
virtual css::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getDays () override
virtual OUString SAL_CALL getDisplayName (sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override
virtual OUString SAL_CALL getDisplayString (sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode) override
virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2 () override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getDays2 () override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getMonths2 () override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2 () override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2 () override
virtual void SAL_CALL setLocalDateTime (double TimeInDays) override
virtual double SAL_CALL getLocalDateTime () override
virtual OUString SAL_CALL getImplementationName () override
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
- Public Member Functions inherited from i18npool::CalendarImpl
 CalendarImpl ()
 CalendarImpl (const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual ~CalendarImpl () override
 Destructor. More...
virtual void SAL_CALL loadDefaultCalendar (const css::lang::Locale &rLocale) override
virtual css::uno::Sequence< OUString > SAL_CALL getAllCalendars (const css::lang::Locale &rLocale) override
virtual void SAL_CALL loadDefaultCalendarTZ (const css::lang::Locale &rLocale, const OUString &rTimeZone) override
virtual void SAL_CALL loadCalendarTZ (const OUString &uniqueID, const css::lang::Locale &rLocale, const OUString &rTimeZone) override

Static Public Member Functions

static double SAL_DLLPUBLIC_EXPORT NewMoon (sal_Int32 n)
static void SAL_DLLPUBLIC_EXPORT getHijri (sal_Int32 *day, sal_Int32 *month, sal_Int32 *year)
static void SAL_DLLPUBLIC_EXPORT ToGregorian (sal_Int32 *day, sal_Int32 *month, sal_Int32 *year)
static void SAL_DLLPUBLIC_EXPORT getGregorianDay (sal_Int32 jd, sal_Int32 *pnDay, sal_Int32 *pnMonth, sal_Int32 *pnYear)
static sal_Int32 SAL_DLLPUBLIC_EXPORT getJulianDay (sal_Int32 day, sal_Int32 month, sal_Int32 year)

Private Member Functions

void mapToGregorian () override
void mapFromGregorian () override

Additional Inherited Members

- Protected Member Functions inherited from i18npool::Calendar_gregorian
void getValue ()
OUString getDisplayStringImpl (sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, bool bEraMode)
- Protected Attributes inherited from i18npool::Calendar_gregorian
const EraeraArray
std::unique_ptr< icu::Calendar > body
rtl::Reference< NativeNumberSupplierServicemxNatNum
const char * cCalendar
css::lang::Locale aLocale
sal_uInt32 fieldSet
sal_Int16 fieldValue [FIELD_INDEX_COUNT]
sal_Int16 fieldSetValue [FIELD_INDEX_COUNT]

Detailed Description

Definition at line 28 of file calendar_hijri.hxx.

Constructor & Destructor Documentation

i18npool::Calendar_hijri::Calendar_hijri ( )

Definition at line 45 of file calendar_hijri.cxx.

References i18npool::Calendar_gregorian::cCalendar.

Member Function Documentation

void i18npool::Calendar_hijri::getGregorianDay ( sal_Int32  jd,
sal_Int32 *  pnDay,
sal_Int32 *  pnMonth,
sal_Int32 *  pnYear 

Definition at line 238 of file calendar_hijri.cxx.

References i18nutil::monthDaysWithoutJanFeb.

Referenced by ToGregorian().

void i18npool::Calendar_hijri::getHijri ( sal_Int32 *  day,
sal_Int32 *  month,
sal_Int32 *  year 

Definition at line 158 of file calendar_hijri.cxx.

References getJulianDay(), i18npool::jd1900, NewMoon(), and i18npool::SynRef.

Referenced by mapFromGregorian().

sal_Int32 i18npool::Calendar_hijri::getJulianDay ( sal_Int32  day,
sal_Int32  month,
sal_Int32  year 

Definition at line 281 of file calendar_hijri.cxx.

References i18nutil::monthDaysWithoutJanFeb, and year.

Referenced by getHijri().

void i18npool::Calendar_hijri::mapFromGregorian ( )

Reimplemented from i18npool::Calendar_gregorian.

Definition at line 74 of file calendar_hijri.cxx.

References abs(), day, i18npool::Calendar_gregorian::fieldValue, getHijri(), month, and year.

void i18npool::Calendar_hijri::mapToGregorian ( )

Reimplemented from i18npool::Calendar_gregorian.

Definition at line 53 of file calendar_hijri.cxx.

References abs(), day, FIELDS, i18npool::Calendar_gregorian::fieldSet, i18npool::Calendar_gregorian::fieldSetValue, month, ToGregorian(), and year.

double i18npool::Calendar_hijri::NewMoon ( sal_Int32  n)

Definition at line 101 of file calendar_hijri.cxx.

References basegfx::deg2rad(), and t.

Referenced by getHijri(), and ToGregorian().

void i18npool::Calendar_hijri::ToGregorian ( sal_Int32 *  day,
sal_Int32 *  month,
sal_Int32 *  year 

Definition at line 205 of file calendar_hijri.cxx.

References day, getGregorianDay(), NewMoon(), and i18npool::SynRef.

Referenced by mapToGregorian().

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