public override void ExportXml(StreamWriter writer, int level) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzCanvas", this.Name, false, false) + XmlUtil.Attrib("width", PngProperty.Width.ToString()) + XmlUtil.Attrib("height", PngProperty.Height.ToString(), true, false)); WzImageProperty.DumpPropertyList(writer, level, this.WzProperties); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzCanvas")); }
public void ExportXml(StreamWriter writer, bool oneFile, int level) { if (oneFile) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzImage", this.name, true)); WzImageProperty.DumpPropertyList(writer, level, WzProperties); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzImage")); } else { throw new Exception("Under Construction"); } }
public void ExportXml(StreamWriter pWriter, bool pOneFile, int pLevel) { if (pOneFile) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.OpenNamedTag("WzImage", mName, true)); DumpPropertyList(pWriter, pLevel, WzProperties); pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.CloseTag("WzImage")); } else { throw new Exception("Under Construction"); } }
public void ExportXml(string pPath, bool pOneFile) { if (!pOneFile) { throw new Exception("Under Construction"); } FileStream fs = File.Create(pPath + "/" + mName + ".xml"); StreamWriter writer = new StreamWriter(fs); int level = 0; writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzFile", mName, true)); ExportXml(writer, pOneFile, level, false); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzFile")); writer.Close(); }
public void ExportXml(string path, bool oneFile) { if (oneFile) { FileStream fs = File.Create(path + "/" + this.name + ".xml"); StreamWriter writer = new StreamWriter(fs); int level = 0; writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzFile", this.name, true)); this.wzDir.ExportXml(writer, oneFile, level, false); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzFile")); writer.Close(); } else { throw new Exception("Under Construction"); } }
internal void ExportXml(StreamWriter writer, bool oneFile, int level, bool isDirectory) { if (oneFile) { if (isDirectory) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzDirectory", this.name, true)); } foreach (WzDirectory subDir in WzDirectories) { subDir.ExportXml(writer, oneFile, level + 1, isDirectory); } foreach (WzImage subImg in WzImages) { subImg.ExportXml(writer, oneFile, level + 1); } if (isDirectory) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzDirectory")); } } }
internal void ExportXml(StreamWriter pWriter, bool pOneFile, int pLevel, bool pIsDirectory) { if (!pOneFile) { return; } if (pIsDirectory) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.OpenNamedTag("WzDirectory", mName, true)); } foreach (WzDirectory subDir in WzDirectories) { subDir.ExportXml(pWriter, pOneFile, pLevel + 1, pIsDirectory); } foreach (WzImage subImg in WzImages) { subImg.ExportXml(pWriter, pOneFile, pLevel + 1); } if (pIsDirectory) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.CloseTag("WzDirectory")); } }
public override void ExportXml(StreamWriter writer, int level) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag("WzSub", this.Name, true)); IWzImageProperty.DumpPropertyList(writer, level, WzProperties); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag("WzSub")); }
public virtual void ExportXml(StreamWriter writer, int level) { writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.OpenNamedTag(this.PropertyType.ToString(), this.Name, true)); writer.WriteLine(XmlUtil.Indentation(level) + XmlUtil.CloseTag(this.PropertyType.ToString())); }
public override void ExportXml(StreamWriter pWriter, int pLevel) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.OpenNamedTag("WzCanvas", Name, false, false) + XmlUtil.Attrib("width", PngProperty.Width.ToString()) + XmlUtil.Attrib("height", PngProperty.Height.ToString(), true, false)); DumpPropertyList(pWriter, pLevel, WzProperties); pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.CloseTag("WzCanvas")); }
public override void ExportXml(StreamWriter pWriter, int pLevel) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.OpenNamedTag("WzSub", Name, true)); DumpPropertyList(pWriter, pLevel, WzProperties); pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.CloseTag("WzSub")); }
public virtual void ExportXml(StreamWriter pWriter, int pLevel) { pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.OpenNamedTag(PropertyType.ToString(), Name, true)); pWriter.WriteLine(XmlUtil.Indentation(pLevel) + XmlUtil.CloseTag(PropertyType.ToString())); }