LibreOffice Module lotuswordpro (master) 1
bentoid.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*************************************************************************
3 *
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
6 *
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
9 *
10 * Sun Microsystems Inc., October, 2000
11 *
12 * GNU Lesser General Public License Version 2.1
13 * =============================================
14 * Copyright 2000 by Sun Microsystems, Inc.
15 * 901 San Antonio Road, Palo Alto, CA 94303, USA
16 *
17 * This library is free software; you can redistribute it and/or
18 * modify it under the terms of the GNU Lesser General Public
19 * License version 2.1, as published by the Free Software Foundation.
20 *
21 * This library is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
24 * Lesser General Public License for more details.
25 *
26 * You should have received a copy of the GNU Lesser General Public
27 * License along with this library; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
29 * MA 02111-1307 USA
30 *
31 *
32 * Sun Industry Standards Source License Version 1.1
33 * =================================================
34 * The contents of this file are subject to the Sun Industry Standards
35 * Source License Version 1.1 (the "License"); You may not use this file
36 * except in compliance with the License. You may obtain a copy of the
37 * License at http://www.openoffice.org/license.html.
38 *
39 * Software provided under this License is provided on an "AS IS" basis,
40 * WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
41 * WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
42 * MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
43 * See the License for the specific provisions governing your rights and
44 * obligations concerning the Software.
45 *
46 * The Initial Developer of the Original Code is: IBM Corporation
47 *
48 * Copyright: 2008 by IBM Corporation
49 *
50 * All Rights Reserved.
51 *
52 * Contributor(s): _______________________________________
53 *
54 *
55 ************************************************************************/
56#ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_BENTOID_HXX
57#define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_BENTOID_HXX
58
59namespace OpenStormBento
60{
61#define BEN_OBJID_TOC 1 // TOC object ID
62#define BEN_PROPID_TOC_SEED 2 // TOC object starting seed
63#define BEN_TYPEID_TOC_TYPE 19 // TOC object property value type
64#define BEN_TYPEID_7_BIT_ASCII 21 // 7-bit ASCII
65#define BEN_PROPID_GLOBAL_TYPE_NAME 23 // Global type name
66#define BEN_PROPID_GLOBAL_PROPERTY_NAME 24 // Global property name
67#define BEN_PROPID_OBJ_REFERENCES 31 // Referenced objects from an object
68
69#define BEN_NEW_OBJECT 1 // object + property + type
70#define BEN_NEW_PROPERTY 2 // property + type
71#define BEN_NEW_TYPE 3 // type
72#define BEN_EXPLICIT_GEN 4 // generation
73
74#define BEN_SEGMENT_CODE_START 5
75#define BEN_OFFSET4_LEN4 5 // 4-byte offset + 4-byte length
76#define BEN_CONT_OFFSET4_LEN4 6 // continued 4-byte offset + 4-byte length
77#define BEN_OFFSET8_LEN4 7 // 8-byte offset + 4-byte length
78#define BEN_CONT_OFFSET8_LEN4 8 // continued 8-byte offset + 4-byte length
79#define BEN_IMMEDIATE0 9 // immediate (length = 0)
80#define BEN_IMMEDIATE1 10 // immediate (length = 1)
81#define BEN_IMMEDIATE2 11 // immediate (length = 2)
82#define BEN_IMMEDIATE3 12 // immediate (length = 3)
83#define BEN_IMMEDIATE4 13 // immediate (length = 4)
84#define BEN_CONT_IMMEDIATE4 14 // continued immediate (length = 4)
85#define BEN_SEGMENT_CODE_END 14
86
87#define BEN_REFERENCE_LIST_ID 15 // references recording object ID
88#define BEN_END_OF_BUFFER 24 // end of current buffer, go to next
89#define BEN_READ_PAST_END_OF_TOC 50 // Our code
90#define BEN_NOOP 0xFF
91
92} // end OpenStormBento namespace
93#endif
94
95/* vim:set shiftwidth=4 softtabstop=4 expandtab: */