-
Notifications
You must be signed in to change notification settings - Fork 16
/
CoreOutputDev.h
61 lines (43 loc) · 1.39 KB
/
CoreOutputDev.h
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
//========================================================================
//
// CoreOutputDev.h
//
// Copyright 2004 Glyph & Cog, LLC
//
//========================================================================
#ifndef COREOUTPUTDEV_H
#define COREOUTPUTDEV_H
#ifdef USE_GCC_PRAGMAS
#pragma interface
#endif
#include "poppler/splash/SplashTypes.h"
#include "poppler/SplashOutputDev.h"
class TextPage;
//------------------------------------------------------------------------
typedef void (*CoreOutRedrawCbk)(void *data, int x0, int y0, int x1, int y1,
bool composited);
//------------------------------------------------------------------------
// CoreOutputDev
//------------------------------------------------------------------------
class CoreOutputDev: public SplashOutputDev {
public:
CoreOutputDev(SplashColorMode colorModeA, int bitmapRowPadA,
bool reverseVideoA, SplashColorPtr paperColorA,
bool incrementalUpdateA,
CoreOutRedrawCbk redrawCbkA,
void *redrawCbkDataA);
virtual ~CoreOutputDev();
//----- initialization and control
// End a page.
virtual void endPage();
// Dump page contents to display.
virtual void dump();
//----- special access
// Clear out the document (used when displaying an empty window).
void clear();
private:
bool incrementalUpdate; // incrementally update the display?
CoreOutRedrawCbk redrawCbk;
void *redrawCbkData;
};
#endif