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

ie_exp_OpenDocument.h

Go to the documentation of this file.
00001 /* AbiSource
00002  *
00003  * Copyright (C) 2002 Dom Lachowicz <cinamod@hotmail.com>
00004  * Copyright (C) 2004 Robert Staudinger <robsta@stereolyzer.net>
00005  *
00006  * Copyright (C) 2005 INdT
00007  * Author: Daniel d'Andrada T. de Carvalho <daniel.carvalho@indt.org.br>
00008  *
00009  * This program is free software; you can redistribute it and/or
00010  * modify it under the terms of the GNU General Public License
00011  * as published by the Free Software Foundation; either version 2
00012  * of the License, or (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00022  * 02110-1301 USA.
00023  */
00024 
00025 
00026 
00027 #ifndef _IE_EXP_OPENDOCUMENT_H_
00028 #define _IE_EXP_OPENDOCUMENT_H_
00029 
00030 // External includes
00031 #include <gsf/gsf-output.h>
00032 
00033 // AbiWord includes
00034 #include "ie_exp.h"
00035 #include "ut_bytebuf.h"
00036 
00037 class IE_Exp_OpenDocument : public IE_Exp
00038 {
00039 public:
00040     IE_Exp_OpenDocument(PD_Document * pDocument);
00041     virtual ~IE_Exp_OpenDocument();
00042     void setGSFOutput(GsfOutput * pBuf);
00043 protected:
00044     virtual GsfOutput* _openFile(const char *szFilename);
00045     virtual UT_Error  _writeDocument(void);
00046     virtual UT_Error copyToBuffer(PD_DocumentRange * pDocRange, const UT_ByteBufPtr & bufODT);
00047 
00048 private:
00049     // The OpenDocument Text file.
00050     GsfOutfile* m_odt;
00051 };
00052 
00053 #endif //_IE_EXP_OPENDOCUMENT_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1