Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

out_ht.h

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      out_ht.h
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_HT_H
00022 #define OUT_HT_H
00023 
00024 #include "analy.h"
00025 #include "global.h"
00026 #include "htobj.h"
00027 #include "out.h"
00028 
00029 /*
00030  *      analyser palette
00031  */
00032 
00033 #define palidx_analyser_default                                 0
00034 #define palidx_analyser_label                                           1
00035 #define palidx_analyser_comment                                 2
00036 #define palidx_analyser_string                                  3
00037 #define palidx_analyser_number                                  4
00038 #define palidx_analyser_symbol                                  5
00039 
00040 /*
00041  *      CLASS analyser_ht_output
00042  */
00043 
00044 class AnalyserHTOutput: public AnalyserOutput {
00045                 palette analy_pal;
00046                 char            tmpbuffer[1024];
00047                 byte    *work_buffer_edit_bytes_insert;
00048 
00049                 vcp             getcolor_analy(UINT pal_index);
00050                 int last;
00051 public:
00052 
00053                                 void    init(Analyser *analy);
00054                 virtual void done();
00055                 virtual void    beginAddr();
00056                 virtual void    beginLine();
00057                 virtual void    changeConfig();
00058                 virtual int     elementLength(const char *s);
00059                 virtual void    endAddr();
00060                 virtual void    endLine();
00061                 virtual void putElement(int element_type, const char *element);
00062                 virtual char *link(char *s, Address *Addr);
00063                 virtual char *externalLink(char *s, int type1, int type2, int type3, int type4, void *special);
00064 private:
00065                                 void reloadPalette();
00066 };
00067 
00068 #endif

Generated on Fri May 7 21:15:41 2004 by doxygen 1.3.5