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

ie_exp_AbiWord_1.h

Go to the documentation of this file.
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., 59 Temple Place - Suite 330, Boston, MA
00017  * 02111-1307, USA.
00018  */
00019 
00020 
00021 #ifndef IE_EXP_ABIWORD_1_H
00022 #define IE_EXP_ABIWORD_1_H
00023 
00024 #include "ie_exp.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
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     void                    _setupFile(void);
00058     virtual UT_uint32   _writeBytes(const UT_Byte * pBytes, UT_uint32 length);
00059 
00060 private:
00061     bool m_bIsTemplate;
00062     bool m_bIsCompressed;
00063     s_AbiWord_1_Listener *  m_pListener;
00064 
00065     GsfOutput * m_output;
00066 };
00067 
00068 #endif /* IE_EXP_ABIWORD_1_H */

Generated on Mon May 28 2012 for AbiWord by  doxygen 1.7.1