SIL.FieldWorks.IText.InterlinearExporter.Create C# (CSharp) Method

Create() public static method

public static Create ( string mode, SIL.FieldWorks.FDO.FdoCache cache, XmlWriter writer, ICmObject objRoot, SIL.FieldWorks.IText.InterlinLineChoices lineChoices, InterlinVc vc ) : InterlinearExporter
mode string
cache SIL.FieldWorks.FDO.FdoCache
writer System.Xml.XmlWriter
objRoot ICmObject
lineChoices SIL.FieldWorks.IText.InterlinLineChoices
vc InterlinVc
return InterlinearExporter
		public static InterlinearExporter Create(string mode, FdoCache cache, XmlWriter writer, ICmObject objRoot,
			InterlinLineChoices lineChoices, InterlinVc vc)
		{
			if (mode != null && mode.ToLowerInvariant() == "elan")
			{
				return new InterlinearExporterForElan(cache, writer, objRoot, lineChoices, vc);
			}
			else
			{
				return new InterlinearExporter(cache, writer, objRoot, lineChoices, vc);
			}
		}

Usage Example

Ejemplo n.º 1
0
        internal bool ExportPhase1(string mode, out InterlinearExporter exporter, string fileName)
        {
            CheckDisposed();
            exporter = null;
            XmlWriter writer = new XmlTextWriter(fileName, System.Text.Encoding.UTF8);

            exporter = InterlinearExporter.Create(mode, m_cache, writer, m_hvos[0], m_vc.LineChoices, m_vc, m_tssTextName, m_tssTextAbbreviation);
            exporter.WriteBeginDocument();
            exporter.ExportDisplay();
            for (int i = 1; i < m_hvos.Count; ++i)
            {
                exporter.SetRootObject(m_hvos[i]);
                exporter.ExportDisplay();
            }
            exporter.WriteEndDocument();
            writer.Close();
            return(true);
        }
All Usage Examples Of SIL.FieldWorks.IText.InterlinearExporter::Create