unit SharedMLUnitDecorator; interface uses SharedML, TSSafeUnitConverter; type MathPrUnitDecorator = class(MathPr) public function create(_obj: MathPr); function GetObject(); function Convert(); private object_: MathPr; end; type OMathParaUnitDecorator = class(OMathPara) public function create(_obj: OMathPara); function GetObject(); function Convert(); private object_: OMathPara; end; type OMathParaPrUnitDecorator = class(OMathParaPr) public function create(_obj: OMathParaPr); function GetObject(); function Convert(); private object_: OMathParaPr; end; type PureMValUnitDecorator = class(PureMVal) public function create(_obj: PureMVal); function GetObject(); function Convert(); private object_: PureMVal; end; type OMathUnitDecorator = class(OMath) public function create(_obj: OMath); function GetObject(); function Convert(); private object_: OMath; end; type RUnitDecorator = class(R) public function create(_obj: R); function GetObject(); function Convert(); private object_: R; end; type RPrUnitDecorator = class(RPr) public function create(_obj: RPr); function GetObject(); function Convert(); private object_: RPr; end; type TUnitDecorator = class(T) public function create(_obj: T); function GetObject(); function Convert(); private object_: T; end; type DUnitDecorator = class(D) public function create(_obj: D); function GetObject(); function Convert(); private object_: D; end; type DPrUnitDecorator = class(DPr) public function create(_obj: DPr); function GetObject(); function Convert(); private object_: DPr; end; type CtrlPrUnitDecorator = class(CtrlPr) public function create(_obj: CtrlPr); function GetObject(); function Convert(); private object_: CtrlPr; end; type SSupUnitDecorator = class(SSup) public function create(_obj: SSup); function GetObject(); function Convert(); private object_: SSup; end; type SSupPrUnitDecorator = class(SSupPr) public function create(_obj: SSupPr); function GetObject(); function Convert(); private object_: SSupPr; end; type FUnitDecorator = class(F) public function create(_obj: F); function GetObject(); function Convert(); private object_: F; end; type FPrUnitDecorator = class(FPr) public function create(_obj: FPr); function GetObject(); function Convert(); private object_: FPr; end; type RadUnitDecorator = class(Rad) public function create(_obj: Rad); function GetObject(); function Convert(); private object_: Rad; end; type RadPrUnitDecorator = class(RadPr) public function create(_obj: RadPr); function GetObject(); function Convert(); private object_: RadPr; end; type SSubUnitDecorator = class(SSub) public function create(_obj: SSub); function GetObject(); function Convert(); private object_: SSub; end; type SSubPrUnitDecorator = class(SSubPr) public function create(_obj: SSubPr); function GetObject(); function Convert(); private object_: SSubPr; end; type NaryUnitDecorator = class(Nary) public function create(_obj: Nary); function GetObject(); function Convert(); private object_: Nary; end; type NaryPrUnitDecorator = class(NaryPr) public function create(_obj: NaryPr); function GetObject(); function Convert(); private object_: NaryPr; end; type FuncUnitDecorator = class(Func) public function create(_obj: Func); function GetObject(); function Convert(); private object_: Func; end; type FNameUnitDecorator = class(FName) public function create(_obj: FName); function GetObject(); function Convert(); private object_: FName; end; type FuncPrUnitDecorator = class(FuncPr) public function create(_obj: FuncPr); function GetObject(); function Convert(); private object_: FuncPr; end; type CorePropertiesUnitDecorator = class(CoreProperties) public function create(_obj: CoreProperties); function GetObject(); function Convert(); private object_: CoreProperties; end; type CreatedUnitDecorator = class(Created) public function create(_obj: Created); function GetObject(); function Convert(); private object_: Created; end; type ModifiedUnitDecorator = class(Modified) public function create(_obj: Modified); function GetObject(); function Convert(); private object_: Modified; end; type RelationshipsUnitDecorator = class(Relationships) public function create(_obj: Relationships); function GetObject(); function Convert(); private object_: Relationships; end; type RelationshipUnitDecorator = class(Relationship) public function create(_obj: Relationship); function GetObject(); function Convert(); private object_: Relationship; end; type TypesUnitDecorator = class(Types) public function create(_obj: Types); function GetObject(); function Convert(); private object_: Types; end; type DefaultUnitDecorator = class(Default) public function create(_obj: Default); function GetObject(); function Convert(); private object_: Default; end; type _OverrideUnitDecorator = class(_Override) public function create(_obj: _Override); function GetObject(); function Convert(); private object_: _Override; end; type NumUnitDecorator = class(Num) public function create(_obj: Num); function GetObject(); function Convert(); private object_: Num; end; type DegUnitDecorator = class(Deg) public function create(_obj: Deg); function GetObject(); function Convert(); private object_: Deg; end; type EUnitDecorator = class(E) public function create(_obj: E); function GetObject(); function Convert(); private object_: E; end; type SupUnitDecorator = class(Sup) public function create(_obj: Sup); function GetObject(); function Convert(); private object_: Sup; end; type DenUnitDecorator = class(Den) public function create(_obj: Den); function GetObject(); function Convert(); private object_: Den; end; type SubUnitDecorator = class(Sub) public function create(_obj: Sub); function GetObject(); function Convert(); private object_: Sub; end; implementation function MathPrUnitDecorator.create(_obj: MathPr); begin class(MathPr).create(); object_ := _obj; {self.}Convert(); end; function MathPrUnitDecorator.GetObject(); begin return object_; end; function MathPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildMathFont) then {self.}XmlChildMathFont := new PureMValUnitDecorator(object_.XmlChildMathFont); if not ifnil(object_.XmlChildBrkBin) then {self.}XmlChildBrkBin := new PureMValUnitDecorator(object_.XmlChildBrkBin); if not ifnil(object_.XmlChildBrkBinSub) then {self.}XmlChildBrkBinSub := new PureMValUnitDecorator(object_.XmlChildBrkBinSub); if not ifnil(object_.XmlChildSmallFrac) then {self.}XmlChildSmallFrac := new PureMValUnitDecorator(object_.XmlChildSmallFrac); if not ifnil(object_.XmlChildDispDef) then {self.}DispDef.Copy(object_.XmlChildDispDef); if not ifnil(object_.XmlChildLMargin) then {self.}XmlChildLMargin := new PureMValUnitDecorator(object_.XmlChildLMargin); if not ifnil(object_.XmlChildRMargin) then {self.}XmlChildRMargin := new PureMValUnitDecorator(object_.XmlChildRMargin); if not ifnil(object_.XmlChildDefJc) then {self.}XmlChildDefJc := new PureMValUnitDecorator(object_.XmlChildDefJc); if not ifnil(object_.XmlChildWrapIndent) then {self.}XmlChildWrapIndent := new PureMValUnitDecorator(object_.XmlChildWrapIndent); if not ifnil(object_.XmlChildIntLim) then {self.}XmlChildIntLim := new PureMValUnitDecorator(object_.XmlChildIntLim); if not ifnil(object_.XmlChildNaryLim) then {self.}XmlChildNaryLim := new PureMValUnitDecorator(object_.XmlChildNaryLim); tslassigning := tslassigning_backup; end; function OMathParaUnitDecorator.create(_obj: OMathPara); begin class(OMathPara).create(); object_ := _obj; {self.}Convert(); end; function OMathParaUnitDecorator.GetObject(); begin return object_; end; function OMathParaUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildOMathParaPr) then {self.}XmlChildOMathParaPr := new OMathParaPrUnitDecorator(object_.XmlChildOMathParaPr); if not ifnil(object_.XmlChildOMath) then {self.}XmlChildOMath := new OMathUnitDecorator(object_.XmlChildOMath); tslassigning := tslassigning_backup; end; function OMathParaPrUnitDecorator.create(_obj: OMathParaPr); begin class(OMathParaPr).create(); object_ := _obj; {self.}Convert(); end; function OMathParaPrUnitDecorator.GetObject(); begin return object_; end; function OMathParaPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildJc) then {self.}XmlChildJc := new PureMValUnitDecorator(object_.XmlChildJc); tslassigning := tslassigning_backup; end; function PureMValUnitDecorator.create(_obj: PureMVal); begin class(PureMVal).create(); object_ := _obj; {self.}Convert(); end; function PureMValUnitDecorator.GetObject(); begin return object_; end; function PureMValUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrVal) then {self.}Val := object_.XmlAttrVal.Value; tslassigning := tslassigning_backup; end; function OMathUnitDecorator.create(_obj: OMath); begin class(OMath).create(); object_ := _obj; {self.}Convert(); end; function OMathUnitDecorator.GetObject(); begin return object_; end; function OMathUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function RUnitDecorator.create(_obj: R); begin class(R).create(); object_ := _obj; {self.}Convert(); end; function RUnitDecorator.GetObject(); begin return object_; end; function RUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildRPr) then {self.}XmlChildRPr := new RPrUnitDecorator(object_.XmlChildRPr); if not ifnil(object_.XmlChildARPr) then {self.}XmlChildARPr := new RPrUnitDecorator(object_.XmlChildARPr); if not ifnil(object_.XmlChildWRPr) then {self.}XmlChildWRPr := new RPrUnitDecorator(object_.XmlChildWRPr); if not ifnil(object_.XmlChildT) then {self.}XmlChildT := new TUnitDecorator(object_.XmlChildT); tslassigning := tslassigning_backup; end; function RPrUnitDecorator.create(_obj: RPr); begin class(RPr).create(); object_ := _obj; {self.}Convert(); end; function RPrUnitDecorator.GetObject(); begin return object_; end; function RPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildSty) then {self.}XmlChildSty := new PureMValUnitDecorator(object_.XmlChildSty); tslassigning := tslassigning_backup; end; function TUnitDecorator.create(_obj: T); begin class(T).create(); object_ := _obj; {self.}Convert(); end; function TUnitDecorator.GetObject(); begin return object_; end; function TUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrSpace) then {self.}Space := object_.XmlAttrSpace.Value; tslassigning := tslassigning_backup; end; function DUnitDecorator.create(_obj: D); begin class(D).create(); object_ := _obj; {self.}Convert(); end; function DUnitDecorator.GetObject(); begin return object_; end; function DUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildDPr) then {self.}XmlChildDPr := new DPrUnitDecorator(object_.XmlChildDPr); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); tslassigning := tslassigning_backup; end; function DPrUnitDecorator.create(_obj: DPr); begin class(DPr).create(); object_ := _obj; {self.}Convert(); end; function DPrUnitDecorator.GetObject(); begin return object_; end; function DPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildBegChr) then {self.}XmlChildBegChr := new PureMValUnitDecorator(object_.XmlChildBegChr); if not ifnil(object_.XmlChildEndChr) then {self.}XmlChildEndChr := new PureMValUnitDecorator(object_.XmlChildEndChr); if not ifnil(object_.XmlChildSepChr) then {self.}XmlChildSepChr := new PureMValUnitDecorator(object_.XmlChildSepChr); if not ifnil(object_.XmlChildShp) then {self.}XmlChildShp := new PureMValUnitDecorator(object_.XmlChildShp); if not ifnil(object_.XmlChildGrow) then {self.}XmlChildGrow := new PureMValUnitDecorator(object_.XmlChildGrow); if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); if not ifnil(object_.XmlChildRPr) then {self.}XmlChildRPr := new RPrUnitDecorator(object_.XmlChildRPr); tslassigning := tslassigning_backup; end; function CtrlPrUnitDecorator.create(_obj: CtrlPr); begin class(CtrlPr).create(); object_ := _obj; {self.}Convert(); end; function CtrlPrUnitDecorator.GetObject(); begin return object_; end; function CtrlPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildRPr) then {self.}XmlChildRPr := new RPrUnitDecorator(object_.XmlChildRPr); if not ifnil(object_.XmlChildDel) then {self.}XmlChildDel := new DelUnitDecorator(object_.XmlChildDel); tslassigning := tslassigning_backup; end; function SSupUnitDecorator.create(_obj: SSup); begin class(SSup).create(); object_ := _obj; {self.}Convert(); end; function SSupUnitDecorator.GetObject(); begin return object_; end; function SSupUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildSSupPr) then {self.}XmlChildSSupPr := new SSupPrUnitDecorator(object_.XmlChildSSupPr); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); if not ifnil(object_.XmlChildSup) then {self.}XmlChildSup := new SupUnitDecorator(object_.XmlChildSup); tslassigning := tslassigning_backup; end; function SSupPrUnitDecorator.create(_obj: SSupPr); begin class(SSupPr).create(); object_ := _obj; {self.}Convert(); end; function SSupPrUnitDecorator.GetObject(); begin return object_; end; function SSupPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function FUnitDecorator.create(_obj: F); begin class(F).create(); object_ := _obj; {self.}Convert(); end; function FUnitDecorator.GetObject(); begin return object_; end; function FUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildFPr) then {self.}XmlChildFPr := new FPrUnitDecorator(object_.XmlChildFPr); if not ifnil(object_.XmlChildNum) then {self.}XmlChildNum := new NumUnitDecorator(object_.XmlChildNum); if not ifnil(object_.XmlChildDen) then {self.}XmlChildDen := new DenUnitDecorator(object_.XmlChildDen); tslassigning := tslassigning_backup; end; function FPrUnitDecorator.create(_obj: FPr); begin class(FPr).create(); object_ := _obj; {self.}Convert(); end; function FPrUnitDecorator.GetObject(); begin return object_; end; function FPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildType) then {self.}XmlChildType := new PureMValUnitDecorator(object_.XmlChildType); if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function RadUnitDecorator.create(_obj: Rad); begin class(Rad).create(); object_ := _obj; {self.}Convert(); end; function RadUnitDecorator.GetObject(); begin return object_; end; function RadUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildRadPr) then {self.}XmlChildRadPr := new RadPrUnitDecorator(object_.XmlChildRadPr); if not ifnil(object_.XmlChildDeg) then {self.}XmlChildDeg := new DegUnitDecorator(object_.XmlChildDeg); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); tslassigning := tslassigning_backup; end; function RadPrUnitDecorator.create(_obj: RadPr); begin class(RadPr).create(); object_ := _obj; {self.}Convert(); end; function RadPrUnitDecorator.GetObject(); begin return object_; end; function RadPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildDegHide) then {self.}XmlChildDegHide := new PureMValUnitDecorator(object_.XmlChildDegHide); if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function SSubUnitDecorator.create(_obj: SSub); begin class(SSub).create(); object_ := _obj; {self.}Convert(); end; function SSubUnitDecorator.GetObject(); begin return object_; end; function SSubUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildSSubPr) then {self.}XmlChildSSubPr := new SSubPrUnitDecorator(object_.XmlChildSSubPr); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); if not ifnil(object_.XmlChildSub) then {self.}XmlChildSub := new SubUnitDecorator(object_.XmlChildSub); tslassigning := tslassigning_backup; end; function SSubPrUnitDecorator.create(_obj: SSubPr); begin class(SSubPr).create(); object_ := _obj; {self.}Convert(); end; function SSubPrUnitDecorator.GetObject(); begin return object_; end; function SSubPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function NaryUnitDecorator.create(_obj: Nary); begin class(Nary).create(); object_ := _obj; {self.}Convert(); end; function NaryUnitDecorator.GetObject(); begin return object_; end; function NaryUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildNaryPr) then {self.}XmlChildNaryPr := new NaryPrUnitDecorator(object_.XmlChildNaryPr); if not ifnil(object_.XmlChildSub) then {self.}XmlChildSub := new SubUnitDecorator(object_.XmlChildSub); if not ifnil(object_.XmlChildSup) then {self.}XmlChildSup := new SupUnitDecorator(object_.XmlChildSup); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); tslassigning := tslassigning_backup; end; function NaryPrUnitDecorator.create(_obj: NaryPr); begin class(NaryPr).create(); object_ := _obj; {self.}Convert(); end; function NaryPrUnitDecorator.GetObject(); begin return object_; end; function NaryPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildChr) then {self.}XmlChildChr := new PureMValUnitDecorator(object_.XmlChildChr); if not ifnil(object_.XmlChildGrow) then {self.}XmlChildGrow := new PureMValUnitDecorator(object_.XmlChildGrow); if not ifnil(object_.XmlChildSubHide) then {self.}XmlChildSubHide := new PureMValUnitDecorator(object_.XmlChildSubHide); if not ifnil(object_.XmlChildSupHide) then {self.}XmlChildSupHide := new PureMValUnitDecorator(object_.XmlChildSupHide); if not ifnil(object_.XmlChildLimLoc) then {self.}XmlChildLimLoc := new PureMValUnitDecorator(object_.XmlChildLimLoc); if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function FuncUnitDecorator.create(_obj: Func); begin class(Func).create(); object_ := _obj; {self.}Convert(); end; function FuncUnitDecorator.GetObject(); begin return object_; end; function FuncUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildFuncPr) then {self.}XmlChildFuncPr := new FuncPrUnitDecorator(object_.XmlChildFuncPr); if not ifnil(object_.XmlChildFName) then {self.}XmlChildFName := new FNameUnitDecorator(object_.XmlChildFName); if not ifnil(object_.XmlChildE) then {self.}XmlChildE := new EUnitDecorator(object_.XmlChildE); tslassigning := tslassigning_backup; end; function FNameUnitDecorator.create(_obj: FName); begin class(FName).create(); object_ := _obj; {self.}Convert(); end; function FNameUnitDecorator.GetObject(); begin return object_; end; function FNameUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function FuncPrUnitDecorator.create(_obj: FuncPr); begin class(FuncPr).create(); object_ := _obj; {self.}Convert(); end; function FuncPrUnitDecorator.GetObject(); begin return object_; end; function FuncPrUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); tslassigning := tslassigning_backup; end; function CorePropertiesUnitDecorator.create(_obj: CoreProperties); begin class(CoreProperties).create(); object_ := _obj; {self.}Convert(); end; function CorePropertiesUnitDecorator.GetObject(); begin return object_; end; function CorePropertiesUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildTitle) then if not ifnil(object_.XmlChildSubject) then if not ifnil(object_.XmlChildCreator) then if not ifnil(object_.XmlChildKeywords) then if not ifnil(object_.XmlChildDescription) then if not ifnil(object_.XmlChildLastModifiedBy) then if not ifnil(object_.XmlChildRevision) then if not ifnil(object_.XmlChildLastPrinted) then if not ifnil(object_.XmlChildCreated) then {self.}XmlChildCreated := new CreatedUnitDecorator(object_.XmlChildCreated); if not ifnil(object_.XmlChildModified) then {self.}XmlChildModified := new ModifiedUnitDecorator(object_.XmlChildModified); tslassigning := tslassigning_backup; end; function CreatedUnitDecorator.create(_obj: Created); begin class(Created).create(); object_ := _obj; {self.}Convert(); end; function CreatedUnitDecorator.GetObject(); begin return object_; end; function CreatedUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrType) then {self.}Type := object_.XmlAttrType.Value; tslassigning := tslassigning_backup; end; function ModifiedUnitDecorator.create(_obj: Modified); begin class(Modified).create(); object_ := _obj; {self.}Convert(); end; function ModifiedUnitDecorator.GetObject(); begin return object_; end; function ModifiedUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrType) then {self.}Type := object_.XmlAttrType.Value; tslassigning := tslassigning_backup; end; function RelationshipsUnitDecorator.create(_obj: Relationships); begin class(Relationships).create(); object_ := _obj; {self.}Convert(); end; function RelationshipsUnitDecorator.GetObject(); begin return object_; end; function RelationshipsUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; elems := object_.Relationships(); for _,elem in elems do {self.}AppendChild(new RelationshipUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function RelationshipUnitDecorator.create(_obj: Relationship); begin class(Relationship).create(); object_ := _obj; {self.}Convert(); end; function RelationshipUnitDecorator.GetObject(); begin return object_; end; function RelationshipUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrId) then {self.}Id := object_.XmlAttrId.Value; if not ifnil(object_.XmlAttrType) then {self.}Type := object_.XmlAttrType.Value; if not ifnil(object_.XmlAttrTarget) then {self.}Target := object_.XmlAttrTarget.Value; tslassigning := tslassigning_backup; end; function TypesUnitDecorator.create(_obj: Types); begin class(Types).create(); object_ := _obj; {self.}Convert(); end; function TypesUnitDecorator.GetObject(); begin return object_; end; function TypesUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; elems := object_.Defaults(); for _,elem in elems do {self.}AppendChild(new DefaultUnitDecorator(elem)); elems := object_.Overrides(); for _,elem in elems do {self.}AppendChild(new _OverrideUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function DefaultUnitDecorator.create(_obj: Default); begin class(Default).create(); object_ := _obj; {self.}Convert(); end; function DefaultUnitDecorator.GetObject(); begin return object_; end; function DefaultUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrExtension) then {self.}Extension := object_.XmlAttrExtension.Value; if not ifnil(object_.XmlAttrContentType) then {self.}ContentType := object_.XmlAttrContentType.Value; tslassigning := tslassigning_backup; end; function _OverrideUnitDecorator.create(_obj: _Override); begin class(_Override).create(); object_ := _obj; {self.}Convert(); end; function _OverrideUnitDecorator.GetObject(); begin return object_; end; function _OverrideUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlAttrPartName) then {self.}PartName := object_.XmlAttrPartName.Value; if not ifnil(object_.XmlAttrContentType) then {self.}ContentType := object_.XmlAttrContentType.Value; tslassigning := tslassigning_backup; end; function NumUnitDecorator.create(_obj: Num); begin class(Num).create(); object_ := _obj; {self.}Convert(); end; function NumUnitDecorator.GetObject(); begin return object_; end; function NumUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function DegUnitDecorator.create(_obj: Deg); begin class(Deg).create(); object_ := _obj; {self.}Convert(); end; function DegUnitDecorator.GetObject(); begin return object_; end; function DegUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function EUnitDecorator.create(_obj: E); begin class(E).create(); object_ := _obj; {self.}Convert(); end; function EUnitDecorator.GetObject(); begin return object_; end; function EUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function SupUnitDecorator.create(_obj: Sup); begin class(Sup).create(); object_ := _obj; {self.}Convert(); end; function SupUnitDecorator.GetObject(); begin return object_; end; function SupUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function DenUnitDecorator.create(_obj: Den); begin class(Den).create(); object_ := _obj; {self.}Convert(); end; function DenUnitDecorator.GetObject(); begin return object_; end; function DenUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; function SubUnitDecorator.create(_obj: Sub); begin class(Sub).create(); object_ := _obj; {self.}Convert(); end; function SubUnitDecorator.GetObject(); begin return object_; end; function SubUnitDecorator.Convert(); begin tslassigning_backup := tslassigning; tslassigning := 1; if not ifnil(object_.XmlChildCtrlPr) then {self.}XmlChildCtrlPr := new CtrlPrUnitDecorator(object_.XmlChildCtrlPr); elems := object_.Rs(); for _,elem in elems do {self.}AppendChild(new RUnitDecorator(elem)); elems := object_.Ds(); for _,elem in elems do {self.}AppendChild(new DUnitDecorator(elem)); elems := object_.Fs(); for _,elem in elems do {self.}AppendChild(new FUnitDecorator(elem)); elems := object_.Rads(); for _,elem in elems do {self.}AppendChild(new RadUnitDecorator(elem)); elems := object_.SSubs(); for _,elem in elems do {self.}AppendChild(new SSubUnitDecorator(elem)); elems := object_.SSups(); for _,elem in elems do {self.}AppendChild(new SSupUnitDecorator(elem)); elems := object_.Naries(); for _,elem in elems do {self.}AppendChild(new NaryUnitDecorator(elem)); elems := object_.Funcs(); for _,elem in elems do {self.}AppendChild(new FuncUnitDecorator(elem)); tslassigning := tslassigning_backup; end; end.