diff options
Diffstat (limited to 'sw/source/filter/xml/XMLRedlineImportHelper.cxx')
-rw-r--r-- | sw/source/filter/xml/XMLRedlineImportHelper.cxx | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/sw/source/filter/xml/XMLRedlineImportHelper.cxx b/sw/source/filter/xml/XMLRedlineImportHelper.cxx index 2b9e95d10c26..d1d13cffc7d7 100644 --- a/sw/source/filter/xml/XMLRedlineImportHelper.cxx +++ b/sw/source/filter/xml/XMLRedlineImportHelper.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -101,7 +101,7 @@ SwDoc* lcl_GetDocViaTunnel( Reference<XTextRange> & rRange ) class XTextRangeOrNodeIndexPosition { Reference<XTextRange> xRange; - SwNodeIndex* pIndex; /// pIndex will point to the *previous* node + SwNodeIndex* pIndex; /// pIndex will point to the *previous* node public: XTextRangeOrNodeIndexPosition(); @@ -130,7 +130,7 @@ XTextRangeOrNodeIndexPosition::~XTextRangeOrNodeIndexPosition() void XTextRangeOrNodeIndexPosition::Set( Reference<XTextRange> & rRange ) { - xRange = rRange->getStart(); // set bookmark + xRange = rRange->getStart(); // set bookmark if (NULL != pIndex) { delete pIndex; @@ -144,7 +144,7 @@ void XTextRangeOrNodeIndexPosition::Set( SwNodeIndex& rIndex ) delete pIndex; pIndex = new SwNodeIndex(rIndex); - (*pIndex)-- ; // previous node!!! + (*pIndex)-- ; // previous node!!! xRange = NULL; } @@ -185,7 +185,7 @@ void XTextRangeOrNodeIndexPosition::CopyPositionInto(SwPosition& rPos) else { rPos.nNode = *pIndex; - rPos.nNode++; // pIndex points to previous index !!! + rPos.nNode++; // pIndex points to previous index !!! rPos.nContent.Assign( rPos.nNode.GetNode().GetCntntNode(), 0 ); } } @@ -217,9 +217,9 @@ public: RedlineType_t eType; // info fields: - OUString sAuthor; /// change author string - OUString sComment; /// change comment string - util::DateTime aDateTime; /// change DateTime + OUString sAuthor; /// change author string + OUString sComment; /// change comment string + util::DateTime aDateTime; /// change DateTime sal_Bool bMergeLastParagraph; /// the SwRedline::IsDelLastPara flag // each position can may be either empty, an XTextRange, or an SwNodeIndex @@ -557,7 +557,7 @@ void XMLRedlineImportHelper::SetCursor( } void XMLRedlineImportHelper::AdjustStartNodeCursor( - const OUString& rId, /// ID used in RedlineAdd() call + const OUString& rId, /// ID used in RedlineAdd() call sal_Bool /*bStart*/, Reference<XTextRange> & /*rRange*/) { @@ -708,13 +708,13 @@ SwRedlineData* XMLRedlineImportHelper::ConvertRedline( // 2) util::DateTime -> DateTime DateTime aDT; - aDT.SetYear( pRedlineInfo->aDateTime.Year ); - aDT.SetMonth( pRedlineInfo->aDateTime.Month ); - aDT.SetDay( pRedlineInfo->aDateTime.Day ); - aDT.SetHour( pRedlineInfo->aDateTime.Hours ); - aDT.SetMin( pRedlineInfo->aDateTime.Minutes ); - aDT.SetSec( pRedlineInfo->aDateTime.Seconds ); - aDT.Set100Sec( pRedlineInfo->aDateTime.HundredthSeconds ); + aDT.SetYear( pRedlineInfo->aDateTime.Year ); + aDT.SetMonth( pRedlineInfo->aDateTime.Month ); + aDT.SetDay( pRedlineInfo->aDateTime.Day ); + aDT.SetHour( pRedlineInfo->aDateTime.Hours ); + aDT.SetMin( pRedlineInfo->aDateTime.Minutes ); + aDT.SetSec( pRedlineInfo->aDateTime.Seconds ); + aDT.Set100Sec( pRedlineInfo->aDateTime.HundredthSeconds ); // 3) recursively convert next redline // ( check presence and sanity of hierarchical redline info ) @@ -730,8 +730,8 @@ SwRedlineData* XMLRedlineImportHelper::ConvertRedline( SwRedlineData* pData = new SwRedlineData(pRedlineInfo->eType, nAuthorId, aDT, pRedlineInfo->sComment, - pNext, // next data (if available) - NULL); // no extra data + pNext, // next data (if available) + NULL); // no extra data return pData; } |