From bad81a00a2943d1fb7ff2de3d0ae48c049dac302 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Sat, 16 Nov 2019 03:00:48 +0000 Subject: CTAN sync 201911160300 --- dviware/dvisvgm/src/DVIToSVGActions.hpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'dviware/dvisvgm/src/DVIToSVGActions.hpp') diff --git a/dviware/dvisvgm/src/DVIToSVGActions.hpp b/dviware/dvisvgm/src/DVIToSVGActions.hpp index 88fa6028ee..e9adc63e38 100644 --- a/dviware/dvisvgm/src/DVIToSVGActions.hpp +++ b/dviware/dvisvgm/src/DVIToSVGActions.hpp @@ -42,7 +42,7 @@ class DVIToSVGActions : public DVIActions, public SpecialActions { using BoxMap = std::unordered_map; public: - DVIToSVGActions (DVIToSVG &dvisvg, SVGTree &svg); + DVIToSVGActions (DVIToSVG &dvisvg, SVGTree &svg) : _svg(svg), _dvireader(&dvisvg) {} void reset () override; void setChar (double x, double y, unsigned c, bool vertical, const Font &f) override; void setRule (double x, double y, double height, double width) override; @@ -68,6 +68,9 @@ class DVIToSVGActions : public DVIActions, public SpecialActions { void setX (double x) override {_dvireader->translateToX(x); _svg.setX(x);} void setY (double y) override {_dvireader->translateToY(y); _svg.setY(y);} void finishLine () override {_dvireader->finishLine();} + void lockOutput () override {_outputLocked = true;} + void unlockOutput () override {_outputLocked = false;} + bool outputLocked () const override {return _outputLocked;} const SVGTree& svgTree () const override {return _svg;} BoundingBox& bbox () override {return _bbox;} BoundingBox& bbox (const std::string &name, bool reset=false) override; @@ -83,12 +86,13 @@ class DVIToSVGActions : public DVIActions, public SpecialActions { SVGTree &_svg; BasicDVIReader *_dvireader; BoundingBox _bbox; - int _pageCount; - int _currentFontNum; + int _pageCount=0; + int _currentFontNum=-1; mutable CharMap _usedChars; FontSet _usedFonts; - Color _bgcolor; + Color _bgcolor=Color::TRANSPARENT; BoxMap _boxes; + bool _outputLocked=false; }; -- cgit v1.2.3