home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 October
/
Chip_2002-10_cd1.bin
/
zkuste
/
delphi
/
kolekce
/
d56
/
FLEXCEL.ZIP
/
XLSAdapter
/
UXlsSections.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
2002-05-18
|
1KB
|
54 lines
unit UXlsSections;
interface
uses classes, sysutils, UXlsBaseRecords, UXlsBaseRecordLists, UXlsOtherRecords,
USST, XlsMessages;
type
TBaseSection = class
private
FBOF: TBOFRecord;
FEOF: TEOFRecord;
protected
property BOF: TBOFRecord read FBOF write FBOF;
property EOF: TEOFRecord read FEOF write FEOF;
published
constructor Create;
destructor Destroy; override;
procedure Clear; virtual;
function TotalSize:int64; virtual;
procedure LoadFromStream( const DataStream: TStream; const First: TBOFRecord; const SST: TSST);virtual;abstract;
procedure SaveToStream( const DataStream: TStream );virtual;abstract;
end;
implementation
{ TBaseSection }
procedure TBaseSection.Clear;
begin
FreeAndNil(FBOF);
FreeAndNil(FEOF);
end;
constructor TBaseSection.Create;
begin
inherited;
FBOF:=nil;
FEOF:=nil;
end;
destructor TBaseSection.Destroy;
begin
Clear;
inherited;
end;
function TBaseSection.TotalSize: int64;
begin
Result:=EOF.TotalSize+ BOF.TotalSize;
end;
end.