FPSpreadsheet: Improves the comments

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@1658 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
sekelsenmat
2011-05-30 07:03:56 +00:00
parent a267e89ae8
commit e23fbc9f1d
3 changed files with 26 additions and 16 deletions

View File

@ -619,6 +619,12 @@ begin
</table:table-cell>}
end;
{
Writes a cell with text content
The UTF8 Text needs to be converted, because some chars are invalid in XML
See bug with patch 19422
}
procedure TsSpreadOpenDocWriter.WriteLabel(AStream: TStream; const ARow,
ACol: Word; const AValue: string; ACell: PCell);
var

View File

@ -552,14 +552,16 @@ begin
AStream.WriteWord(WordToLE(lCodepage));
end;
{*******************************************************************
* TsSpreadBIFF5Writer.WriteIndex ()
*
* DESCRIPTION: Writes an Excel 5 DIMENSIONS record
*
* nm = (rl - rf - 1) / 32 + 1 (using integer division)
*
*******************************************************************}
{
Writes an Excel 5 DIMENSIONS record
nm = (rl - rf - 1) / 32 + 1 (using integer division)
Excel, OpenOffice and FPSpreadsheet ignore the dimensions written in this record,
but some other applications really use them, so they need to be correct.
See bug 18886: excel5 files are truncated when imported
}
procedure TsSpreadBIFF5Writer.WriteDimensions(AStream: TStream; AWorksheet: TsWorksheet);
var
lLastCol, lLastRow: Word;

View File

@ -610,14 +610,16 @@ begin
AStream.WriteBuffer(WideStringToLE(WideSheetName)[1], Len * Sizeof(WideChar));
end;
{*******************************************************************
* TsSpreadBIFF8Writer.WriteIndex ()
*
* DESCRIPTION: Writes an Excel 8 DIMENSIONS record
*
* nm = (rl - rf - 1) / 32 + 1 (using integer division)
*
*******************************************************************}
{
Writes an Excel 8 DIMENSIONS record
nm = (rl - rf - 1) / 32 + 1 (using integer division)
Excel, OpenOffice and FPSpreadsheet ignore the dimensions written in this record,
but some other applications really use them, so they need to be correct.
See bug 18886: excel5 files are truncated when imported
}
procedure TsSpreadBIFF8Writer.WriteDimensions(AStream: TStream; AWorksheet: TsWorksheet);
var
lLastCol: Word;