summaryrefslogtreecommitdiff
path: root/sw/source/filter/html/htmltab.cxx
diff options
context:
space:
mode:
authorKayo Hamid <revol.code@yahoo.com>2010-11-22 11:30:22 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-11-22 11:30:51 +0000
commit94ae5e188dc42aa35171cac11478b7c7aef72c58 (patch)
tree1839c50a01a2c1a38195c520f6d513124d57811a /sw/source/filter/html/htmltab.cxx
parent45a980cd8a09fd53aa35214c5262ee5873051e33 (diff)
remove bogus comments
Diffstat (limited to 'sw/source/filter/html/htmltab.cxx')
-rw-r--r--sw/source/filter/html/htmltab.cxx50
1 files changed, 7 insertions, 43 deletions
diff --git a/sw/source/filter/html/htmltab.cxx b/sw/source/filter/html/htmltab.cxx
index f4a1d1f9078e..b177b8af2a1c 100644
--- a/sw/source/filter/html/htmltab.cxx
+++ b/sw/source/filter/html/htmltab.cxx
@@ -2064,7 +2064,7 @@ void HTMLTable::SetBorders()
if( HTML_TF_BELOW==eFrame || HTML_TF_HSIDES==eFrame ||
HTML_TF_BOX==eFrame )
((*pRows)[nRows-1])->bBottomBorder = sal_True;
- if( /*bRightAlwd &&*/ (HTML_TF_RHS==eFrame || HTML_TF_VSIDES==eFrame ||
+ if( (HTML_TF_RHS==eFrame || HTML_TF_VSIDES==eFrame ||
HTML_TF_BOX==eFrame) )
bRightBorder = sal_True;
if( HTML_TF_LHS==eFrame || HTML_TF_VSIDES==eFrame || HTML_TF_BOX==eFrame )
@@ -2276,8 +2276,7 @@ inline void HTMLTable::CloseSection( sal_Bool bHead )
ASSERT( nCurRow<=nRows, "ungeultige aktuelle Zeile" );
if( nCurRow>0 && nCurRow<=nRows )
((*pRows)[nCurRow-1])->SetEndOfGroup();
- if( bHead /*&& nCurRow==1*/ )
-// bHeadlineRepeat = sal_True;
+ if( bHead )
nHeadlineRepeat = nCurRow;
}
@@ -3002,14 +3001,6 @@ xub_StrLen SwHTMLParser::StripTrailingLF()
if( nLFCount )
{
-// MIB 6.6.97: Warum sollte man bei leeren Absaetzen nur ein LF loeschen?
-// Das stimmt doch irgendwi nicht ...
-// if( nLFCount == nLen )
-// {
-// // nur Lfs, dann nur ein LF loeschen
-// nLFCount = 1;
-// }
-// else if( nLFCount > 2 )
if( nLFCount > 2 )
{
// Bei Netscape entspricht ein Absatz-Ende zwei LFs
@@ -3503,9 +3494,7 @@ HTMLTableCnts *SwHTMLParser::InsertTableContents(
{
// 1. Absatz auf nicht numeriert setzen
BYTE nLvl = GetNumInfo().GetLevel();
- // --> OD 2008-04-02 #refactorlists#
-// SetNoNum(&nLvl, TRUE);
-// SetNodeNum( nLvl);
+
SetNodeNum( nLvl, false );
}
@@ -3649,14 +3638,6 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, sal_Bool bReadOptions,
// oder es gibt bereits Inhalt an der entsprechenden Stelle.
ASSERT( !bForceFrame || pCurTable->HasParentSection(),
"Tabelle im Rahmen hat keine Umgebung!" );
-// SCHOEN WAER'S, aber wie bekommen den Inhalt nicht zurueck
-// in die umgebende Zelle
-// if( bForceFrame && !pCurTable->HasParentSection() )
-// {
-// pCurTable->SetParentContents(
-// InsertTableContents( sal_False, SVX_ADJUST_END ) );
-// pCurTable->SetHasParentSection( sal_True );
-// }
sal_Bool bAppend = sal_False;
if( bForceFrame )
@@ -3832,11 +3813,6 @@ void SwHTMLParser::BuildTableCell( HTMLTable *pCurTable, sal_Bool bReadOptions,
pDoc->GetNodes().GoNext( &(pPam->GetPoint()->nNode) );
pPam->GetPoint()->nContent.Assign( pCNd, 0 );
- // automatisch verankerte Rahmen muessen noch um
- // eine Position nach vorne verschoben werden.
- //if( FLY_AUTO_CNTNT==eAnchorId )
- // aMoveFlyFrms.C40_INSERT( SwFrmFmt, pFrmFmt,
- // aMoveFlyFrms.Count() );
}
// eine SwTable mit einer Box anlegen und den PaM in den
@@ -4394,10 +4370,7 @@ void SwHTMLParser::BuildTableRow( HTMLTable *pCurTable, sal_Bool bReadOptions,
SkipToken( -1 );
bDone = sal_True;
}
-// else
-// {
-// NextToken( nToken );
-// }
+
break;
case HTML_TABLEROW_ON:
case HTML_THEAD_ON:
@@ -4573,10 +4546,7 @@ void SwHTMLParser::BuildTableSection( HTMLTable *pCurTable,
SkipToken( -1 );
bDone = sal_True;
}
-// else
-// {
-// NextToken( nToken );
-// }
+
break;
case HTML_THEAD_ON:
case HTML_TFOOT_ON:
@@ -4771,10 +4741,7 @@ void SwHTMLParser::BuildTableColGroup( HTMLTable *pCurTable,
SkipToken( -1 );
bDone = sal_True;
}
-// else
-// {
-// NextToken( nToken );
-// }
+
break;
case HTML_COLGROUP_ON:
case HTML_THEAD_ON:
@@ -5371,10 +5338,7 @@ HTMLTable *SwHTMLParser::BuildTable( SvxAdjust eParentAdjust,
SkipToken( -1 );
bDone = sal_True;
}
-// else
-// {
-// NextToken( nToken );
-// }
+
break;
case HTML_TABLE_OFF:
bDone = sal_True;