summaryrefslogtreecommitdiff
path: root/include/unotools/calendarwrapper.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-01-23 23:10:41 +0100
committerEike Rathke <erack@redhat.com>2015-01-26 18:12:10 +0100
commitcd528c3099ffec4f34565820b923d6385478e44b (patch)
tree3156470b934873bf63307ed2740f4bf73614887f /include/unotools/calendarwrapper.hxx
parent15e1c881684c0127c0ca989924bbf2508b4fd780 (diff)
implement css::i18n::XCalendar4 and LocaleCalendar2 service, tdf#63230
Implementation only, new local date/time routines not used yet from the outside in this step.
Diffstat (limited to 'include/unotools/calendarwrapper.hxx')
-rw-r--r--include/unotools/calendarwrapper.hxx18
1 files changed, 12 insertions, 6 deletions
diff --git a/include/unotools/calendarwrapper.hxx b/include/unotools/calendarwrapper.hxx
index a03f9068b282..de7443bd3dd5 100644
--- a/include/unotools/calendarwrapper.hxx
+++ b/include/unotools/calendarwrapper.hxx
@@ -35,13 +35,13 @@ namespace com { namespace sun { namespace star {
namespace com { namespace sun { namespace star {
namespace i18n {
- class XCalendar3;
+ class XCalendar4;
}
}}}
class UNOTOOLS_DLLPUBLIC CalendarWrapper
{
- ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCalendar3 > xC;
+ ::com::sun::star::uno::Reference< ::com::sun::star::i18n::XCalendar4 > xC;
DateTime aEpochStart; // 1Jan1970
@@ -61,10 +61,9 @@ public:
void setDateTime( double fTimeInDays );
/// get UTC date/time
double getDateTime() const;
- /// convenience method to set local date/time
- void setLocalDateTime( double fTimeInDays );
- /// convenience method to get local date/time
- double getLocalDateTime() const;
+
+ // For local setDateTime() and getDateTime() see further down at wrapper
+ // implementations of XCalendar4.
// wrapper implementations of XCalendar
@@ -96,6 +95,13 @@ public:
::com::sun::star::uno::Sequence< ::com::sun::star::i18n::CalendarItem2 > getGenitiveMonths() const;
::com::sun::star::uno::Sequence< ::com::sun::star::i18n::CalendarItem2 > getPartitiveMonths() const;
+ // wrapper implementations of XCalendar4
+
+ /// set local date/time
+ void setLocalDateTime( double fTimeInDays );
+ /// get local date/time
+ double getLocalDateTime() const;
+
// convenience methods
/// get epoch start (should be 01Jan1970)