1 /************************************************************************* 2 ** VFActions.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_VFACTIONS_H 22 #define DVISVGM_VFACTIONS_H 23 24 #include <string> 25 #include <vector> 26 #include "types.h" 27 28 29 struct VFActions 30 { ~VFActionsVFActions31 virtual ~VFActions () {} preambleVFActions32 virtual void preamble (std::string comment, UInt32 checksum, double dsize) {} postambleVFActions33 virtual void postamble () {} defineVFFontVFActions34 virtual void defineVFFont (UInt32 fontnum, std::string path, std::string name, UInt32 checksum, double dsize, double ssize) {} defineVFCharVFActions35 virtual void defineVFChar (UInt32 c, std::vector<UInt8> *dvi) {} 36 }; 37 38 #endif 39