1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*************************************************************************
4 * The Contents of this file are made available subject to the terms of
5 * either of the following licenses
7 * - GNU Lesser General Public License Version 2.1
8 * - Sun Industry Standards Source License Version 1.1
10 * Sun Microsystems Inc., October, 2000
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
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.
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.
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,
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.
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.
46 * The Initial Developer of the Original Code is: IBM Corporation
48 * Copyright: 2008 by IBM Corporation
50 * All Rights Reserved.
52 * Contributor(s): _______________________________________
55 ************************************************************************/
56 #ifndef INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_BENTOID_HXX
57 #define INCLUDED_LOTUSWORDPRO_SOURCE_FILTER_BENTOID_HXX
59 namespace OpenStormBento
62 #define BEN_OBJID_TOC 1 // TOC object ID
63 #define BEN_PROPID_TOC_SEED 2 // TOC object starting seed
64 #define BEN_TYPEID_TOC_TYPE 19 // TOC object property value type
65 #define BEN_TYPEID_7_BIT_ASCII 21 // 7-bit ASCII
66 #define BEN_PROPID_GLOBAL_TYPE_NAME 23 // Global type name
67 #define BEN_PROPID_GLOBAL_PROPERTY_NAME 24 // Global property name
68 #define BEN_PROPID_OBJ_REFERENCES 31 // Referenced objects from an object
70 #define BEN_NEW_OBJECT 1 // object + property + type
71 #define BEN_NEW_PROPERTY 2 // property + type
72 #define BEN_NEW_TYPE 3 // type
73 #define BEN_EXPLICIT_GEN 4 // generation
75 #define BEN_SEGMENT_CODE_START 5
76 #define BEN_OFFSET4_LEN4 5 // 4-byte offset + 4-byte length
77 #define BEN_CONT_OFFSET4_LEN4 6 // continued 4-byte offset + 4-byte length
78 #define BEN_OFFSET8_LEN4 7 // 8-byte offset + 4-byte length
79 #define BEN_CONT_OFFSET8_LEN4 8 // continued 8-byte offset + 4-byte length
80 #define BEN_IMMEDIATE0 9 // immediate (length = 0)
81 #define BEN_IMMEDIATE1 10 // immediate (length = 1)
82 #define BEN_IMMEDIATE2 11 // immediate (length = 2)
83 #define BEN_IMMEDIATE3 12 // immediate (length = 3)
84 #define BEN_IMMEDIATE4 13 // immediate (length = 4)
85 #define BEN_CONT_IMMEDIATE4 14 // continued immediate (length = 4)
86 #define BEN_SEGMENT_CODE_END 14
88 #define BEN_REFERENCE_LIST_ID 15 // references recording object ID
89 #define BEN_END_OF_BUFFER 24 // end of current buffer, go to next
90 #define BEN_READ_PAST_END_OF_TOC 50 // Our code
93 }// end OpenStormBento namespace
96 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */