Kaydet (Commit) 49bae3b3 authored tarafından Thomas Arnhold's avatar Thomas Arnhold

html export: <table> has no cols attribute in 4.0

Moreover it's rendundant, because we have <col> and <colgroup>.

Change-Id: Ic39a5dafdf252a7a7052681e7791aa57b99860bd
üst 467aedaf
......@@ -724,17 +724,6 @@ void ScHTMLExport::WriteTables()
aByteStrOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_cellspacing).
append(RTL_CONSTASCII_STRINGPARAM("=\"")).
append(static_cast<sal_Int32>(nCellSpacing)).append('"');
// COLS=n
SCCOL nColCnt = 0;
SCCOL nCol;
for ( nCol=nStartCol; nCol<=nEndCol; nCol++ )
{
if ( !pDoc->ColHidden(nCol, nTab) )
++nColCnt;
}
aByteStrOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_cols).
append(RTL_CONSTASCII_STRINGPARAM("=\"")).
append(static_cast<sal_Int32>(nColCnt)).append('"');
// BORDER=0, we do the styling of the cells in <TD>
aByteStrOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_border).
......
......@@ -642,14 +642,6 @@ void SwHTMLWrtTable::Write( SwHTMLWriter& rWrt, sal_Int16 eAlign,
rWrt.OutDirection( rWrt.nDirection );
}
// COLS ausgeben: Nur bei Export ueber Layout, wenn es beim Import
// vorhanden war.
if( bColsOption )
{
sOut.append(' ').append(OOO_STRING_SVTOOLS_HTML_O_cols).
append("=\"").append(static_cast<sal_Int32>(aCols.size())).append("\"");
}
// ALIGN= ausgeben
if( text::HoriOrientation::RIGHT == eAlign )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment