OfficeXml/autoclass/docx/EffectStyle@DOCX.tsf

68 lines
1.9 KiB
Plaintext

type EffectStyle = class(OpenXmlElement)
public
function Create();overload;
function Create(_node: XmlNode);overload;
function Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
function Init();override;
function Copy(_obj: EffectStyle);override;
public
// normal property
property EffectLst read ReadXmlChildEffectLst;
function ReadXmlChildEffectLst();
public
// Children
XmlChildEffectLst: EffectLst;
end;
function EffectStyle.Create();overload;
begin
{self.}Create(nil, "a", "effectStyle");
end;
function EffectStyle.Create(_node: XmlNode);overload;
begin
class(OpenXmlElement).Create(_node: XmlNode);
end;
function EffectStyle.Create(_parent: tslobj; _prefix: string; _local_name: string);overload;
begin
setsysparam(pn_calcctrlword(), getsysparam(pn_calcctrlword()) .| 0x200);
class(OpenXmlElement).Create(_parent, _prefix, _local_name);
end;
function EffectStyle.Init();override;
begin
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
attributes_ := array();
attributes_pf_ := array(
);
sorted_child_ := array(
pre + "effectLst": array(0, makeweakref(thisFunction(ReadXmlChildEffectLst))),
);
container_ := new TSOfficeContainer(sorted_child_);
end;
function EffectStyle.Copy(_obj: EffectStyle);override;
begin
tslassigning_backup := tslassigning;
tslassigning := 1;
class(OpenXmlElement).Copy(_obj);
if not ifnil(_obj.XmlChildEffectLst) then
{self.}EffectLst.Copy(_obj.XmlChildEffectLst);
tslassigning := tslassigning_backup;
end;
function EffectStyle.ReadXmlChildEffectLst();
begin
if tslassigning and ifnil({self.}XmlChildEffectLst) then
begin
{self.}XmlChildEffectLst := new EffectLst(self, {self.}Prefix, "effectLst");
container_.Set({self.}XmlChildEffectLst);
end
return {self.}XmlChildEffectLst;
end;