1 //========================================================================
5 // Copyright 2004 Glyph & Cog, LLC
7 //========================================================================
11 #ifdef USE_GCC_PRAGMAS
12 #pragma implementation
16 #include "TextOutputDev.h"
17 #include "CoreOutputDev.h"
19 //------------------------------------------------------------------------
21 //------------------------------------------------------------------------
23 CoreOutputDev::CoreOutputDev(SplashColorMode colorModeA
, int bitmapRowPadA
,
24 GBool reverseVideoA
, SplashColorPtr paperColorA
,
25 GBool incrementalUpdateA
,
26 CoreOutRedrawCbk redrawCbkA
,
27 void *redrawCbkDataA
):
28 SplashOutputDev(colorModeA
, bitmapRowPadA
, reverseVideoA
, paperColorA
)
30 incrementalUpdate
= incrementalUpdateA
;
31 redrawCbk
= redrawCbkA
;
32 redrawCbkData
= redrawCbkDataA
;
35 CoreOutputDev::~CoreOutputDev() {
38 void CoreOutputDev::endPage() {
39 SplashOutputDev::endPage();
40 if (!incrementalUpdate
) {
41 (*redrawCbk
)(redrawCbkData
, 0, 0, getBitmapWidth(), getBitmapHeight(),
46 void CoreOutputDev::dump() {
49 if (incrementalUpdate
) {
50 getModRegion(&x0
, &y0
, &x1
, &y1
);
52 if (x1
>= x0
&& y1
>= y0
) {
53 (*redrawCbk
)(redrawCbkData
, x0
, y0
, x1
, y1
, gFalse
);
58 void CoreOutputDev::clear() {