diff options
author | Arturo Espinosa <unammx@src.gnome.org> | 1999-04-17 02:59:58 (GMT) |
---|---|---|
committer | Arturo Espinosa <unammx@src.gnome.org> | 1999-04-17 02:59:58 (GMT) |
commit | d9f9a6449f377b4c933b75d57541b19c6d088994 (patch) | |
tree | 04f7f0c54447ef792fbf83bc5039174f4681b3bb /pdf/xpdf/PBMOutputDev.h |
Initial revision
Diffstat (limited to 'pdf/xpdf/PBMOutputDev.h')
-rw-r--r-- | pdf/xpdf/PBMOutputDev.h | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/pdf/xpdf/PBMOutputDev.h b/pdf/xpdf/PBMOutputDev.h new file mode 100644 index 0000000..3d235b3 --- /dev/null +++ b/pdf/xpdf/PBMOutputDev.h @@ -0,0 +1,56 @@ +//======================================================================== +// +// PBMOutputDev.h +// +// Copyright 1998 Derek B. Noonburg +// +//======================================================================== + +#ifndef PBMOUTPUTDEV_H +#define PBMOUTPUTDEV_H + +#ifdef __GNUC__ +#pragma interface +#endif + +#include <stddef.h> +#include "config.h" +#include "XOutputDev.h" + +//------------------------------------------------------------------------ + +class PBMOutputDev: public XOutputDev { +public: + + static PBMOutputDev *makePBMOutputDev(char *displayName, + char *fileRoot1); + + ~PBMOutputDev(); + + //----- initialization and control + + // Start a page. + virtual void startPage(int pageNum, GfxState *state); + + // End a page. + virtual void endPage(); + +private: + + PBMOutputDev(Display *display1, int screen1, + Pixmap pixmap1, Window dummyWin1, + int invert1, char *fileRoot1); + + char *fileRoot; + char *fileName; + int curPage; + + Display *display; + int screen; + Pixmap pixmap; + Window dummyWin; + int width, height; + int invert; +}; + +#endif |