home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga 12 / MA_Cover_12.iso / source / xpdf-0.80 / xpdf / pbmoutputdev.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-11-27  |  1.0 KB  |  57 lines

  1. //========================================================================
  2. //
  3. // PBMOutputDev.h
  4. //
  5. // Copyright 1998 Derek B. Noonburg
  6. //
  7. //========================================================================
  8.  
  9. #ifndef PBMOUTPUTDEV_H
  10. #define PBMOUTPUTDEV_H
  11.  
  12. #ifdef __GNUC__
  13. #pragma interface
  14. #endif
  15.  
  16. #include <stddef.h>
  17. #include "config.h"
  18. #include "XOutputDev.h"
  19.  
  20. //------------------------------------------------------------------------
  21.  
  22. class PBMOutputDev: public XOutputDev {
  23. public:
  24.  
  25.   static PBMOutputDev *makePBMOutputDev(char *displayName,
  26.                     char *fileRoot1);
  27.  
  28.   ~PBMOutputDev();
  29.  
  30.   //----- initialization and control
  31.  
  32.   // Start a page.
  33.   virtual void startPage(int pageNum, GfxState *state);
  34.  
  35.   // End a page.
  36.   virtual void endPage();
  37.  
  38. private:
  39.  
  40.   PBMOutputDev(Display *display1, int screen1,
  41.            Pixmap pixmap1, Window dummyWin1,
  42.            int invert1, char *fileRoot1);
  43.  
  44.   char *fileRoot;
  45.   char *fileName;
  46.   int curPage;
  47.  
  48.   Display *display;
  49.   int screen;
  50.   Pixmap pixmap;
  51.   Window dummyWin;
  52.   int width, height;
  53.   int invert;
  54. };
  55.  
  56. #endif
  57.