xref: /AOO41X/main/sw/inc/ndtyp.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _NDTYP_HXX
29 #define _NDTYP_HXX
30 
31 #include <tools/solar.h>
32 
33 // Ids fuer die verschiedenden Nodes; in der Basisklasse steht der Member,
34 // der angibt, um was fuer einen es sich handelt
35 const sal_uInt8 ND_ENDNODE		= 0x01;
36 const sal_uInt8 ND_STARTNODE		= 0x02;
37 const sal_uInt8 ND_TABLENODE		= 0x06;
38 const sal_uInt8 ND_TEXTNODE 		= 0x08;
39 const sal_uInt8 ND_GRFNODE 		= 0x10;
40 const sal_uInt8 ND_OLENODE 		= 0x20;
41 
42 const sal_uInt8 ND_CONTENTNODE	= 0x38;	// ContentNode (eines von den 3 Bits)
43 const sal_uInt8 ND_NOTXTNODE		= 0x30;	// NoTxtNode (eines von den 2 Bits)
44 
45 const sal_uInt8 ND_SECTIONNODE   = 0x42;
46 // nur fuer internen Gebrauch!!
47 const sal_uInt8 ND_SECTIONDUMMY  = 0x40; //(ND_SECTIONNODE & ~ND_STARTNODE);
48 
49 // spezielle Types der StartNodes, die keine Ableitungen sind, aber
50 // "Bereiche" zusammenhalten.
51 enum SwStartNodeType
52 {
53 	SwNormalStartNode = 0,
54 	SwTableBoxStartNode,
55 	SwFlyStartNode,
56 	SwFootnoteStartNode,
57 	SwHeaderStartNode,
58 	SwFooterStartNode
59 };
60 
61 // is the node the first and/or last node of a section?
62 // This information is used for the export filters. Our layout never have a
63 // distance before or after if the node is the first or last in a section.
64 const sal_uInt8 ND_HAS_PREV_LAYNODE = 0x01;
65 const sal_uInt8 ND_HAS_NEXT_LAYNODE = 0x02;
66 
67 
68 
69 #endif
70