23#include <com/sun/star/i18n/CalendarFieldIndex.hpp>
25#include <unicode/calendar.h>
30namespace i18npool {
class NativeNumberSupplierService; }
54 void init(
const Era *_eraArray);
63 virtual void SAL_CALL
loadCalendar(
const OUString& uniqueID,
const css::lang::Locale& rLocale)
override;
64 virtual void SAL_CALL
setDateTime(
double fTimeInDays)
override;
66 virtual void SAL_CALL
setValue( sal_Int16 nFieldIndex, sal_Int16
nValue )
override;
67 virtual sal_Int16 SAL_CALL
getValue(sal_Int16 nFieldIndex)
override;
68 virtual void SAL_CALL
addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount)
override;
78 virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL
getMonths()
override;
79 virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL
getDays()
override;
80 virtual OUString SAL_CALL
getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType)
override;
83 virtual OUString SAL_CALL
getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
override;
87 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getDays2()
override;
88 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getMonths2()
override;
89 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getGenitiveMonths2()
override;
90 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getPartitiveMonths2()
override;
103 std::unique_ptr<icu::Calendar>
body;
119 OUString
getDisplayStringImpl( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode,
bool bEraMode );
143 bool getCombinedOffset( sal_Int32 & o_nOffset, sal_Int16 nParentFieldIndex, sal_Int16 nChildFieldIndex )
const;
153 virtual OUString SAL_CALL
getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType)
override;
161 virtual OUString SAL_CALL
getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType)
override;
199 virtual OUString SAL_CALL
getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
override;
virtual OUString SAL_CALL getDisplayString(sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode) override
std::unique_ptr< icu::Calendar > body
sal_Int16 fieldSetValue[FIELD_INDEX_COUNT]
css::i18n::Calendar2 aCalendar
virtual double SAL_CALL getDateTime() override
void submitFields()
Submit fieldSetValue array according to fieldSet.
virtual void SAL_CALL loadCalendar(const OUString &uniqueID, const css::lang::Locale &rLocale) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getDays2() override
void init(const Era *_eraArray)
virtual void SAL_CALL setLocalDateTime(double TimeInDays) override
virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override
virtual sal_Int16 SAL_CALL getFirstDayOfWeek() override
OUString getDisplayStringImpl(sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, bool bEraMode)
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override
rtl::Reference< NativeNumberSupplierService > mxNatNum
virtual void mapFromGregorian()
virtual double SAL_CALL getLocalDateTime() override
virtual css::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getMonths() override
virtual OUString SAL_CALL getDisplayString(sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode) override
virtual OUString SAL_CALL getUniqueID() override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getMonths2() override
virtual void SAL_CALL addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount) override
virtual void SAL_CALL setDateTime(double fTimeInDays) override
bool getZoneOffset(sal_Int32 &o_nOffset) const
Obtain combined field values for timezone offset (minutes+secondmillis) in milliseconds and whether f...
virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek(sal_Int16 nDays) override
virtual ~Calendar_gregorian() override
Destructor.
void setValue()
Set fields internally.
bool getDSTOffset(sal_Int32 &o_nOffset) const
Obtain combined field values for DST offset (minutes+secondmillis) in milliseconds and whether fields...
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override
virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override
virtual css::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getDays() override
css::lang::Locale aLocale
virtual sal_Bool SAL_CALL isValid() override
virtual void mapToGregorian()
virtual css::i18n::Calendar SAL_CALL getLoadedCalendar() override
virtual void SAL_CALL setFirstDayOfWeek(sal_Int16 nDay) override
bool setTimeZone(const OUString &rTimeZone)
sal_Int16 fieldValue[FIELD_INDEX_COUNT]
virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override
bool getCombinedOffset(sal_Int32 &o_nOffset, sal_Int16 nParentFieldIndex, sal_Int16 nChildFieldIndex) const
Used by getZoneOffset() and getDSTOffset().
virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override
virtual OUString SAL_CALL getImplementationName() override
virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override
virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override
Constant values shared between i18npool and, for example, the number formatter.
const sal_Int16 FIELD_INDEX_COUNT
const sal_uInt8 kDisplayEraForcedLongYear