1414class GfxPath ;
1515class GfxFont ;
1616
17- #define PDFTOIPE_VERSION " 2019/12/10 "
17+ #define PDFTOIPE_VERSION " 2020/09/09 "
1818
1919class XmlOutputDev : public OutputDev
2020{
@@ -28,7 +28,7 @@ class XmlOutputDev : public OutputDev
2828 virtual ~XmlOutputDev ();
2929
3030 // Check if file was successfully created.
31- virtual bool isOk () { return ok; }
31+ bool isOk () { return ok; }
3232
3333 bool hasUnicode () const { return iUnicode; }
3434
@@ -39,49 +39,48 @@ class XmlOutputDev : public OutputDev
3939
4040 // Does this device use upside-down coordinates?
4141 // (Upside-down means (0,0) is the top left corner of the page.)
42- virtual bool upsideDown () { return false ; }
42+ virtual bool upsideDown () override { return false ; }
4343
4444 // Does this device use drawChar() or drawString()?
45- virtual bool useDrawChar () { return true ; }
45+ virtual bool useDrawChar () override { return true ; }
4646
4747 // Does this device use beginType3Char/endType3Char? Otherwise,
4848 // text in Type 3 fonts will be drawn with drawChar/drawString.
49- virtual bool interpretType3Chars () { return false ; }
49+ virtual bool interpretType3Chars () override { return false ; }
5050
5151 // ----- initialization and control
5252
5353 // Start a page.
54- virtual void startPage (int pageNum, GfxState *state); // poppler <=0.22
55- virtual void startPage (int pageNum, GfxState *state, XRef *xrefA);
54+ virtual void startPage (int pageNum, GfxState *state, XRef *xrefA) override ;
5655
5756 // End a page.
58- virtual void endPage ();
57+ virtual void endPage () override ;
5958
6059 // ----- update graphics state
61- virtual void updateTextPos (GfxState *state);
62- virtual void updateTextShift (GfxState *state, double shift);
60+ virtual void updateTextPos (GfxState *state) override ;
61+ virtual void updateTextShift (GfxState *state, double shift) override ;
6362
6463 // ----- path painting
65- virtual void stroke (GfxState *state);
66- virtual void fill (GfxState *state);
67- virtual void eoFill (GfxState *state);
64+ virtual void stroke (GfxState *state) override ;
65+ virtual void fill (GfxState *state) override ;
66+ virtual void eoFill (GfxState *state) override ;
6867
6968 // ----- text drawing
7069 virtual void drawChar (GfxState *state, double x, double y,
7170 double dx, double dy,
7271 double originX, double originY,
73- CharCode code, int nBytes, Unicode *u, int uLen);
72+ CharCode code, int nBytes, const Unicode *u, int uLen) override ;
7473
7574 // ----- image drawing
7675 virtual void drawImage (GfxState *state, Object *ref, Stream *str,
7776 int width, int height, GfxImageColorMap *colorMap,
78- bool interpolate, int *maskColors, bool inlineImg);
77+ bool interpolate, const int *maskColors, bool inlineImg) override ;
7978
8079protected:
81- virtual void startDrawingPath ();
82- virtual void startText (GfxState *state, double x, double y);
83- virtual void finishText ();
84- virtual void writePSUnicode (int ch);
80+ void startDrawingPath ();
81+ void startText (GfxState *state, double x, double y);
82+ void finishText ();
83+ void writePSUnicode (int ch);
8584
8685 void doPath (GfxState *state);
8786 void writePSChar (int code);
0 commit comments