Bringing apdf from vendor into main branch.
[AROS-Contrib.git] / apdf / xpdf / FDFForm.h
blob4d40d88c361be03237e34a0e3d4d371eea7c6b27
1 //========================================================================
2 //
3 // FDFForm.h
4 //
5 // Copyright 2000-2001 Emmanuel Lesueur
6 //
7 //========================================================================
9 #ifndef FDFFORM_H
10 #define FDFFORM_H
12 #ifdef __GNUC__
13 #pragma interface
14 #endif
16 #include <stdio.h>
17 #include "server/mystdio.h"
19 class GString;
20 class BaseStream;
21 class XRef;
23 //------------------------------------------------------------------------
24 // FDFForm
25 //------------------------------------------------------------------------
27 class FDFForm {
28 public:
30 FDFForm(GString *fileName1);
31 FDFForm(BaseStream *str1, GString *fileName1, myFILE *file1);
32 ~FDFForm();
34 // Was FDF document successfully opened?
35 GBool isOk() { return ok; }
37 // Get file name.
38 GString *getFileName() { return fileName; }
40 // Get catalog.
41 Object *getCatalog(Object *obj) { return xref->getCatalog(obj); }
43 // Get base stream.
44 BaseStream *getBaseStream() { return str; }
46 // Return the FDF version specified by the file.
47 double getFDFVersion() { return fdfVersion; }
49 // Get the name of the base PDF file.
50 GString *getPDFFileName();
52 private:
54 GBool setup();
55 void checkHeader();
57 GString *fileName;
58 myFILE *file;
59 BaseStream *str;
60 double fdfVersion;
61 XRef *xref;
63 GBool ok;
66 #endif