npoi
60 строк · 1.6 Кб
1using NPOI.OpenXml4Net.Util;2using System;3using System.IO;4using System.Xml;5using System.Xml.Serialization;6
7namespace NPOI.OpenXmlFormats.Vml.Presentation8{
9
10
11[Serializable]12
13[System.ComponentModel.DesignerCategory("code")]14[XmlType(Namespace="urn:schemas-microsoft-com:office:powerpoint")]15[XmlRoot(Namespace="urn:schemas-microsoft-com:office:powerpoint", IsNullable=true)]16public class CT_Empty {17}18
19
20[Serializable]21
22[System.ComponentModel.DesignerCategory("code")]23[XmlType(Namespace="urn:schemas-microsoft-com:office:powerpoint")]24[XmlRoot(Namespace="urn:schemas-microsoft-com:office:powerpoint", IsNullable=true)]25public class CT_Rel {26
27private string idField;28
29[XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "http://schemas.openxmlformats.org/officeDocument/2006/relationships")]30public string id31{32get {33return this.idField;34}35set {36this.idField = value;37}38}39
40public static CT_Rel Parse(XmlNode node, XmlNamespaceManager namespaceManager)41{42if (node == null)43return null;44CT_Rel ctObj = new CT_Rel();45ctObj.id = XmlHelper.ReadString(node.Attributes["r:id"]);46return ctObj;47}48
49
50
51internal void Write(StreamWriter sw, string nodeName)52{53sw.Write(string.Format("<p:{0}", nodeName));54XmlHelper.WriteAttribute(sw, "r:id", this.id);55sw.Write(">");56sw.Write(string.Format("</p:{0}>", nodeName));57}58
59}60}
61