merge the formfield patch from ooo-build
[ooovba.git] / configmgr / source / backend / binarytype.hxx
blob11e187a719332ccacec08fd71a4f55fdb2cbbcc3
1 #ifndef CONFIGMGR_BINARYTYPE_HXX
2 #define CONFIGMGR_BINARYTYPE_HXX
4 #include <sal/types.h>
6 namespace configmgr
8 namespace binary
10 const sal_uInt32 STR_ASCII_MASK = 0x80000000;
11 const sal_Int16 CFG_BINARY_MAGIC = 10001;
12 const sal_Int16 CFG_BINARY_VERSION = 3;
14 namespace ValueFlags
16 enum Type
18 val_any, // = 0
19 val_string, // = 1
20 val_boolean, // = 2
21 val_int16, // = 3
22 val_int32, // = 4
23 val_int64, // = 5
24 val_double, // = 6
25 val_binary, // = 7
26 val_invalid, // = 8
28 //Sequence Flag
29 seq = 0x10,
31 //Pairstate Flags
32 first_value_NULL = 0x20,
33 second_value_NULL = 0x40,
35 //Masks
36 basictype_mask = 0x0F,
37 valuetype_mask = 0x1F,
38 pairstate_mask = first_value_NULL | second_value_NULL
42 namespace NodeType
44 enum Type
46 //Node Type Identifiers
47 stop = 0,
48 valuenode = 0x20,
49 groupnode = 0x40,
50 setnode = 0x80,
51 component = 0x60,
52 templates = 0xA0,
53 nodata = 0xC0,
54 invalid = 0xE0,
56 nodetype_mask = 0xE0
61 #endif