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