Exemplo n.º 1
0
        public static CT_FFCheckBox Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFCheckBox ctObj = new CT_FFCheckBox();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "checked")
                {
                    ctObj.checkedField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "default")
                {
                    ctObj.defaultField = CT_OnOff.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "size")
                {
                    ctObj.itemField = CT_HpsMeasure.Parse(childNode, namespaceManager);
                }
                else if (childNode.Name.LocalName == "sizeAuto")
                {
                    ctObj.itemField = CT_OnOff.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Exemplo n.º 2
0
 public CT_FramesetSplitbar()
 {
     this.flatBordersField = new CT_OnOff();
     this.noBorderField    = new CT_OnOff();
     this.colorField       = new CT_Color();
     this.wField           = new CT_TwipsMeasure();
 }
Exemplo n.º 3
0
        internal static CT_FFData Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_FFData ctObj = new CT_FFData();

            foreach (XElement childNode in node.ChildElements())
            {
                if (childNode.Name.LocalName == "name")
                {
                    ctObj.AddNewObject(CT_FFName.Parse(childNode, namespaceManager), FFDataItemsType.name);
                }
                //else if (childNode.Name.LocalName == "tabIndex")
                //{

                //}
                else if (childNode.Name.LocalName == "enabled")
                {
                    ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.name);
                }
                else if (childNode.Name.LocalName == "calcOnExit")
                {
                    ctObj.AddNewObject(CT_OnOff.Parse(childNode, namespaceManager), FFDataItemsType.calcOnExit);
                }
                else if (childNode.Name.LocalName == "checkBox")
                {
                    ctObj.AddNewObject(CT_FFCheckBox.Parse(childNode, namespaceManager), FFDataItemsType.checkBox);
                }
                else if (childNode.Name.LocalName == "ddList")
                {
                    ctObj.AddNewObject(CT_FFDDList.Parse(childNode, namespaceManager), FFDataItemsType.ddList);
                }
                else if (childNode.Name.LocalName == "entryMacro")
                {
                    ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.entryMacro);
                }
                else if (childNode.Name.LocalName == "exitMacro")
                {
                    ctObj.AddNewObject(CT_MacroName.Parse(childNode, namespaceManager), FFDataItemsType.exitMacro);
                }
                else if (childNode.Name.LocalName == "helpText")
                {
                    ctObj.AddNewObject(CT_FFHelpText.Parse(childNode, namespaceManager), FFDataItemsType.helpText);
                }
                else if (childNode.Name.LocalName == "statusText")
                {
                    ctObj.AddNewObject(CT_FFStatusText.Parse(childNode, namespaceManager), FFDataItemsType.statusText);
                }
                else if (childNode.Name.LocalName == "textInput")
                {
                    ctObj.AddNewObject(CT_FFTextInput.Parse(childNode, namespaceManager), FFDataItemsType.textInput);
                }
            }
            return(ctObj);
        }
Exemplo n.º 4
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();
 }
Exemplo n.º 5
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();
 }
Exemplo n.º 6
0
        public static CT_OnOff Parse(XElement node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_OnOff ctObj = new CT_OnOff();

            if (node.Attribute("w:val") != null)
            {
                ctObj.valField = XmlHelper.ReadBool(node.Attribute("w:val"));
            }
            else
            {
                ctObj.valField = true;
            }
            return(ctObj);
        }
Exemplo n.º 7
0
 public CT_FFCheckBox()
 {
     this.checkedField = new CT_OnOff();
     this.defaultField = new CT_OnOff();
 }