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 #ifndef IE_EXP_MIF_H 00021 #define IE_EXP_MIF_H 00022 00023 #include "ie_exp.h" 00024 #include "pl_Listener.h" 00025 00026 class PD_Document; 00027 class s_MIF_Listener; 00028 00029 // the exporter/writer for MIF 00030 00031 class IE_Exp_MIF_Sniffer : public IE_ExpSniffer 00032 { 00033 friend class IE_Exp; 00034 00035 public: 00036 IE_Exp_MIF_Sniffer (const char * name); 00037 virtual ~IE_Exp_MIF_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 class IE_Exp_MIF : public IE_Exp 00048 { 00049 public: 00050 IE_Exp_MIF(PD_Document *pDocument); 00051 virtual ~IE_Exp_MIF(); 00052 00053 protected: 00054 virtual UT_Error _writeDocument(void); 00055 00056 private: 00057 s_MIF_Listener * m_pListener; 00058 }; 00059 00060 #endif /* IE_EXP_MIF_H */