You've already forked lazarus-ccr
fpspreadsheet: compile fix for BIFFExplorer: Excel3 & Excel4 no longer supported
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3239 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -56,11 +56,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerMessages>
|
|
||||||
<MsgFileName Value=""/>
|
|
||||||
</CompilerMessages>
|
|
||||||
<CustomOptions Value="-duse_new_ole"/>
|
<CustomOptions Value="-duse_new_ole"/>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</Item2>
|
</Item2>
|
||||||
@ -98,11 +94,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerMessages>
|
|
||||||
<MsgFileName Value=""/>
|
|
||||||
</CompilerMessages>
|
|
||||||
<CustomOptions Value="-duse_new_ole"/>
|
<CustomOptions Value="-duse_new_ole"/>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
</Item3>
|
</Item3>
|
||||||
@ -136,7 +128,6 @@
|
|||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="BIFFExplorer.lpr"/>
|
<Filename Value="BIFFExplorer.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="BIFFExplorer"/>
|
|
||||||
</Unit0>
|
</Unit0>
|
||||||
<Unit1>
|
<Unit1>
|
||||||
<Filename Value="beabout.pas"/>
|
<Filename Value="beabout.pas"/>
|
||||||
@ -144,7 +135,6 @@
|
|||||||
<ComponentName Value="AboutForm"/>
|
<ComponentName Value="AboutForm"/>
|
||||||
<HasResources Value="True"/>
|
<HasResources Value="True"/>
|
||||||
<ResourceBaseClass Value="Form"/>
|
<ResourceBaseClass Value="Form"/>
|
||||||
<UnitName Value="beAbout"/>
|
|
||||||
</Unit1>
|
</Unit1>
|
||||||
<Unit2>
|
<Unit2>
|
||||||
<Filename Value="bebiffgrid.pas"/>
|
<Filename Value="bebiffgrid.pas"/>
|
||||||
@ -154,12 +144,10 @@
|
|||||||
<Unit3>
|
<Unit3>
|
||||||
<Filename Value="bebiffutils.pas"/>
|
<Filename Value="bebiffutils.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="beBIFFUtils"/>
|
|
||||||
</Unit3>
|
</Unit3>
|
||||||
<Unit4>
|
<Unit4>
|
||||||
<Filename Value="behtml.pas"/>
|
<Filename Value="behtml.pas"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="behtml"/>
|
|
||||||
</Unit4>
|
</Unit4>
|
||||||
<Unit5>
|
<Unit5>
|
||||||
<Filename Value="bemain.pas"/>
|
<Filename Value="bemain.pas"/>
|
||||||
@ -177,7 +165,6 @@
|
|||||||
<Unit7>
|
<Unit7>
|
||||||
<Filename Value="mrumanager.pp"/>
|
<Filename Value="mrumanager.pp"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="mrumanager"/>
|
|
||||||
</Unit7>
|
</Unit7>
|
||||||
<Unit8>
|
<Unit8>
|
||||||
<Filename Value="bemain.lfm"/>
|
<Filename Value="bemain.lfm"/>
|
||||||
@ -215,11 +202,7 @@
|
|||||||
</Options>
|
</Options>
|
||||||
</Linking>
|
</Linking>
|
||||||
<Other>
|
<Other>
|
||||||
<CompilerMessages>
|
|
||||||
<MsgFileName Value=""/>
|
|
||||||
</CompilerMessages>
|
|
||||||
<CustomOptions Value="-duse_new_ole"/>
|
<CustomOptions Value="-duse_new_ole"/>
|
||||||
<CompilerPath Value="$(CompPath)"/>
|
|
||||||
</Other>
|
</Other>
|
||||||
</CompilerOptions>
|
</CompilerOptions>
|
||||||
<Debugging>
|
<Debugging>
|
||||||
|
@ -515,7 +515,9 @@ var
|
|||||||
begin
|
begin
|
||||||
case FFormat of
|
case FFormat of
|
||||||
sfExcel2: RowCount := FixedRows + 2;
|
sfExcel2: RowCount := FixedRows + 2;
|
||||||
|
{ //Excel3 & 4 not supported by fpspreadsheet
|
||||||
sfExcel3, sfExcel4: RowCount := FixedRows + 3;
|
sfExcel3, sfExcel4: RowCount := FixedRows + 3;
|
||||||
|
}
|
||||||
sfExcel5: RowCount := FixedRows + 4;
|
sfExcel5: RowCount := FixedRows + 4;
|
||||||
sfExcel8: RowCount := FixedRows + 6;
|
sfExcel8: RowCount := FixedRows + 6;
|
||||||
end;
|
end;
|
||||||
@ -562,10 +564,12 @@ begin
|
|||||||
if FFormat > sfExcel2 then begin
|
if FFormat > sfExcel2 then begin
|
||||||
numBytes := 2;
|
numBytes := 2;
|
||||||
Move(FBuffer[FBufferIndex], w, numBytes);
|
Move(FBuffer[FBufferIndex], w, numBytes);
|
||||||
|
{ Excel3/4 not supported in fpSpreadsheet
|
||||||
if FFormat in [sfExcel3, sfExcel4] then
|
if FFormat in [sfExcel3, sfExcel4] then
|
||||||
ShowInRow(FCurrRow, FBUfferIndex, numBytes, IntToStr(WordLEToN(w)),
|
ShowInRow(FCurrRow, FBUfferIndex, numBytes, IntToStr(WordLEToN(w)),
|
||||||
'not used')
|
'not used')
|
||||||
else begin
|
else}
|
||||||
|
begin
|
||||||
ShowInRow(FCurrRow, FBufferIndex, numBytes, IntToStr(WordLEToN(w)),
|
ShowInRow(FCurrRow, FBufferIndex, numBytes, IntToStr(WordLEToN(w)),
|
||||||
'Build identifier (must not be zero)');
|
'Build identifier (must not be zero)');
|
||||||
|
|
||||||
@ -2592,6 +2596,8 @@ begin
|
|||||||
ShowInRow(FCurrRow, FBufferIndex, numBytes, IntToStr(w),
|
ShowInRow(FCurrRow, FBufferIndex, numBytes, IntToStr(w),
|
||||||
'Fit worksheet height to this number of pages (0 = use as many as needed)');
|
'Fit worksheet height to this number of pages (0 = use as many as needed)');
|
||||||
|
|
||||||
|
{ Excel4 not supported in fpspreadsheet }
|
||||||
|
{
|
||||||
if FFormat = sfExcel4 then begin
|
if FFormat = sfExcel4 then begin
|
||||||
Move(FBuffer[FBufferIndex], w, numbytes);
|
Move(FBuffer[FBufferIndex], w, numbytes);
|
||||||
w := WordLETON(w);
|
w := WordLETON(w);
|
||||||
@ -2614,7 +2620,7 @@ begin
|
|||||||
end;
|
end;
|
||||||
ShowInRow(FCurrRow, FBufferIndex, numBytes, Format('$%.4x (%d)', [w, w]),
|
ShowInRow(FCurrRow, FBufferIndex, numBytes, Format('$%.4x (%d)', [w, w]),
|
||||||
'Option flags');
|
'Option flags');
|
||||||
end else
|
end else }
|
||||||
if (FFormat in [sfExcel5, sfExcel8]) then begin
|
if (FFormat in [sfExcel5, sfExcel8]) then begin
|
||||||
Move(FBuffer[FBufferIndex], w, numBytes);
|
Move(FBuffer[FBufferIndex], w, numBytes);
|
||||||
w := WordLEToN(w);
|
w := WordLEToN(w);
|
||||||
|
@ -68,8 +68,10 @@ function GetFileFormatName(AFormat: TsSpreadsheetFormat): string;
|
|||||||
begin
|
begin
|
||||||
case AFormat of
|
case AFormat of
|
||||||
sfExcel2 : Result := 'BIFF2';
|
sfExcel2 : Result := 'BIFF2';
|
||||||
|
{ Excel3/4 not supported fpspreadsheet
|
||||||
sfExcel3 : Result := 'BIFF3';
|
sfExcel3 : Result := 'BIFF3';
|
||||||
sfExcel4 : Result := 'BIFF4';
|
sfExcel4 : Result := 'BIFF4';
|
||||||
|
}
|
||||||
sfExcel5 : Result := 'BIFF5';
|
sfExcel5 : Result := 'BIFF5';
|
||||||
sfExcel8 : Result := 'BIFF8';
|
sfExcel8 : Result := 'BIFF8';
|
||||||
sfooxml : Result := 'OOXML';
|
sfooxml : Result := 'OOXML';
|
||||||
|
Reference in New Issue
Block a user