00001 /* AbiWord 00002 * Copyright (C) 1998 AbiSource, Inc. 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00017 * 02110-1301 USA. 00018 */ 00019 00020 00021 #ifndef IE_EXP_HRTEXT_H 00022 #define IE_EXP_HRTEXT_H 00023 00024 #include "ie_exp.h" 00025 #include "pl_Listener.h" 00026 class PD_Document; 00027 class s_HRText_Listener; 00028 00029 // The exporter/writer for human readable text 00030 00031 class IE_Exp_HRText_Sniffer : public IE_ExpSniffer 00032 { 00033 friend class IE_Exp; 00034 00035 public: 00036 IE_Exp_HRText_Sniffer (); 00037 virtual ~IE_Exp_HRText_Sniffer () {} 00038 00039 virtual bool recognizeSuffix (const char * szSuffix); 00040 virtual bool getDlgLabels (const char ** szDesc, 00041 const char ** szSuffixList, 00042 IEFileType * ft); 00043 virtual UT_Error constructExporter (PD_Document * pDocument, 00044 IE_Exp ** ppie); 00045 }; 00046 00047 00048 class IE_Exp_HRText : public IE_Exp 00049 { 00050 public: 00051 IE_Exp_HRText(PD_Document * pDocument); 00052 virtual ~IE_Exp_HRText(); 00053 00054 protected: 00055 virtual UT_Error _writeDocument(void); 00056 00057 private: 00058 s_HRText_Listener * m_pListener; 00059 }; 00060 00061 #endif /* IE_EXP_HRTEXT_H */