public ContentMapping(string marker, string desc, string className, string fwDest, string ws, string langDescriptor, int count, int order, Sfm2Xml.ClsFieldDescription fdesc, bool isCustom) { m_marker = marker; m_description = desc; m_FWDestination = fwDest; m_writingSystem = ws; m_langDescriptor = langDescriptor; m_count = count; m_srcOrder = order; //m_excluded = false; m_destinationClass = className; m_clsFieldDescription = fdesc; // saved for now, used at end for producing map file m_LexImportField = null; if (m_clsFieldDescription == null) { if (!isCustom) m_clsFieldDescription = ClsFieldDescription; else { int shouldNotBeHere = 0; shouldNotBeHere++; m_clsFieldDescription = new Sfm2Xml.ClsCustomFieldDescription("", "", /*System.Guid.NewGuid(),*/ 0, false, 0, m_marker, " ", "string", this.m_langDescriptor, this.IsAbbrvField, this.m_FWDestination); } } m_isBeginMarker = false; }
//private bool m_excluded; //private string m_fwID; public void AddLexImportCustomField(Sfm2Xml.ILexImportField field, string uiClass) { AddLexImportField(field); (m_LexImportField as Sfm2Xml.ILexImportCustomField).UIClass = uiClass; Sfm2Xml.ClsFieldDescription xyz = LexImportField.ClsFieldDescriptionWith(ClsFieldDescription); m_clsFieldDescription = xyz; }