diff options
author | Karl Berry <karl@freefriends.org> | 2018-08-31 23:11:41 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2018-08-31 23:11:41 +0000 |
commit | 8ba2cf02688200d56e4fe0839a451ef832ce15b6 (patch) | |
tree | fcec1a50903a6e5b939859a1f92e15342636f290 /Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp | |
parent | 5d0960aa5419651a9c9b6503e44be2f098831ef1 (diff) |
dvisvgm 2.5, including potrace now bundled with dvisvgm instead of under libs/
git-svn-id: svn://tug.org/texlive/trunk@48527 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp index f3fc8c7d37c..82b9ee0dade 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp @@ -21,21 +21,19 @@ #ifndef BASICDVIREADER_HPP #define BASICDVIREADER_HPP +#include "Matrix.hpp" #include "MessageException.hpp" #include "StreamReader.hpp" -struct DVIException : public MessageException -{ +struct DVIException : public MessageException { explicit DVIException (const std::string &msg) : MessageException(msg) {} }; -struct InvalidDVIFileException : public DVIException -{ +struct InvalidDVIFileException : public DVIException { explicit InvalidDVIFileException (const std::string &msg) : DVIException(msg) {} }; -class Matrix; /** This class provides the basic functionality to read a DVI file. * It just skips all DVI commands and apply any semantic to it. The latter must @@ -44,8 +42,7 @@ class Matrix; * require to read and evaluate the correct portion of data from the DVI stream. * Since the DVI commands are almost skipped by advancing the file pointer, * running through a DVI file is pretty fast. */ -class BasicDVIReader : public StreamReader -{ +class BasicDVIReader : public StreamReader { protected: using CommandHandler = void (BasicDVIReader::*)(int); enum DVIVersion {DVI_NONE=0, DVI_STANDARD=2, DVI_PTEX=3, DVI_XDV5=5, DVI_XDV6=6, DVI_XDV7=7}; @@ -62,7 +59,7 @@ class BasicDVIReader : public StreamReader virtual void translateToX (double x) {} virtual void translateToY (double y) {} virtual int stackDepth () const {return 0;} - virtual void getPageTransformation (Matrix &matrix) const {} + virtual Matrix getPageTransformation () const {return Matrix(1);} virtual unsigned currentPageNumber () const {return 0;} protected: |