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:
805 bytes
|
Line | |
---|
1 | #include <stdlib.h>
|
---|
2 | #include <stdio.h>
|
---|
3 | #include "wv.h"
|
---|
4 |
|
---|
5 | void wvGetPGD(version ver,PGD *item,FILE *fd)
|
---|
6 | {
|
---|
7 | U16 temp16;
|
---|
8 |
|
---|
9 | temp16 = read_16ubit(fd);
|
---|
10 | item->fContinue = temp16 & 0x0001;
|
---|
11 | item->fUnk = (temp16 & 0x0002)>>1;
|
---|
12 | item->fRight = (temp16 & 0x0004)>>2;
|
---|
13 | item->fPgnRestart = (temp16 & 0x0008)>>3;
|
---|
14 | item->fEmptyPage = (temp16 & 0x0010)>>4;
|
---|
15 | item->fAllFtn = (temp16 & 0x0020)>>5;
|
---|
16 | item->fColOnly = (temp16 & 0x0040)>>6;
|
---|
17 | item->fTableBreaks = (temp16 & 0x0080)>>7;
|
---|
18 | item->fMarked = (temp16 & 0x0100)>>8;
|
---|
19 | item->fColumnBreaks = (temp16 & 0x0200)>>9;
|
---|
20 | item->fTableHeader = (temp16 & 0x0400)>>10;
|
---|
21 | item->fNewPage = (temp16 & 0x0800)>>11;
|
---|
22 | item->bkc = (temp16 & 0xF000)>>12;
|
---|
23 |
|
---|
24 | item->lnn=read_16ubit(fd);
|
---|
25 | item->pgn=read_16ubit(fd);
|
---|
26 | if (ver == WORD8)
|
---|
27 | item->dym=(S32)read_32ubit(fd);
|
---|
28 | else
|
---|
29 | item->dym=0;
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.