00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */ 00002 00003 /* AbiSource Program Utilities 00004 * Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com> 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_IMPEXP_OPENWRITER_H 00023 #define IE_IMPEXP_OPENWRITER_H 00024 00025 #include "ie_imp.h" 00026 #include "ie_exp.h" 00027 00028 class IE_Imp_OpenWriter_Sniffer : public IE_ImpSniffer 00029 { 00030 public: 00031 IE_Imp_OpenWriter_Sniffer () ; 00032 00033 virtual ~IE_Imp_OpenWriter_Sniffer (); 00034 00035 virtual const IE_SuffixConfidence * getSuffixConfidence (); 00036 00037 virtual const IE_MimeConfidence * getMimeConfidence () { return NULL; } 00038 00039 virtual UT_Confidence_t recognizeContents (GsfInput * input); 00040 00041 virtual UT_Error constructImporter (PD_Document * pDocument, 00042 IE_Imp ** ppie) ; 00043 00044 virtual bool getDlgLabels (const char ** szDesc, 00045 const char ** szSuffixList, 00046 IEFileType * ft) ; 00047 }; 00048 00049 class IE_Exp_OpenWriter_Sniffer : public IE_ExpSniffer 00050 { 00051 public: 00052 IE_Exp_OpenWriter_Sniffer(); 00053 00054 virtual ~IE_Exp_OpenWriter_Sniffer() ; 00055 00056 virtual bool recognizeSuffix(const char * szSuffix) ; 00057 00058 virtual UT_Error constructExporter(PD_Document * pDocument, 00059 IE_Exp ** ppie) ; 00060 00061 virtual bool getDlgLabels(const char ** pszDesc, 00062 const char ** pszSuffixList, 00063 IEFileType * ft) ; 00064 }; 00065 00066 #endif // IE_IMPEXP_OPENWRITER_H