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

ODe_Common.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 #ifndef _ODE_COMMON_H_
00026 #define _ODE_COMMON_H_
00027 
00028 #include <string>
00029 
00030 // AbiWord includes
00031 #include <ut_types.h>
00032 
00033 // External includes
00034 #include <gsf/gsf-output.h>
00035 #include <stdio.h>
00036 
00037 #include <iosfwd>
00038 
00039 // Abiword classes
00040 class UT_UTF8String;
00041 
00042 void ODe_gsf_output_write(GsfOutput* output, size_t num_bytes,
00043     guint8 const *data);
00044 
00045 void ODe_gsf_output_close(GsfOutput* output);
00046 
00047 void ODe_writeToStream (GsfOutput* stream, const char* const message [],
00048     size_t nElements);
00049 
00050 void ODe_writeUTF8String (GsfOutput* output, const UT_UTF8String& str);
00051 void ODe_writeUTF8StdString (GsfOutput* output, const std::string& str);
00052 
00053 void ODe_write (GsfOutput* output, std::stringstream& ss );
00054 
00055 void ODe_writeAttribute(UT_UTF8String& rOutput,
00056                         const gchar* pName,
00057                         const UT_UTF8String& rValue);
00058 
00059 void ODe_writeAttribute(UT_UTF8String& rOutput,
00060                         const gchar* pName,
00061                         const gchar* pValue);
00062 
00063 // The source file is rewinded before writing its contents into the destination
00064 // and after that it's left on its EOF state.
00065 void ODe_writeToFile(GsfOutput* pDestinationFile, GsfInput* pSourceFile);
00066 
00067 #endif //_ODE_COMMON_H_

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1