type DTable = 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: DTable);override; public // normal property property ShowHorzBorder read ReadXmlChildShowHorzBorder; property ShowVertBorder read ReadXmlChildShowVertBorder; property ShowOutline read ReadXmlChildShowOutline; property ShowKeys read ReadXmlChildShowKeys; property TxPr read ReadXmlChildTxPr; function ReadXmlChildShowHorzBorder(); function ReadXmlChildShowVertBorder(); function ReadXmlChildShowOutline(); function ReadXmlChildShowKeys(); function ReadXmlChildTxPr(); public // Children XmlChildShowHorzBorder: PureVal; XmlChildShowVertBorder: PureVal; XmlChildShowOutline: PureVal; XmlChildShowKeys: PureVal; XmlChildTxPr: TxPr; end; function DTable.Create();overload; begin {self.}Create(nil, "c", "dTable"); end; function DTable.Create(_node: XmlNode);overload; begin class(OpenXmlElement).Create(_node: XmlNode); end; function DTable.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 DTable.Init();override; begin pre := {self.}Prefix ? {self.}Prefix + ":" : ""; attributes_ := array(); attributes_pf_ := array( ); sorted_child_ := array( pre + "showHorzBorder": array(0, makeweakref(thisFunction(ReadXmlChildShowHorzBorder))), pre + "showVertBorder": array(1, makeweakref(thisFunction(ReadXmlChildShowVertBorder))), pre + "showOutline": array(2, makeweakref(thisFunction(ReadXmlChildShowOutline))), pre + "showKeys": array(3, makeweakref(thisFunction(ReadXmlChildShowKeys))), pre + "txPr": array(4, makeweakref(thisFunction(ReadXmlChildTxPr))), ); container_ := new TSOfficeContainer(sorted_child_); end; function DTable.Copy(_obj: DTable);override; begin tslassigning_backup := tslassigning; tslassigning := 1; class(OpenXmlElement).Copy(_obj); if not ifnil(_obj.XmlChildShowHorzBorder) then {self.}ShowHorzBorder.Copy(_obj.XmlChildShowHorzBorder); if not ifnil(_obj.XmlChildShowVertBorder) then {self.}ShowVertBorder.Copy(_obj.XmlChildShowVertBorder); if not ifnil(_obj.XmlChildShowOutline) then {self.}ShowOutline.Copy(_obj.XmlChildShowOutline); if not ifnil(_obj.XmlChildShowKeys) then {self.}ShowKeys.Copy(_obj.XmlChildShowKeys); if not ifnil(_obj.XmlChildTxPr) then {self.}TxPr.Copy(_obj.XmlChildTxPr); tslassigning := tslassigning_backup; end; function DTable.ReadXmlChildShowHorzBorder(); begin if tslassigning and ifnil({self.}XmlChildShowHorzBorder) then begin {self.}XmlChildShowHorzBorder := new PureVal(self, {self.}Prefix, "showHorzBorder"); container_.Set({self.}XmlChildShowHorzBorder); end return {self.}XmlChildShowHorzBorder; end; function DTable.ReadXmlChildShowVertBorder(); begin if tslassigning and ifnil({self.}XmlChildShowVertBorder) then begin {self.}XmlChildShowVertBorder := new PureVal(self, {self.}Prefix, "showVertBorder"); container_.Set({self.}XmlChildShowVertBorder); end return {self.}XmlChildShowVertBorder; end; function DTable.ReadXmlChildShowOutline(); begin if tslassigning and ifnil({self.}XmlChildShowOutline) then begin {self.}XmlChildShowOutline := new PureVal(self, {self.}Prefix, "showOutline"); container_.Set({self.}XmlChildShowOutline); end return {self.}XmlChildShowOutline; end; function DTable.ReadXmlChildShowKeys(); begin if tslassigning and ifnil({self.}XmlChildShowKeys) then begin {self.}XmlChildShowKeys := new PureVal(self, {self.}Prefix, "showKeys"); container_.Set({self.}XmlChildShowKeys); end return {self.}XmlChildShowKeys; end; function DTable.ReadXmlChildTxPr(); begin if tslassigning and ifnil({self.}XmlChildTxPr) then begin {self.}XmlChildTxPr := new TxPr(self, {self.}Prefix, "txPr"); container_.Set({self.}XmlChildTxPr); end return {self.}XmlChildTxPr; end;