protected UserViewField m_FieldSpec; // was: FldSpec m_qfsp #endregion #region Construction and initialization /// ------------------------------------------------------------------------------------ /// <summary> /// Constructor /// </summary> /// <param name="hvoObj">Id of object we are editing (object that has m_flid).</param> /// <param name="flid">Id of the field we are editing.</param> /// <param name="nIndent">Level of nesting in the tree. 0 is top.</param> /// <param name="tssLabel">The label to show in the tree for this field.</param> /// <param name="tssHelp">The "What's this" help string for with this field.</param> /// <param name="parent">The owning form.</param> /// <param name="fieldSpec">The field specification that defines this field /// (null is acceptable, but not recommended).</param> /// ------------------------------------------------------------------------------------ public FwDataEntryFieldEditor(int hvoObj, int flid, int nIndent, ITsString tssLabel, ITsString tssHelp, FwDataEntryForm parent, UserViewField fieldSpec) { m_dypFontHeight = 0; Debug.Assert(parent != null); Debug.Assert(hvoObj != 0); Debug.Assert(flid != 0); // Store member variables. m_hvoObj = hvoObj; m_flid = flid; m_nIndent = nIndent; m_tssLabel = tssLabel; m_tssHelp = tssHelp; m_Parent = parent; // Make a dummy FldSpec if one wasn't supplied. if (fieldSpec != null) { m_FieldSpec = fieldSpec; } else { m_FieldSpec = new UserViewField(); } // Get writing system. int wsReal = m_FieldSpec.WritingSystemRAHvo; int wsMagic = m_FieldSpec.WsSelector; if (wsMagic != 0) { m_wsMagic = wsMagic; } else if (wsReal != 0) { m_wsMagic = wsReal; } else { m_wsMagic = LangProject.kwsAnal; } m_ws = parent.LangProj.ActualWs(m_wsMagic, m_hvoObj, m_flid); MakeCharProps(); }
protected UserViewField m_FieldSpec; // was: FldSpec m_qfsp #endregion #region Construction and initialization /// ------------------------------------------------------------------------------------ /// <summary> /// Constructor /// </summary> /// <param name="hvoObj">Id of object we are editing (object that has m_flid).</param> /// <param name="flid">Id of the field we are editing.</param> /// <param name="nIndent">Level of nesting in the tree. 0 is top.</param> /// <param name="tssLabel">The label to show in the tree for this field.</param> /// <param name="tssHelp">The "What's this" help string for with this field.</param> /// <param name="parent">The owning form.</param> /// <param name="fieldSpec">The field specification that defines this field /// (null is acceptable, but not recommended).</param> /// ------------------------------------------------------------------------------------ public FwDataEntryFieldEditor(int hvoObj, int flid, int nIndent, ITsString tssLabel, ITsString tssHelp, FwDataEntryForm parent, UserViewField fieldSpec) { m_dypFontHeight = 0; Debug.Assert(parent != null); Debug.Assert(hvoObj != 0); Debug.Assert(flid != 0); // Store member variables. m_hvoObj = hvoObj; m_flid = flid; m_nIndent = nIndent; m_tssLabel = tssLabel; m_tssHelp = tssHelp; m_Parent = parent; // Make a dummy FldSpec if one wasn't supplied. if (fieldSpec != null) m_FieldSpec = fieldSpec; else m_FieldSpec = new UserViewField(); // Get writing system. int wsReal = m_FieldSpec.WritingSystemRAHvo; int wsMagic = m_FieldSpec.WsSelector; if (wsMagic != 0) m_wsMagic = wsMagic; else if (wsReal != 0) m_wsMagic = wsReal; else m_wsMagic = LangProject.kwsAnal; m_ws = parent.LangProj.ActualWs(m_wsMagic, m_hvoObj, m_flid); MakeCharProps(); }