1 /************************************************************************* 2 ** NoPsSpecialHandler.h ** 3 ** ** 4 ** This file is part of dvisvgm -- the DVI to SVG converter ** 5 ** Copyright (C) 2005-2015 Martin Gieseking <martin.gieseking@uos.de> ** 6 ** ** 7 ** This program is free software; you can redistribute it and/or ** 8 ** modify it under the terms of the GNU General Public License as ** 9 ** published by the Free Software Foundation; either version 3 of ** 10 ** the License, or (at your option) any later version. ** 11 ** ** 12 ** This program is distributed in the hope that it will be useful, but ** 13 ** WITHOUT ANY WARRANTY; without even the implied warranty of ** 14 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** 15 ** GNU General Public License for more details. ** 16 ** ** 17 ** You should have received a copy of the GNU General Public License ** 18 ** along with this program; if not, see <http://www.gnu.org/licenses/>. ** 19 *************************************************************************/ 20 21 #ifndef DVISVGM_NOPSSPECIALHANDLER_H 22 #define DVISVGM_NOPSSPECIALHANDLER_H 23 24 #include "SpecialHandler.h" 25 26 class NoPsSpecialHandler : public SpecialHandler, public DVIEndPageListener 27 { 28 public: NoPsSpecialHandler()29 NoPsSpecialHandler () : _count(0) {} 30 bool process (const char *prefix, std::istream &is, SpecialActions *actions); name()31 const char* name () const {return 0;} info()32 const char* info () const {return 0;} 33 const char** prefixes () const; 34 35 protected: 36 void dviEndPage (unsigned pageno); 37 38 private: 39 unsigned _count; // number of PS specials skipped 40 }; 41 42 #endif 43