Hy!
I have removed this unused method:
writerfilter::dmapper::ConversionHelper::convertDateTime(rtl::OUString
const&)
Regards,
Balint Dozsa
From 8cbdc7fed60f929c496dccce797290abc9fc1a00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?B=C3=A1lint=20D=C3=B3zsa?= <dozsabalint@gmail.com>
Date: Fri, 11 Feb 2011 12:13:47 +0100
Subject: [PATCH] Remove unused method
---
writerfilter/source/dmapper/ConversionHelper.cxx | 45 ----------------------
1 files changed, 0 insertions(+), 45 deletions(-)
diff --git a/writerfilter/source/dmapper/ConversionHelper.cxx
b/writerfilter/source/dmapper/ConversionHelper.cxx
index 824a3f6..3e4240e 100644
--- a/writerfilter/source/dmapper/ConversionHelper.cxx
+++ b/writerfilter/source/dmapper/ConversionHelper.cxx
@@ -375,7 +375,6 @@ bool lcl_IsNotAM(::rtl::OUString& rFmt, sal_Int32 nPos)
bool bForceNatNum(false);
sal_Int32 nLen = sFormat.getLength();
sal_Int32 nI = 0;
-// const sal_Unicode* pFormat = sFormat.getStr();
::rtl::OUStringBuffer aNewFormat( sFormat.getStr() );
while (nI < nLen)
{
@@ -515,51 +514,7 @@ sal_Int16 convertTableJustification( sal_Int32 nIntValue )
}
return nOrient;
}
-/*-- 06.08.2007 15:27:30---------------------------------------------------
- conversion form xsd::DateTime
- [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]
- -----------------------------------------------------------------------*/
-com::sun::star::util::DateTime convertDateTime( const ::rtl::OUString& rDateTimeString )
-{
- util::DateTime aRet( 0, 0, 0, 0, 1, 1, 1901 );
- //
- sal_Int32 nIndex = 0;
- ::rtl::OUString sDate( rDateTimeString.getToken( 0, 'T', nIndex ));
- sal_Int32 nDateIndex = 0;
- aRet.Year = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
- if( nDateIndex > 0)
- aRet.Month = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
- if( nDateIndex > 0)
- aRet.Day = (sal_uInt16)sDate.getToken( 0, '-', nDateIndex ).toInt32();
- ::rtl::OUString sTime;
- if(nIndex > 0)
- {
- sTime = ( rDateTimeString.getToken( 0, 'Z', nIndex ));
- sal_Int32 nTimeIndex = 0;
- aRet.Hours = (sal_uInt16)sTime.getToken( 0, ':', nTimeIndex ).toInt32();
- if( nTimeIndex > 0)
- aRet.Minutes = (sal_uInt16)sTime.getToken( 0, ':', nTimeIndex ).toInt32();
- if( nTimeIndex > 0)
- {
- ::rtl::OUString sSeconds = sTime.getToken( 0, ':', nTimeIndex );
- nTimeIndex = 0;
- aRet.Seconds = (sal_uInt16)sSeconds.getToken( 0, '.', nTimeIndex ).toInt32();
- aRet.HundredthSeconds = (sal_uInt16)sSeconds.getToken( 0, '.', nTimeIndex ).toInt32();
- }
-
-// todo: ignore time offset for a while - there's no time zone available
-// nIndex = 0;
-// ::rtl::OUString sOffset( rDateTimeString.getToken( 1, 'Z', nIndex ));
-// if( sOffset.getLength() )
-// {
-// add hour and minute offset and increase/decrease date if necessary
-// }
- }
- return aRet;
-}
-/*-- 05.03.2008 09:10:13---------------------------------------------------
- -----------------------------------------------------------------------*/
sal_Int16 ConvertNumberingType(sal_Int32 nNFC)
{
sal_Int16 nRet;
--
1.7.1
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.