1. 优化单元格合并

2. 支持单元格垂直居中
This commit is contained in:
csh
2024-09-03 16:49:25 +08:00
parent ca18537538
commit a0ea61af14
6 changed files with 213 additions and 65 deletions
+10 -10
View File
@@ -12,15 +12,15 @@ public
function GetHdrRelsAdapter(target: string): RelationShipsAdapter;
private
styles_deserialize_flag_;
styles_adapter_;
document_rels_adapter_;
numbering_ware_;
tbl_style_pr_hash_;
ftr_hash_;
hdr_hash_;
hdr_rel_hash_;
ftr_rel_hash_;
styles_deserialize_flag_: boolean;
styles_adapter_: StylesAdapter;
document_rels_adapter_: RelationShipsAdapter;
numbering_ware_: TSNumberingWare;
tbl_style_pr_hash_: array of TblStylePr;
ftr_hash_: array of Ftr;
hdr_hash_: array of Hdr;
hdr_rel_hash_: array of RelationShipsAdapter;
ftr_rel_hash_: array of RelationShipsAdapter;
end;
function TSDocxComponentsWare.Create();
@@ -110,7 +110,7 @@ end;
function TSDocxComponentsWare.GetFtrRelsAdapter(target: string): RelationShipsAdapter;
begin
if ftr_rel_hash_[target] then return ftr_rel_hash_[target];
index := replaceStr(replaceStr(target, "header", ""), ".xml", "");
index := replaceStr(replaceStr(target, "footer", ""), ".xml", "");
obj := {self.}FooterRels(strtoint(index));
obj.Deserialize();
rels_adapter := new RelationShipsAdapter(obj);