type CNvPicPr = 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: CNvPicPr);override; public // normal property property PicLocks read ReadXmlChildPicLocks; function ReadXmlChildPicLocks(); public // Children XmlChildPicLocks: PicLocks; end; function CNvPicPr.Create();overload; begin {self.}Create(nil, "pic", "cNvPicPr"); end; function CNvPicPr.Create(_node: XmlNode);overload; begin class(OpenXmlElement).Create(_node: XmlNode); end; function CNvPicPr.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 CNvPicPr.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( ); sorted_child_ := array( "a:picLocks": array(0, makeweakref(thisFunction(ReadXmlChildPicLocks))), ); container_ := new TSOfficeContainer(sorted_child_); end; function CNvPicPr.Copy(_obj: CNvPicPr);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlElement).Copy(_obj); if not ifnil(_obj.XmlChildPicLocks) then {self.}PicLocks.Copy(_obj.XmlChildPicLocks); tslassigning := tslassigning_backup; end; function CNvPicPr.ReadXmlChildPicLocks(); begin if tslassigning and ifnil({self.}XmlChildPicLocks) then begin {self.}XmlChildPicLocks := new PicLocks(self, "a", "picLocks"); container_.Set({self.}XmlChildPicLocks); end return {self.}XmlChildPicLocks; end;