diff options
Diffstat (limited to 'poppler/PreScanOutputDev.h')
-rw-r--r-- | poppler/PreScanOutputDev.h | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/poppler/PreScanOutputDev.h b/poppler/PreScanOutputDev.h index 8393fc88..a53aa13c 100644 --- a/poppler/PreScanOutputDev.h +++ b/poppler/PreScanOutputDev.h @@ -50,24 +50,24 @@ public: // Does this device use upside-down coordinates? // (Upside-down means (0,0) is the top left corner of the page.) - GBool upsideDown() override { return gTrue; } + bool upsideDown() override { return true; } // Does this device use drawChar() or drawString()? - GBool useDrawChar() override { return gTrue; } + bool useDrawChar() override { return true; } // Does this device use tilingPatternFill()? If this returns false, // tiling pattern fills will be reduced to a series of other drawing // operations. - GBool useTilingPatternFill() override { return gTrue; } + bool useTilingPatternFill() override { return true; } // Does this device use functionShadedFill(), axialShadedFill(), and // radialShadedFill()? If this returns false, these shaded fills // will be reduced to a series of other drawing operations. - GBool useShadedFills(int type) override { return gTrue; } + bool useShadedFills(int type) override { return true; } // Does this device use beginType3Char/endType3Char? Otherwise, // text in Type 3 fonts will be drawn with drawChar/drawString. - GBool interpretType3Chars() override { return gTrue; } + bool interpretType3Chars() override { return true; } //----- initialization and control @@ -81,15 +81,15 @@ public: void stroke(GfxState *state) override; void fill(GfxState *state) override; void eoFill(GfxState *state) override; - GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str, + bool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *cat, Object *str, const double *pmat, int paintType, int tilingType, Dict *resDict, const double *mat, const double *bbox, int x0, int y0, int x1, int y1, double xStep, double yStep) override; - GBool functionShadedFill(GfxState *state, + bool functionShadedFill(GfxState *state, GfxFunctionShading *shading) override; - GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax) override; - GBool radialShadedFill(GfxState *state, GfxRadialShading *shading, double tMin, double tMax) override; + bool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax) override; + bool radialShadedFill(GfxState *state, GfxRadialShading *shading, double tMin, double tMax) override; //----- path clipping void clip(GfxState *state) override; @@ -98,64 +98,64 @@ public: //----- text drawing void beginStringOp(GfxState *state) override; void endStringOp(GfxState *state) override; - GBool beginType3Char(GfxState *state, double x, double y, + bool beginType3Char(GfxState *state, double x, double y, double dx, double dy, CharCode code, Unicode *u, int uLen) override; void endType3Char(GfxState *state) override; //----- image drawing void drawImageMask(GfxState *state, Object *ref, Stream *str, - int width, int height, GBool invert, - GBool interpolate, GBool inlineImg) override; + int width, int height, bool invert, + bool interpolate, bool inlineImg) override; void drawImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, int *maskColors, GBool inlineImg) override; + bool interpolate, int *maskColors, bool inlineImg) override; void drawMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, + bool interpolate, Stream *maskStr, int maskWidth, int maskHeight, - GBool maskInvert, GBool maskInterpolate) override; + bool maskInvert, bool maskInterpolate) override; void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str, int width, int height, GfxImageColorMap *colorMap, - GBool interpolate, + bool interpolate, Stream *maskStr, int maskWidth, int maskHeight, GfxImageColorMap *maskColorMap, - GBool maskInterpolate) override; + bool maskInterpolate) override; //----- transparency groups and soft masks void beginTransparencyGroup(GfxState *state, const double *bbox, GfxColorSpace *blendingColorSpace, - GBool isolated, GBool knockout, - GBool forSoftMask) override; + bool isolated, bool knockout, + bool forSoftMask) override; void paintTransparencyGroup(GfxState *state, const double *bbox) override; - void setSoftMask(GfxState *state, const double *bbox, GBool alpha, + void setSoftMask(GfxState *state, const double *bbox, bool alpha, Function *transferFunc, GfxColor *backdropColor) override; //----- special access // Returns true if the operations performed since the last call to // clearStats() are all monochrome (black or white). - GBool isMonochrome() { return mono; } + bool isMonochrome() { return mono; } // Returns true if the operations performed since the last call to // clearStats() are all gray. - GBool isGray() { return gray; } + bool isGray() { return gray; } // Returns true if the operations performed since the last call to // clearStats() included any transparency. - GBool usesTransparency() { return transparency; } + bool usesTransparency() { return transparency; } // Returns true if the operations performed since the last call to // clearStats() are all rasterizable by GDI calls in GDIOutputDev. - GBool isAllGDI() { return gdi; } + bool isAllGDI() { return gdi; } // Returns true if the operations performed since the last call to // clearStats() included any image mask fills with a pattern color // space. (only level1!) - GBool usesPatternImageMask() { return patternImgMask; } + bool usesPatternImageMask() { return patternImgMask; } // Clear the stats used by the above functions. void clearStats(); @@ -166,12 +166,12 @@ private: double opacity, GfxBlendMode blendMode); PDFDoc *doc; - GBool mono; - GBool gray; - GBool transparency; - GBool gdi; + bool mono; + bool gray; + bool transparency; + bool gdi; PSLevel level; // PostScript level (1, 2, separation) - GBool patternImgMask; + bool patternImgMask; int inTilingPatternFill; }; |