// // Enums.cs // // Author: Kees van Spelde // // Copyright (c) 2013-2018 Magic-Sessions. (www.magic-sessions.com) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. // namespace MsgReader.Rtf { #region Enum RtfAlignment /// /// Text alignment /// internal enum RtfAlignment { /// /// left /// Left, /// /// center /// Center, /// /// right /// Right, /// /// justify /// Justify } #endregion #region Enum RtfPictureType internal enum RtfPictureType { /// /// Source of the picture is an EMF (enhanced metafile). /// Emfblip, /// /// Source of the picture is a PNG. /// Pngblip, /// /// Source of the picture is a JPEG. /// Jpegblip, /// /// ource of the picture is QuickDraw. /// Macpict, /// /// Source of the picture is an OS/2 metafile. The N argument identifies the metafile type. The N values are described in the \pmmetafile table further on in this section. /// Pmmetafile, /// /// Source of the picture is a Windows metafile. The N argument identifies the metafile type (the default type is 1). /// Wmetafile, /// /// Source of the picture is a Windows device-independent bitmap. The N argument identifies the bitmap type, which must equal 0. /// The information to be included in RTF from a Windows device-independent bitmap is the concatenation of the BITMAPINFO structure followed by the actual pixel data. /// Dibitmap, /// /// Source of the picture is a Windows device-dependent bitmap. The N argument identifies the bitmap type (must equal 0). /// The information to be included in RTF from a Windows device-dependent bitmap is the result of the GetBitmapBits function. /// Wbitmap } #endregion #region Enum RtfObjectType internal enum RtfObjectType { Emb, Link, AutLink, Sub, Pub, Icemb, Html, Ocx } #endregion #region Enum RtfTokenType /// /// Rtf token type /// internal enum RtfTokenType { None, Keyword, ExtKeyword, Control, Text, Eof, GroupStart, GroupEnd } #endregion #region Enum RtfDomFieldMethod /// /// Rtf dom field method /// internal enum RtfDomFieldMethod { None, Dirty, Edit, Lock, Priv, } #endregion #region Enum RtfNodeType internal enum RtfNodeType { /// /// root /// Root, /// /// keyword, etc /marginl /// Keyword, /// /// external keyword node , etc. /*/keyword /// ExtKeyword, /// /// control /// Control, /// /// plain text /// Text, /// /// group , etc . { } /// Group, /// /// nothing /// None } #endregion #region Enum RtfVerticalAlignment /// /// Rtf vertical alignment /// internal enum RtfVerticalAlignment { /// /// top alignment /// Top, /// /// middle alignment /// Middle, /// /// bottom alignment /// Bottom } #endregion #region Enum RtfLevelNumberType internal enum RtfLevelNumberType { None = -10, ///Arabic (1, 2, 3) Arabic = 0, ///Uppercase Roman numeral (I, II, III) UppercaseRomanNumeral = 1, ///Lowercase Roman numeral (i, ii, iii) LowercaseRomanNumeral = 2, ///Uppercase letter (A, B, C) UppercaseLetter = 3, ///Lowercase letter (a, b, c) LowercaseLetter = 4, ///Ordinal number (1st, 2nd, 3rd) OrdinalNumber = 5, ///Cardinal text number (One, Two Three) CardinalTextNumber = 6, ///Ordinal text number (First, Second, Third) OrdinalTextNumber = 7, ///Kanji numbering without the digit character (*dbnum1) KanjiNumberingWithoutTheDigitCharacter = 10, ///Kanji numbering with the digit character (*dbnum2) KanjiNumberingWithTheDigitCharacte = 11, ///46 phonetic double_byte katakana characters (*aiueo*dbchar) // ReSharper disable InconsistentNaming _46_phonetic_double_byte_katakana_characters_aiueo_dbchar = 20, ///46 phonetic double_byte katakana characters (*iroha*dbchar) _46_phonetic_double_byte_katakana_characters_iroha_dbchar = 21, ///46 phonetic katakana characters in "aiueo" order (*aiueo) // ReSharper disable once InconsistentNaming _46_phonetic_katakana_characters_in_aiueo_order = 12, ///46 phonetic katakana characters in "iroha" order (*iroha) // ReSharper disable once InconsistentNaming _46_phonetic_katakana_characters_in_iroha_order = 13, // ReSharper restore InconsistentNaming ///Double_byte character DoubleByteCharacter = 14, ///Single_byte character SingleByteCharacter = 15, ///Kanji numbering 3 (*dbnum3) KanjiNumbering3 = 16, ///Kanji numbering 4 (*dbnum4) KanjiNumbering4 = 17, ///Circle numbering (*circlenum) CircleNumbering = 18, ///Double_byte Arabic numbering DoubleByteArabicNumbering = 19, ///Arabic with leading zero (01, 02, 03, ..., 10, 11) ArabicWithLeadingZero = 22, ///Bullet (no number at all) Bullet = 23, ///Korean numbering 2 (*ganada) KoreanNumbering2 = 24, ///Korean numbering 1 (*chosung) KoreanNumbering1 = 25, ///Chinese numbering 1 (*gb1) ChineseNumbering1 = 26, ///Chinese numbering 2 (*gb2) ChineseNumbering2 = 27, ///Chinese numbering 3 (*gb3) ChineseNumbering3 = 28, ///Chinese numbering 4 (*gb4) ChineseNumbering4 = 29, ///Chinese Zodiac numbering 1 (* zodiac1) ChineseZodiacNumbering1 = 30, ///Chinese Zodiac numbering 2 (* zodiac2) ChineseZodiacNumbering2 = 31, ///Chinese Zodiac numbering 3 (* zodiac3) ChineseZodiacNumbering3 = 32, ///Taiwanese double_byte numbering 1 TaiwaneseDoubleByteNumbering1 = 33, ///Taiwanese double_byte numbering 2 TaiwaneseDoubleByteNumbering2 = 34, ///Taiwanese double_byte numbering 3 TaiwaneseDoubleByteNumbering3 = 35, ///Taiwanese double_byte numbering 4 TaiwaneseDoubleByteNumbering4 = 36, ///Chinese double_byte numbering 1 ChineseDoubleByteNumbering1 = 37, ///Chinese double_byte numbering 2 ChineseDoubleByteNumbering2 = 38, ///Chinese double_byte numbering 3 ChineseDoubleByteNumbering3 = 39, ///Chinese double_byte numbering 4 ChineseDoubleByteNumbering4 = 40, ///Korean double_byte numbering 1 KoreanDoubleByteNumbering1 = 41, ///Korean double_byte numbering 2 KoreanDoubleByteNumbering2 = 42, ///Korean double_byte numbering 3 KoreanDoubleByteNumbering3 = 43, ///Korean double_byte numbering 4 KoreanDoubleByteNumbering4 = 44, ///Hebrew non_standard decimal HebrewNonStandardDecimal = 45, ///Arabic Alif Ba Tah ArabicAlifBaTah = 46, ///Hebrew Biblical standard HebrewBiblicalStandard = 47, ///Arabic Abjad style ArabicAbjadStyle = 48, ///No number NoNumber = 255 } #endregion #region Enum RtfHeaderFooterStyle internal enum RtfHeaderFooterStyle { AllPages, LeftPages, RightPages, FirstPage } #endregion }