home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / pstoedit.zip / source.zip / pstoedit.2.50 / src / drvpdf.h < prev    next >
C/C++ Source or Header  |  1996-10-04  |  2KB  |  56 lines

  1. #ifndef __drvPDF_H
  2. #define __drvPDF_H
  3.  
  4. /* 
  5.    drvPDF.h : This file is part of pstoedit
  6.    Backend for PDF format 
  7.  
  8.    Copyright (C) 1993,1994,1995,1996 Wolfgang Glunz, Wolfgang.Glunz@zfe.siemens.de
  9.  
  10.     This program is free software; you can redistribute it and/or modify
  11.     it under the terms of the GNU General Public License as published by
  12.     the Free Software Foundation; either version 2 of the License, or
  13.     (at your option) any later version.
  14.  
  15.     This program is distributed in the hope that it will be useful,
  16.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  17.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18.     GNU General Public License for more details.
  19.  
  20.     You should have received a copy of the GNU General Public License
  21.     along with this program; if not, write to the Free Software
  22.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  23.  
  24. */
  25. #include "drvbase.h"
  26.  
  27. const  unsigned int maxobjects = 1000;
  28.  
  29. class drvPDF : public drvbase {
  30.  
  31. public:
  32.  
  33.     drvPDF(const char * driveroptions_P,ostream & theoutStream,ostream & theerrStream ); // Constructor
  34.     ~drvPDF(); // Destructor
  35.     virtual const char * const *    knownFontNames() const ;
  36. private:
  37.     unsigned int newobject();
  38.     void endobject();
  39.     void starttext();
  40.     void endtext();
  41.     void adjustbbox(float x, float y);
  42.     streampos startPosition[maxobjects];
  43.     unsigned int currentobject;
  44.     unsigned int pagenr;
  45.     bool     inTextMode;
  46.     const char * encodingName;
  47.     TempFile      tempFile;
  48.     ofstream     &buffer;
  49.     int    bb_llx,bb_lly,bb_urx,bb_ury;
  50.  
  51. #include "drvfuncs.h"
  52.  
  53. };
  54. #endif
  55.  
  56.