00001 /****************************************************************************** 00002 * swmarkupmgr.h - definition of class SWMarkupMgr, subclass of 00003 * used to transcode all module text to a requested 00004 * markup. 00005 * 00006 * Copyright 1998 CrossWire Bible Society (http://www.crosswire.org) 00007 * CrossWire Bible Society 00008 * P. O. Box 2528 00009 * Tempe, AZ 85280-2528 00010 * 00011 * This program is free software; you can redistribute it and/or modify it 00012 * under the terms of the GNU General Public License as published by the 00013 * Free Software Foundation version 2. 00014 * 00015 * This program is distributed in the hope that it will be useful, but 00016 * WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00018 * General Public License for more details. 00019 * 00020 */ 00021 00022 #ifndef SWMARKUPMGR_H 00023 #define SWMARKUPMGR_H 00024 00025 #include <swencodingmgr.h> 00026 00031 class SWDLLEXPORT SWMarkupMgr : public SWEncodingMgr 00032 { 00033 protected: 00034 SWFilter* fromthml; 00035 SWFilter* fromgbf; 00036 SWFilter* fromplain; 00037 SWFilter* fromosis; 00038 00039 /* 00040 * current markup value 00041 */ 00042 char markup; 00043 00044 void CreateFilters(char markup); 00045 public: 00054 SWMarkupMgr (SWConfig * iconfig = 0, SWConfig * isysconfig = 0, bool autoload = true, char encoding = ENC_UTF8, char markup = FMT_THML); 00055 00059 ~SWMarkupMgr(); 00060 00066 char Markup(char m = FMT_UNKNOWN); 00067 00073 virtual void AddRenderFilters(SWModule *module, ConfigEntMap §ion); 00074 }; 00075 00076 #endif
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001