Line 0
Link Here
|
|
|
1 |
package org.apache.poi.hslf.record; |
2 |
|
3 |
public enum TextAutoNumberSchemeEnum { |
4 |
//Name Value Meaning |
5 |
ANM_AlphaLcPeriod ((short) 0x0000), // "Lowercase Latin character followed by a period. Example: a., b., c., ..."), |
6 |
ANM_AlphaUcPeriod ((short) 0x0001), // "Uppercase Latin character followed by a period. Example: A., B., C., ..."), |
7 |
ANM_ArabicParenRight ((short) 0x0002), // "Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ..."), |
8 |
ANM_ArabicPeriod ((short) 0x0003), // "Arabic numeral followed by a period. Example: 1., 2., 3., ..."), |
9 |
ANM_RomanLcParenBoth ((short) 0x0004), // "Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ..."), |
10 |
ANM_RomanLcParenRight ((short) 0x0005), // "Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ..."), |
11 |
ANM_RomanLcPeriod ((short) 0x0006), // "Lowercase Roman numeral followed by a period. Example: i., ii., iii., ..."), |
12 |
ANM_RomanUcPeriod ((short) 0x0007), // "Uppercase Roman numeral followed by a period. Example: I., II., III., ..."), |
13 |
ANM_AlphaLcParenBoth ((short) 0x0008), // "Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ..."), |
14 |
ANM_AlphaLcParenRight ((short) 0x0009), // "Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ..."), |
15 |
ANM_AlphaUcParenBoth ((short) 0x000A), // "Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ..."), |
16 |
ANM_AlphaUcParenRight ((short) 0x000B), // "Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ..."), |
17 |
ANM_ArabicParenBoth ((short) 0x000C), // "Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ..."), |
18 |
ANM_ArabicPlain ((short) 0x000D), // "Arabic numeral. Example: 1, 2, 3, ..."), |
19 |
ANM_RomanUcParenBoth ((short) 0x000E), // "Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ..."), |
20 |
ANM_RomanUcParenRight ((short) 0x000F), // "Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), ..."), |
21 |
ANM_ChsPlain ((short) 0x0010), // "Simplified Chinese."), |
22 |
ANM_ChsPeriod ((short) 0x0011), // "Simplified Chinese with single-byte period."), |
23 |
ANM_CircleNumDBPlain ((short) 0x0012), // "Double byte circle numbers."), |
24 |
ANM_CircleNumWDBWhitePlain ((short) 0x0013), // "Wingdings white circle numbers."), |
25 |
ANM_CircleNumWDBBlackPlain ((short) 0x0014), // "Wingdings black circle numbers."), |
26 |
ANM_ChtPlain ((short) 0x0015), // "Traditional Chinese."), |
27 |
ANM_ChtPeriod ((short) 0x0016), // "Traditional Chinese with single-byte period."), |
28 |
ANM_Arabic1Minus ((short) 0x0017), // "Bidi Arabic 1 (AraAlpha) with ANSI minus symbol."), |
29 |
ANM_Arabic2Minus ((short) 0x0018), // "Bidi Arabic 2 (AraAbjad) with ANSI minus symbol."), |
30 |
ANM_Hebrew2Minus ((short) 0x0019), // "Bidi Hebrew 2 with ANSI minus symbol."), |
31 |
ANM_JpnKorPlain ((short) 0x001A), // "Japanese/Korean."), |
32 |
ANM_JpnKorPeriod ((short) 0x001B), // "Japanese/Korean with single-byte period."), |
33 |
ANM_ArabicDbPlain ((short) 0x001C), // "Double-byte Arabic numbers."), |
34 |
ANM_ArabicDbPeriod ((short) 0x001D), // "Double-byte Arabic numbers with double-byte period."), |
35 |
ANM_ThaiAlphaPeriod ((short) 0x001E), // "Thai alphabetic character followed by a period."), |
36 |
ANM_ThaiAlphaParenRight ((short) 0x001F), // "Thai alphabetic character followed by a closing parenthesis."), |
37 |
ANM_ThaiAlphaParenBoth ((short) 0x0020), // "Thai alphabetic character enclosed by parentheses."), |
38 |
ANM_ThaiNumPeriod ((short) 0x0021), // "Thai numeral followed by a period."), |
39 |
ANM_ThaiNumParenRight ((short) 0x0022), // "Thai numeral followed by a closing parenthesis."), |
40 |
ANM_ThaiNumParenBoth ((short) 0x0023), // "Thai numeral enclosed in parentheses."), |
41 |
ANM_HindiAlphaPeriod ((short) 0x0024), // "Hindi alphabetic character followed by a period."), |
42 |
ANM_HindiNumPeriod ((short) 0x0025), // "Hindi numeric character followed by a period."), |
43 |
ANM_JpnChsDBPeriod ((short) 0x0026), // "Japanese with double-byte period."), |
44 |
ANM_HindiNumParenRight ((short) 0x0027), // "Hindi numeric character followed by a closing parenthesis."), |
45 |
ANM_HindiAlpha1Period ((short) 0x0028); // "Hindi alphabetic character followed by a period."); |
46 |
|
47 |
private final short value; |
48 |
private TextAutoNumberSchemeEnum(final short code) { |
49 |
this.value = code; |
50 |
} |
51 |
private short getValue() { return value; } |
52 |
public String getDescription() { |
53 |
return TextAutoNumberSchemeEnum.getDescription(this); |
54 |
} |
55 |
public static String getDescription(final TextAutoNumberSchemeEnum code) { |
56 |
switch (code) { |
57 |
case ANM_AlphaLcPeriod : return "Lowercase Latin character followed by a period. Example: a., b., c., ..."; |
58 |
case ANM_AlphaUcPeriod : return "Uppercase Latin character followed by a period. Example: A., B., C., ..."; |
59 |
case ANM_ArabicParenRight : return "Arabic numeral followed by a closing parenthesis. Example: 1), 2), 3), ..."; |
60 |
case ANM_ArabicPeriod : return "Arabic numeral followed by a period. Example: 1., 2., 3., ..."; |
61 |
case ANM_RomanLcParenBoth : return "Lowercase Roman numeral enclosed in parentheses. Example: (i), (ii), (iii), ..."; |
62 |
case ANM_RomanLcParenRight : return "Lowercase Roman numeral followed by a closing parenthesis. Example: i), ii), iii), ..."; |
63 |
case ANM_RomanLcPeriod : return "Lowercase Roman numeral followed by a period. Example: i., ii., iii., ..."; |
64 |
case ANM_RomanUcPeriod : return "Uppercase Roman numeral followed by a period. Example: I., II., III., ..."; |
65 |
case ANM_AlphaLcParenBoth : return "Lowercase alphabetic character enclosed in parentheses. Example: (a), (b), (c), ..."; |
66 |
case ANM_AlphaLcParenRight : return "Lowercase alphabetic character followed by a closing parenthesis. Example: a), b), c), ..."; |
67 |
case ANM_AlphaUcParenBoth : return "Uppercase alphabetic character enclosed in parentheses. Example: (A), (B), (C), ..."; |
68 |
case ANM_AlphaUcParenRight : return "Uppercase alphabetic character followed by a closing parenthesis. Example: A), B), C), ..."; |
69 |
case ANM_ArabicParenBoth : return "Arabic numeral enclosed in parentheses. Example: (1), (2), (3), ..."; |
70 |
case ANM_ArabicPlain : return "Arabic numeral. Example: 1, 2, 3, ..."; |
71 |
case ANM_RomanUcParenBoth : return "Uppercase Roman numeral enclosed in parentheses. Example: (I), (II), (III), ..."; |
72 |
case ANM_RomanUcParenRight : return "Uppercase Roman numeral followed by a closing parenthesis. Example: I), II), III), ..."; |
73 |
case ANM_ChsPlain : return "Simplified Chinese."; |
74 |
case ANM_ChsPeriod : return "Simplified Chinese with single-byte period."; |
75 |
case ANM_CircleNumDBPlain : return "Double byte circle numbers."; |
76 |
case ANM_CircleNumWDBWhitePlain : return "Wingdings white circle numbers."; |
77 |
case ANM_CircleNumWDBBlackPlain : return "Wingdings black circle numbers."; |
78 |
case ANM_ChtPlain : return "Traditional Chinese."; |
79 |
case ANM_ChtPeriod : return "Traditional Chinese with single-byte period."; |
80 |
case ANM_Arabic1Minus : return "Bidi Arabic 1 (AraAlpha) with ANSI minus symbol."; |
81 |
case ANM_Arabic2Minus : return "Bidi Arabic 2 (AraAbjad) with ANSI minus symbol."; |
82 |
case ANM_Hebrew2Minus : return "Bidi Hebrew 2 with ANSI minus symbol."; |
83 |
case ANM_JpnKorPlain : return "Japanese/Korean."; |
84 |
case ANM_JpnKorPeriod : return "Japanese/Korean with single-byte period."; |
85 |
case ANM_ArabicDbPlain : return "Double-byte Arabic numbers."; |
86 |
case ANM_ArabicDbPeriod : return "Double-byte Arabic numbers with double-byte period."; |
87 |
case ANM_ThaiAlphaPeriod : return "Thai alphabetic character followed by a period."; |
88 |
case ANM_ThaiAlphaParenRight : return "Thai alphabetic character followed by a closing parenthesis."; |
89 |
case ANM_ThaiAlphaParenBoth : return "Thai alphabetic character enclosed by parentheses."; |
90 |
case ANM_ThaiNumPeriod : return "Thai numeral followed by a period."; |
91 |
case ANM_ThaiNumParenRight : return "Thai numeral followed by a closing parenthesis."; |
92 |
case ANM_ThaiNumParenBoth : return "Thai numeral enclosed in parentheses."; |
93 |
case ANM_HindiAlphaPeriod : return "Hindi alphabetic character followed by a period."; |
94 |
case ANM_HindiNumPeriod : return "Hindi numeric character followed by a period."; |
95 |
case ANM_JpnChsDBPeriod : return "Japanese with double-byte period."; |
96 |
case ANM_HindiNumParenRight : return "Hindi numeric character followed by a closing parenthesis."; |
97 |
case ANM_HindiAlpha1Period : return "Hindi alphabetic character followed by a period."; |
98 |
default : return "Unknown Numbered Scheme"; |
99 |
} |
100 |
} |
101 |
public static TextAutoNumberSchemeEnum valueOf(short autoNumberScheme) { |
102 |
for (TextAutoNumberSchemeEnum item: TextAutoNumberSchemeEnum.values()) { |
103 |
if (autoNumberScheme == item.getValue()) { |
104 |
return item; |
105 |
} |
106 |
} |
107 |
return null; |
108 |
} |
109 |
} |