1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* libmspub
* Version: MPL 1.1 / GPLv2+ / LGPLv2+
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the License or as specified alternatively below. You may obtain a copy of
* the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
* for the specific language governing rights and limitations under the
* License.
*
* Major Contributor(s):
* Copyright (C) 2012 Brennan Vincent <brennanv@email.arizona.edu>
*
* All Rights Reserved.
*
* For minor contributions see the git repository.
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPLv2+"), or
* the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
* in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
* instead of those above.
*/
#ifndef __MSPUBBLOCKID_H__
#define __MSPUBBLOCKID_H__
namespace libmspub
{
enum MSPUBBlockID // Don't be alarmed by multiple elements with the same value; they appear in different contexts.
{
DOCUMENT_SIZE = 0x12,
DOCUMENT_WIDTH = 0x1,
DOCUMENT_HEIGHT = 0x2,
DOCUMENT_PAGE_LIST = 0x2,
PAGE_BG_SHAPE = 0xa,
PAGE_SHAPES = 0x2,
CHUNK_TYPE = 0x2,
CHUNK_OFFSET = 0x4,
CHUNK_PARENT_SEQNUM = 0x5,
SHAPE_WIDTH = 0xaa,
SHAPE_HEIGHT = 0xab,
SHAPE_DONT_STRETCH_BA = 0x07,
SHAPE_TEXT_ID = 0x27,
SHAPE_BORDER_IMAGE_ID = 0x09,
SUPER_SUB_TYPE_ID = 0x0F,
BOLD_1_ID = 0x02,
BOLD_2_ID = 0x37,
ITALIC_1_ID = 0x03,
ITALIC_2_ID = 0x38,
UNDERLINE_ID = 0x1E,
TEXT_SIZE_1_ID = 0x0C,
TEXT_SIZE_2_ID = 0x39,
COLOR_INDEX_CONTAINER_ID = 0x44,
BARE_COLOR_INDEX_ID = 0x2E,
FONT_INDEX_CONTAINER_ID = 0x24,
COLOR_INDEX_ID = 0x0,
PARAGRAPH_ALIGNMENT = 0x04,
PARAGRAPH_DEFAULT_CHAR_STYLE = 0x19,
PARAGRAPH_LINE_SPACING = 0x34,
PARAGRAPH_SPACE_BEFORE = 0x12,
PARAGRAPH_SPACE_AFTER = 0x13,
PARAGRAPH_FIRST_LINE_INDENT = 0xC,
PARAGRAPH_LEFT_INDENT = 0xD,
PARAGRAPH_RIGHT_INDENT = 0xE,
THIS_MASTER_NAME = 0xE,
APPLIED_MASTER_NAME = 0xD,
BA_ARRAY = 0x02,
BA_IMAGE_ARRAY = 0x0A,
BA_IMAGE_CONTAINER = 0x00,
BA_IMAGE = 0x01,
BA_OFFSET_CONTAINER = 0x08,
BA_OFFSET_ENTRY = 0x00,
PARAGRAPH_LIST_NUMBER_RESTART = 0x15,
PARAGRAPH_LIST_INFO = 0x57,
PARAGRAPH_LIST_BULLET_CHAR = 0x01,
PARAGRAPH_LIST_NUMBERING_TYPE = 0x00,
PARAGRAPH_LIST_NUMBERING_DELIMITER = 0x58,
SHAPE_VALIGN = 0x35,
TABLE_WIDTH = 0x68,
TABLE_HEIGHT = 0x69,
TABLE_CELLS_SEQNUM = 0x6B,
TABLE_NUM_ROWS = 0x66,
TABLE_NUM_COLS = 0x67,
TABLE_ROWCOL_ARRAY = 0x6D,
TABLE_ROWCOL_OFFSET = 0x01,
FONT_CONTAINER_ARRAY = 0x02,
EMBEDDED_EOT = 0x0C,
EMBEDDED_FONT_NAME = 0x04,
PARAGRAPH_TABS = 0x32,
TAB_ARRAY = 0x28,
TAB_ENTRY = 0x0,
TAB_AMOUNT = 0x0
};
} // namespace libmspub
#endif /* __MSPUBBLOCKID_H__ */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
|