X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FCommonOutputDev.h;h=31b70af5930b4cd826d8fe111278fc15892d9601;hb=20f395856f21739e79eeab275beec7a3d133d568;hp=03b2f46bc5bd5fabfc8b151caef585ccd487cb0e;hpb=cbcb36e38ef35e0a1b950fa8cfa3d90e5aeaa19b;p=swftools.git diff --git a/lib/pdf/CommonOutputDev.h b/lib/pdf/CommonOutputDev.h index 03b2f46..31b70af 100644 --- a/lib/pdf/CommonOutputDev.h +++ b/lib/pdf/CommonOutputDev.h @@ -21,6 +21,13 @@ #define __commonoutputdev_h__ #include "OutputDev.h" +#include "../gfxdevice.h" + +#define RENDER_FILL 0 +#define RENDER_STROKE 1 +#define RENDER_FILLSTROKE 2 +#define RENDER_INVISIBLE 3 +#define RENDER_CLIP 4 class CommonOutputDev: public OutputDev { @@ -29,7 +36,23 @@ class CommonOutputDev: public OutputDev virtual void setMove(int x,int y) = 0; virtual void setClip(int x1,int y1,int x2,int y2) = 0; virtual void setParameter(const char*key, const char*value) = 0; + virtual void setPageMap(int*pagemap, int pagemap_len) = 0; - virtual void preparePage(int pdfpage, int outputpage) = 0; + virtual void setPage(Page *page) { this->page = page; } + virtual void finishPage() {}; + + virtual GBool checkPageSlice(Page *page, double hDPI, double vDPI, + int rotate, GBool useMediaBox, GBool crop, + int sliceX, int sliceY, int sliceW, int sliceH, + GBool printing, Catalog *catalog, + GBool (*abortCheckCbk)(void *data) = NULL, + void *abortCheckCbkData = NULL) + { + this->setPage(page); + return gTrue; + } + + protected: + Page *page; }; #endif //__deviceinterface_h__