filters

PBMOutputDev.h

00001 //========================================================================
00002 //
00003 // PBMOutputDev.h
00004 //
00005 // Copyright 1998-2002 Glyph & Cog, LLC
00006 //
00007 //========================================================================
00008 
00009 #ifndef PBMOUTPUTDEV_H
00010 #define PBMOUTPUTDEV_H
00011 
00012 #include <aconf.h>
00013 
00014 #ifdef USE_GCC_PRAGMAS
00015 #pragma interface
00016 #endif
00017 
00018 #include <stddef.h>
00019 #include "config.h"
00020 #include "XOutputDev.h"
00021 
00022 //------------------------------------------------------------------------
00023 
00024 class PBMOutputDev: public XOutputDev {
00025 public:
00026 
00027   // NB: Users must use makePBMOutputDev and killPBMOutputDev rather
00028   // than the constructor and destructor.  (This is due to some
00029   // constraints in the underlying XOutputDev object.)
00030 
00031   static PBMOutputDev *makePBMOutputDev(char *displayName,
00032                     char *fileRootA);
00033 
00034   static void killPBMOutputDev(PBMOutputDev *out);
00035 
00036   virtual ~PBMOutputDev();
00037 
00038   //----- initialization and control
00039 
00040   // Start a page.
00041   virtual void startPage(int pageNum, GfxState *state);
00042 
00043   // End a page.
00044   virtual void endPage();
00045 
00046 private:
00047 
00048   PBMOutputDev(Display *displayA, int screenA,
00049            Pixmap pixmapA, Window dummyWinA,
00050            int invertA, char *fileRootA);
00051 
00052   char *fileRoot;
00053   char *fileName;
00054   int curPage;
00055 
00056   Display *display;
00057   int screen;
00058   Pixmap pixmap;
00059   Window dummyWin;
00060   int width, height;
00061   int invert;
00062 };
00063 
00064 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys