00001 /* -*- c-basic-offset: 4; tab-width: 4; indent-tabs-mode: t -*- */ 00002 00003 /* AbiWord 00004 * Copyright (C) 1998 AbiSource, Inc. 00005 * 00006 * This program is free software; you can redistribute it and/or 00007 * modify it under the terms of the GNU General Public License 00008 * as published by the Free Software Foundation; either version 2 00009 * of the License, or (at your option) any later version. 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., 51 Franklin Street, Fifth Floor, Boston, MA 00019 * 02110-1301 USA. 00020 */ 00021 00022 #ifndef IE_EXP_Applix_H 00023 #define IE_EXP_Applix_H 00024 00025 #include "ie_exp.h" 00026 #include "pl_Listener.h" 00027 00028 class PD_Document; 00029 class s_Applix_Listener; 00030 00031 // the exporter/writer for Applix 00032 00033 class IE_Exp_Applix_Sniffer : public IE_ExpSniffer 00034 { 00035 friend class IE_Exp; 00036 00037 public: 00038 IE_Exp_Applix_Sniffer (const char * name); 00039 virtual ~IE_Exp_Applix_Sniffer () {} 00040 00041 UT_Confidence_t supportsMIME (const char * szMIME); 00042 00043 virtual bool recognizeSuffix (const char * szSuffix); 00044 virtual bool getDlgLabels (const char ** szDesc, 00045 const char ** szSuffixList, 00046 IEFileType * ft); 00047 virtual UT_Error constructExporter (PD_Document * pDocument, 00048 IE_Exp ** ppie); 00049 }; 00050 00051 class IE_Exp_Applix : public IE_Exp 00052 { 00053 public: 00054 IE_Exp_Applix(PD_Document *pDocument); 00055 virtual ~IE_Exp_Applix(); 00056 00057 00058 protected: 00059 virtual UT_Error _writeDocument(void); 00060 00061 private: 00062 s_Applix_Listener * m_pListener; 00063 }; 00064 00065 #endif /* IE_EXP_Applix_H */