对依赖的OfficeXml性能优化版本做调整
This commit is contained in:
@@ -10,6 +10,7 @@ public
|
||||
function GetHdr(target: string): Hdr;
|
||||
function GetFtrRelsAdapter(target: string): RelationShipsAdapter;
|
||||
function GetHdrRelsAdapter(target: string): RelationShipsAdapter;
|
||||
function GetFootnotesAdapter(): FootnotesAdapter;
|
||||
|
||||
private
|
||||
styles_deserialize_flag_: boolean;
|
||||
@@ -21,6 +22,7 @@ private
|
||||
hdr_hash_: array of Hdr;
|
||||
hdr_rel_hash_: array of RelationShipsAdapter;
|
||||
ftr_rel_hash_: array of RelationShipsAdapter;
|
||||
footnotes_adapter_: FootnotesAdapter;
|
||||
end;
|
||||
|
||||
function TSDocxComponentsWare.Create();
|
||||
@@ -117,3 +119,12 @@ begin
|
||||
ftr_rel_hash_[target] := rels_adapter;
|
||||
return rels_adapter;
|
||||
end;
|
||||
|
||||
function TSDocxComponentsWare.GetFootnotesAdapter(): FootnotesAdapter;
|
||||
begin
|
||||
if footnotes_adapter_ then return footnotes_adapter_;
|
||||
obj := {self.}Footnotes;
|
||||
obj.Deserialize();
|
||||
footnotes_adapter_ := new FootnotesAdapter();
|
||||
return footnotes_adapter_;
|
||||
end;
|
||||
|
||||
Reference in New Issue
Block a user