type TrPr = 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: TrPr);override; public // empty property property CantSplit read ReadXmlChildCantSplit write WriteXmlChildCantSplit; function ReadXmlChildCantSplit(); function WriteXmlChildCantSplit(_value); // normal property property TrHeight read ReadXmlChildTrHeight; property TblHeader read ReadXmlChildTblHeader; property Jc read ReadXmlChildJc; property CnfStyle read ReadXmlChildCnfStyle; function ReadXmlChildTrHeight(); function ReadXmlChildTblHeader(); function ReadXmlChildJc(); function ReadXmlChildCnfStyle(); public // Children XmlChildTrHeight: TrHeight; XmlChildTblHeader: PureWVal; XmlChildJc: PureWVal; XmlChildCantSplit: OpenXmlEmpty; XmlChildCnfStyle: CnfStyle; end; function TrPr.Create();overload; begin {self.}Create(nil, "w", "trPr"); end; function TrPr.Create(_node: XmlNode);overload; begin class(OpenXmlElement).Create(_node: XmlNode); end; function TrPr.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 TrPr.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( ); sorted_child_ := array( pre + "trHeight": array(0, makeweakref(thisFunction(ReadXmlChildTrHeight))), pre + "tblHeader": array(1, makeweakref(thisFunction(ReadXmlChildTblHeader))), pre + "jc": array(2, makeweakref(thisFunction(ReadXmlChildJc))), pre + "cantSplit": array(3, makeweakref(thisFunction(ReadXmlChildCantSplit))), pre + "cnfStyle": array(4, makeweakref(thisFunction(ReadXmlChildCnfStyle))), ); container_ := new TSOfficeContainer(sorted_child_); end; function TrPr.Copy(_obj: TrPr);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlElement).Copy(_obj); if not ifnil(_obj.XmlChildTrHeight) then {self.}TrHeight.Copy(_obj.XmlChildTrHeight); if not ifnil(_obj.XmlChildTblHeader) then {self.}TblHeader.Copy(_obj.XmlChildTblHeader); if not ifnil(_obj.XmlChildJc) then {self.}Jc.Copy(_obj.XmlChildJc); if not ifnil(_obj.XmlChildCantSplit) then ifnil({self.}XmlChildCantSplit) ? {self.}CantSplit.Copy(_obj.XmlChildCantSplit) : {self.}XmlChildCantSplit.Copy(_obj.XmlChildCantSplit); if not ifnil(_obj.XmlChildCnfStyle) then {self.}CnfStyle.Copy(_obj.XmlChildCnfStyle); tslassigning := tslassigning_backup; end; function TrPr.ReadXmlChildCantSplit(); begin if tslassigning and ifnil({self.}XmlChildCantSplit) then begin {self.}XmlChildCantSplit := new OpenXmlEmpty(self, {self.}Prefix, "cantSplit"); container_.Set({self.}XmlChildCantSplit); return {self.}XmlChildCantSplit; end return ifnil({self.}XmlChildCantSplit) ? false : {self.}XmlChildCantSplit.BoolValue(); end; function TrPr.WriteXmlChildCantSplit(_value); begin if ifnil({self.}XmlChildCantSplit) then begin {self.}XmlChildCantSplit := new OpenXmlEmpty(self, {self.}Prefix, "cantSplit"); container_.Set({self.}XmlChildCantSplit); end {self.}XmlChildCantSplit.Value := _value; end; function TrPr.ReadXmlChildTrHeight(); begin if tslassigning and ifnil({self.}XmlChildTrHeight) then begin {self.}XmlChildTrHeight := new TrHeight(self, {self.}Prefix, "trHeight"); container_.Set({self.}XmlChildTrHeight); end return {self.}XmlChildTrHeight; end; function TrPr.ReadXmlChildTblHeader(); begin if tslassigning and ifnil({self.}XmlChildTblHeader) then begin {self.}XmlChildTblHeader := new PureWVal(self, {self.}Prefix, "tblHeader"); container_.Set({self.}XmlChildTblHeader); end return {self.}XmlChildTblHeader; end; function TrPr.ReadXmlChildJc(); begin if tslassigning and ifnil({self.}XmlChildJc) then begin {self.}XmlChildJc := new PureWVal(self, {self.}Prefix, "jc"); container_.Set({self.}XmlChildJc); end return {self.}XmlChildJc; end; function TrPr.ReadXmlChildCnfStyle(); begin if tslassigning and ifnil({self.}XmlChildCnfStyle) then begin {self.}XmlChildCnfStyle := new CnfStyle(self, {self.}Prefix, "cnfStyle"); container_.Set({self.}XmlChildCnfStyle); end return {self.}XmlChildCnfStyle; end;