1 /************************************************************************/
2 /*									*/
3 /*  Properties of the notes in a document.				*/
4 /*									*/
5 /************************************************************************/
6 
7 #   ifndef	DOC_NOTE_PROPERTIES_H
8 #   define	DOC_NOTE_PROPERTIES_H
9 
10 #   include	<utilMemoryBuffer.h>
11 #   include	<utilPropMask.h>
12 
13 typedef struct NoteProperties
14     {
15     MemoryBuffer	npFixedText;
16     unsigned char	npTreeType;
17     unsigned char	npAutoNumber;
18     } NoteProperties;
19 
20 typedef enum NoteProperty
21     {
22     NOTEpropFIXED_TEXT= 0,
23     NOTEpropTREE_TYPE,
24     NOTEpropAUTO_NUMBER,
25 
26     NOTEprop_COUNT
27     } NoteProperty;
28 
29 /************************************************************************/
30 /*									*/
31 /*  Routine declarations.						*/
32 /*									*/
33 /************************************************************************/
34 
35 extern void docInitNoteProperties(	NoteProperties *	np );
36 extern void docCleanNoteProperties(	NoteProperties *	np );
37 
38 extern int docCopyNoteProperties(	NoteProperties *	to,
39 					const NoteProperties *	from );
40 
41 extern int docNotePropertyDifference(
42 				PropertyMask *			pDifMask,
43 				const NoteProperties *		np1,
44 				const PropertyMask *		cmpMask,
45 				const NoteProperties *		np2 );
46 
47 extern int docUpdNoteProperties( PropertyMask *			npDoneMask,
48 				NoteProperties *		npTo,
49 				const PropertyMask *		npSetMask,
50 				const NoteProperties *		npSet );
51 
52 #   endif
53