type Pict = 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: Pict);override; public // normal property property Shapetype read ReadXmlChildShapetype; property Shape read ReadXmlChildShape; function ReadXmlChildShapetype(); function ReadXmlChildShape(); public // Children XmlChildShapetype: Shapetype; XmlChildShape: Shape; end; function Pict.Create();overload; begin {self.}Create(nil, "w", "pict"); end; function Pict.Create(_node: XmlNode);overload; begin class(OpenXmlElement).Create(_node: XmlNode); end; function Pict.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 Pict.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( ); sorted_child_ := array( "v:shapetype": array(0, makeweakref(thisFunction(ReadXmlChildShapetype))), "v:shape": array(1, makeweakref(thisFunction(ReadXmlChildShape))), ); container_ := new TSOfficeContainer(sorted_child_); end; function Pict.Copy(_obj: Pict);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlElement).Copy(_obj); if not ifnil(_obj.XmlChildShapetype) then {self.}Shapetype.Copy(_obj.XmlChildShapetype); if not ifnil(_obj.XmlChildShape) then {self.}Shape.Copy(_obj.XmlChildShape); tslassigning := tslassigning_backup; end; function Pict.ReadXmlChildShapetype(); begin if tslassigning and ifnil({self.}XmlChildShapetype) then begin {self.}XmlChildShapetype := new Shapetype(self, "v", "shapetype"); container_.Set({self.}XmlChildShapetype); end return {self.}XmlChildShapetype; end; function Pict.ReadXmlChildShape(); begin if tslassigning and ifnil({self.}XmlChildShape) then begin {self.}XmlChildShape := new Shape(self, "v", "shape"); container_.Set({self.}XmlChildShape); end return {self.}XmlChildShape; end;