Exemple #1
0
 /// <summary>
 /// Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't
 /// make sense.
 /// This also implements the constraint that we don't show sense number when homograph number is suppressed.
 /// </summary>
 public bool ShowSenseNumber(HeadwordVariant hv)
 {
     if (!ShowHomographNumber(hv))
     {
         return(false);
     }
     if (hv == HeadwordVariant.ReversalCrossRef)
     {
         return(ShowSenseNumberReversal);
     }
     return(ShowSenseNumberRef);
 }
		/// <summary>
		/// Set whether homograph numbers are displayed for the specified variant.
		/// </summary>
		public void SetShowHomographNumber(HeadwordVariant hv, bool val)
		{
			m_showHomographVariants[(int)hv] = val;
		}
		/// <summary>
		/// True to display homograph numbers in the default headword method used as the header of an entry in the dictionary
		/// and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword.
		/// (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)
		/// </summary>
		public bool ShowHomographNumber(HeadwordVariant hv)
		{
			return m_showHomographVariants[(int) hv] && m_showHomographVariants[(int)HeadwordVariant.Main];
		}
		/// <summary>
		/// Provides a convenient way to get the appropriate ShowSenseNumber flag. Passing "main" doesn't
		/// make sense.
		/// This also implements the constraint that we don't show sense number when homograph number is suppressed.
		/// </summary>
		public bool ShowSenseNumber(HeadwordVariant hv)
		{
			if (!ShowHomographNumber(hv))
				return false;
			if (hv == HeadwordVariant.ReversalCrossRef)
				return ShowSenseNumberReversal;
			return ShowSenseNumberRef;
		}
Exemple #5
0
 /// <summary>
 /// Set whether homograph numbers are displayed for the specified variant.
 /// </summary>
 public void SetShowHomographNumber(HeadwordVariant hv, bool val)
 {
     m_showHomographVariants[(int)hv] = val;
 }
Exemple #6
0
 /// <summary>
 /// True to display homograph numbers in the default headword method used as the header of an entry in the dictionary
 /// and in the program UI. Note that we can only show them in cross-refs if we show them in the main headword.
 /// (One reason for this is the design of the dialog, which does not allow to specify before/after if we choose 'hide'.)
 /// </summary>
 public bool ShowHomographNumber(HeadwordVariant hv)
 {
     return(m_showHomographVariants[(int)hv] && m_showHomographVariants[(int)HeadwordVariant.Main]);
 }