internal static CT_ExternalBook Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ExternalBook ctObj = new CT_ExternalBook();

            ctObj.idField = XmlHelper.ReadString(node.Attributes["id", namespaceManager.LookupNamespace("r")]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "sheetNames")
                {
                    ctObj.sheetNamesField = CT_ExternalSheetNames.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "definedNames")
                {
                    ctObj.definedNamesField = CT_ExternalDefinedNames.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "sheetDataSet")
                {
                    ctObj.sheetDataSetField = CT_ExternalSheetDataSet.Parse(childNode, namespaceManager);
                }
            }

            return(ctObj);
        }
        public static CT_ExternalLink Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_ExternalLink ctObj = new CT_ExternalLink();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "externalBook")
                {
                    ctObj.externalBookField = CT_ExternalBook.Parse(childNode, namespaceManager);
                    ctObj.itemField         = ctObj.externalBookField;
                    ctObj.itemType          = ExternalLinkItem.externalBook;
                }
                else if (childNode.LocalName == "ddeLink")
                {
                    ctObj.ddeLinkField = CT_DdeLink.Parse(childNode, namespaceManager);
                    ctObj.itemField    = ctObj.ddeLinkField;
                    ctObj.itemType     = ExternalLinkItem.ddeLink;
                }
                else if (childNode.LocalName == "oleLink")
                {
                    ctObj.oleLinkField = CT_OleLink.Parse(childNode, namespaceManager);
                    ctObj.itemField    = ctObj.oleLinkField;
                    ctObj.itemType     = ExternalLinkItem.oleLink;
                }
                else if (childNode.LocalName == "extLst")
                {
                    ctObj.extLstField = CT_ExtensionList.Parse(childNode, namespaceManager);
                    ctObj.itemField   = ctObj.extLstField;
                    ctObj.itemType    = ExternalLinkItem.extLst;
                }
            }
            return(ctObj);
        }
Ejemplo n.º 3
0
        internal static CT_ExternalBook Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
                return null;
            CT_ExternalBook ctObj = new CT_ExternalBook();
            
            ctObj.idField = XmlHelper.ReadString(node.Attributes["id", namespaceManager.LookupNamespace("r")]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "sheetNames")
                    ctObj.sheetNamesField = CT_ExternalSheetNames.Parse(childNode, namespaceManager);
                else if (childNode.LocalName == "definedNames")
                    ctObj.definedNamesField = CT_ExternalDefinedNames.Parse(childNode, namespaceManager);
                else if (childNode.LocalName == "sheetDataSet")
                    ctObj.sheetDataSetField = CT_ExternalSheetDataSet.Parse(childNode, namespaceManager);
            }

            return ctObj;
        }
Ejemplo n.º 4
0
 public void AddNewExternalBook()
 {
     this.externalBookField = new CT_ExternalBook();
 }
 public void AddNewExternalBook()
 {
     this.externalBookField = new CT_ExternalBook();
 }