Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_I18N_LOCALEDATAITEM_HPP
2 : : #define INCLUDED_COM_SUN_STAR_I18N_LOCALEDATAITEM_HPP
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/i18n/LocaleDataItem.hdl"
7 : :
8 : : #include "com/sun/star/uno/Type.hxx"
9 : : #include "cppu/unotype.hxx"
10 : : #include "rtl/ustring.hxx"
11 : : #include "sal/types.h"
12 : : #include "typelib/typeclass.h"
13 : : #include "typelib/typedescription.h"
14 : :
15 : : namespace com { namespace sun { namespace star { namespace i18n {
16 : :
17 : 23318 : inline LocaleDataItem::LocaleDataItem() SAL_THROW(())
18 : : : unoID()
19 : : , dateSeparator()
20 : : , thousandSeparator()
21 : : , decimalSeparator()
22 : : , timeSeparator()
23 : : , time100SecSeparator()
24 : : , listSeparator()
25 : : , quotationStart()
26 : : , quotationEnd()
27 : : , doubleQuotationStart()
28 : : , doubleQuotationEnd()
29 : : , timeAM()
30 : : , timePM()
31 : : , measurementSystem()
32 : : , LongDateDayOfWeekSeparator()
33 : : , LongDateDaySeparator()
34 : : , LongDateMonthSeparator()
35 : 23318 : , LongDateYearSeparator()
36 : : {
37 : 23318 : }
38 : :
39 : 31596 : inline LocaleDataItem::LocaleDataItem(const ::rtl::OUString& unoID_, const ::rtl::OUString& dateSeparator_, const ::rtl::OUString& thousandSeparator_, const ::rtl::OUString& decimalSeparator_, const ::rtl::OUString& timeSeparator_, const ::rtl::OUString& time100SecSeparator_, const ::rtl::OUString& listSeparator_, const ::rtl::OUString& quotationStart_, const ::rtl::OUString& quotationEnd_, const ::rtl::OUString& doubleQuotationStart_, const ::rtl::OUString& doubleQuotationEnd_, const ::rtl::OUString& timeAM_, const ::rtl::OUString& timePM_, const ::rtl::OUString& measurementSystem_, const ::rtl::OUString& LongDateDayOfWeekSeparator_, const ::rtl::OUString& LongDateDaySeparator_, const ::rtl::OUString& LongDateMonthSeparator_, const ::rtl::OUString& LongDateYearSeparator_) SAL_THROW(())
40 : : : unoID(unoID_)
41 : : , dateSeparator(dateSeparator_)
42 : : , thousandSeparator(thousandSeparator_)
43 : : , decimalSeparator(decimalSeparator_)
44 : : , timeSeparator(timeSeparator_)
45 : : , time100SecSeparator(time100SecSeparator_)
46 : : , listSeparator(listSeparator_)
47 : : , quotationStart(quotationStart_)
48 : : , quotationEnd(quotationEnd_)
49 : : , doubleQuotationStart(doubleQuotationStart_)
50 : : , doubleQuotationEnd(doubleQuotationEnd_)
51 : : , timeAM(timeAM_)
52 : : , timePM(timePM_)
53 : : , measurementSystem(measurementSystem_)
54 : : , LongDateDayOfWeekSeparator(LongDateDayOfWeekSeparator_)
55 : : , LongDateDaySeparator(LongDateDaySeparator_)
56 : : , LongDateMonthSeparator(LongDateMonthSeparator_)
57 : 31596 : , LongDateYearSeparator(LongDateYearSeparator_)
58 : : {
59 : 31596 : }
60 : :
61 : : } } } }
62 : :
63 : : namespace com { namespace sun { namespace star { namespace i18n {
64 : :
65 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::i18n::LocaleDataItem const *) {
66 : : //TODO: On certain platforms with weak memory models, the following code can result in some threads observing that the_type points to garbage
67 : : static ::typelib_TypeDescriptionReference * the_type = 0;
68 : : if (the_type == 0) {
69 : : ::typelib_static_type_init(&the_type, typelib_TypeClass_STRUCT, "com.sun.star.i18n.LocaleDataItem");
70 : : }
71 : : return *reinterpret_cast< ::com::sun::star::uno::Type * >(&the_type);
72 : : }
73 : :
74 : : } } } }
75 : :
76 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(SAL_UNUSED_PARAMETER ::com::sun::star::i18n::LocaleDataItem const *) SAL_THROW(()) {
77 : : return ::cppu::UnoType< ::com::sun::star::i18n::LocaleDataItem >::get();
78 : : }
79 : :
80 : : #endif // INCLUDED_COM_SUN_STAR_I18N_LOCALEDATAITEM_HPP
|