3 * Copyright (C) 1998,1999 A.J. van Os
6 * Typedefs for the interpretation of MS Word files
9 #if !defined(__wordtypes_h)
10 #define __wordtypes_h 1
14 typedef struct diagram_tag
{
18 int iScaleFactorCurr
; /* In percentage */
19 int iScaleFactorTemp
; /* In percentage */
21 int iXleft
; /* In DrawUnits */
22 int iYtop
; /* In DrawUnits */
23 char szFilename
[19+1];
26 typedef struct diagram_tag
{
28 int iXleft
; /* In DrawUnits */
29 int iYtop
; /* In DrawUnits */
31 typedef unsigned char draw_fontref
;
34 typedef struct output_tag
{
38 int iStringWidth
; /* In millipoints */
40 unsigned char ucFontstyle
;
41 draw_fontref tFontRef
;
42 unsigned char ucFontsize
;
43 struct output_tag
*pPrev
;
44 struct output_tag
*pNext
;
48 typedef struct font_table_tag
{
49 unsigned char ucWordFontnumber
;
50 unsigned char ucFontstyle
;
51 unsigned char ucInUse
;
52 char szWordFontname
[21];
53 char szOurFontname
[33];
57 typedef struct options_tag
{
59 BOOL bAutofiletypeAllowed
;
60 BOOL bUseOutlineFonts
;
63 int iPageHeight
; /* In DrawUnits */
66 /* Property Set Storage */
67 typedef struct pps_tag
{
71 typedef struct pps_info_tag
{
72 pps_type tWordDocument
;
77 /* Record of text block information */
78 typedef struct text_block_tag
{
82 BOOL bUsesUnicode
; /* Uses 16 bits per character */
85 /* Record of table-row block information */
86 typedef struct row_block_tag
{
89 int iColumnWidthSum
; /* In twips */
90 short asColumnWidth
[TABLE_COLUMN_MAX
+1]; /* In twips */
91 unsigned char ucNumberOfColumns
;
94 /* Linked list of style description information */
95 typedef struct style_block_tag
{
99 short sLeftIndent
; /* Left indentation in twips */
100 short sRightIndent
; /* Right indentation in twips */
101 unsigned char ucStyle
;
102 unsigned char ucAlignment
;
103 unsigned char ucListType
;
104 unsigned char ucListLevel
;
105 unsigned char ucListCharacter
;
107 typedef struct style_desc_tag
{
108 style_block_type tInfo
;
109 struct style_desc_tag
*pNext
;
112 /* Linked list of font description information */
113 typedef struct font_block_tag
{
115 unsigned char ucFontnumber
;
116 unsigned char ucFontsize
;
117 unsigned char ucFontcolour
;
118 unsigned char ucFontstyle
;
120 typedef struct font_desc_tag
{
121 font_block_type tInfo
;
122 struct font_desc_tag
*pNext
;
125 typedef enum text_info_tag
{
131 typedef enum list_id_tag
{
138 typedef enum notetype_tag
{
139 notetype_is_footnote
,
144 #endif /* __wordtypes_h */