public void WriteXML(MashupWriteContext context) { context.writer.WriteStartElement(Legend.GetXMLTag()); context.WriteIdentityAttr(this); context.writer.WriteAttributeString("DisplayName", this._displayName); context.writer.WriteAttributeString("RenderedSize", this.renderedSize.ToString(CultureInfo.InvariantCulture)); if (this._latentRegionHolder.renderRegion != null) { this._latentRegionHolder.renderRegion.WriteXML(context.writer); } if (this._lastView != null) { this._lastView.WriteXML(context); } context.writer.WriteEndElement(); }
public void WriteXML(MashupWriteContext wc) { wc.writer.WriteStartElement("Layer"); wc.writer.WriteAttributeString("DisplayName", this._displayName); wc.writer.WriteAttributeString("Expanded", this._expanded.ToString(CultureInfo.InvariantCulture)); wc.writer.WriteAttributeString("SimulateTransparencyWithVEBackingLayer", this._simulateTransparencyWithVEBackingLayer); wc.WriteIdentityAttr(this); foreach (SourceMap current in this) { current.WriteXML(wc); } if (this.lastView != null) { this._lastView.WriteXML(wc.writer); } this._renderClip.WriteXML(wc); wc.writer.WriteEndElement(); }
public void WriteXML(MashupWriteContext wc) { var writer = wc.writer; writer.WriteStartElement("SourceMap"); writer.WriteAttributeString("DisplayName", displayName); writer.WriteAttributeString("Expanded", _expanded.ToString(CultureInfo.InvariantCulture)); wc.WriteIdentityAttr(this); documentFuture.WriteXML(wc, filenameContextDelegate()); sourceMapInfo.WriteXML(writer); sourceMapRenderOptions.WriteXML(writer); transparencyOptions.WriteXML(writer); if (_lastView != null) { _lastView.WriteXML(writer); } writer.WriteStartElement("SnapView"); writer.WriteAttributeString("Context", "Source"); sourceSnap.WriteXML(writer); writer.WriteEndElement(); writer.WriteStartElement("SnapView"); writer.WriteAttributeString("Context", "Reference"); referenceSnap.WriteXML(writer); writer.WriteEndElement(); writer.WriteStartElement("SnapZoom"); writer.WriteAttributeString("Context", "Source"); writer.WriteAttributeString("Zoom", sourceSnapZoom.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); writer.WriteStartElement("SnapZoom"); writer.WriteAttributeString("Context", "Reference"); writer.WriteAttributeString("Zoom", referenceSnapZoom.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); registration.WriteXML(writer); if (renderRegion != null) { renderRegion.WriteXML(writer); } legendList.WriteXML(wc); writer.WriteEndElement(); }
public void WriteXML(MashupWriteContext wc) { XmlTextWriter writer = wc.writer; writer.WriteStartElement("SourceMap"); writer.WriteAttributeString("DisplayName", this.displayName); writer.WriteAttributeString("Expanded", this._expanded.ToString(CultureInfo.InvariantCulture)); wc.WriteIdentityAttr(this); this._documentFuture.WriteXML(wc, this.filenameContextDelegate()); this._sourceMapInfo.WriteXML(writer); this._sourceMapRenderOptions.WriteXML(writer); this._transparencyOptions.WriteXML(writer); if (this._lastView != null) { this._lastView.WriteXML(writer); } writer.WriteStartElement("SnapView"); writer.WriteAttributeString("Context", "Source"); this.sourceSnap.WriteXML(writer); writer.WriteEndElement(); writer.WriteStartElement("SnapView"); writer.WriteAttributeString("Context", "Reference"); this.referenceSnap.WriteXML(writer); writer.WriteEndElement(); writer.WriteStartElement("SnapZoom"); writer.WriteAttributeString("Context", "Source"); writer.WriteAttributeString("Zoom", this.sourceSnapZoom.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); writer.WriteStartElement("SnapZoom"); writer.WriteAttributeString("Context", "Reference"); writer.WriteAttributeString("Zoom", this.referenceSnapZoom.ToString(CultureInfo.InvariantCulture)); writer.WriteEndElement(); this.registration.WriteXML(writer); if (this.renderRegion != null) { this.renderRegion.WriteXML(writer); } this.legendList.WriteXML(wc); writer.WriteEndElement(); }