From f0a09477923d23dbdd74d00209d0247ae09e7ec9 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 9 Sep 2007 10:25:58 +0000 Subject: [PATCH] implemented a few more OutputDev functions --- lib/pdf/GFXOutputDev.cc | 18 ++++++++++++++++++ lib/pdf/GFXOutputDev.h | 15 ++++++++++++++- 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/lib/pdf/GFXOutputDev.cc b/lib/pdf/GFXOutputDev.cc index ed879eb..52b92a5 100644 --- a/lib/pdf/GFXOutputDev.cc +++ b/lib/pdf/GFXOutputDev.cc @@ -663,6 +663,24 @@ GBool GFXOutputDev::useShadedFills() infofeature("shaded fills"); return gFalse; } + +GBool GFXOutputDev::useDrawForm() +{ + infofeature("forms"); + return gFalse; +} +void GFXOutputDev::drawForm(Ref id) +{ + msg(" drawForm not implemented"); +} +GBool GFXOutputDev::needNonText() +{ + return gTrue; +} +void GFXOutputDev::endPage() +{ + msg(" endPage"); +} #define STROKE_FILL 1 #define STROKE_CLIP 2 diff --git a/lib/pdf/GFXOutputDev.h b/lib/pdf/GFXOutputDev.h index 84769af..a1fb83d 100644 --- a/lib/pdf/GFXOutputDev.h +++ b/lib/pdf/GFXOutputDev.h @@ -57,7 +57,7 @@ public: void setMove(int x,int y); void setClip(int x1,int y1,int x2,int y2); - void setParameter(char*key, char*value); + void setParameter(const char*key, const char*value); void setInfo(InfoOutputDev*info) {this->info = info;} @@ -193,6 +193,19 @@ public: void finish(); + virtual GBool useDrawForm(); + virtual void drawForm(Ref id); + virtual GBool needNonText(); + virtual void endPage(); + + //virtual void dump(); + //virtual void beginStringOp(GfxState *state); + //virtual void drawString(GfxState *state, GString *s); + //virtual void endStringOp(GfxState *state); + //virtual GBool getVectorAntialias() { return gFalse; } + //virtual void setVectorAntialias(GBool vaa) {} + //virtual void psXObject(Stream *psStream, Stream *level1Stream) {} + private: void drawGeneralImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap*colorMap, GBool invert, -- 1.7.10.4