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/ImageOutputDev.h') diff --git a/pdf/xpdf/ImageOutputDev.h b/pdf/xpdf/ImageOutputDev.h deleted file mode 100644 index 73f2f15..0000000 --- a/pdf/xpdf/ImageOutputDev.h +++ /dev/null @@ -1,76 +0,0 @@ -//======================================================================== -// -// ImageOutputDev.h -// -// Copyright 1998-2003 Glyph & Cog, LLC -// -//======================================================================== - -#ifndef IMAGEOUTPUTDEV_H -#define IMAGEOUTPUTDEV_H - -#include - -#ifdef USE_GCC_PRAGMAS -#pragma interface -#endif - -#include -#include "gtypes.h" -#include "OutputDev.h" - -class GfxState; - -//------------------------------------------------------------------------ -// ImageOutputDev -//------------------------------------------------------------------------ - -class ImageOutputDev: public OutputDev { -public: - - // Create an OutputDev which will write images to files named - // -NNN.. Normally, all images are written as PBM - // (.pbm) or PPM (.ppm) files. If is set, JPEG images are - // written as JPEG (.jpg) files. - ImageOutputDev(char *fileRootA, GBool dumpJPEGA); - - // Destructor. - virtual ~ImageOutputDev(); - - // Check if file was successfully created. - virtual GBool isOk() { return ok; } - - // Does this device use beginType3Char/endType3Char? Otherwise, - // text in Type 3 fonts will be drawn with drawChar/drawString. - virtual GBool interpretType3Chars() { return gFalse; } - - // Does this device need non-text content? - virtual GBool needNonText() { return gFalse; } - - //---- get info about output device - - // Does this device use upside-down coordinates? - // (Upside-down means (0,0) is the top left corner of the page.) - virtual GBool upsideDown() { return gTrue; } - - // Does this device use drawChar() or drawString()? - virtual GBool useDrawChar() { return gFalse; } - - //----- image drawing - virtual void drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, - GBool inlineImg); - virtual void drawImage(GfxState *state, Object *ref, Stream *str, - int width, int height, GfxImageColorMap *colorMap, - int *maskColors, GBool inlineImg); - -private: - - char *fileRoot; // root of output file names - char *fileName; // buffer for output file names - GBool dumpJPEG; // set to dump native JPEG files - int imgNum; // current image number - GBool ok; // set up ok? -}; - -#endif -- cgit v0.9.1