diff options
Diffstat (limited to 'sw/source/filter/ww8/WW8TableInfo.cxx')
-rw-r--r-- | sw/source/filter/ww8/WW8TableInfo.cxx | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/sw/source/filter/ww8/WW8TableInfo.cxx b/sw/source/filter/ww8/WW8TableInfo.cxx index 28180f598f6e..665a73f2721f 100644 --- a/sw/source/filter/ww8/WW8TableInfo.cxx +++ b/sw/source/filter/ww8/WW8TableInfo.cxx @@ -1,3 +1,4 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. @@ -205,7 +206,7 @@ GridColsPtr WW8TableNodeInfoInner::getGridColsOfRow(AttributeOutputBase & rBase) WidthsPtr pWidths(getWidthsOfRow()); const SwFrmFmt *pFmt = getTable()->GetFrmFmt(); - ASSERT(pFmt,"Impossible"); + OSL_ENSURE(pFmt,"Impossible"); if (!pFmt) return pResult; @@ -222,7 +223,7 @@ GridColsPtr WW8TableNodeInfoInner::getGridColsOfRow(AttributeOutputBase & rBase) Widths::const_iterator aWidthsEnd = pWidths->end(); for ( Widths::const_iterator aIt = pWidths->begin(); aIt != aWidthsEnd; - aIt++) + ++aIt) { nSz += *aIt; SwTwips nCalc = nSz; @@ -251,9 +252,6 @@ WidthsPtr WW8TableNodeInfoInner::getWidthsOfRow() pWidths = WidthsPtr(new Widths); // number of cell written sal_uInt32 nBoxes = rTabBoxes.Count(); - if ( nBoxes > 32 ) - nBoxes = 32; - for (sal_uInt32 n = 0; n < nBoxes; n++) { const SwFrmFmt* pBoxFmt = rTabBoxes[ n ]->GetFrmFmt(); @@ -282,9 +280,6 @@ RowSpansPtr WW8TableNodeInfoInner::getRowSpansOfRow() const SwTableBoxes & rTabBoxes = pTabLine->GetTabBoxes(); sal_uInt32 nBoxes = rTabBoxes.Count(); - if (nBoxes > 32) - nBoxes = 32; - for (sal_uInt32 n = 0; n < nBoxes; ++n) { pResult->push_back(rTabBoxes[n]->getRowSpan()); @@ -1154,7 +1149,7 @@ void WW8TableCellGrid::addShadowCells() if (bBeginningOfCell) { RowTops_t::const_iterator aRowSpanIt(aTopsIt); - aRowSpanIt++; + ++aRowSpanIt; if (aRowSpanIt != getRowTopsEnd() && *aRowSpanIt < aCellIt->bottom()) @@ -1172,7 +1167,7 @@ void WW8TableCellGrid::addShadowCells() while (aRowSpanIt != getRowTopsEnd() && *aRowSpanIt < aCellIt->bottom()) { - aRowSpanIt++; + ++aRowSpanIt; nRowSpan++; } @@ -1187,7 +1182,7 @@ void WW8TableCellGrid::addShadowCells() pNodeInfo->setVertMerge(bVertMerge); } - aCellIt++; + ++aCellIt; bBeginningOfCell = (aRect.Left() != aCellIt->left()); aRect = aCellIt->getRect(); @@ -1197,7 +1192,7 @@ void WW8TableCellGrid::addShadowCells() if (pRow.get() != NULL) pRow->setRowSpans(pRowSpans); - aTopsIt++; + ++aTopsIt; } #ifdef DEBUG ::std::clog << "</addShadowCells>" << ::std::endl; @@ -1273,7 +1268,7 @@ WW8TableNodeInfo * WW8TableCellGrid::connectCells() pTableBoxes->push_back(NULL); } - aCellIt++; + ++aCellIt; bBeginningOfCell = false; if (aCellIt != aCellEndIt && aCellIt->left() != nCellX) @@ -1306,7 +1301,7 @@ WW8TableNodeInfo * WW8TableCellGrid::connectCells() nShadows = 0; - aTopsIt++; + ++aTopsIt; nRow++; } @@ -1340,7 +1335,7 @@ string WW8TableCellGrid::toString() sResult += "<shadow/>\n"; sResult += "</cellInfo>\n"; - aCellIt++; + ++aCellIt; } WW8TableCellGridRow::Pointer_t pRow = getRow(*aTopsIt); @@ -1352,7 +1347,7 @@ string WW8TableCellGrid::toString() Widths::const_iterator aItEnd = pWidths->end(); for (Widths::const_iterator aIt = pWidths->begin(); aIt != aItEnd; - aIt++) + ++aIt) { if (aIt != pWidths->begin()) sResult += ", "; @@ -1372,7 +1367,7 @@ string WW8TableCellGrid::toString() RowSpans::const_iterator aItEnd = pRowSpans->end(); for (RowSpans::const_iterator aIt = pRowSpans->begin(); aIt != aItEnd; - aIt++) + ++aIt) { if (aIt != pRowSpans->begin()) sResult += ", "; @@ -1385,7 +1380,7 @@ string WW8TableCellGrid::toString() } sResult += "</row>\n"; - aTopsIt++; + ++aTopsIt; } sResult += "</WW8TableCellGrid>\n"; @@ -1515,3 +1510,5 @@ CellInfo::CellInfo(const SwRect & aRect, WW8TableNodeInfo * pNodeInfo) } } + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |