You've already forked lazarus-ccr
fpspreadsheet: Adapt virtual mode writer to ods writer after r8574.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8575 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -5814,14 +5814,13 @@ begin
|
||||
for c := 0 to LongInt(sheet.VirtualColCount) - 1 do
|
||||
begin
|
||||
lCell.Row := r; // to silence a compiler hint...
|
||||
InitCell(lCell);
|
||||
InitCell(ASheet, r, c, lCell);
|
||||
lCell.Worksheet := ASheet;
|
||||
value := varNull;
|
||||
styleCell := nil;
|
||||
sheet.OnWriteCellData(sheet, r, c, value, styleCell);
|
||||
if styleCell <> nil then lCell := styleCell^;
|
||||
lCell.Row := r;
|
||||
lCell.Col := c;
|
||||
if styleCell <> nil then
|
||||
lCell.FormatIndex := styleCell^.FormatIndex;
|
||||
if VarIsNull(value) then
|
||||
begin // ignore empty cells that don't have a format
|
||||
if styleCell <> nil then
|
||||
@ -5837,7 +5836,7 @@ begin
|
||||
if VarType(value) = varDate then
|
||||
begin
|
||||
lCell.ContentType := cctDateTime;
|
||||
lCell.DateTimeValue := StrToDateTime(VarToStr(value), Workbook.FormatSettings);
|
||||
lCell.DateTimeValue := VarToDateTime(value);
|
||||
end else
|
||||
if VarIsStr(value) then
|
||||
begin
|
||||
|
@ -2419,14 +2419,12 @@ begin
|
||||
begin
|
||||
if (boVirtualMode in FWorkbook.Options) then begin
|
||||
lCell.Row := ARow; // to silence a compiler hint
|
||||
InitCell(lCell);
|
||||
InitCell(AWorksheet, ARow, c, lCell);
|
||||
value := varNull;
|
||||
styleCell := nil;
|
||||
sheet.OnWriteCellData(sheet, ARow, c, value, styleCell);
|
||||
if styleCell <> nil then
|
||||
lCell := styleCell^;
|
||||
lCell.Row := ARow;
|
||||
lCell.Col := c;
|
||||
lCell.FormatIndex := styleCell^.FormatIndex;
|
||||
if VarIsNull(value) then
|
||||
begin
|
||||
if styleCell <> nil then
|
||||
@ -2442,7 +2440,7 @@ begin
|
||||
if VarType(value) = varDate then
|
||||
begin
|
||||
lCell.ContentType := cctDateTime;
|
||||
lCell.DateTimeValue := StrToDateTime(VarToStr(value), Workbook.FormatSettings); // was: StrToDate
|
||||
lCell.DateTimeValue := VarToDateTime(value);
|
||||
end else
|
||||
if VarIsStr(value) then
|
||||
begin
|
||||
|
@ -5719,7 +5719,7 @@ begin
|
||||
styleCell := nil;
|
||||
sheet.OnWriteCellData(sheet, r, c, value, styleCell);
|
||||
if styleCell <> nil then
|
||||
lCell := styleCell^;
|
||||
lCell.FormatIndex := styleCell^.FormatIndex;
|
||||
lCell.Row := r;
|
||||
lCell.Col := c;
|
||||
if VarIsNull(value) then
|
||||
@ -5737,7 +5737,7 @@ begin
|
||||
if VarType(value) = varDate then
|
||||
begin
|
||||
lCell.ContentType := cctDateTime;
|
||||
lCell.DateTimeValue := StrToDateTime(VarToStr(value), Workbook.FormatSettings); // was: StrToDate
|
||||
lCell.DateTimeValue := VarToDateTime(value);
|
||||
end else
|
||||
if VarIsStr(value) then
|
||||
begin
|
||||
|
Reference in New Issue
Block a user