X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.h;h=0e3d2b3b0fc1c7786439f7ab41442ac2d155bcea;hb=c6d815f656ed77b45bfb5685c030c97f6245044c;hp=84769af979a9cf947518ae5823f311cb3f89f1ba;hpb=80cc20b7784cccc9d8baf9839f9781db6bb6f539;p=swftools.git diff --git a/lib/pdf/GFXOutputDev.h b/lib/pdf/GFXOutputDev.h index 84769af..0e3d2b3 100644 --- a/lib/pdf/GFXOutputDev.h +++ b/lib/pdf/GFXOutputDev.h @@ -3,6 +3,7 @@ #include "../gfxdevice.h" #include "../gfxsource.h" +#include "../gfxtools.h" #include "config.h" #include "InfoOutputDev.h" @@ -57,7 +58,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,12 +194,25 @@ 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, GBool inlineImg, int mask, int *maskColors, Stream *maskStr, int maskWidth, int maskHeight, GBool maskInvert, GfxImageColorMap*maskColorMap); - int setGfxFont(char*id, char*name, char*filename, double quality); + int setGfxFont(char*id, char*name, char*filename, double maxSize, CharCodeToUnicode*ctu); void strokeGfxline(GfxState *state, gfxline_t*line, int flags); void clipToGfxLine(GfxState *state, gfxline_t*line); void fillGfxLine(GfxState *state, gfxline_t*line); @@ -208,7 +222,9 @@ public: void infofeature(const char*feature); char outer_clip_box; //whether the page clip box is still on - + + gfxfontlist_t*gfxfontlist; + GBool do_interpretType3Chars; InfoOutputDev*info; @@ -254,10 +270,9 @@ public: gfxline_t* current_text_clip; char* current_font_id; gfxfont_t* current_gfxfont; + FontInfo*current_fontinfo; gfxmatrix_t current_font_matrix; - fontlist_t* fontlist; - int*pages; int pagebuflen; int pagepos; @@ -265,8 +280,17 @@ public: /* config */ int config_use_fontconfig; int config_break_on_warning; + int config_remapunicode; + int config_transparent; parameter_t*parameters; }; +class GFXGlobalParams: public GlobalParams { + public: + GFXGlobalParams(); + ~GFXGlobalParams(); + virtual DisplayFontParam *getDisplayFont(GString *fontName); +}; + #endif //__gfxoutputdev_h__