1 /************************************************************************/
2 /*									*/
3 /*  Declare field evaluation routines.					*/
4 /*									*/
5 /************************************************************************/
6 
7 #   ifndef	DOC_EVAL_FIELD_H
8 #   define	DOC_EVAL_FIELD_H
9 
10 #   include	"docBuf.h"
11 #   include	"docNoteProperties.h"
12 
13 struct BufferItem;
14 struct DocumentField;
15 struct RecalculateFields;
16 
17 /************************************************************************/
18 /*									*/
19 /*  Routine declarations.						*/
20 /*									*/
21 /************************************************************************/
22 
23 extern int docCalculateChftnFieldString(
24 			int *					pCalculated,
25 			MemoryBuffer *				mbResult,
26 			const struct DocumentField *		df,
27 			const struct RecalculateFields *	rf );
28 
29 extern int docCalculateSymbolFieldString(
30 			int *					pCalculated,
31 			MemoryBuffer *				mbResult,
32 			const struct DocumentField *		df,
33 			const struct RecalculateFields *	rf );
34 
35 extern int docCalculatePagerefFieldString(
36 			int *					pCalculated,
37 			MemoryBuffer *				mbResult,
38 			const struct DocumentField *		df,
39 			const struct RecalculateFields *	rf );
40 
41 extern int docCalculateSectionFieldString(
42 			int *					pCalculated,
43 			MemoryBuffer *				mbResult,
44 			const struct DocumentField *		df,
45 			const struct RecalculateFields *	rf );
46 
47 extern int docCalculateSeqFieldString(
48 			int *					pCalculated,
49 			MemoryBuffer *				mbResult,
50 			const struct DocumentField *		df,
51 			const struct RecalculateFields *	rf );
52 
53 extern int docCalculateSectionPagesFieldString(
54 			int *					pCalculated,
55 			MemoryBuffer *				mbResult,
56 			const struct DocumentField *		df,
57 			const struct RecalculateFields *	rf );
58 
59 extern int docCalculatePageFieldString(
60 			int *					pCalculated,
61 			MemoryBuffer *				mbResult,
62 			const struct DocumentField *		df,
63 			const struct RecalculateFields *	rf );
64 
65 extern int docCalculateNumpagesFieldString(
66 			int *					pCalculated,
67 			MemoryBuffer *				mbResult,
68 			const struct DocumentField *		df,
69 			const struct RecalculateFields *	rf );
70 
71 extern int docCalculateDocDateFieldString(
72 			int *					pCalculated,
73 			MemoryBuffer *				mbResult,
74 			const struct DocumentField *		df,
75 			const struct RecalculateFields *	rf );
76 
77 extern int docCalculateDocStringFieldString(
78 			int *					pCalculated,
79 			MemoryBuffer *				mbResult,
80 			const struct DocumentField *		df,
81 			const struct RecalculateFields *	rf );
82 
83 extern int docCalculateFilenameFieldString(
84 			int *					pCalculated,
85 			MemoryBuffer *				mbResult,
86 			const struct DocumentField *		df,
87 			const struct RecalculateFields *	rf );
88 
89 extern int docCalculateRefFieldString(
90 			int *					pCalculated,
91 			MemoryBuffer *				mbResult,
92 			const struct DocumentField *		df,
93 			const struct RecalculateFields *	rf );
94 
95 extern int docRecalculateHyperlinkField(
96 			int *					pCalculated,
97 			int *					pPartShift,
98 			int *					pStroffShift,
99 			struct BufferItem *			paraNode,
100 			int					part,
101 			int					partCount,
102 			struct DocumentField *			df,
103 			const struct RecalculateFields *	rf );
104 
105 extern int docRecalculateMergeField(
106 			int *					pCalculated,
107 			int *					pPartShift,
108 			int *					pStroffShift,
109 			struct BufferItem *			paraNode,
110 			int					part,
111 			int					partCount,
112 			struct DocumentField *			df,
113 			const struct RecalculateFields *	rf );
114 
115 extern int docRecalculateIncludePictureField(
116 			int *					pCalculated,
117 			int *					pPartShift,
118 			int *					pStroffShift,
119 			struct BufferItem *			paraNode,
120 			int					part,
121 			int					partCount,
122 			struct DocumentField *			df,
123 			const struct RecalculateFields *	rf );
124 
125 extern int docRecalculateParaStringTextParticules(
126 			int *					pCalculated,
127 			int *					pPartShift,
128 			int *					pStroffShift,
129 			struct BufferItem *			paraNode,
130 			int					part,
131 			int					partCount,
132 			struct DocumentField *			df,
133 			const struct RecalculateFields *	rf );
134 
135 extern int docRecalculateParaChftnTextParticules(
136 			int *					pCalculated,
137 			int *					pPartShift,
138 			int *					pStroffShift,
139 			struct BufferItem *			paraNode,
140 			int					part,
141 			int					partCount,
142 			struct DocumentField *			df,
143 			const struct RecalculateFields *	rf );
144 
145 extern int docRecalculateParaListtextTextParticules(
146 			int *					pCalculated,
147 			int *					pPartShift,
148 			int *					pStroffShift,
149 			struct BufferItem *			paraNode,
150 			int					part,
151 			int					partCount,
152 			struct DocumentField *			df,
153 			const struct RecalculateFields *	rf );
154 
155 extern int docRecalculateParaSymbolTextParticules(
156 			int *					pCalculated,
157 			int *					pPartShift,
158 			int *					pStroffShift,
159 			struct BufferItem *			paraNode,
160 			int					part,
161 			int					partCount,
162 			struct DocumentField *			df,
163 			const struct RecalculateFields *	rf );
164 
165 extern int docCalculateRefFieldValue(
166 			MemoryBuffer *				mbResult,
167 			const MemoryBuffer *			markName,
168 			const struct BufferDocument *		bd );
169 
170 extern int docFormatChftnField(
171 			MemoryBuffer *				mbResult,
172 			const FootEndNotesProperties *		fep,
173 			const NoteProperties *			np,
174 			int					noteNumber );
175 
176 #   endif	/*  DOC_EVAL_FIELD_H  */
177