source: trunk/gsdl/packages/wv-0.5.44-gs/src/tap.c@ 1468

Last change on this file since 1468 was 1468, checked in by paynter, 24 years ago

The wv Packages from www.wvware.com is used to convert Word documents into
HTML. This is an adaptation of wv version 0.5.44 for greenstone; it is
called by the gsConvert.pl script.

  • Property svn:keywords set to Author Date Id Revision
File size: 916 bytes
Line 
1#include <stdlib.h>
2#include <stdio.h>
3#include "wv.h"
4
5void wvCopyTAP(TAP *dest,TAP *src)
6 {
7 memcpy(dest,src,sizeof(TAP));
8 }
9
10void wvInitTAP(TAP *item)
11 {
12 int i;
13 static TAP cache;
14 static int test;
15 if (!test)
16 {
17 cache.jc = 0;
18 cache.dxaGapHalf = 0;
19 cache.dyaRowHeight = 0;
20 cache.fCantSplit = 0;
21 cache.fTableHeader = 0;
22
23 wvInitTLP(&cache.tlp);
24
25 cache.lwHTMLProps = 0;
26 cache.fCaFull = 0;
27 cache.fFirstRow = 0;
28 cache.fLastRow = 0;
29 cache.fOutline = 0;
30 cache.reserved = 0;
31 cache.itcMac = 0;
32 cache.dxaAdjust = 0;
33 cache.dxaScale = 0;
34 cache.dxsInch = 0;
35
36 for (i=0;i<itcMax+1;i++)
37 cache.rgdxaCenter[i] = 0;
38 for (i=0;i<itcMax+1;i++)
39 cache.rgdxaCenterPrint[i] = 0;
40 for (i=0;i<itcMax;i++)
41 wvInitTC(&(cache.rgtc[i]));
42 for (i=0;i<itcMax;i++)
43 wvInitSHD(&(cache.rgshd[i]));
44 for (i=0;i<6;i++)
45 wvInitBRC(&(cache.rgbrcTable[i]));
46 test++;
47 }
48 wvCopyTAP(item,&cache);
49 }
Note: See TracBrowser for help on using the repository browser.