#include <aconf.h>
#include "gtypes.h"
#include "gfile.h" // for time_t
+#include "SplashTypes.h"
class GString;
class GList;
class PDFDoc;
class LinkAction;
class LinkDest;
-class XPixmapOutputDev;
+class XSplashOutputDev;
//------------------------------------------------------------------------
// zoom factor
struct XPDFRegion {
int page;
double xMin, yMin, xMax, yMax;
- Gulong color;
- Gulong selectColor;
+ SplashRGB8 color;
+ SplashRGB8 selectColor;
GBool selectable;
};
// Create viewer core inside <parentWidgetA>.
XPDFCore(Widget shellA, Widget parentWidgetA,
- Gulong paperColorA, GBool fullScreenA, GBool reverseVideo,
- GBool installCmap, int rgbCubeSize);
+ SplashRGB8 paperColorA, GBool fullScreenA,
+ GBool reverseVideo, GBool installCmap, int rgbCubeSize);
~XPDFCore();
Widget getWidget() { return scrolledWin; }
Widget getDrawAreaWidget() { return drawArea; }
PDFDoc *getDoc() { return doc; }
- XPixmapOutputDev *getOutputDev() { return out; }
+ XSplashOutputDev *getOutputDev() { return out; }
int getPageNum() { return page; }
double getZoom() { return zoom; }
double getZoomDPI() { return dpi; }
static void dialogCancelCbk(Widget widget, XtPointer ptr,
XtPointer callData);
- Gulong paperColor;
+ SplashRGB8 paperColor;
GBool fullScreen;
Display *display;
Cursor busyCursor, linkCursor, selectCursor;
Cursor currentCursor;
GC drawAreaGC; // GC for blitting into drawArea
- GC selectGC;
- GC highlightGC;
int drawAreaWidth, drawAreaHeight;
int scrollX, scrollY; // current upper-left corner
GBool hyperlinksEnabled;
GBool selectEnabled;
- XPixmapOutputDev *out;
+ XSplashOutputDev *out;
int dialogDone;
};