summaryrefslogtreecommitdiff
path: root/poppler/SplashOutputDev.h
diff options
context:
space:
mode:
Diffstat (limited to 'poppler/SplashOutputDev.h')
-rw-r--r--poppler/SplashOutputDev.h210
1 files changed, 105 insertions, 105 deletions
diff --git a/poppler/SplashOutputDev.h b/poppler/SplashOutputDev.h
index 5c5512ba..88635d09 100644
--- a/poppler/SplashOutputDev.h
+++ b/poppler/SplashOutputDev.h
@@ -64,19 +64,19 @@ public:
SplashFunctionPattern(SplashColorMode colorMode, GfxState *state, GfxFunctionShading *shading);
- virtual SplashPattern *copy() { return new SplashFunctionPattern(colorMode, state, (GfxFunctionShading *) shading); }
+ SplashPattern *copy() override { return new SplashFunctionPattern(colorMode, state, (GfxFunctionShading *) shading); }
- virtual ~SplashFunctionPattern();
+ ~SplashFunctionPattern();
- virtual GBool testPosition(int x, int y) { return gTrue; }
+ GBool testPosition(int x, int y) override { return gTrue; }
- virtual GBool isStatic() { return gFalse; }
+ GBool isStatic() override { return gFalse; }
- virtual GBool getColor(int x, int y, SplashColorPtr c);
+ GBool getColor(int x, int y, SplashColorPtr c) override;
virtual GfxFunctionShading *getShading() { return shading; }
- virtual GBool isCMYK() { return gfxMode == csDeviceCMYK; }
+ GBool isCMYK() override { return gfxMode == csDeviceCMYK; }
protected:
Matrix ictm;
@@ -92,19 +92,19 @@ public:
SplashUnivariatePattern(SplashColorMode colorMode, GfxState *state, GfxUnivariateShading *shading);
- virtual ~SplashUnivariatePattern();
+ ~SplashUnivariatePattern();
- virtual GBool getColor(int x, int y, SplashColorPtr c);
+ GBool getColor(int x, int y, SplashColorPtr c) override;
- virtual GBool testPosition(int x, int y);
+ GBool testPosition(int x, int y) override;
- virtual GBool isStatic() { return gFalse; }
+ GBool isStatic() override { return gFalse; }
virtual GBool getParameter(double xs, double ys, double *t) = 0;
virtual GfxUnivariateShading *getShading() { return shading; }
- virtual GBool isCMYK() { return gfxMode == csDeviceCMYK; }
+ GBool isCMYK() override { return gfxMode == csDeviceCMYK; }
protected:
Matrix ictm;
@@ -120,11 +120,11 @@ public:
SplashAxialPattern(SplashColorMode colorMode, GfxState *state, GfxAxialShading *shading);
- virtual SplashPattern *copy() { return new SplashAxialPattern(colorMode, state, (GfxAxialShading *) shading); }
+ SplashPattern *copy() override { return new SplashAxialPattern(colorMode, state, (GfxAxialShading *) shading); }
- virtual ~SplashAxialPattern();
+ ~SplashAxialPattern();
- virtual GBool getParameter(double xs, double ys, double *t);
+ GBool getParameter(double xs, double ys, double *t) override;
private:
double x0, y0, x1, y1;
@@ -137,26 +137,26 @@ public:
SplashGouraudPattern(GBool bDirectColorTranslation, GfxState *state, GfxGouraudTriangleShading *shading, SplashColorMode mode);
- virtual SplashPattern *copy() { return new SplashGouraudPattern(bDirectColorTranslation, state, shading, mode); }
+ SplashPattern *copy() override { return new SplashGouraudPattern(bDirectColorTranslation, state, shading, mode); }
- virtual ~SplashGouraudPattern();
+ ~SplashGouraudPattern();
- virtual GBool getColor(int x, int y, SplashColorPtr c) { return gFalse; }
+ GBool getColor(int x, int y, SplashColorPtr c) override { return gFalse; }
- virtual GBool testPosition(int x, int y) { return gFalse; }
+ GBool testPosition(int x, int y) override { return gFalse; }
- virtual GBool isStatic() { return gFalse; }
+ GBool isStatic() override { return gFalse; }
- virtual GBool isCMYK() { return gfxMode == csDeviceCMYK; }
+ GBool isCMYK() override { return gfxMode == csDeviceCMYK; }
- virtual GBool isParameterized() { return shading->isParameterized(); }
- virtual int getNTriangles() { return shading->getNTriangles(); }
- virtual void getTriangle(int i, double *x0, double *y0, double *color0,
+ GBool isParameterized() override { return shading->isParameterized(); }
+ int getNTriangles() override { return shading->getNTriangles(); }
+ void getTriangle(int i, double *x0, double *y0, double *color0,
double *x1, double *y1, double *color1,
- double *x2, double *y2, double *color2)
+ double *x2, double *y2, double *color2) override
{ return shading->getTriangle(i, x0, y0, color0, x1, y1, color1, x2, y2, color2); }
- virtual void getParameterizedColor(double t, SplashColorMode mode, SplashColorPtr c);
+ void getParameterizedColor(double t, SplashColorMode mode, SplashColorPtr c) override;
private:
GfxGouraudTriangleShading *shading;
@@ -172,11 +172,11 @@ public:
SplashRadialPattern(SplashColorMode colorMode, GfxState *state, GfxRadialShading *shading);
- virtual SplashPattern *copy() { return new SplashRadialPattern(colorMode, state, (GfxRadialShading *) shading); }
+ SplashPattern *copy() override { return new SplashRadialPattern(colorMode, state, (GfxRadialShading *) shading); }
- virtual ~SplashRadialPattern();
+ ~SplashRadialPattern();
- virtual GBool getParameter(double xs, double ys, double *t);
+ GBool getParameter(double xs, double ys, double *t) override;
private:
double x0, y0, r0, dx, dy, dr;
@@ -203,146 +203,146 @@ public:
GBool overprintPreviewA = globalParams->getOverprintPreview());
// Destructor.
- virtual ~SplashOutputDev();
+ ~SplashOutputDev();
//----- get info about output device
// Does this device use tilingPatternFill()? If this returns false,
// tiling pattern fills will be reduced to a series of other drawing
// operations.
- virtual GBool useTilingPatternFill() { return gTrue; }
+ GBool useTilingPatternFill() override { return gTrue; }
// 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.
- virtual GBool useShadedFills(int type)
+ GBool useShadedFills(int type) override
{ return (type >= 1 && type <= 5) ? gTrue : gFalse; }
// Does this device use upside-down coordinates?
// (Upside-down means (0,0) is the top left corner of the page.)
- virtual GBool upsideDown() { return bitmapTopDown ^ bitmapUpsideDown; }
+ GBool upsideDown() override { return bitmapTopDown ^ bitmapUpsideDown; }
// Does this device use drawChar() or drawString()?
- virtual GBool useDrawChar() { return gTrue; }
+ GBool useDrawChar() override { return gTrue; }
// Does this device use beginType3Char/endType3Char? Otherwise,
// text in Type 3 fonts will be drawn with drawChar/drawString.
- virtual GBool interpretType3Chars() { return gTrue; }
+ GBool interpretType3Chars() override { return gTrue; }
//----- initialization and control
// Start a page.
- virtual void startPage(int pageNum, GfxState *state, XRef *xref);
+ void startPage(int pageNum, GfxState *state, XRef *xref) override;
// End a page.
- virtual void endPage();
+ void endPage() override;
//----- save/restore graphics state
- virtual void saveState(GfxState *state);
- virtual void restoreState(GfxState *state);
+ void saveState(GfxState *state) override;
+ void restoreState(GfxState *state) override;
//----- update graphics state
- virtual void updateAll(GfxState *state);
- virtual void updateCTM(GfxState *state, double m11, double m12,
- double m21, double m22, double m31, double m32);
- virtual void updateLineDash(GfxState *state);
- virtual void updateFlatness(GfxState *state);
- virtual void updateLineJoin(GfxState *state);
- virtual void updateLineCap(GfxState *state);
- virtual void updateMiterLimit(GfxState *state);
- virtual void updateLineWidth(GfxState *state);
- virtual void updateStrokeAdjust(GfxState *state);
- virtual void updateFillColorSpace(GfxState *state);
- virtual void updateStrokeColorSpace(GfxState *state);
- virtual void updateFillColor(GfxState *state);
- virtual void updateStrokeColor(GfxState *state);
- virtual void updateBlendMode(GfxState *state);
- virtual void updateFillOpacity(GfxState *state);
- virtual void updateStrokeOpacity(GfxState *state);
- virtual void updatePatternOpacity(GfxState *state);
- virtual void clearPatternOpacity(GfxState *state);
- virtual void updateFillOverprint(GfxState *state);
- virtual void updateStrokeOverprint(GfxState *state);
- virtual void updateOverprintMode(GfxState *state);
- virtual void updateTransfer(GfxState *state);
+ void updateAll(GfxState *state) override;
+ void updateCTM(GfxState *state, double m11, double m12,
+ double m21, double m22, double m31, double m32) override;
+ void updateLineDash(GfxState *state) override;
+ void updateFlatness(GfxState *state) override;
+ void updateLineJoin(GfxState *state) override;
+ void updateLineCap(GfxState *state) override;
+ void updateMiterLimit(GfxState *state) override;
+ void updateLineWidth(GfxState *state) override;
+ void updateStrokeAdjust(GfxState *state) override;
+ void updateFillColorSpace(GfxState *state) override;
+ void updateStrokeColorSpace(GfxState *state) override;
+ void updateFillColor(GfxState *state) override;
+ void updateStrokeColor(GfxState *state) override;
+ void updateBlendMode(GfxState *state) override;
+ void updateFillOpacity(GfxState *state) override;
+ void updateStrokeOpacity(GfxState *state) override;
+ void updatePatternOpacity(GfxState *state) override;
+ void clearPatternOpacity(GfxState *state) override;
+ void updateFillOverprint(GfxState *state) override;
+ void updateStrokeOverprint(GfxState *state) override;
+ void updateOverprintMode(GfxState *state) override;
+ void updateTransfer(GfxState *state) override;
//----- update text state
- virtual void updateFont(GfxState *state);
+ void updateFont(GfxState *state) override;
//----- path painting
- virtual void stroke(GfxState *state);
- virtual void fill(GfxState *state);
- virtual void eoFill(GfxState *state);
- virtual GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *catalog, Object *str,
+ void stroke(GfxState *state) override;
+ void fill(GfxState *state) override;
+ void eoFill(GfxState *state) override;
+ GBool tilingPatternFill(GfxState *state, Gfx *gfx, Catalog *catalog, Object *str,
double *pmat, int paintType, int tilingType, Dict *resDict,
double *mat, double *bbox,
int x0, int y0, int x1, int y1,
- double xStep, double yStep);
- virtual GBool functionShadedFill(GfxState *state, GfxFunctionShading *shading);
- virtual GBool axialShadedFill(GfxState *state, GfxAxialShading *shading, double tMin, double tMax);
- virtual GBool radialShadedFill(GfxState *state, GfxRadialShading *shading, double tMin, double tMax);
- virtual GBool gouraudTriangleShadedFill(GfxState *state, GfxGouraudTriangleShading *shading);
+ double xStep, double yStep) override;
+ GBool 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;
+ GBool gouraudTriangleShadedFill(GfxState *state, GfxGouraudTriangleShading *shading) override;
//----- path clipping
- virtual void clip(GfxState *state);
- virtual void eoClip(GfxState *state);
- virtual void clipToStrokePath(GfxState *state);
+ void clip(GfxState *state) override;
+ void eoClip(GfxState *state) override;
+ void clipToStrokePath(GfxState *state) override;
//----- text drawing
- virtual void drawChar(GfxState *state, double x, double y,
+ void drawChar(GfxState *state, double x, double y,
double dx, double dy,
double originX, double originY,
- CharCode code, int nBytes, Unicode *u, int uLen);
- virtual GBool beginType3Char(GfxState *state, double x, double y,
+ CharCode code, int nBytes, Unicode *u, int uLen) override;
+ GBool beginType3Char(GfxState *state, double x, double y,
double dx, double dy,
- CharCode code, Unicode *u, int uLen);
- virtual void endType3Char(GfxState *state);
- virtual void beginTextObject(GfxState *state);
- virtual void endTextObject(GfxState *state);
+ CharCode code, Unicode *u, int uLen) override;
+ void endType3Char(GfxState *state) override;
+ void beginTextObject(GfxState *state) override;
+ void endTextObject(GfxState *state) override;
//----- image drawing
- virtual void drawImageMask(GfxState *state, Object *ref, Stream *str,
+ void drawImageMask(GfxState *state, Object *ref, Stream *str,
int width, int height, GBool invert,
- GBool interpolate, GBool inlineImg);
- virtual void setSoftMaskFromImageMask(GfxState *state,
+ GBool interpolate, GBool inlineImg) override;
+ void setSoftMaskFromImageMask(GfxState *state,
Object *ref, Stream *str,
int width, int height, GBool invert,
- GBool inlineImg, double *baseMatrix);
- virtual void unsetSoftMaskFromImageMask(GfxState *state, double *baseMatrix);
- virtual void drawImage(GfxState *state, Object *ref, Stream *str,
+ GBool inlineImg, double *baseMatrix) override;
+ void unsetSoftMaskFromImageMask(GfxState *state, double *baseMatrix) override;
+ void drawImage(GfxState *state, Object *ref, Stream *str,
int width, int height, GfxImageColorMap *colorMap,
- GBool interpolate, int *maskColors, GBool inlineImg);
- virtual void drawMaskedImage(GfxState *state, Object *ref, Stream *str,
+ GBool interpolate, int *maskColors, GBool inlineImg) override;
+ void drawMaskedImage(GfxState *state, Object *ref, Stream *str,
int width, int height,
GfxImageColorMap *colorMap,
GBool interpolate,
Stream *maskStr, int maskWidth, int maskHeight,
- GBool maskInvert, GBool maskInterpolate);
- virtual void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str,
+ GBool maskInvert, GBool maskInterpolate) override;
+ void drawSoftMaskedImage(GfxState *state, Object *ref, Stream *str,
int width, int height,
GfxImageColorMap *colorMap,
GBool interpolate,
Stream *maskStr,
int maskWidth, int maskHeight,
GfxImageColorMap *maskColorMap,
- GBool maskInterpolate);
+ GBool maskInterpolate) override;
//----- Type 3 font operators
- virtual void type3D0(GfxState *state, double wx, double wy);
- virtual void type3D1(GfxState *state, double wx, double wy,
- double llx, double lly, double urx, double ury);
+ void type3D0(GfxState *state, double wx, double wy) override;
+ void type3D1(GfxState *state, double wx, double wy,
+ double llx, double lly, double urx, double ury) override;
//----- transparency groups and soft masks
- virtual GBool checkTransparencyGroup(GfxState *state, GBool knockout);
- virtual void beginTransparencyGroup(GfxState *state, double *bbox,
+ GBool checkTransparencyGroup(GfxState *state, GBool knockout) override;
+ void beginTransparencyGroup(GfxState *state, double *bbox,
GfxColorSpace *blendingColorSpace,
GBool isolated, GBool knockout,
- GBool forSoftMask);
- virtual void endTransparencyGroup(GfxState *state);
- virtual void paintTransparencyGroup(GfxState *state, double *bbox);
- virtual void setSoftMask(GfxState *state, double *bbox, GBool alpha,
- Function *transferFunc, GfxColor *backdropColor);
- virtual void clearSoftMask(GfxState *state);
+ GBool forSoftMask) override;
+ void endTransparencyGroup(GfxState *state) override;
+ void paintTransparencyGroup(GfxState *state, double *bbox) override;
+ void setSoftMask(GfxState *state, double *bbox, GBool alpha,
+ Function *transferFunc, GfxColor *backdropColor) override;
+ void clearSoftMask(GfxState *state) override;
//----- special access
@@ -386,8 +386,8 @@ public:
int getNestCount() { return nestCount; }
#if 1 //~tmp: turn off anti-aliasing temporarily
- virtual GBool getVectorAntialias();
- virtual void setVectorAntialias(GBool vaa);
+ GBool getVectorAntialias() override;
+ void setVectorAntialias(GBool vaa) override;
#endif
GBool getFontAntialias() { return fontAntialias; }