WP3FileStructure.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) 2004 Marc Maurer (uwog@uwog.net)
00004  * Copyright (C) 2004-2005 Fridrich Strba (fridrich.strba@bluewin.ch)
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Library General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Library General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Library General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
00019  *
00020  * For further information visit http://libwpd.sourceforge.net
00021  */
00022 
00023 /* "This product is not manufactured, approved, or supported by
00024  * Corel Corporation or Corel Corporation Limited."
00025  */
00026 
00027 #ifndef WP3FILESTRUCTURE_H
00028 #define WP3FILESTRUCTURE_H
00029 
00030 // size of the fixed length function groups 0xC0 to 0xCF
00031 extern int WP3_FIXED_LENGTH_FUNCTION_GROUP_SIZE[16];
00032 
00033 /* Main function group list  */
00034 
00035 #define WP3_EXTENDED_CHARACTER_GROUP 0xC0
00036 #define WP3_TAB_GROUP 0xC1
00037 #define WP3_INDENT_GROUP 0xC2
00038 #define WP3_ATTRIBUTE_GROUP 0xC3
00039 
00040 #define WP3_DOUBLE_BYTE_SCRIPT_CHARACTER_GROUP 0xC8
00041 
00042 #define WP3_UNDO_GROUP 0xCD
00043 
00044 #define WP3_PAGE_FORMAT_GROUP 0xD0
00045 #define WP3_FONT_GROUP 0xD1
00046 #define WP3_DEFINITION_GROUP 0xD2
00047 
00048 #define WP3_HEADER_FOOTER_GROUP 0xD5
00049 #define WP3_FOOTNOTE_ENDNOTE_GROUP 0xD6
00050 
00051 #define WP3_DISPLAY_GROUP 0xD8
00052 #define WP3_MISCELLANEOUS_GROUP 0xD9
00053 #define WP3_WINDOW_GROUP 0xDA
00054 #define WP3_STYLE_GROUP 0xDB
00055 #define WP3_END_OF_LINE_PAGE_GROUP 0xDC
00056 
00057 #define WP3_TABLES_GROUP 0xE2
00058 
00059 /* Tab Group */
00060 #define WP3_TAB_GROUP_TAB 0x00
00061 #define WP3_TAB_GROUP_CENTER 0x01
00062 #define WP3_TAB_GROUP_FLUSH_RIGHT 0x02
00063 #define WP3_TAB_GROUP_BACK_TAB 0x03
00064 #define WP3_TAB_GROUP_CHARACTER_KERNING 0x04
00065 #define WP3_TAB_GROUP_BAR_TAB 0x05
00066 #define WP3_TAB_GROUP_FIXED_TAB 0x06
00067 
00068 /* Indent Group */
00069 #define WP3_INDENT_GROUP_LEFT_INDENT 0x00
00070 #define WP3_INDENT_GROUP_LEFT_RIGHT_INDENT 0x01
00071 
00072 /* Attribute Group */
00073 #define WP3_ATTRIBUTE_BOLD 0
00074 #define WP3_ATTRIBUTE_ITALICS 1
00075 #define WP3_ATTRIBUTE_UNDERLINE 2
00076 #define WP3_ATTRIBUTE_OUTLINE 3
00077 #define WP3_ATTRIBUTE_SHADOW 4
00078 // 5 to 7 is not documented
00079 #define WP3_ATTRIBUTE_REDLINE 8
00080 #define WP3_ATTRIBUTE_STRIKE_OUT 9
00081 #define WP3_ATTRIBUTE_SUBSCRIPT 10
00082 #define WP3_ATTRIBUTE_SUPERSCRIPT 11
00083 #define WP3_ATTRIBUTE_DOUBLE_UNDERLINE 12
00084 #define WP3_ATTRIBUTE_EXTRA_LARGE 13
00085 #define WP3_ATTRIBUTE_VERY_LARGE 14
00086 #define WP3_ATTRIBUTE_LARGE 15
00087 #define WP3_ATTRIBUTE_SMALL_PRINT 16
00088 #define WP3_ATTRIBUTE_FINE_PRINT 17
00089 #define WP3_ATTRIBUTE_SMALL_CAPS 18
00090 
00091 /* Page Format Group */
00092 #define WP3_PAGE_FORMAT_GROUP_HORIZONTAL_MARGINS 0x01
00093 #define WP3_PAGE_FORMAT_GROUP_LINE_SPACING 0x02
00094 #define WP3_PAGE_FORMAT_GROUP_SET_TABS 0x04
00095 #define WP3_PAGE_FORMAT_GROUP_VERTICAL_MARGINS 0x05
00096 #define WP3_PAGE_FORMAT_GROUP_JUSTIFICATION_MODE 0x06
00097 #define WP3_PAGE_FORMAT_GROUP_SUPPRESS_PAGE 0x07
00098 #define WP3_PAGE_FORMAT_GROUP_INDENT_AT_BEGINNING_OF_PARAGRAPH 0x0C
00099 
00100 #define WP3_PAGE_GROUP_SUPPRESS_PAGE_NUMBER 0x01
00101 #define WP3_PAGE_GROUP_PAGE_NUMBER_TO_BOTTOM 0x02
00102 #define WP3_PAGE_GROUP_SUPPRESS_HEADER_A 0x04
00103 #define WP3_PAGE_GROUP_SUPPRESS_HEADER_B 0x08
00104 #define WP3_PAGE_GROUP_SUPPRESS_FOOTER_A 0x10
00105 #define WP3_PAGE_GROUP_SUPPRESS_FOOTER_B 0x20
00106 #define WP3_PAGE_GROUP_SUPPRESS_WATERMARK_A 0x40
00107 #define WP3_PAGE_GROUP_SUPPRESS_WATERMARK_B 0x80
00108 
00109 /* Font Group */
00110 #define WP3_FONT_GROUP_SET_TEXT_COLOR 0x00
00111 #define WP3_FONT_GROUP_SET_TEXT_FONT 0x01
00112 #define WP3_FONT_GROUP_SET_FONT_SIZE 0x02
00113 
00114 /* Definition Group */
00115 #define WP3_DEFINITION_GROUP_SET_COLUMNS 0x01
00116 
00117 /* Header Footer Group */
00118 #define WP3_HEADER_FOOTER_GROUP_HEADER_A 0x00
00119 #define WP3_HEADER_FOOTER_GROUP_HEADER_B 0x01
00120 #define WP3_HEADER_FOOTER_GROUP_FOOTER_A 0x02
00121 #define WP3_HEADER_FOOTER_GROUP_FOOTER_B 0x03
00122 #define WP3_HEADER_FOOTER_GROUP_WATERMARK_A 0x04
00123 #define WP3_HEADER_FOOTER_GROUP_WATERMARK_B 0x05
00124 
00125 #define WP3_HEADER_FOOTER_GROUP_EVEN_BIT 0x01
00126 #define WP3_HEADER_FOOTER_GROUP_ODD_BIT 0x02
00127 
00128 /* Footnote/Endnote Group */
00129 #define WP3_FOOTNOTE_ENDNOTE_GROUP_FOOTNOTE_FUNCTION 0x00
00130 #define WP3_FOOTNOTE_ENDNOTE_GROUP_ENDNOTE_FUNCTION 0x01
00131 
00132 /* Display Group */
00133 #define WP3_DISPLAY_GROUP_INSERT_DATE_TIME 0x00
00134 #define WP3_DISPLAY_GROUP_INSERT_PARAGRAPH_NUMBER 0x01
00135 #define WP3_DISPLAY_GROUP_OVERSTRIKE_TEXT 0x02
00136 #define WP3_DISPLAY_GROUP_SEARCH_CHARACTER 0x03
00137 #define WP3_DISPLAY_GROUP_INSERT_BOX_NUMBER 0x04
00138 #define WP3_DISPLAY_GROUP_INSERT_CHAPTER_NUMBER 0x05
00139 #define WP3_DISPLAY_GROUP_INSERT_PAGE_NUMBER 0x06
00140 #define WP3_DISPLAY_GROUP_INSERT_FOOTNOTE_NUMBER 0x07
00141 #define WP3_DISPLAY_GROUP_INSERT_ENDNOTE_NUMBER 0x08
00142 
00143 /* Miscellaneous Group */
00144 
00145 #define WP3_MISCELLANEOUS_GROUP_PAGE_SIZE_OVERRIDE 0x04
00146 
00147 /* Window Group */
00148 
00149 #define WP3_WINDOW_GROUP_FIGURE_BOX_FUNCTION 0x00
00150 #define WP3_WINDOW_GROUP_TABLE_BOX_FUNCTION 0x01
00151 #define WP3_WINDOW_GROUP_TEXT_BOX_FUNCTION 0x02
00152 #define WP3_WINDOW_GROUP_USER_BOX_FUNCTION 0x03
00153 #define WP3_WINDOW_GROUP_EQUATION_BOX_FUNCTION 0x04
00154 #define WP3_WINDOW_GROUP_HTML_IMAGE_BOX_FUNCTION 0x05
00155 #define WP3_WINDOW_GROUP_HORIZONTAL_LINE 0x06
00156 
00157 /* Tables Group */
00158 
00159 #define WP3_TABLES_GROUP_TABLE_FUNCTION 0x01
00160 #define WP3_TABLES_GROUP_SET_TABLE_CELL_SPAN 0x02
00161 #define WP3_TABLES_GROUP_SET_TABLE_CELL_TOP_LINE 0x03
00162 #define WP3_TABLES_GROUP_SET_TABLE_CELL_LEFT_LINE 0x04
00163 #define WP3_TABLES_GROUP_SET_TABLE_CELL_BOTTOM_LINE 0x05
00164 #define WP3_TABLES_GROUP_SET_TABLE_CELL_RIGHT_LINE 0x06
00165 #define WP3_TABLES_GROUP_SET_TABLE_CELL_TOP_LINE_COLOR 0x07
00166 #define WP3_TABLES_GROUP_SET_TABLE_CELL_LEFT_LINE_COLOR 0x08
00167 #define WP3_TABLES_GROUP_SET_TABLE_CELL_BOTTOM_LINE_COLOR 0x09
00168 #define WP3_TABLES_GROUP_SET_TABLE_CELL_RIGHT_LINE_COLOR 0x0A
00169 #define WP3_TABLES_GROUP_SET_TABLE_CELL_FILL_COLOR_PATTERN 0x0B
00170 #define WP3_TABLES_GROUP_SET_TABLE_CELL_VERTICAL_ALIGNMENT 0x0C
00171 #define WP3_TABLES_GROUP_SET_TABLE_CELL_MODE 0x0D
00172 #define WP3_TABLES_GROUP_SET_TABLE_ROW_MODE 0x0E
00173 
00174 /* Column Types */
00175 
00176 #define WP3_COLUMN_TYPE_COLLUMNS_OFF 0x01
00177 #define WP3_COLUMN_TYPE_NEWSPAPER 0x01
00178 #define WP3_COLUMN_TYPE_PARALLEL 0x02
00179 #define WP3_COLUMN_TYPE_EXTENDED 0x03
00180 
00181 #endif /* WP3FILESTRUCTURE_H */
00182 /* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */