78 lines
2.1 KiB
Plaintext
78 lines
2.1 KiB
Plaintext
type EffectStyleLst = 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: EffectStyleLst);override;
|
|
|
|
public
|
|
|
|
// multi property
|
|
property EffectStyles read ReadEffectStyles;
|
|
function ReadEffectStyles(_index);
|
|
function AddEffectStyle(): EffectStyle;
|
|
function AppendEffectStyle(): EffectStyle;
|
|
|
|
public
|
|
// Children
|
|
|
|
end;
|
|
|
|
function EffectStyleLst.Create();overload;
|
|
begin
|
|
{self.}Create(nil, "a", "effectStyleLst");
|
|
end;
|
|
|
|
function EffectStyleLst.Create(_node: XmlNode);overload;
|
|
begin
|
|
class(OpenXmlElement).Create(_node: XmlNode);
|
|
end;
|
|
|
|
function EffectStyleLst.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 EffectStyleLst.Init();override;
|
|
begin
|
|
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
|
|
attributes_ := array();
|
|
attributes_pf_ := array(
|
|
);
|
|
sorted_child_ := array(
|
|
pre + "effectStyle": array(0, makeweakref(thisFunction(AppendEffectStyle))),
|
|
);
|
|
container_ := new TSOfficeContainer(sorted_child_);
|
|
end;
|
|
|
|
function EffectStyleLst.Copy(_obj: EffectStyleLst);override;
|
|
begin
|
|
tslassigning_backup := tslassigning;
|
|
tslassigning := 1;
|
|
class(OpenXmlElement).Copy(_obj);
|
|
tslassigning := tslassigning_backup;
|
|
end;
|
|
|
|
function EffectStyleLst.ReadEffectStyles(_index);
|
|
begin
|
|
ind := ifnil(_index) ? -2 : _index;
|
|
pre := {self.}Prefix ? {self.}Prefix + ":" : "";
|
|
return container_.Get(pre + "effectStyle", ind);
|
|
end;
|
|
|
|
function EffectStyleLst.AddEffectStyle(): EffectStyle;
|
|
begin
|
|
obj := new EffectStyle(self, {self.}Prefix, "effectStyle");
|
|
container_.Insert(obj);
|
|
return obj;
|
|
end;
|
|
|
|
function EffectStyleLst.AppendEffectStyle(): EffectStyle;
|
|
begin
|
|
obj := new EffectStyle(self, {self.}Prefix, "effectStyle");
|
|
container_.Append(obj);
|
|
return obj;
|
|
end;
|