Esempio n. 1
0
        public static CT_Picture Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Picture ctObj = new CT_Picture();

            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "movie")
                {
                    ctObj.movie = CT_Rel.Parse(childNode, namespaceManager);
                }
                else if (childNode.LocalName == "control")
                {
                    ctObj.control = CT_Control.Parse(childNode, namespaceManager);
                }
                else if (childNode.Prefix == "o")
                {
                    ctObj.ItemsElementName.Add(ItemsChoiceType9.office);
                    ctObj.Items.Add(childNode);
                }
                else if (childNode.Prefix == "v")
                {
                    ctObj.ItemsElementName.Add(ItemsChoiceType9.vml);
                    ctObj.Items.Add(childNode);
                }
            }
            return(ctObj);
        }
Esempio n. 2
0
        public static CT_Control Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Control ctObj = new CT_Control();

            ctObj.name    = XmlHelper.ReadString(node.Attributes["w:name"]);
            ctObj.shapeid = XmlHelper.ReadString(node.Attributes["w:shapeid"]);
            ctObj.id      = XmlHelper.ReadString(node.Attributes["r:id"]);
            return(ctObj);
        }
Esempio n. 3
0
        public static CT_Object Parse(XmlNode node, XmlNamespaceManager namespaceManager)
        {
            if (node == null)
            {
                return(null);
            }
            CT_Object ctObj = new CT_Object();

            ctObj.dxaOrig = XmlHelper.ReadULong(node.Attributes["w:dxaOrig"]);
            ctObj.dyaOrig = XmlHelper.ReadULong(node.Attributes["w:dyaOrig"]);
            foreach (XmlNode childNode in node.ChildNodes)
            {
                if (childNode.LocalName == "control")
                {
                    ctObj.control = CT_Control.Parse(childNode, namespaceManager);
                }
            }
            return(ctObj);
        }
Esempio n. 4
0
 public static CT_Control Parse(XmlNode node, XmlNamespaceManager namespaceManager)
 {
     if (node == null)
         return null;
     CT_Control ctObj = new CT_Control();
     ctObj.name = XmlHelper.ReadString(node.Attributes["w:name"]);
     ctObj.shapeid = XmlHelper.ReadString(node.Attributes["w:shapeid"]);
     ctObj.id = XmlHelper.ReadString(node.Attributes["r:id"]);
     return ctObj;
 }
Esempio n. 5
0
 public CT_Picture()
 {
     this.controlField = new CT_Control();
     this.movieField = new CT_Rel();
 }
Esempio n. 6
0
 public CT_Object()
 {
     this.controlField = new CT_Control();
 }
Esempio n. 7
0
 public CT_Object()
 {
     this.controlField = new CT_Control();
 }
Esempio n. 8
0
 public CT_Picture()
 {
     this.controlField = new CT_Control();
     this.movieField   = new CT_Rel();
 }