예제 #1
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Initializes a new instance of the <see cref="T:BulletInfo"/> class.
 /// </summary>
 /// <param name="other">The other bullet info to copy from.</param>
 /// ------------------------------------------------------------------------------------
 public BulletInfo(BulletInfo other)
 {
     m_numberScheme = other.m_numberScheme;
     m_start        = other.m_start;
     m_textBefore   = other.m_textBefore;
     m_textAfter    = other.m_textAfter;
     m_fontInfo     = new FontInfo(other.FontInfo);
 }
예제 #2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Gets the index into the bullet combo for the given type of (non-numeric) bullet.
 /// </summary>
 /// <param name="bulletType">Type of the bullet.</param>
 /// <returns>Index (zero-based) into the bullet combo</returns>
 /// ------------------------------------------------------------------------------------
 private int GetBulletIndexForType(VwBulNum bulletType)
 {
     if ((int)bulletType >= (int)VwBulNum.kvbnBulletBase)
     {
         return((int)bulletType - (int)VwBulNum.kvbnBulletBase);
     }
     return(m_kDefaultBulletIndex);
 }
예제 #3
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Initializes a new instance of the <see cref="T:BulletInfo"/> class.
		/// </summary>
		/// <param name="other">The other bullet info to copy from.</param>
		/// ------------------------------------------------------------------------------------
		public BulletInfo(BulletInfo other)
		{
			m_numberScheme = other.m_numberScheme;
			m_start = other.m_start;
			m_textBefore = other.m_textBefore;
			m_textAfter = other.m_textAfter;
			m_fontInfo = new FontInfo(other.FontInfo);
		}
예제 #4
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets the name of the given type of (numeric) bullet.
        /// </summary>
        /// <param name="bulletType">Type of the bullet.</param>
        /// <returns>Name of the type</returns>
        /// ------------------------------------------------------------------------------------
        private string GetNumberSchemeNameForType(VwBulNum bulletType)
        {
            switch (bulletType)
            {
            case VwBulNum.kvbnRomanUpper: return("Uppercase Roman numbers");

            case VwBulNum.kvbnRomanLower: return("Lowercase Roman numbers");

            case VwBulNum.kvbnLetterUpper: return("Uppercase letters");

            case VwBulNum.kvbnLetterLower: return("Lowercase letters");

            case VwBulNum.kvbnArabic01: return("Zero-prefixed Arabic numbers");

            case VwBulNum.kvbnArabic:
            default:
                return("Arabic numbers");
            }
        }
예제 #5
0
        /// ------------------------------------------------------------------------------------
        /// <summary>
        /// Gets the index into the bullet combo for the given type of (numeric) bullet.
        /// </summary>
        /// <param name="bulletType">Type of the bullet.</param>
        /// <returns>Index (zero-based) into the bullet combo</returns>
        /// ------------------------------------------------------------------------------------
        private int GetNumberSchemeIndexForType(VwBulNum bulletType)
        {
            switch (bulletType)
            {
            case VwBulNum.kvbnArabic: return(0);

            case VwBulNum.kvbnRomanUpper: return(1);

            case VwBulNum.kvbnRomanLower: return(2);

            case VwBulNum.kvbnLetterUpper: return(3);

            case VwBulNum.kvbnLetterLower: return(4);

            case VwBulNum.kvbnArabic01: return(5);

            default:
                return(m_kDefaultNumberIndex);
            }
        }
예제 #6
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Gets the name of the given type of (numeric) bullet.
		/// </summary>
		/// <param name="bulletType">Type of the bullet.</param>
		/// <returns>Name of the type</returns>
		/// ------------------------------------------------------------------------------------
		private string GetNumberSchemeNameForType(VwBulNum bulletType)
		{
			switch (bulletType)
			{
				case VwBulNum.kvbnRomanUpper: return "Uppercase Roman numbers";
				case VwBulNum.kvbnRomanLower: return "Lowercase Roman numbers";
				case VwBulNum.kvbnLetterUpper: return "Uppercase letters";
				case VwBulNum.kvbnLetterLower: return "Lowercase letters";
				case VwBulNum.kvbnArabic01: return "Zero-prefixed Arabic numbers";
				case VwBulNum.kvbnArabic:
				default:
					return "Arabic numbers";
			}
		}
예제 #7
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Gets the index into the bullet combo for the given type of (numeric) bullet.
		/// </summary>
		/// <param name="bulletType">Type of the bullet.</param>
		/// <returns>Index (zero-based) into the bullet combo</returns>
		/// ------------------------------------------------------------------------------------
		private int GetNumberSchemeIndexForType(VwBulNum bulletType)
		{
			switch (bulletType)
			{
				case VwBulNum.kvbnArabic: return 0;
				case VwBulNum.kvbnRomanUpper: return 1;
				case VwBulNum.kvbnRomanLower: return 2;
				case VwBulNum.kvbnLetterUpper: return 3;
				case VwBulNum.kvbnLetterLower: return 4;
				case VwBulNum.kvbnArabic01: return 5;
				default:
					return m_kDefaultNumberIndex;
			}
		}
예제 #8
0
		/// ------------------------------------------------------------------------------------
		/// <summary>
		/// Gets the index into the bullet combo for the given type of (non-numeric) bullet.
		/// </summary>
		/// <param name="bulletType">Type of the bullet.</param>
		/// <returns>Index (zero-based) into the bullet combo</returns>
		/// ------------------------------------------------------------------------------------
		private int GetBulletIndexForType(VwBulNum bulletType)
		{
			if ((int)bulletType >= (int)VwBulNum.kvbnBulletBase)
				return (int)bulletType - (int)VwBulNum.kvbnBulletBase;
			return m_kDefaultBulletIndex;
		}