00001 /* 00002 * HT Editor 00003 * out_txt.cc 00004 * 00005 * Copyright (C) 1999-2002 Sebastian Biallas (sb@web-productions.de) 00006 * 00007 * This program is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License version 2 as 00009 * published by the Free Software Foundation. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00019 */ 00020 00021 #ifndef OUT_TXT_H 00022 #define OUT_TXT_H 00023 00024 #include "analy.h" 00025 #include "common.h" 00026 #include "global.h" 00027 #include "stream.h" 00028 #include "out.h" 00029 00030 class AnalyserTxtOutput: public AnalyserOutput { 00031 ht_stream *stream; 00032 char tmpbuf[1024]; 00033 int last; 00034 public: 00035 void init(Analyser *analy, ht_stream *stream); 00036 virtual void done(); 00037 virtual void beginAddr(); 00038 virtual void beginLine(); 00039 virtual ht_stream *getGenerateStream(); 00040 virtual int elementLength(const char *s); 00041 virtual void endAddr(); 00042 virtual void endLine(); 00043 virtual void footer(); 00044 virtual void header(); 00045 virtual void putElement(int element_type, const char *element); 00046 virtual char *link(char *s, Address *Addr); 00047 virtual char *externalLink(char *s, int type1, int type2, int type3, int type4, void *special); 00048 }; 00049 00050 #endif