21#include <com/sun/star/i18n/XCalendar4.hpp>
23#include <com/sun/star/lang/XServiceInfo.hpp>
35 css::i18n::XCalendar4,
36 css::lang::XServiceInfo
43 CalendarImpl(
const css::uno::Reference < css::uno::XComponentContext >& rxContext);
53 virtual void SAL_CALL
loadCalendar(
const OUString& uniqueID,
const css::lang::Locale& rLocale)
override;
55 virtual css::uno::Sequence < OUString > SAL_CALL
getAllCalendars(
const css::lang::Locale& rLocale)
override;
57 virtual void SAL_CALL
setDateTime(
double fTimeInDays)
override;
59 virtual void SAL_CALL
setValue( sal_Int16 nFieldIndex, sal_Int16 nValue )
override;
60 virtual sal_Int16 SAL_CALL
getValue(sal_Int16 nFieldIndex)
override;
62 virtual void SAL_CALL
addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount)
override;
69 virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL
getMonths()
override;
70 virtual css::uno::Sequence < css::i18n::CalendarItem > SAL_CALL
getDays()
override;
71 virtual OUString SAL_CALL
getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType)
override;
74 virtual OUString SAL_CALL
getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode )
override;
78 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getDays2()
override;
79 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getMonths2()
override;
80 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getGenitiveMonths2()
override;
81 virtual css::uno::Sequence < css::i18n::CalendarItem2 > SAL_CALL
getPartitiveMonths2()
override;
86 virtual void SAL_CALL
loadDefaultCalendarTZ(
const css::lang::Locale& rLocale,
const OUString& rTimeZone)
override;
87 virtual void SAL_CALL
loadCalendarTZ(
const OUString& uniqueID,
const css::lang::Locale& rLocale,
const OUString& rTimeZone)
override;
96 lookupTableItem(OUString aCacheID, css::uno::Reference < css::i18n::XCalendar4 > _xCalendar)
99 css::uno::Reference < css::i18n::XCalendar4 >
xCalendar;
102 css::uno::Reference < css::uno::XComponentContext >
m_xContext;
103 css::uno::Reference < css::i18n::XCalendar4 >
xCalendar;
CalendarImpl(const css::uno::Reference< css::uno::XComponentContext > &rxContext)
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() override
virtual css::uno::Sequence< OUString > SAL_CALL getAllCalendars(const css::lang::Locale &rLocale) override
std::vector< lookupTableItem > lookupTable
css::uno::Reference< css::i18n::XCalendar4 > xCalendar
virtual OUString SAL_CALL getDisplayName(sal_Int16 nCalendarDisplayIndex, sal_Int16 nIdx, sal_Int16 nNameType) override
virtual sal_Bool SAL_CALL isValid() override
virtual double SAL_CALL getDateTime() override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getDays2() override
virtual void SAL_CALL setFirstDayOfWeek(sal_Int16 nDay) override
virtual void SAL_CALL addValue(sal_Int16 nFieldIndex, sal_Int32 nAmount) override
virtual void SAL_CALL loadDefaultCalendar(const css::lang::Locale &rLocale) override
virtual double SAL_CALL getLocalDateTime() override
virtual css::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getDays() override
virtual OUString SAL_CALL getUniqueID() override
virtual OUString SAL_CALL getImplementationName() override
virtual css::i18n::Calendar2 SAL_CALL getLoadedCalendar2() override
virtual css::i18n::Calendar SAL_CALL getLoadedCalendar() override
virtual ~CalendarImpl() override
Destructor.
virtual void SAL_CALL loadCalendar(const OUString &uniqueID, const css::lang::Locale &rLocale) override
virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek(sal_Int16 nDays) override
virtual void SAL_CALL setLocalDateTime(double TimeInDays) override
virtual sal_Int16 SAL_CALL getNumberOfDaysInWeek() override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL loadDefaultCalendarTZ(const css::lang::Locale &rLocale, const OUString &rTimeZone) override
virtual sal_Int16 SAL_CALL getFirstDayOfWeek() override
virtual void SAL_CALL loadCalendarTZ(const OUString &uniqueID, const css::lang::Locale &rLocale, const OUString &rTimeZone) override
virtual void SAL_CALL setValue(sal_Int16 nFieldIndex, sal_Int16 nValue) override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getPartitiveMonths2() override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getGenitiveMonths2() override
virtual sal_Int16 SAL_CALL getValue(sal_Int16 nFieldIndex) override
virtual css::uno::Sequence< css::i18n::CalendarItem2 > SAL_CALL getMonths2() 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 void SAL_CALL setDateTime(double fTimeInDays) override
virtual sal_Int16 SAL_CALL getNumberOfMonthsInYear() override
Constant values shared between i18npool and, for example, the number formatter.
lookupTableItem(OUString aCacheID, css::uno::Reference< css::i18n::XCalendar4 > _xCalendar)
css::uno::Reference< css::i18n::XCalendar4 > xCalendar