Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_I18N_XCALENDAR_HDL
2 : #define INCLUDED_COM_SUN_STAR_I18N_XCALENDAR_HDL
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/i18n/Calendar.hdl"
7 : #include "com/sun/star/i18n/CalendarItem.hdl"
8 : #include "com/sun/star/lang/Locale.hdl"
9 : #include "com/sun/star/uno/RuntimeException.hdl"
10 : #include "com/sun/star/uno/XInterface.hdl"
11 : #include "com/sun/star/uno/Reference.h"
12 : #include "com/sun/star/uno/Sequence.h"
13 : #include "cppu/macros.hxx"
14 : #include "rtl/ustring.hxx"
15 : #include "sal/types.h"
16 :
17 : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
18 :
19 : namespace com { namespace sun { namespace star { namespace i18n {
20 :
21 296 : class SAL_NO_VTABLE XCalendar : public css::uno::XInterface
22 : {
23 : public:
24 :
25 : // Methods
26 : virtual void SAL_CALL loadDefaultCalendar( const css::lang::Locale& rLocale ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
27 : virtual void SAL_CALL loadCalendar( const ::rtl::OUString& uniqueID, const css::lang::Locale& rLocale ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
28 : virtual css::i18n::Calendar SAL_CALL getLoadedCalendar() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
29 : virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getAllCalendars( const css::lang::Locale& rLocale ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
30 : virtual ::rtl::OUString SAL_CALL getUniqueID() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
31 : virtual void SAL_CALL setDateTime( double nTimeInDays ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
32 : virtual double SAL_CALL getDateTime() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
33 : virtual void SAL_CALL setValue( ::sal_Int16 nCalendarFieldIndex, ::sal_Int16 nValue ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
34 : virtual ::sal_Int16 SAL_CALL getValue( ::sal_Int16 nCalendarFieldIndex ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
35 : virtual ::sal_Bool SAL_CALL isValid() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
36 : virtual void SAL_CALL addValue( ::sal_Int16 nCalendarFieldIndex, ::sal_Int32 nAmount ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
37 : virtual ::sal_Int16 SAL_CALL getFirstDayOfWeek() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
38 : virtual void SAL_CALL setFirstDayOfWeek( ::sal_Int16 nDay ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
39 : virtual void SAL_CALL setMinimumNumberOfDaysForFirstWeek( ::sal_Int16 nDays ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
40 : virtual ::sal_Int16 SAL_CALL getMinimumNumberOfDaysForFirstWeek() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
41 : virtual ::sal_Int16 SAL_CALL getNumberOfMonthsInYear() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
42 : virtual ::sal_Int16 SAL_CALL getNumberOfDaysInWeek() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
43 : virtual ::com::sun::star::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getMonths() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
44 : virtual ::com::sun::star::uno::Sequence< css::i18n::CalendarItem > SAL_CALL getDays() /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
45 : virtual ::rtl::OUString SAL_CALL getDisplayName( ::sal_Int16 nCalendarDisplayIndex, ::sal_Int16 nIdx, ::sal_Int16 nNameType ) /* throw (::com::sun::star::uno::RuntimeException) */ = 0;
46 :
47 : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 :
49 : protected:
50 264 : ~XCalendar() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : };
52 :
53 :
54 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::i18n::XCalendar const *);
55 : } } } }
56 :
57 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< css::i18n::XCalendar > *) SAL_THROW(());
58 :
59 : #endif
|