1 /************************************************************************/
2 /*									*/
3 /*  List table of a document.						*/
4 /*									*/
5 /*  Refer to page 21 of the RTF 1.7 document.				*/
6 /*									*/
7 /************************************************************************/
8 
9 #   ifndef	DOC_DOCUMENT_LIST_H
10 #   define	DOC_DOCUMENT_LIST_H
11 
12 #   include	"docListDepth.h"
13 #   include	"docListLevel.h"
14 
15 typedef struct DocumentList
16     {
17     int			dlListID;
18     int			dlListTemplateID;
19     MemoryBuffer	dlListName;
20     MemoryBuffer	dlListStyleName;
21     int			dlListStyleID;
22 
23     int			dlListHybrid;
24     int			dlRestartPerSect;
25 
26     ListLevel		dlLevels[DLmaxLEVELS];
27     int			dlLevelCount;
28     } DocumentList;
29 
30 typedef enum DocumentListProperty
31     {
32     DLpropLISTID,
33     DLpropTEMPLATEID,
34     DLpropHYBRID,
35     DLpropRESTARTHDN,
36     DLpropSTYLEID,
37     DLpropSTYLENAME,
38 
39     DLpropNAME,
40 
41     DLpropLEVELS,
42 
43     DLprop_COUNT
44     } DocumentListProperty;
45 
46 /************************************************************************/
47 /*									*/
48 /*  Routine declarations.						*/
49 /*									*/
50 /************************************************************************/
51 
52 extern void docInitDocumentList(	DocumentList *		dl );
53 extern void docCleanDocumentList(	DocumentList *		dl );
54 
55 extern int docCopyDocumentList(	DocumentList *		to,
56 				const DocumentList *	from,
57 				int			copyIds,
58 				const int *		fontMap,
59 				const int *		colorMap,
60 				const int *		rulerMap );
61 
62 extern int docDocumentListAddLevel(
63 				DocumentList *			dl,
64 				const ListLevel *		ll,
65 				int				copyIds,
66 				const int *			fontMap,
67 				const int *			colorMap,
68 				const int *			rulerMap );
69 
70 extern int docCopyDocumentListSameDocument(	DocumentList *		to,
71 						const DocumentList *	from );
72 
73 extern int docSetListProperty(	DocumentList *			dl,
74 				int				prop,
75 				int				val );
76 
77 #   endif
78