SIL.CoreImpl.FwLdmlAdaptor.WriteTopLevelSpecialElements C# (CSharp) Method

WriteTopLevelSpecialElements() protected method

Writes the top level special elements.
protected WriteTopLevelSpecialElements ( XmlWriter writer, XmlReader reader, WritingSystemDefinition ws ) : void
writer System.Xml.XmlWriter
reader XmlReader
ws WritingSystemDefinition
return void
		protected override void WriteTopLevelSpecialElements(XmlWriter writer, XmlReader reader, WritingSystemDefinition ws)
		{
			base.WriteTopLevelSpecialElements(writer, reader, ws);
			var fwWs = (PalasoWritingSystem)ws;
			WriteBeginSpecialElement(writer, "fw");
			WriteSpecialValue(writer, "fw", "defaultFontFeatures", fwWs.DefaultFontFeatures);
			WriteSpecialValue(writer, "fw", "graphiteEnabled", fwWs.IsGraphiteEnabled.ToString());
			WriteSpecialValue(writer, "fw", "legacyMapping", fwWs.LegacyMapping);
			WriteSpecialValue(writer, "fw", "matchedPairs", fwWs.MatchedPairs);
			WriteSpecialValue(writer, "fw", "punctuationPatterns", fwWs.PunctuationPatterns);
			WriteSpecialValue(writer, "fw", "quotationMarks", fwWs.QuotationMarks);
			WriteSpecialValue(writer, "fw", "regionName", fwWs.RegionName);
			WriteSpecialValue(writer, "fw", "scriptName", fwWs.ScriptName);
			WriteSpecialValue(writer, "fw", "validChars", fwWs.ValidChars);
			WriteSpecialValue(writer, "fw", "variantName", fwWs.VariantName);
			var legacyWs = (ILegacyWritingSystemDefinition)fwWs;
			if (!string.IsNullOrEmpty(legacyWs.WindowsLcid))
				WriteSpecialValue(writer, "fw", "windowsLCID", legacyWs.WindowsLcid);
			writer.WriteEndElement();
		}
	}