X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.h;h=a907b71d798155cca129e6ddf0d78abd48d2023a;hb=20d5b3e929104c059322b36458faa59283408b16;hp=89c6185db671f35d5ec5ed146e852de2a6e3da00;hpb=6408344715233ec42438c31b98da96e60bc36208;p=swftools.git diff --git a/lib/pdf/GFXOutputDev.h b/lib/pdf/GFXOutputDev.h index 89c6185..a907b71 100644 --- a/lib/pdf/GFXOutputDev.h +++ b/lib/pdf/GFXOutputDev.h @@ -29,14 +29,15 @@ class GFXOutputState { gfxresult_t* softmaskrecording; // for soft masks gfxdevice_t* olddevice; + + GfxState*state; }; -typedef struct _parameter +typedef struct _feature { - char*name; - char*value; - struct _parameter*next; -} parameter_t; + char*string; + struct _feature*next; +} feature_t; void addGlobalFont(const char*filename); void addGlobalLanguageDir(const char*dir); @@ -80,6 +81,7 @@ public: //----- update graphics state + virtual void updateLineDash(GfxState *state); virtual void updateFont(GfxState *state); virtual void updateFontMatrix(GfxState *state); virtual void updateFillColor(GfxState *state); @@ -207,7 +209,7 @@ public: 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 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); @@ -216,6 +218,8 @@ public: void warnfeature(const char*feature,char fully); void infofeature(const char*feature); + feature_t*featurewarnings; + char outer_clip_box; //whether the page clip box is still on gfxfontlist_t*gfxfontlist; @@ -278,8 +282,10 @@ public: int config_convertgradients; int config_optimize_polygons; double config_fontquality; - - parameter_t*parameters; + + double *dashPattern; + int dashLength; + double dashStart; }; class GFXGlobalParams: public GlobalParams {