diff options
author | Noel Grandin <noel@peralex.com> | 2015-07-20 09:21:24 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-07-20 09:39:36 +0000 |
commit | b4ee16da65eab7b50b29dcd42dc0f0be6b97b174 (patch) | |
tree | 81e7d930894f13718f9a36772e55034d660e0cc1 /basic/source/runtime/methods.cxx | |
parent | c02e79874951ba86d926186e284612806d8bc0a3 (diff) |
com::sun::star->css in basic
Change-Id: I637fd7aedeb97b7dca22521474a54a1d4274f212
Reviewed-on: https://gerrit.libreoffice.org/17206
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index 17857904cdf6..6ed4d1cdaadd 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -1846,11 +1846,11 @@ sal_Int16 implGetDateMonth( double aDate ) return nRet; } -::com::sun::star::util::Date SbxDateToUNODate( const SbxValue* const pVal ) +css::util::Date SbxDateToUNODate( const SbxValue* const pVal ) { double aDate = pVal->GetDate(); - com::sun::star::util::Date aUnoDate; + css::util::Date aUnoDate; aUnoDate.Day = implGetDateDay ( aDate ); aUnoDate.Month = implGetDateMonth( aDate ); aUnoDate.Year = implGetDateYear ( aDate ); @@ -1858,7 +1858,7 @@ sal_Int16 implGetDateMonth( double aDate ) return aUnoDate; } -void SbxDateFromUNODate( SbxValue *pVal, const ::com::sun::star::util::Date& aUnoDate) +void SbxDateFromUNODate( SbxValue *pVal, const css::util::Date& aUnoDate) { double dDate; if( implDateSerial( aUnoDate.Year, aUnoDate.Month, aUnoDate.Day, dDate ) ) @@ -1894,19 +1894,19 @@ RTLFUNC(CDateFromUnoDate) return; } - Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<com::sun::star::util::Date>::get())); - com::sun::star::util::Date aUnoDate; + Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<css::util::Date>::get())); + css::util::Date aUnoDate; if(aAny >>= aUnoDate) SbxDateFromUNODate(rPar.Get(0), aUnoDate); else SbxBase::SetError( SbxERR_CONVERSION ); } -::com::sun::star::util::Time SbxDateToUNOTime( const SbxValue* const pVal ) +css::util::Time SbxDateToUNOTime( const SbxValue* const pVal ) { double aDate = pVal->GetDate(); - com::sun::star::util::Time aUnoTime; + css::util::Time aUnoTime; aUnoTime.Hours = implGetHour ( aDate ); aUnoTime.Minutes = implGetMinute ( aDate ); aUnoTime.Seconds = implGetSecond ( aDate ); @@ -1915,7 +1915,7 @@ RTLFUNC(CDateFromUnoDate) return aUnoTime; } -void SbxDateFromUNOTime( SbxValue *pVal, const ::com::sun::star::util::Time& aUnoTime) +void SbxDateFromUNOTime( SbxValue *pVal, const css::util::Time& aUnoTime) { pVal->PutDate( implTimeSerial(aUnoTime.Hours, aUnoTime.Minutes, aUnoTime.Seconds) ); } @@ -1947,19 +1947,19 @@ RTLFUNC(CDateFromUnoTime) return; } - Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<com::sun::star::util::Time>::get())); - com::sun::star::util::Time aUnoTime; + Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<css::util::Time>::get())); + css::util::Time aUnoTime; if(aAny >>= aUnoTime) SbxDateFromUNOTime(rPar.Get(0), aUnoTime); else SbxBase::SetError( SbxERR_CONVERSION ); } -::com::sun::star::util::DateTime SbxDateToUNODateTime( const SbxValue* const pVal ) +css::util::DateTime SbxDateToUNODateTime( const SbxValue* const pVal ) { double aDate = pVal->GetDate(); - com::sun::star::util::DateTime aUnoDT; + css::util::DateTime aUnoDT; aUnoDT.Day = implGetDateDay ( aDate ); aUnoDT.Month = implGetDateMonth( aDate ); aUnoDT.Year = implGetDateYear ( aDate ); @@ -1971,7 +1971,7 @@ RTLFUNC(CDateFromUnoTime) return aUnoDT; } -void SbxDateFromUNODateTime( SbxValue *pVal, const ::com::sun::star::util::DateTime& aUnoDT) +void SbxDateFromUNODateTime( SbxValue *pVal, const css::util::DateTime& aUnoDT) { double dDate(0.0); if( implDateTimeSerial( aUnoDT.Year, aUnoDT.Month, aUnoDT.Day, @@ -2009,8 +2009,8 @@ RTLFUNC(CDateFromUnoDateTime) return; } - Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<com::sun::star::util::DateTime>::get())); - com::sun::star::util::DateTime aUnoDT; + Any aAny (sbxToUnoValue(rPar.Get(1), cppu::UnoType<css::util::DateTime>::get())); + css::util::DateTime aUnoDT; if(aAny >>= aUnoDT) SbxDateFromUNODateTime(rPar.Get(0), aUnoDT); else |