Esempio n. 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);
        }
Esempio n. 2
0
 public CT_Frameset()
 {
     this.itemsField            = new object[0];
     this.frameLayoutField      = new CT_FrameLayout();
     this.framesetSplitbarField = new CT_FramesetSplitbar();
     this.szField = new CT_String();
 }
Esempio n. 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);
        }
Esempio n. 4
0
 public CT_FFTextInput()
 {
     this.formatField    = new CT_String();
     this.maxLengthField = new CT_DecimalNumber();
     this.defaultField   = new CT_String();
     this.typeField      = new CT_FFTextType();
 }
Esempio n. 5
0
 public CT_Frame()
 {
     this.linkedToFileField    = new CT_OnOff();
     this.noResizeAllowedField = new CT_OnOff();
     this.scrollbarField       = new CT_FrameScrollbar();
     this.marHField            = new CT_PixelsMeasure();
     this.marWField            = new CT_PixelsMeasure();
     this.sourceFileNameField  = new CT_Rel();
     this.nameField            = new CT_String();
     this.szField = new CT_String();
 }
Esempio n. 6
0
        public static CT_String Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_String ctObj = new CT_String();

            ctObj.val = XmlHelper.ReadString(node.Attribute("w:val"));
            return(ctObj);
        }
Esempio n. 7
0
 public CT_Font()
 {
     this.embedBoldItalicField = new CT_FontRel();
     this.embedItalicField     = new CT_FontRel();
     this.embedBoldField       = new CT_FontRel();
     this.embedRegularField    = new CT_FontRel();
     this.sigField             = new CT_FontSig();
     this.pitchField           = new CT_Pitch();
     this.notTrueTypeField     = new CT_OnOff();
     this.familyField          = new CT_FontFamily();
     this.charsetField         = new CT_UcharHexNumber();
     this.panose1Field         = new CT_Panose();
     this.altNameField         = new CT_String();
 }
Esempio n. 8
0
 public CT_DocPartCategory()
 {
     this.galleryField = new CT_DocPartGallery();
     this.nameField    = new CT_String();
 }