Line data Source code
1 : #ifndef INCLUDED_COM_SUN_STAR_I18N_CALENDAR_HPP
2 : #define INCLUDED_COM_SUN_STAR_I18N_CALENDAR_HPP
3 :
4 : #include "sal/config.h"
5 :
6 : #include "com/sun/star/i18n/Calendar.hdl"
7 :
8 : #include "com/sun/star/i18n/CalendarItem.hpp"
9 : #include "com/sun/star/uno/Sequence.hxx"
10 : #include "com/sun/star/uno/Type.hxx"
11 : #include "cppu/unotype.hxx"
12 : #include "rtl/ustring.hxx"
13 : #include "sal/types.h"
14 : #include "typelib/typeclass.h"
15 : #include "typelib/typedescription.h"
16 :
17 : namespace com { namespace sun { namespace star { namespace i18n {
18 :
19 : inline Calendar::Calendar() SAL_THROW(())
20 : : Days()
21 : , Months()
22 : , Eras()
23 : , StartOfWeek()
24 : , MinimumNumberOfDaysForFirstWeek(0)
25 : , Default(false)
26 : , Name()
27 : {
28 : }
29 :
30 0 : inline Calendar::Calendar(const ::com::sun::star::uno::Sequence< css::i18n::CalendarItem >& Days_, const ::com::sun::star::uno::Sequence< css::i18n::CalendarItem >& Months_, const ::com::sun::star::uno::Sequence< css::i18n::CalendarItem >& Eras_, const ::rtl::OUString& StartOfWeek_, const ::sal_Int16& MinimumNumberOfDaysForFirstWeek_, const ::sal_Bool& Default_, const ::rtl::OUString& Name_) SAL_THROW(())
31 : : Days(Days_)
32 : , Months(Months_)
33 : , Eras(Eras_)
34 : , StartOfWeek(StartOfWeek_)
35 : , MinimumNumberOfDaysForFirstWeek(MinimumNumberOfDaysForFirstWeek_)
36 : , Default(Default_)
37 0 : , Name(Name_)
38 : {
39 0 : }
40 :
41 : } } } }
42 :
43 : namespace com { namespace sun { namespace star { namespace i18n {
44 :
45 0 : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER css::i18n::Calendar const *) {
46 : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
47 : static ::typelib_TypeDescriptionReference * the_type = 0;
48 0 : if (the_type == 0) {
49 0 : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.i18n.Calendar");
50 : }
51 0 : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
52 : }
53 :
54 : } } } }
55 :
56 : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER css::i18n::Calendar const *) SAL_THROW(()) {
57 : return ::cppu::UnoType< css::i18n::Calendar >::get();
58 : }
59 :
60 : #endif // INCLUDED_COM_SUN_STAR_I18N_CALENDAR_HPP
|