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:
[legend]
Collaboration diagram for i18npool::Calendar_hijri:
[legend]

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 void SAL_CALL loadCalendar (const OUString &uniqueID, const css::lang::Locale &rLocale) override
 
virtual css::i18n::Calendar SAL_CALL getLoadedCalendar () override
 
virtual css::uno::Sequence< OUString > SAL_CALL getAllCalendars (const css::lang::Locale &rLocale) override
 
virtual OUString SAL_CALL getUniqueID () 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 sal_Bool SAL_CALL isValid () override
 
virtual void SAL_CALL addValue (sal_Int16 nFieldIndex, sal_Int32 nAmount) 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 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
 
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
 

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
virtual void mapToGregorian ()
 
virtual void mapFromGregorian ()
 
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

◆ Calendar_hijri()

i18npool::Calendar_hijri::Calendar_hijri ( )

Definition at line 45 of file calendar_hijri.cxx.

References i18npool::Calendar_gregorian::cCalendar.

Member Function Documentation

◆ getGregorianDay()

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

Definition at line 238 of file calendar_hijri.cxx.

References i18nutil::monthDaysWithoutJanFeb.

Referenced by ToGregorian().

◆ getHijri()

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

◆ getJulianDay()

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

Definition at line 281 of file calendar_hijri.cxx.

References day, month, i18nutil::monthDaysWithoutJanFeb, and year.

Referenced by getHijri().

◆ mapFromGregorian()

void i18npool::Calendar_hijri::mapFromGregorian ( )
overrideprivatevirtual
Exceptions
css::uno::RuntimeException

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.

◆ mapToGregorian()

void i18npool::Calendar_hijri::mapToGregorian ( )
overrideprivatevirtual
Exceptions
css::uno::RuntimeException

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.

◆ NewMoon()

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

Definition at line 101 of file calendar_hijri.cxx.

References basegfx::deg2rad(), i18npool::jd1900, n, i18npool::SynPeriod, and t.

Referenced by getHijri(), and ToGregorian().

◆ ToGregorian()

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

Definition at line 205 of file calendar_hijri.cxx.

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

Referenced by mapToGregorian().


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