1 //========================================================================
5 // Copyright 1998-2003 Glyph & Cog, LLC
7 //========================================================================
10 #define PBMOUTPUTDEV_H
14 #ifdef USE_GCC_PRAGMAS
20 #include "XOutputDev.h"
22 //------------------------------------------------------------------------
24 class PBMOutputDev: public XOutputDev {
27 // NB: Users must use makePBMOutputDev and killPBMOutputDev rather
28 // than the constructor and destructor. (This is due to some
29 // constraints in the underlying XOutputDev object.)
31 static PBMOutputDev *makePBMOutputDev(char *displayName,
34 static void killPBMOutputDev(PBMOutputDev *out);
36 virtual ~PBMOutputDev();
38 //----- initialization and control
41 virtual void startPage(int pageNum, GfxState *state);
44 virtual void endPage();
48 PBMOutputDev(Display *displayA, int screenA,
49 Pixmap pixmapA, Window dummyWinA,
50 int invertA, char *fileRootA);