From 02eb16fef45712a91e24f6471b9e2f31249c888e Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Tue, 01 Mar 2005 22:24:10 +0000 Subject: Use poppler instead of including xpdf source code. Poppler is a fork of 2005-03-01 Kristian Høgsberg Use poppler instead of including xpdf source code. Poppler is a fork of xpdf to build it as a shared library. See http://freedesktop.org/wiki/Software/poppler. * pdf/xpdf/*, pdf/goo/*, pdf/splash/*, pdf/fofi/*: Remove included xpdf fork. * pdf/Makefile.am: Build libpdfdocument.a here. * pdf/GDKSplashOutputDev.cc: * pdf/GDKSplashOutputDev.h: * pdf/GnomeVFSStream.cc: * pdf/GnomeVFSStream.h: * pdf-document.cc: * pdf-document.h: * test-gdk-output-dev.cc * Thumb.cc: * Thumb.h: Pull these files out of pdf/xpdf and adjust to compile against poppler. --- (limited to 'pdf/xpdf/XPDFApp.h') diff --git a/pdf/xpdf/XPDFApp.h b/pdf/xpdf/XPDFApp.h deleted file mode 100644 index 4e23955..0000000 --- a/pdf/xpdf/XPDFApp.h +++ /dev/null @@ -1,108 +0,0 @@ -//======================================================================== -// -// XPDFApp.h -// -// Copyright 2002-2003 Glyph & Cog, LLC -// -//======================================================================== - -#ifndef XPDFAPP_H -#define XPDFAPP_H - -#include - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#define Object XtObject -#include -#undef Object -#include "gtypes.h" -#include "SplashTypes.h" - -class GString; -class GList; -class XPDFViewer; - -//------------------------------------------------------------------------ - -#define xpdfAppName "Xpdf" - -//------------------------------------------------------------------------ -// XPDFApp -//------------------------------------------------------------------------ - -class XPDFApp { -public: - - XPDFApp(int *argc, char *argv[]); - ~XPDFApp(); - - XPDFViewer *open(GString *fileName, int page = 1, - GString *ownerPassword = NULL, - GString *userPassword = NULL); - XPDFViewer *openAtDest(GString *fileName, GString *dest, - GString *ownerPassword = NULL, - GString *userPassword = NULL); - void close(XPDFViewer *viewer, GBool closeLast); - void quit(); - - void run(); - - //----- remote server - void setRemoteName(char *remoteName); - GBool remoteServerRunning(); - void remoteOpen(GString *fileName, int page, GBool raise); - void remoteOpenAtDest(GString *fileName, GString *dest, GBool raise); - void remoteReload(GBool raise); - void remoteRaise(); - void remoteQuit(); - - //----- resource/option values - GString *getGeometry() { return geometry; } - GString *getTitle() { return title; } - GBool getInstallCmap() { return installCmap; } - int getRGBCubeSize() { return rgbCubeSize; } - GBool getReverseVideo() { return reverseVideo; } - SplashRGB8 getPaperRGB() { return paperRGB; } - Gulong getPaperColor() { return paperColor; } - GString *getInitialZoom() { return initialZoom; } - GBool getViKeys() { return viKeys; } - void setFullScreen(GBool fullScreenA) { fullScreen = fullScreenA; } - GBool getFullScreen() { return fullScreen; } - - XtAppContext getAppContext() { return appContext; } - Widget getAppShell() { return appShell; } - -private: - - void getResources(); - static void remoteMsgCbk(Widget widget, XtPointer ptr, - XEvent *event, Boolean *cont); - - Display *display; - int screenNum; - XtAppContext appContext; - Widget appShell; - GList *viewers; // [XPDFViewer] - - Atom remoteAtom; - Window remoteXWin; - XPDFViewer *remoteViewer; - Widget remoteWin; - - //----- resource/option values - GString *geometry; - GString *title; - GBool installCmap; - int rgbCubeSize; - GBool reverseVideo; - SplashRGB8 paperRGB; - Gulong paperColor; - GString *initialZoom; - GBool viKeys; - GBool fullScreen; -}; - -#endif -- cgit v0.9.1