blob: 9d1539dfe69c58e11ef1e65bc4eef0895dd54c59 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
//========================================================================
//
// PBMOutputDev.h
//
// Copyright 1998-2003 Glyph & Cog, LLC
//
//========================================================================
#ifndef PBMOUTPUTDEV_H
#define PBMOUTPUTDEV_H
#include <aconf.h>
#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
#include <stddef.h>
#include "config.h"
#include "XOutputDev.h"
//------------------------------------------------------------------------
class PBMOutputDev: public XOutputDev {
public:
// NB: Users must use makePBMOutputDev and killPBMOutputDev rather
// than the constructor and destructor. (This is due to some
// constraints in the underlying XOutputDev object.)
static PBMOutputDev *makePBMOutputDev(char *displayName,
char *fileRootA);
static void killPBMOutputDev(PBMOutputDev *out);
virtual ~PBMOutputDev();
//----- initialization and control
// Start a page.
virtual void startPage(int pageNum, GfxState *state);
// End a page.
virtual void endPage();
private:
PBMOutputDev(Display *displayA, int screenA,
Pixmap pixmapA, Window dummyWinA,
int invertA, char *fileRootA);
char *fileRoot;
char *fileName;
int curPage;
Display *display;
int screen;
Pixmap pixmap;
Window dummyWin;
int width, height;
int invert;
};
#endif
|