01: /* ====================================================================
02: Licensed to the Apache Software Foundation (ASF) under one or more
03: contributor license agreements. See the NOTICE file distributed with
04: this work for additional information regarding copyright ownership.
05: The ASF licenses this file to You under the Apache License, Version 2.0
06: (the "License"); you may not use this file except in compliance with
07: the License. You may obtain a copy of the License at
08:
09: http://www.apache.org/licenses/LICENSE-2.0
10:
11: Unless required by applicable law or agreed to in writing, software
12: distributed under the License is distributed on an "AS IS" BASIS,
13: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: See the License for the specific language governing permissions and
15: limitations under the License.
16: ==================================================================== */
17:
18: package org.apache.poi.hslf.model.textproperties;
19:
20: /**
21: * Definition for the common character text property bitset, which
22: * handles bold/italic/underline etc.
23: */
24: public class CharFlagsTextProp extends BitMaskTextProp {
25: public static final int BOLD_IDX = 0;
26: public static final int ITALIC_IDX = 1;
27: public static final int UNDERLINE_IDX = 2;
28: public static final int SHADOW_IDX = 4;
29: public static final int STRIKETHROUGH_IDX = 8;
30: public static final int RELIEF_IDX = 9;
31: public static final int RESET_NUMBERING_IDX = 10;
32: public static final int ENABLE_NUMBERING_1_IDX = 11;
33: public static final int ENABLE_NUMBERING_2_IDX = 12;
34:
35: public static String NAME = "char_flags";
36:
37: public CharFlagsTextProp() {
38: super (2, 0xffff, NAME, new String[] { "bold", // 0x0001
39: "italic", // 0x0002
40: "underline", // 0x0004
41: "char_unknown_1",// 0x0008
42: "shadow", // 0x0010
43: "char_unknown_2",// 0x0020
44: "char_unknown_3",// 0x0040
45: "char_unknown_4",// 0x0080
46: "strikethrough", // 0x0100
47: "relief", // 0x0200
48: "reset_numbering", // 0x0400
49: "enable_numbering_1", // 0x0800
50: "enable_numbering_2", // 0x1000
51: });
52: }
53: }
|