type Stroke = 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: Stroke);override; public // attributes property property Joinstyle read ReadXmlAttrJoinstyle write WriteXmlAttrJoinstyle; function ReadXmlAttrJoinstyle(); function WriteXmlAttrJoinstyle(_value); public // Attributes XmlAttrJoinstyle: OpenXmlAttribute; end; function Stroke.Create();overload; begin {self.}Create(nil, "v", "stroke"); end; function Stroke.Create(_node: XmlNode);overload; begin class(OpenXmlElement).Create(_node: XmlNode); end; function Stroke.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 Stroke.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( "joinstyle": makeweakref(thisFunction(WriteXmlAttrJoinstyle)), ); sorted_child_ := array( ); container_ := new TSOfficeContainer(sorted_child_); end; function Stroke.Copy(_obj: Stroke);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlElement).Copy(_obj); if not ifnil(_obj.Joinstyle) then {self.}Joinstyle := _obj.Joinstyle; tslassigning := tslassigning_backup; end; function Stroke.ReadXmlAttrJoinstyle(); begin return {self.}XmlAttrJoinstyle.Value; end; function Stroke.WriteXmlAttrJoinstyle(_value); begin if ifnil({self.}XmlAttrJoinstyle) then begin {self.}XmlAttrJoinstyle := new OpenXmlAttribute("", "joinstyle", nil); attributes_[length(attributes_)] := {self.}XmlAttrJoinstyle; end {self.}XmlAttrJoinstyle.Value := _value; end;