coreoutputdev.cc
来自「这是一个做pdf阅读器的源代码文件,是大家学习阅读器资料的很好参考」· CC 代码 · 共 62 行
CC
62 行
//========================================================================//// CoreOutputDev.cc//// Copyright 2004 Glyph & Cog, LLC////========================================================================#include <aconf.h>#ifdef USE_GCC_PRAGMAS#pragma implementation#endif#include "Object.h"#include "TextOutputDev.h"#include "CoreOutputDev.h"//------------------------------------------------------------------------// CoreOutputDev//------------------------------------------------------------------------CoreOutputDev::CoreOutputDev(SplashColorMode colorModeA, int bitmapRowPadA, GBool reverseVideoA, SplashColorPtr paperColorA, GBool incrementalUpdateA, CoreOutRedrawCbk redrawCbkA, void *redrawCbkDataA): SplashOutputDev(colorModeA, bitmapRowPadA, reverseVideoA, paperColorA){ incrementalUpdate = incrementalUpdateA; redrawCbk = redrawCbkA; redrawCbkData = redrawCbkDataA;}CoreOutputDev::~CoreOutputDev() {}void CoreOutputDev::endPage() { SplashOutputDev::endPage(); if (!incrementalUpdate) { (*redrawCbk)(redrawCbkData, 0, 0, getBitmapWidth(), getBitmapHeight(), gTrue); }}void CoreOutputDev::dump() { int x0, y0, x1, y1; if (incrementalUpdate) { getModRegion(&x0, &y0, &x1, &y1); clearModRegion(); if (x1 >= x0 && y1 >= y0) { (*redrawCbk)(redrawCbkData, x0, y0, x1, y1, gFalse); } }}void CoreOutputDev::clear() { startDoc(NULL); startPage(0, NULL);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?