X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fpdf%2FGFXOutputDev.h;h=f966e7c649b677c3c012bdf8d461fb4f9d4c340b;hb=9f378b70ff01b6210e67d1b72b5ca3871016e3d7;hp=51e63121176d8784971b15666a02e8756a6b99e4;hpb=89548fb698c2b3002364c52b5962e4c3326eb96e;p=swftools.git diff --git a/lib/pdf/GFXOutputDev.h b/lib/pdf/GFXOutputDev.h index 51e6312..f966e7c 100644 --- a/lib/pdf/GFXOutputDev.h +++ b/lib/pdf/GFXOutputDev.h @@ -29,14 +29,9 @@ class GFXOutputState { gfxresult_t* softmaskrecording; // for soft masks gfxdevice_t* olddevice; -}; -typedef struct _parameter -{ - char*name; - char*value; - struct _parameter*next; -} parameter_t; + GfxState*state; +}; typedef struct _feature { @@ -86,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); @@ -213,11 +209,13 @@ 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); + gfxfont_t* createGfxFont(GfxFont*xpdffont, FontInfo*src); + void showfeature(const char*feature,char fully, char warn); void warnfeature(const char*feature,char fully); void infofeature(const char*feature); @@ -285,9 +283,12 @@ public: int config_extrafontdata; int config_convertgradients; int config_optimize_polygons; + int config_bigchar; double config_fontquality; - - parameter_t*parameters; + + double *dashPattern; + int dashLength; + double dashStart; }; class GFXGlobalParams: public GlobalParams {