WP5FileStructure.h

Go to the documentation of this file.
00001 /* libwpd
00002  * Copyright (C) 2003 William Lachance (wrlach@gmail.com)
00003  * Copyright (C) 2003 Marc Maurer (uwog@uwog.net)
00004  * Copyright (C) 2005-2007 Fridrich Strba (fridrich.strba@bluewin.ch)
00005  * Copyright (C) 2007 Novell, Inc. (http://www.novell.com)
00006  *  
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00020  *
00021  * For further information visit http://libwpd.sourceforge.net
00022  */
00023 
00024 /* "This product is not manufactured, approved, or supported by 
00025  * Corel Corporation or Corel Corporation Limited."
00026  */
00027 
00028 #ifndef WP5FILESTRUCTURE_H
00029 #define WP5FILESTRUCTURE_H
00030 
00031 /* size of the fixed length functiongroups 0xC0 to 0xCF */
00032 extern int WP5_FIXED_LENGTH_FUNCTION_GROUP_SIZE[16]; 
00033 
00034 #define WP5_ATTRIBUTE_EXTRA_LARGE 0x00
00035 #define WP5_ATTRIBUTE_VERY_LARGE 0x01
00036 #define WP5_ATTRIBUTE_LARGE 0x02
00037 #define WP5_ATTRIBUTE_SMALL_PRINT 0x03
00038 #define WP5_ATTRIBUTE_FINE_PRINT 0x04
00039 #define WP5_ATTRIBUTE_SUPERSCRIPT 0x05
00040 #define WP5_ATTRIBUTE_SUBSCRIPT 0x06
00041 #define WP5_ATTRIBUTE_OUTLINE 0x07
00042 #define WP5_ATTRIBUTE_ITALICS 0x08
00043 #define WP5_ATTRIBUTE_SHADOW 0x09
00044 #define WP5_ATTRIBUTE_REDLINE 0x0A
00045 #define WP5_ATTRIBUTE_DOUBLE_UNDERLINE 0xB
00046 #define WP5_ATTRIBUTE_BOLD 0x0C
00047 #define WP5_ATTRIBUTE_STRIKE_OUT 0x0D
00048 #define WP5_ATTRIBUTE_UNDERLINE 0x0E
00049 #define WP5_ATTRIBUTE_SMALL_CAPS 0x0F
00050 
00051 /* Genearal data packet list */
00052 #define WP50_LIST_FONTS_USED_PACKET 0x02
00053 #define WP5_FONT_NAME_STRING_POOL_PACKET 0x07
00054 #define WP5_GRAPHICS_INFORMATION_PACKET 0x08
00055 #define WP51_LIST_FONTS_USED_PACKET 0x0F
00056 
00057 /* Main function group list  */
00058 #define WP5_TOP_EXTENDED_CHARACTER 0xC0
00059 #define WP5_TOP_TAB_GROUP 0xC1
00060 #define WP5_TOP_INDENT_GROUP 0xC2
00061 #define WP5_TOP_ATTRIBUTE_ON 0xC3
00062 #define WP5_TOP_ATTRIBUTE_OFF 0xC4
00063 #define WP5_TOP_PAGE_FORMAT_GROUP 0xD0
00064 #define WP5_TOP_FONT_GROUP 0xD1
00065 #define WP5_TOP_DEFINITION_GROUP 0xD2
00066 #define WP5_TOP_FORMAT_GROUP 0xD4
00067 #define WP5_TOP_HEADER_FOOTER_GROUP 0xD5
00068 #define WP5_TOP_FOOTNOTE_ENDNOTE_GROUP 0xD6
00069 #define WP5_TOP_BOX_GROUP 0xDA
00070 #define WP5_TOP_TABLE_EOL_GROUP 0xDC
00071 #define WP5_TOP_TABLE_EOP_GROUP 0xDD
00072 
00073 /* Page Format Group */
00074 #define WP5_TOP_PAGE_FORMAT_GROUP_LEFT_RIGHT_MARGIN_SET 0x01
00075 #define WP5_TOP_PAGE_FORMAT_GROUP_SPACING_SET 0x02
00076 #define WP5_TOP_PAGE_FORMAT_GROUP_TAB_SET 0x04
00077 #define WP5_TOP_PAGE_FORMAT_GROUP_TOP_BOTTOM_MARGIN_SET 0x05
00078 #define WP5_TOP_PAGE_FORMAT_GROUP_JUSTIFICATION 0x06
00079 #define WP5_TOP_PAGE_FORMAT_GROUP_SUPPRESS_PAGE_CHARACTERISTICS 0x07
00080 #define WP5_TOP_PAGE_FORMAT_GROUP_FORM 0x0B
00081 
00082 #define WP5_PAGE_GROUP_SUPPRESS_PAGE_NUMBER 0x01
00083 #define WP5_PAGE_GROUP_PAGE_NUMBER_TO_BOTTOM 0x02
00084 #define WP5_PAGE_GROUP_SUPPRESS_HEADER_A 0x04
00085 #define WP5_PAGE_GROUP_SUPPRESS_HEADER_B 0x08
00086 #define WP5_PAGE_GROUP_SUPPRESS_FOOTER_A 0x10
00087 #define WP5_PAGE_GROUP_SUPPRESS_FOOTER_B 0x20
00088 #define WP5_PAGE_GROUP_SUPPRESS_CODE_NOT_AT_TOP_OF_PAGE 0x80
00089 
00090 /* Font Group */
00091 #define WP5_TOP_FONT_GROUP_COLOR 0x00
00092 #define WP5_TOP_FONT_GROUP_FONT_CHANGE 0x01
00093 
00094 /* Header Footer Group */
00095 #define WP5_HEADER_FOOTER_GROUP_HEADER_A 0x00
00096 #define WP5_HEADER_FOOTER_GROUP_HEADER_B 0x01
00097 #define WP5_HEADER_FOOTER_GROUP_FOOTER_A 0x02
00098 #define WP5_HEADER_FOOTER_GROUP_FOOTER_B 0x03
00099 
00100 #define WP5_HEADER_FOOTER_GROUP_ALL_BIT 0x01
00101 #define WP5_HEADER_FOOTER_GROUP_ODD_BIT 0x02
00102 #define WP5_HEADER_FOOTER_GROUP_EVEN_BIT 0x04
00103 
00104 /* Format Group */
00105 #define WP5_FORMAT_GROUP_END_OF_PAGE 0x00
00106 
00107 /* Footnote Endnote Group */
00108 #define WP5_FOOTNOTE_ENDNOTE_GROUP_FOOTNOTE 0x00
00109 #define WP5_FOOTNOTE_ENDNOTE_GROUP_ENDNOTE 0x01
00110 
00111 /* Box Group */
00112 #define WP5_TOP_BOX_GROUP_FIGURE 0x00
00113 #define WP5_TOP_BOX_GROUP_TABLE 0x01
00114 #define WP5_TOP_BOX_GROUP_TEXT_BOX 0x02
00115 #define WP5_TOP_BOX_GROUP_USER_DEFINED_BOX 0x03
00116 #define WP5_TOP_BOX_GROUP_EQUATION 0x04
00117 #define WP5_TOP_BOX_GROUP_HORIZONTAL_LINE 0x05
00118 #define WP5_TOP_BOX_GROUP_VERTICAL_LINE 0x06
00119 
00120 /* Definition Group */
00121 #define WP5_TOP_DEFINITION_GROUP_DEFINE_TABLES 0x0B
00122 
00123 /* Table EOL Group */
00124 #define WP5_TABLE_EOL_GROUP_BEGINNING_OF_COLUMN_AT_EOL 0x00
00125 #define WP5_TABLE_EOL_GROUP_BEGINNING_OF_ROW_AT_EOL 0x01
00126 #define WP5_TABLE_EOL_GROUP_TABLE_OFF_AT_EOL 0x02
00127 
00128 /* Table EOP Group */
00129 #define WP5_TABLE_EOP_GROUP_BEGINNING_OF_ROW_AT_EOP 0x01
00130 #define WP5_TABLE_EOP_GROUP_TABLE_OFF_AT_EOP 0x02
00131 #define WP5_TABLE_EOP_GROUP_BEGINNING_OF_ROW_AT_HARD_EOP 0x03
00132 
00133 /* Extended Character */
00134 #define WP5_INTERNATIONAL_1_CHARACTER_SET 1
00135 #define WP5_INTERNATIONAL_2_CHARACTER_SET 2
00136 #define WP5_BOX_DRAWING_CHARACTER_SET 3
00137 #define WP5_TYPOGRAPHIC_SYMBOL_CHARACTER_SET 4
00138 #define WP5_ICONIC_SYMBOL_CHARACTER_SET 5
00139 #define WP5_MATH_SCIENTIFIC_CHARACTER_SET 6
00140 #define WP5_MATH_SCIENTIFIC_EXTENDED_CHARACTER_SET 7
00141 #define WP5_GREEK_CHARACTER_SET 8
00142 #define WP5_HEBREW_CHARACTER_SET 9
00143 #define WP5_CYRILLIC_CHARACTER_SET 10
00144 #define WP5_JAPANESE_CHARACTER_SET 11
00145 #define WP5_ARABIC_CHARACTER_SET 13
00146 #define WP5_ARABIC_SCRIPT_CHARACTER_SET 14
00147 
00148 /* Tab Group */
00149 #define WP5_TAB_GROUP_LEFT_TAB 0x00
00150 #define WP5_TAB_GROUP_DECIMAL_TAB 0x08
00151 #define WP5_TAB_GROUP_RIGHT_TAB 0x09
00152 #define WP5_TAB_GROUP_FLUSH_RIGHT 0x0C
00153 #define WP5_TAB_GROUP_BACK_TAB 0x10
00154 #define WP5_TAB_GROUP_CENTER_ON_CURRENT_POSITION 0x18
00155 #define WP5_TAB_GROUP_CENTER_TAB 0x19
00156 #define WP5_TAB_GROUP_CENTER_ON_MARGINS 0x1C
00157 
00158 /* Indent Group */
00159 #define WP5_INDENT_GROUP_LEFT_INDENT 0x00
00160 #define WP5_INDENT_GROUP_LEFT_RIGHT_INDENT 0x01
00161 
00162 
00163 #endif /* WP5FILESTRUCTURE_H */