Beispiel #1
0
        public static CT_OMathArg Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
                return null;
            CT_OMathArg ctObj = new CT_OMathArg();
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "argPr")
                {
                    ctObj.argPr = CT_OMathArgPr.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "borderBox")
                {
                    ctObj.Items.Add(CT_BorderBox.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.borderBox);
                }
                else if (childNode.LocalName == "acc")
                {
                    ctObj.Items.Add(CT_Acc.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.acc);
                }
                else if (childNode.LocalName == "customXmlInsRangeStart")
                {
                    ctObj.Items.Add(CT_TrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlInsRangeStart);
                }
                else if (childNode.LocalName == "proofErr")
                {
                    ctObj.Items.Add(CT_ProofErr.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.proofErr);
                }
                else if (childNode.LocalName == "d")
                {
                    ctObj.Items.Add(CT_D.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.d);
                }
                else if (childNode.LocalName == "eqArr")
                {
                    ctObj.Items.Add(CT_EqArr.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.eqArr);
                }
                else if (childNode.LocalName == "f")
                {
                    ctObj.Items.Add(CT_F.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.f);
                }
                else if (childNode.LocalName == "func")
                {
                    ctObj.Items.Add(CT_Func.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.func);
                }
                else if (childNode.LocalName == "customXmlMoveFromRangeEnd")
                {
                    ctObj.Items.Add(CT_Markup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlMoveFromRangeEnd);
                }
                else if (childNode.LocalName == "groupChr")
                {
                    ctObj.Items.Add(CT_GroupChr.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.groupChr);
                }
                else if (childNode.LocalName == "limLow")
                {
                    ctObj.Items.Add(CT_LimLow.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.limLow);
                }
                else if (childNode.LocalName == "limUpp")
                {
                    ctObj.Items.Add(CT_LimUpp.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.limUpp);
                }
                else if (childNode.LocalName == "m")
                {
                    ctObj.Items.Add(CT_M.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.m);
                }
                else if (childNode.LocalName == "customXmlMoveToRangeStart")
                {
                    ctObj.Items.Add(CT_TrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlMoveToRangeStart);
                }
                else if (childNode.LocalName == "customXmlDelRangeEnd")
                {
                    ctObj.Items.Add(CT_Markup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlDelRangeEnd);
                }
                else if (childNode.LocalName == "permStart")
                {
                    ctObj.Items.Add(CT_PermStart.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.permStart);
                }
                else if (childNode.LocalName == "oMath")
                {
                    ctObj.Items.Add(CT_OMath.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.oMath);
                }
                else if (childNode.LocalName == "oMathPara")
                {
                    ctObj.Items.Add(CT_OMathPara.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.oMathPara);
                }
                else if (childNode.LocalName == "phant")
                {
                    ctObj.Items.Add(CT_Phant.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.phant);
                }
                else if (childNode.LocalName == "bar")
                {
                    ctObj.Items.Add(CT_Bar.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.bar);
                }
                else if (childNode.LocalName == "r")
                {
                    ctObj.Items.Add(CT_R.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.r);
                }
                else if (childNode.LocalName == "rad")
                {
                    ctObj.Items.Add(CT_Rad.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.rad);
                }
                else if (childNode.LocalName == "sPre")
                {
                    ctObj.Items.Add(CT_SPre.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.sPre);
                }
                else if (childNode.LocalName == "sSub")
                {
                    ctObj.Items.Add(CT_SSub.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.sSub);
                }
                else if (childNode.LocalName == "sSubSup")
                {
                    ctObj.Items.Add(CT_SSubSup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.sSubSup);
                }
                else if (childNode.LocalName == "sSup")
                {
                    ctObj.Items.Add(CT_SSup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.sSup);
                }
                else if (childNode.LocalName == "bookmarkEnd")
                {
                    ctObj.Items.Add(CT_MarkupRange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.bookmarkEnd);
                }
                else if (childNode.LocalName == "bookmarkStart")
                {
                    ctObj.Items.Add(CT_Bookmark.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.bookmarkStart);
                }
                else if (childNode.LocalName == "commentRangeEnd")
                {
                    ctObj.Items.Add(CT_MarkupRange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.commentRangeEnd);
                }
                else if (childNode.LocalName == "commentRangeStart")
                {
                    ctObj.Items.Add(CT_MarkupRange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.commentRangeStart);
                }
                else if (childNode.LocalName == "nary")
                {
                    ctObj.Items.Add(CT_Nary.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.nary);
                }
                else if (childNode.LocalName == "customXmlDelRangeStart")
                {
                    ctObj.Items.Add(CT_TrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlDelRangeStart);
                }
                else if (childNode.LocalName == "customXmlInsRangeEnd")
                {
                    ctObj.Items.Add(CT_Markup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlInsRangeEnd);
                }
                else if (childNode.LocalName == "customXmlMoveFromRangeStart")
                {
                    ctObj.Items.Add(CT_TrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlMoveFromRangeStart);
                }
                else if (childNode.LocalName == "customXmlMoveToRangeEnd")
                {
                    ctObj.Items.Add(CT_Markup.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.customXmlMoveToRangeEnd);
                }
                else if (childNode.LocalName == "del")
                {
                    ctObj.Items.Add(CT_RunTrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.del);
                }
                else if (childNode.LocalName == "ins")
                {
                    ctObj.Items.Add(CT_RunTrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.ins);
                }
                else if (childNode.LocalName == "box")
                {
                    ctObj.Items.Add(CT_Box.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.box);
                }
                else if (childNode.LocalName == "moveFrom")
                {
                    ctObj.Items.Add(CT_RunTrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveFrom);
                }
                else if (childNode.LocalName == "moveFromRangeEnd")
                {
                    ctObj.Items.Add(CT_MarkupRange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveFromRangeEnd);
                }
                else if (childNode.LocalName == "moveFromRangeStart")
                {
                    ctObj.Items.Add(CT_MoveBookmark.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveFromRangeStart);
                }
                else if (childNode.LocalName == "moveTo")
                {
                    ctObj.Items.Add(CT_RunTrackChange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveTo);
                }
                else if (childNode.LocalName == "moveToRangeEnd")
                {
                    ctObj.Items.Add(CT_MarkupRange.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveToRangeEnd);
                }
                else if (childNode.LocalName == "moveToRangeStart")
                {
                    ctObj.Items.Add(CT_MoveBookmark.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.moveToRangeStart);
                }
                else if (childNode.LocalName == "permEnd")
                {
                    ctObj.Items.Add(CT_Perm.Parse(childNode, namespaceManager));
                    ctObj.ItemsElementName.Add(ItemsChoiceType7.permEnd);
                }
                else if (childNode.LocalName == "ctrlPr")
                {
                    ctObj.ctrlPr = CT_CtrlPr.Parse(childNode, namespaceManager);
                }

            }
            return ctObj;
        }
Beispiel #2
0
 /// <summary>
 /// CT_Box class constructor
 /// </summary>
 public CT_Box()
 {
     this.eField = new CT_OMathArg();
     this.boxPrField = new CT_BoxPr();
 }
Beispiel #3
0
 /// <summary>
 /// CT_SSub class constructor
 /// </summary>
 public CT_SSub()
 {
     this.subField = new CT_OMathArg();
     this.eField = new CT_OMathArg();
     this.sSubPrField = new CT_SSubPr();
 }
Beispiel #4
0
 /// <summary>
 /// CT_SSup class constructor
 /// </summary>
 public CT_SSup()
 {
     this.supField = new CT_OMathArg();
     this.eField = new CT_OMathArg();
     this.sSupPrField = new CT_SSupPr();
 }
Beispiel #5
0
 /// <summary>
 /// CT_Rad class constructor
 /// </summary>
 public CT_Rad()
 {
     this.eField = new CT_OMathArg();
     this.degField = new CT_OMathArg();
     this.radPrField = new CT_RadPr();
 }
Beispiel #6
0
 /// <summary>
 /// CT_SPre class constructor
 /// </summary>
 public CT_SPre()
 {
     this.eField = new CT_OMathArg();
     this.supField = new CT_OMathArg();
     this.subField = new CT_OMathArg();
     this.sPrePrField = new CT_SPrePr();
 }
Beispiel #7
0
 /// <summary>
 /// CT_Nary class constructor
 /// </summary>
 public CT_Nary()
 {
     this.eField = new CT_OMathArg();
     this.supField = new CT_OMathArg();
     this.subField = new CT_OMathArg();
     this.naryPrField = new CT_NaryPr();
 }
Beispiel #8
0
 /// <summary>
 /// CT_Phant class constructor
 /// </summary>
 public CT_Phant()
 {
     this.eField = new CT_OMathArg();
     this.phantPrField = new CT_PhantPr();
 }
Beispiel #9
0
 /// <summary>
 /// CT_LimLow class constructor
 /// </summary>
 public CT_LimLow()
 {
     this.limField = new CT_OMathArg();
     this.eField = new CT_OMathArg();
     this.limLowPrField = new CT_LimLowPr();
 }
Beispiel #10
0
 /// <summary>
 /// CT_LimUpp class constructor
 /// </summary>
 public CT_LimUpp()
 {
     this.limField = new CT_OMathArg();
     this.eField = new CT_OMathArg();
     this.limUppPrField = new CT_LimUppPr();
 }
Beispiel #11
0
 /// <summary>
 /// CT_GroupChr class constructor
 /// </summary>
 public CT_GroupChr()
 {
     this.eField = new CT_OMathArg();
     this.groupChrPrField = new CT_GroupChrPr();
 }
Beispiel #12
0
 /// <summary>
 /// CT_Func class constructor
 /// </summary>
 public CT_Func()
 {
     this.eField = new CT_OMathArg();
     this.fNameField = new CT_OMathArg();
     this.funcPrField = new CT_FuncPr();
 }
Beispiel #13
0
 /// <summary>
 /// CT_F class constructor
 /// </summary>
 public CT_F()
 {
     this.denField = new CT_OMathArg();
     this.numField = new CT_OMathArg();
     this.fPrField = new CT_FPr();
 }
Beispiel #14
0
 /// <summary>
 /// CT_Bar class constructor
 /// </summary>
 public CT_Bar()
 {
     this.eField = new CT_OMathArg();
     this.barPrField = new CT_BarPr();
 }
Beispiel #15
0
 /// <summary>
 /// CT_Acc class constructor
 /// </summary>
 public CT_Acc()
 {
     this.eField = new CT_OMathArg();
     this.accPrField = new CT_AccPr();
 }