⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doclist.c

📁 这是一个同样来自贝尔实验室的和UNIX有着渊源的操作系统, 其简洁的设计和实现易于我们学习和理解
💻 C
字号:
/* * doclist.c * Copyright (C) 2004 A.J. van Os; Released under GNU GPL * * Description: * Build, read and destroy list(s) of Word document information * * Note: * There is no real list there is always one document per document */#include "antiword.h"#define HALF_INCH	36000L  /* In millipoints *//* Variables needed to write the Document Information List */static document_block_type *pAnchor = NULL;static document_block_type tInfo;/* * vDestroyDocumentInfoList - destroy the Document Information List */voidvDestroyDocumentInfoList(void){        DBG_MSG("vDestroyDocumentInfoList");	pAnchor = NULL;} /* end of vDestoryDocumentInfoList *//* * vCreateDocumentInfoList - create the Document Information List */voidvCreateDocumentInfoList(const document_block_type *pDocument){	fail(pDocument == NULL);	fail(pAnchor != NULL);	tInfo = *pDocument;	pAnchor = &tInfo;} /* end of vCreateDocumentInfoList *//* * lGetDefaultTabWidth - get the default tabwidth in millipoints */longlGetDefaultTabWidth(void){	long	lDefaultTabWidth;	USHORT	usTmp;	if (pAnchor == NULL) {		DBG_FIXME();		return HALF_INCH;	}	usTmp = pAnchor->usDefaultTabWidth;	lDefaultTabWidth = usTmp == 0 ? HALF_INCH : lTwips2MilliPoints(usTmp);	NO_DBG_DEC(lDefaultTabWidth);	return lDefaultTabWidth;} /* end of lGetDefaultTabWidth *//* * ucGetDopHdrFtrSpecification - get the Heder/footer specification */UCHARucGetDopHdrFtrSpecification(void){	if (pAnchor == NULL) {		DBG_FIXME();		return 0x00;	}	return pAnchor->ucHdrFtrSpecification;} /* end of ucGetDopHdrFtrSpecification */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -