• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ie_imp_ClarisWorks.h

Go to the documentation of this file.
00001 /* -*- mode: C++; tab-width: 4; c-basic-offset: 4; -*- */
00002 
00003 /* AbiWord
00004  * Copyright (C) 1998 AbiSource, Inc.
00005  * Copyright (C) 2000 Hubert Figuière
00006  *
00007  * This program is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU General Public License
00009  * as published by the Free Software Foundation; either version 2
00010  * of the License, or (at your option) any later version.
00011  *
00012  * This program is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU General Public License
00018  * along with this program; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301 USA.
00021  */
00022 
00023 #ifndef IE_IMP_CLARISWORKS_H
00024 #define IE_IMP_CLARISWORKS_H
00025 
00026 #include <stdio.h>
00027 #include "ie_imp.h"
00028 class PD_Document;
00029 
00030 
00031 // The importer/reader for ClarisWorks/AppleWorks Files
00032 
00033 class IE_Imp_ClarisWorks_Sniffer : public IE_ImpSniffer
00034 {
00035     friend class IE_Imp;
00036 
00037 public:
00038     IE_Imp_ClarisWorks_Sniffer();
00039     virtual ~IE_Imp_ClarisWorks_Sniffer() {}
00040 
00041     virtual const IE_SuffixConfidence * getSuffixConfidence ();
00042     virtual UT_Confidence_t recognizeContents (const char * szBuf,
00043                                     UT_uint32 iNumbytes);
00044     virtual const IE_MimeConfidence * getMimeConfidence () { return NULL; }
00045     virtual bool getDlgLabels (const char ** szDesc,
00046                                const char ** szSuffixList,
00047                                IEFileType * ft);
00048     virtual UT_Error constructImporter (PD_Document * pDocument,
00049                                         IE_Imp ** ppie);
00050 
00051 };
00052 
00053 class IE_Imp_ClarisWorks : public IE_Imp
00054 {
00055  public:
00056    IE_Imp_ClarisWorks(PD_Document * pDocument);
00057    ~IE_Imp_ClarisWorks();
00058 
00059  protected:
00060     virtual UT_Error _loadFile(GsfInput * fp);
00061    UT_Error         _parseFile(GsfInput * fp);
00062    UT_Error         _writeHeader(GsfInput * fp);
00063  private:
00064 
00065 };
00066 
00067 #endif /* IE_IMP_CLARISWORKS_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1