3 * Copyright (C) 2004 A.J. van Os; Released under GNU GPL
6 * Build, read and destroy list(s) of Word document information
9 * There is no real list there is always one document per document
14 #define HALF_INCH 36000L /* In millipoints */
16 /* Variables needed to write the Document Information List */
17 static document_block_type *pAnchor = NULL;
18 static document_block_type tInfo;
22 * vDestroyDocumentInfoList - destroy the Document Information List
25 vDestroyDocumentInfoList(void)
27 DBG_MSG("vDestroyDocumentInfoList");
30 } /* end of vDestoryDocumentInfoList */
33 * vCreateDocumentInfoList - create the Document Information List
36 vCreateDocumentInfoList(const document_block_type *pDocument)
38 fail(pDocument == NULL);
39 fail(pAnchor != NULL);
43 } /* end of vCreateDocumentInfoList */
46 * lGetDefaultTabWidth - get the default tabwidth in millipoints
49 lGetDefaultTabWidth(void)
51 long lDefaultTabWidth;
54 if (pAnchor == NULL) {
58 usTmp = pAnchor->usDefaultTabWidth;
59 lDefaultTabWidth = usTmp == 0 ? HALF_INCH : lTwips2MilliPoints(usTmp);
60 NO_DBG_DEC(lDefaultTabWidth);
61 return lDefaultTabWidth;
62 } /* end of lGetDefaultTabWidth */
65 * ucGetDopHdrFtrSpecification - get the Heder/footer specification
68 ucGetDopHdrFtrSpecification(void)
70 if (pAnchor == NULL) {
74 return pAnchor->ucHdrFtrSpecification;
75 } /* end of ucGetDopHdrFtrSpecification */