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