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_ABIWORD_1_H 00022 #define IE_EXP_ABIWORD_1_H 00023 00024 #include "ie_exp_XML.h" 00025 #include "pl_Listener.h" 00026 class PD_Document; 00027 class s_AbiWord_1_Listener; 00028 00029 // The exporter/writer for AbiWord file format version 1. 00030 00031 class ABI_EXPORT IE_Exp_AbiWord_1_Sniffer : public IE_ExpSniffer 00032 { 00033 friend class IE_Exp; 00034 00035 public: 00036 IE_Exp_AbiWord_1_Sniffer (); 00037 virtual ~IE_Exp_AbiWord_1_Sniffer () {} 00038 00039 UT_Confidence_t supportsMIME (const char * szMIME); 00040 00041 virtual bool recognizeSuffix (const char * szSuffix); 00042 virtual bool getDlgLabels (const char ** szDesc, 00043 const char ** szSuffixList, 00044 IEFileType * ft); 00045 virtual UT_Error constructExporter (PD_Document * pDocument, 00046 IE_Exp ** ppie); 00047 }; 00048 00049 class ABI_EXPORT IE_Exp_AbiWord_1 : public IE_Exp_XML 00050 { 00051 public: 00052 IE_Exp_AbiWord_1(PD_Document * pDocument, bool isTemplate = false, bool isCompressed = false); 00053 virtual ~IE_Exp_AbiWord_1(); 00054 00055 protected: 00056 virtual UT_Error _writeDocument(void); 00057 00058 private: 00059 bool m_bIsTemplate; 00060 bool m_bIsCompressed; 00061 s_AbiWord_1_Listener * m_pListener; 00062 }; 00063 00064 #endif /* IE_EXP_ABIWORD_1_H */