LibreOffice Module i18npool (master) 1
Classes | Public Member Functions | Private Attributes | List of all members
i18npool::CalendarImpl Class Reference

#include <calendarImpl.hxx>

Inheritance diagram for i18npool::CalendarImpl:
[legend]
Collaboration diagram for i18npool::CalendarImpl:
[legend]

Classes

struct  lookupTableItem
 

Public Member Functions

 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
 

Private Attributes

std::vector< lookupTableItemlookupTable
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::i18n::XCalendar4 > xCalendar
 

Detailed Description

Definition at line 33 of file calendarImpl.hxx.

Constructor & Destructor Documentation

◆ CalendarImpl() [1/2]

i18npool::CalendarImpl::CalendarImpl ( )

Definition at line 33 of file calendarImpl.cxx.

References getProcessComponentContext(), and m_xContext.

◆ CalendarImpl() [2/2]

i18npool::CalendarImpl::CalendarImpl ( const css::uno::Reference< css::uno::XComponentContext > &  rxContext)

◆ ~CalendarImpl()

i18npool::CalendarImpl::~CalendarImpl ( )
overridevirtual

Destructor.

Definition at line 43 of file calendarImpl.cxx.

Member Function Documentation

◆ addValue()

void SAL_CALL i18npool::CalendarImpl::addValue ( sal_Int16  nFieldIndex,
sal_Int32  nAmount 
)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 214 of file calendarImpl.cxx.

References xCalendar.

◆ getAllCalendars()

Sequence< OUString > SAL_CALL i18npool::CalendarImpl::getAllCalendars ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 138 of file calendarImpl.cxx.

References i18npool::LocaleDataImpl::get().

◆ getDateTime()

double SAL_CALL i18npool::CalendarImpl::getDateTime ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 156 of file calendarImpl.cxx.

References xCalendar.

◆ getDays()

Sequence< CalendarItem > SAL_CALL i18npool::CalendarImpl::getDays ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 281 of file calendarImpl.cxx.

References xCalendar.

◆ getDays2()

Sequence< CalendarItem2 > SAL_CALL i18npool::CalendarImpl::getDays2 ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 299 of file calendarImpl.cxx.

References xCalendar.

◆ getDisplayName()

OUString SAL_CALL i18npool::CalendarImpl::getDisplayName ( sal_Int16  nCalendarDisplayIndex,
sal_Int16  nIdx,
sal_Int16  nNameType 
)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian, i18npool::Calendar_hanja, and i18npool::Calendar_hanja_yoil.

Definition at line 255 of file calendarImpl.cxx.

References idx, and xCalendar.

◆ getDisplayString()

OUString SAL_CALL i18npool::CalendarImpl::getDisplayString ( sal_Int32  nCalendarDisplayCode,
sal_Int16  nNativeNumberMode 
)
overridevirtual

◆ getFirstDayOfWeek()

sal_Int16 SAL_CALL i18npool::CalendarImpl::getFirstDayOfWeek ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 222 of file calendarImpl.cxx.

References xCalendar.

◆ getGenitiveMonths2()

Sequence< CalendarItem2 > SAL_CALL i18npool::CalendarImpl::getGenitiveMonths2 ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 317 of file calendarImpl.cxx.

References xCalendar.

◆ getImplementationName()

OUString SAL_CALL i18npool::CalendarImpl::getImplementationName ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 351 of file calendarImpl.cxx.

◆ getLoadedCalendar()

css::i18n::Calendar SAL_CALL i18npool::CalendarImpl::getLoadedCalendar ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 130 of file calendarImpl.cxx.

References xCalendar.

◆ getLoadedCalendar2()

Calendar2 SAL_CALL i18npool::CalendarImpl::getLoadedCalendar2 ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 122 of file calendarImpl.cxx.

References xCalendar.

◆ getLocalDateTime()

double SAL_CALL i18npool::CalendarImpl::getLocalDateTime ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 172 of file calendarImpl.cxx.

References xCalendar.

◆ getMinimumNumberOfDaysForFirstWeek()

sal_Int16 SAL_CALL i18npool::CalendarImpl::getMinimumNumberOfDaysForFirstWeek ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 246 of file calendarImpl.cxx.

References xCalendar.

◆ getMonths()

Sequence< CalendarItem > SAL_CALL i18npool::CalendarImpl::getMonths ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 290 of file calendarImpl.cxx.

References xCalendar.

◆ getMonths2()

Sequence< CalendarItem2 > SAL_CALL i18npool::CalendarImpl::getMonths2 ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 308 of file calendarImpl.cxx.

References xCalendar.

◆ getNumberOfDaysInWeek()

sal_Int16 SAL_CALL i18npool::CalendarImpl::getNumberOfDaysInWeek ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 272 of file calendarImpl.cxx.

References xCalendar.

◆ getNumberOfMonthsInYear()

sal_Int16 SAL_CALL i18npool::CalendarImpl::getNumberOfMonthsInYear ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 263 of file calendarImpl.cxx.

References xCalendar.

◆ getPartitiveMonths2()

Sequence< CalendarItem2 > SAL_CALL i18npool::CalendarImpl::getPartitiveMonths2 ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 326 of file calendarImpl.cxx.

References xCalendar.

◆ getSupportedServiceNames()

Sequence< OUString > SAL_CALL i18npool::CalendarImpl::getSupportedServiceNames ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 363 of file calendarImpl.cxx.

◆ getUniqueID()

OUString SAL_CALL i18npool::CalendarImpl::getUniqueID ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 190 of file calendarImpl.cxx.

References xCalendar.

◆ getValue()

sal_Int16 SAL_CALL i18npool::CalendarImpl::getValue ( sal_Int16  nFieldIndex)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 206 of file calendarImpl.cxx.

References xCalendar.

◆ isValid()

sal_Bool SAL_CALL i18npool::CalendarImpl::isValid ( )
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 335 of file calendarImpl.cxx.

References xCalendar.

◆ loadCalendar()

void SAL_CALL i18npool::CalendarImpl::loadCalendar ( const OUString &  uniqueID,
const css::lang::Locale &  rLocale 
)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 184 of file calendarImpl.cxx.

References loadCalendarTZ().

◆ loadCalendarTZ()

void SAL_CALL i18npool::CalendarImpl::loadCalendarTZ ( const OUString &  uniqueID,
const css::lang::Locale &  rLocale,
const OUString &  rTimeZone 
)
overridevirtual

◆ loadDefaultCalendar()

void SAL_CALL i18npool::CalendarImpl::loadDefaultCalendar ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 179 of file calendarImpl.cxx.

References loadDefaultCalendarTZ().

◆ loadDefaultCalendarTZ()

void SAL_CALL i18npool::CalendarImpl::loadDefaultCalendarTZ ( const css::lang::Locale &  rLocale,
const OUString &  rTimeZone 
)
overridevirtual

Definition at line 48 of file calendarImpl.cxx.

References i18npool::LocaleDataImpl::get(), and loadCalendarTZ().

Referenced by loadDefaultCalendar().

◆ setDateTime()

void SAL_CALL i18npool::CalendarImpl::setDateTime ( double  fTimeInDays)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 148 of file calendarImpl.cxx.

References xCalendar.

◆ setFirstDayOfWeek()

void SAL_CALL i18npool::CalendarImpl::setFirstDayOfWeek ( sal_Int16  nDay)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 230 of file calendarImpl.cxx.

References day, and xCalendar.

◆ setLocalDateTime()

void SAL_CALL i18npool::CalendarImpl::setLocalDateTime ( double  TimeInDays)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 164 of file calendarImpl.cxx.

References xCalendar.

◆ setMinimumNumberOfDaysForFirstWeek()

void SAL_CALL i18npool::CalendarImpl::setMinimumNumberOfDaysForFirstWeek ( sal_Int16  nDays)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 238 of file calendarImpl.cxx.

References xCalendar.

◆ setValue()

void SAL_CALL i18npool::CalendarImpl::setValue ( sal_Int16  nFieldIndex,
sal_Int16  nValue 
)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 198 of file calendarImpl.cxx.

References value, and xCalendar.

◆ supportsService()

sal_Bool SAL_CALL i18npool::CalendarImpl::supportsService ( const OUString &  ServiceName)
overridevirtual

Reimplemented in i18npool::Calendar_gregorian.

Definition at line 357 of file calendarImpl.cxx.

References cppu::supportsService().

Member Data Documentation

◆ lookupTable

std::vector<lookupTableItem> i18npool::CalendarImpl::lookupTable
private

Definition at line 101 of file calendarImpl.hxx.

Referenced by loadCalendarTZ().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > i18npool::CalendarImpl::m_xContext
private

Definition at line 102 of file calendarImpl.hxx.

Referenced by loadCalendarTZ().

◆ xCalendar

css::uno::Reference< css::i18n::XCalendar4 > i18npool::CalendarImpl::xCalendar
private

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