implemented a few more OutputDev functions
authorkramm <kramm>
Sun, 9 Sep 2007 10:25:58 +0000 (10:25 +0000)
committerkramm <kramm>
Sun, 9 Sep 2007 10:25:58 +0000 (10:25 +0000)
lib/pdf/GFXOutputDev.cc
lib/pdf/GFXOutputDev.h

index ed879eb..52b92a5 100644 (file)
@@ -663,6 +663,24 @@ GBool GFXOutputDev::useShadedFills()
     infofeature("shaded fills");
     return gFalse;
 }
     infofeature("shaded fills");
     return gFalse;
 }
+  
+GBool GFXOutputDev::useDrawForm() 
+{ 
+    infofeature("forms");
+    return gFalse; 
+}
+void GFXOutputDev::drawForm(Ref id) 
+{
+    msg("<error> drawForm not implemented");
+}
+GBool GFXOutputDev::needNonText() 
+{ 
+    return gTrue; 
+}
+void GFXOutputDev::endPage() 
+{
+    msg("<verbose> endPage");
+}
 
 #define STROKE_FILL 1
 #define STROKE_CLIP 2
 
 #define STROKE_FILL 1
 #define STROKE_CLIP 2
index 84769af..a1fb83d 100644 (file)
@@ -57,7 +57,7 @@ public:
 
   void setMove(int x,int y);
   void setClip(int x1,int y1,int x2,int y2);
 
   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;}
   
 
   void setInfo(InfoOutputDev*info) {this->info = info;}
   
@@ -193,6 +193,19 @@ public:
 
   void finish();
 
 
   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,
   private:
   void drawGeneralImage(GfxState *state, Object *ref, Stream *str,
                                   int width, int height, GfxImageColorMap*colorMap, GBool invert,