00001 /* AbiWord 00002 * Copyright (C) 2004 David Bolack 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_PASSEPARTOUT_H 00022 #define IE_EXP_PASSEPARTOUT_H 00023 00024 #include "ie_exp.h" 00025 #include "pl_Listener.h" 00026 #include "ut_wctomb.h" 00027 00028 class PD_Document; 00029 00030 // The exporter/writer for Plain Passepartout Files. 00031 00032 class IE_Exp_Passepartout_Sniffer : public IE_ExpSniffer 00033 { 00034 friend class IE_Exp; 00035 00036 public: 00037 IE_Exp_Passepartout_Sniffer (const char * name); 00038 virtual ~IE_Exp_Passepartout_Sniffer () {} 00039 00040 UT_Confidence_t supportsMIME (const char * szMIME); 00041 00042 virtual bool recognizeSuffix (const char * szSuffix); 00043 virtual bool getDlgLabels (const char ** szDesc, 00044 const char ** szSuffixList, 00045 IEFileType * ft); 00046 virtual UT_Error constructExporter (PD_Document * pDocument, 00047 IE_Exp ** ppie); 00048 }; 00049 00050 #endif /* IE_EXP_PASSEPARTOUT_H */