WP3FileStructure.h

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

Generated on Mon Mar 19 15:09:58 2007 for libwpd by doxygen 1.5.1