WP3FileStructure.h
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */
2/* libwpd
3 * Version: MPL 2.0 / LGPLv2.1+
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * Major Contributor(s):
10 * Copyright (C) 2004 Marc Maurer (uwog@uwog.net)
11 * Copyright (C) 2004-2005 Fridrich Strba (fridrich.strba@bluewin.ch)
12 *
13 * For minor contributions see the git repository.
14 *
15 * Alternatively, the contents of this file may be used under the terms
16 * of the GNU Lesser General Public License Version 2.1 or later
17 * (LGPLv2.1+), in which case the provisions of the LGPLv2.1+ are
18 * applicable instead of those above.
19 *
20 * For further information visit http://libwpd.sourceforge.net
21 */
22
23/* "This product is not manufactured, approved, or supported by
24 * Corel Corporation or Corel Corporation Limited."
25 */
26
27#ifndef WP3FILESTRUCTURE_H
28#define WP3FILESTRUCTURE_H
29
30// size of the fixed length function groups 0xC0 to 0xCF
32
33/* Main function group list */
34
35#define WP3_EXTENDED_CHARACTER_GROUP 0xC0
36#define WP3_TAB_GROUP 0xC1
37#define WP3_INDENT_GROUP 0xC2
38#define WP3_ATTRIBUTE_GROUP 0xC3
39
40#define WP3_DOUBLE_BYTE_SCRIPT_CHARACTER_GROUP 0xC8
41
42#define WP3_UNDO_GROUP 0xCD
43
44#define WP3_PAGE_FORMAT_GROUP 0xD0
45#define WP3_FONT_GROUP 0xD1
46#define WP3_DEFINITION_GROUP 0xD2
47
48#define WP3_HEADER_FOOTER_GROUP 0xD5
49#define WP3_FOOTNOTE_ENDNOTE_GROUP 0xD6
50
51#define WP3_DISPLAY_GROUP 0xD8
52#define WP3_MISCELLANEOUS_GROUP 0xD9
53#define WP3_WINDOW_GROUP 0xDA
54#define WP3_STYLE_GROUP 0xDB
55#define WP3_END_OF_LINE_PAGE_GROUP 0xDC
56
57#define WP3_TABLES_GROUP 0xE2
58
59/* Tab Group */
60#define WP3_TAB_GROUP_TAB 0x00
61#define WP3_TAB_GROUP_CENTER 0x01
62#define WP3_TAB_GROUP_FLUSH_RIGHT 0x02
63#define WP3_TAB_GROUP_BACK_TAB 0x03
64#define WP3_TAB_GROUP_CHARACTER_KERNING 0x04
65#define WP3_TAB_GROUP_BAR_TAB 0x05
66#define WP3_TAB_GROUP_FIXED_TAB 0x06
67
68/* Indent Group */
69#define WP3_INDENT_GROUP_LEFT_INDENT 0x00
70#define WP3_INDENT_GROUP_LEFT_RIGHT_INDENT 0x01
71
72/* Attribute Group */
73#define WP3_ATTRIBUTE_BOLD 0
74#define WP3_ATTRIBUTE_ITALICS 1
75#define WP3_ATTRIBUTE_UNDERLINE 2
76#define WP3_ATTRIBUTE_OUTLINE 3
77#define WP3_ATTRIBUTE_SHADOW 4
78// 5 to 7 is not documented
79#define WP3_ATTRIBUTE_REDLINE 8
80#define WP3_ATTRIBUTE_STRIKE_OUT 9
81#define WP3_ATTRIBUTE_SUBSCRIPT 10
82#define WP3_ATTRIBUTE_SUPERSCRIPT 11
83#define WP3_ATTRIBUTE_DOUBLE_UNDERLINE 12
84#define WP3_ATTRIBUTE_EXTRA_LARGE 13
85#define WP3_ATTRIBUTE_VERY_LARGE 14
86#define WP3_ATTRIBUTE_LARGE 15
87#define WP3_ATTRIBUTE_SMALL_PRINT 16
88#define WP3_ATTRIBUTE_FINE_PRINT 17
89#define WP3_ATTRIBUTE_SMALL_CAPS 18
90
91/* Page Format Group */
92#define WP3_PAGE_FORMAT_GROUP_HORIZONTAL_MARGINS 0x01
93#define WP3_PAGE_FORMAT_GROUP_LINE_SPACING 0x02
94#define WP3_PAGE_FORMAT_GROUP_SET_TABS 0x04
95#define WP3_PAGE_FORMAT_GROUP_VERTICAL_MARGINS 0x05
96#define WP3_PAGE_FORMAT_GROUP_JUSTIFICATION_MODE 0x06
97#define WP3_PAGE_FORMAT_GROUP_SUPPRESS_PAGE 0x07
98#define WP3_PAGE_FORMAT_GROUP_INDENT_AT_BEGINNING_OF_PARAGRAPH 0x0C
99
100#define WP3_PAGE_GROUP_SUPPRESS_PAGE_NUMBER 0x01
101#define WP3_PAGE_GROUP_PAGE_NUMBER_TO_BOTTOM 0x02
102#define WP3_PAGE_GROUP_SUPPRESS_HEADER_A 0x04
103#define WP3_PAGE_GROUP_SUPPRESS_HEADER_B 0x08
104#define WP3_PAGE_GROUP_SUPPRESS_FOOTER_A 0x10
105#define WP3_PAGE_GROUP_SUPPRESS_FOOTER_B 0x20
106#define WP3_PAGE_GROUP_SUPPRESS_WATERMARK_A 0x40
107#define WP3_PAGE_GROUP_SUPPRESS_WATERMARK_B 0x80
108
109/* Font Group */
110#define WP3_FONT_GROUP_SET_TEXT_COLOR 0x00
111#define WP3_FONT_GROUP_SET_TEXT_FONT 0x01
112#define WP3_FONT_GROUP_SET_FONT_SIZE 0x02
113
114/* Definition Group */
115#define WP3_DEFINITION_GROUP_SET_COLUMNS 0x01
116
117/* Header Footer Group */
118#define WP3_HEADER_FOOTER_GROUP_HEADER_A 0x00
119#define WP3_HEADER_FOOTER_GROUP_HEADER_B 0x01
120#define WP3_HEADER_FOOTER_GROUP_FOOTER_A 0x02
121#define WP3_HEADER_FOOTER_GROUP_FOOTER_B 0x03
122#define WP3_HEADER_FOOTER_GROUP_WATERMARK_A 0x04
123#define WP3_HEADER_FOOTER_GROUP_WATERMARK_B 0x05
124
125#define WP3_HEADER_FOOTER_GROUP_EVEN_BIT 0x01
126#define WP3_HEADER_FOOTER_GROUP_ODD_BIT 0x02
127
128/* Footnote/Endnote Group */
129#define WP3_FOOTNOTE_ENDNOTE_GROUP_FOOTNOTE_FUNCTION 0x00
130#define WP3_FOOTNOTE_ENDNOTE_GROUP_ENDNOTE_FUNCTION 0x01
131
132/* Display Group */
133#define WP3_DISPLAY_GROUP_INSERT_DATE_TIME 0x00
134#define WP3_DISPLAY_GROUP_INSERT_PARAGRAPH_NUMBER 0x01
135#define WP3_DISPLAY_GROUP_OVERSTRIKE_TEXT 0x02
136#define WP3_DISPLAY_GROUP_SEARCH_CHARACTER 0x03
137#define WP3_DISPLAY_GROUP_INSERT_BOX_NUMBER 0x04
138#define WP3_DISPLAY_GROUP_INSERT_CHAPTER_NUMBER 0x05
139#define WP3_DISPLAY_GROUP_INSERT_PAGE_NUMBER 0x06
140#define WP3_DISPLAY_GROUP_INSERT_FOOTNOTE_NUMBER 0x07
141#define WP3_DISPLAY_GROUP_INSERT_ENDNOTE_NUMBER 0x08
142
143/* Miscellaneous Group */
144
145#define WP3_MISCELLANEOUS_GROUP_PAGE_SIZE_OVERRIDE 0x04
146
147/* Window Group */
148
149#define WP3_WINDOW_GROUP_FIGURE_BOX_FUNCTION 0x00
150#define WP3_WINDOW_GROUP_TABLE_BOX_FUNCTION 0x01
151#define WP3_WINDOW_GROUP_TEXT_BOX_FUNCTION 0x02
152#define WP3_WINDOW_GROUP_USER_BOX_FUNCTION 0x03
153#define WP3_WINDOW_GROUP_EQUATION_BOX_FUNCTION 0x04
154#define WP3_WINDOW_GROUP_HTML_IMAGE_BOX_FUNCTION 0x05
155#define WP3_WINDOW_GROUP_HORIZONTAL_LINE 0x06
156
157/* Tables Group */
158
159#define WP3_TABLES_GROUP_TABLE_FUNCTION 0x01
160#define WP3_TABLES_GROUP_SET_TABLE_CELL_SPAN 0x02
161#define WP3_TABLES_GROUP_SET_TABLE_CELL_TOP_LINE 0x03
162#define WP3_TABLES_GROUP_SET_TABLE_CELL_LEFT_LINE 0x04
163#define WP3_TABLES_GROUP_SET_TABLE_CELL_BOTTOM_LINE 0x05
164#define WP3_TABLES_GROUP_SET_TABLE_CELL_RIGHT_LINE 0x06
165#define WP3_TABLES_GROUP_SET_TABLE_CELL_TOP_LINE_COLOR 0x07
166#define WP3_TABLES_GROUP_SET_TABLE_CELL_LEFT_LINE_COLOR 0x08
167#define WP3_TABLES_GROUP_SET_TABLE_CELL_BOTTOM_LINE_COLOR 0x09
168#define WP3_TABLES_GROUP_SET_TABLE_CELL_RIGHT_LINE_COLOR 0x0A
169#define WP3_TABLES_GROUP_SET_TABLE_CELL_FILL_COLOR_PATTERN 0x0B
170#define WP3_TABLES_GROUP_SET_TABLE_CELL_VERTICAL_ALIGNMENT 0x0C
171#define WP3_TABLES_GROUP_SET_TABLE_CELL_MODE 0x0D
172#define WP3_TABLES_GROUP_SET_TABLE_ROW_MODE 0x0E
173
174/* Column Types */
175
176#define WP3_COLUMN_TYPE_COLLUMNS_OFF 0x01
177#define WP3_COLUMN_TYPE_NEWSPAPER 0x01
178#define WP3_COLUMN_TYPE_PARALLEL 0x02
179#define WP3_COLUMN_TYPE_EXTENDED 0x03
180
181#endif /* WP3FILESTRUCTURE_H */
182/* vim:set shiftwidth=4 softtabstop=4 noexpandtab: */
int WP3_FIXED_LENGTH_FUNCTION_GROUP_SIZE[16]
Definition WP3FileStructure.cpp:29

Generated for libwpd by doxygen 1.14.0