1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package org.openoffice.xmerge.converter.xml.sxw.pocketword;
25 
26 
27 /**
28  * Interface defining constants for Pocket Word attributes.
29  *
30  * @author  Mark Murnane
31  * @version 1.1
32  */
33 public interface PocketWordConstants {
34     /** File extension for Pocket Word files. */
35     public static final String FILE_EXTENSION = ".psw";
36 
37     /** Name of the default style. */
38     public static final String DEFAULT_STYLE = "Standard";
39 
40     /** Family name for Paragraph styles. */
41     public static final String PARAGRAPH_STYLE_FAMILY = "paragraph";
42 
43     /** Family name for Text styles. */
44     public static final String TEXT_STYLE_FAMILY = "text";
45 
46 
47     /**
48      * Generic Pocket Word formatting code.
49      *
50      * Formatting codes are 0xEz, where z indicates the specific format code.
51      */
52     public static final byte FORMATTING_TAG = (byte)0xE0;
53 
54     /** Font specification tag.  The two bytes following inidicate which font. */
55     public static final byte FONT_TAG = (byte)0xE5;
56 
57     /** Font size tag.  The two bytes following specify font size in points. */
58     public static final byte FONT_SIZE_TAG = (byte)0xE6;
59 
60     /** Colour tag.  Two bytes following index a 4-bit colour table. */
61     public static final byte COLOUR_TAG = (byte)0xE7;
62 
63     /** Font weight tag.  Two bytes following indicate weighting of font. */
64     public static final byte FONT_WEIGHT_TAG = (byte)0xE8;
65 
66     /** Normal font weight value. */
67     public static final byte FONT_WEIGHT_NORMAL = (byte)0x04;
68 
69     /** Fine font weight value. */
70     public static final byte FONT_WEIGHT_FINE = (byte)0x01;
71 
72     /** Bold font weight value. */
73     public static final byte FONT_WEIGHT_BOLD = (byte)0x07;
74 
75     /** Thick font weight value. */
76     public static final byte FONT_WEIGHT_THICK = (byte)0x09;
77 
78     /** Italic tag.  Single byte following indicates whether italic is on. */
79     public static final byte ITALIC_TAG = (byte)0xE9;
80 
81     /** Underline tag.  Single byte following indicates whether underline is on. */
82     public static final byte UNDERLINE_TAG = (byte)0xEA;
83 
84     /** Strikethrough tag.  Single byte following indicates whether strikethrough is on. */
85     public static final byte STRIKETHROUGH_TAG = (byte)0XEB;
86 
87     /** Highlighting tag.  Single byte following indicates whether highlighting is on. */
88     public static final byte HIGHLIGHT_TAG = (byte)0xEC;
89 
90 }
91