Example #1
0
        public static CT_FFDDList Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFDDList ctObj = new CT_FFDDList();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "result")
                {
                    ctObj.resultField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "default")
                {
                    ctObj.defaultField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "listEntry")
                {
                    ctObj.listEntryField.Add(CT_String.Parse(childNode, namespaceManager));
                }
            }
            return(ctObj);
        }
Example #2
0
 public CT_FFTextInput()
 {
     this.formatField    = new CT_String();
     this.maxLengthField = new CT_DecimalNumber();
     this.defaultField   = new CT_String();
     this.typeField      = new CT_FFTextType();
 }
Example #3
0
        public static CT_FFTextInput Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFTextInput ctObj = new CT_FFTextInput();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "type")
                {
                    ctObj.typeField = CT_FFTextType.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "default")
                {
                    ctObj.defaultField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "format")
                {
                    ctObj.formatField = CT_String.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "maxLength")
                {
                    ctObj.maxLengthField = CT_DecimalNumber.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Example #4
0
        public static CT_DecimalNumber Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_DecimalNumber ctObj = new CT_DecimalNumber();

            ctObj.val = XmlHelper.ReadString(node.Attribute("w:val"));
            return(ctObj);
        }
Example #5
0
 public CT_FFDDList()
 {
     this.listEntryField = new List <CT_String>();
     this.defaultField   = new CT_DecimalNumber();
     this.resultField    = new CT_DecimalNumber();
 }