You've already forked lazarus-ccr
fpspreadsheet: Fix reading of ods files containing formulas with several arguments (separator semicolon). Update unit tests. (Still issues with files posted at https://forum.lazarus.freepascal.org/index.php/topic,42168.msg293792.html).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@6574 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -202,6 +202,7 @@ procedure InitCell(AWorksheet: TsBasicWorksheet; ARow, ACol: Cardinal;
|
||||
out ACell: TCell); overload;
|
||||
procedure InitCryptoInfo(out AValue: TsCryptoInfo);
|
||||
procedure InitFormatRecord(out AValue: TsCellFormat);
|
||||
function InitFormatSettings(AWorkbook: TsBasicWorkbook): TFormatSettings;
|
||||
procedure InitImageRecord(out AValue: TsImage; ARow, ACol: Cardinal;
|
||||
AOffsetX, AOffsetY, AScaleX, AScaleY: Double);
|
||||
procedure InitHeaderFooterImageRecord(out AImage: TsHeaderFooterImage);
|
||||
@@ -2439,6 +2440,25 @@ begin
|
||||
// NOTE: Cell protection is effective only after protecting a worksheet
|
||||
end;
|
||||
|
||||
{@@ ----------------------------------------------------------------------------
|
||||
Initializes the FormatSettingsRecord to international (non-localized) values
|
||||
-------------------------------------------------------------------------------}
|
||||
function InitFormatSettings(AWorkbook: TsBasicWorkbook): TFormatSettings;
|
||||
begin
|
||||
Result := DefaultFormatSettings;
|
||||
Result.DecimalSeparator := '.';
|
||||
Result.ThousandSeparator := ',';
|
||||
Result.ListSeparator := ',';
|
||||
if AWorkbook <> nil then
|
||||
with AWorkbook.FormatSettings do begin
|
||||
Result.DateSeparator := DateSeparator;
|
||||
Result.TimeSeparator := TimeSeparator;
|
||||
Result.ShortDateFormat := ShortDateFormat; //'yyyy/m/d'; // the parser returns single digits
|
||||
Result.LongTimeFormat := LongTimeFormat; //'h:n:s';
|
||||
Result.ShortTimeFormat := ShortTimeFormat; //'h:n';
|
||||
end;
|
||||
end;
|
||||
|
||||
{@@ ----------------------------------------------------------------------------
|
||||
Initializes the fields of a TsImage record
|
||||
|
||||
|
Reference in New Issue
Block a user