Functions

ODe_Common.cpp File Reference

#include "ODe_Common.h"
#include <ut_debugmsg.h>
#include <ut_assert.h>
#include <ut_string_class.h>
#include <gsf/gsf-output-stdio.h>
#include <gsf/gsf-input.h>
#include <string.h>
#include <sstream>

Functions

void ODe_gsf_output_write (GsfOutput *output, size_t num_bytes, guint8 const *data)
void ODe_gsf_output_close (GsfOutput *output)
void ODe_writeToStream (GsfOutput *stream, const char *const message[], size_t nElements)
 Write out a message to the stream.
void ODe_writeUTF8String (GsfOutput *output, const UT_UTF8String &str)
void ODe_writeUTF8StdString (GsfOutput *output, const std::string &str)
void ODe_write (GsfOutput *output, std::stringstream &ss)
void ODe_writeAttribute (UT_UTF8String &rOutput, const gchar *pName, const UT_UTF8String &rValue)
void ODe_writeAttribute (UT_UTF8String &rOutput, const gchar *pName, const gchar *pValue)
void ODe_writeToFile (GsfOutput *pDestinationFile, GsfInput *pSourceFile)
 The source file is rewinded before writing its contents into the destination and after that it's left on its EOF state.

Function Documentation

void ODe_gsf_output_close ( GsfOutput *  output  ) 
void ODe_gsf_output_write ( GsfOutput *  output,
size_t  num_bytes,
guint8 const *  data 
)
void ODe_write ( GsfOutput *  output,
std::stringstream &  ss 
)
void ODe_writeAttribute ( UT_UTF8String rOutput,
const gchar *  pName,
const gchar *  pValue 
)
void ODe_writeAttribute ( UT_UTF8String rOutput,
const gchar *  pName,
const UT_UTF8String rValue 
)
void ODe_writeToFile ( GsfOutput *  pDestinationFile,
GsfInput *  pSourceFile 
)

The source file is rewinded before writing its contents into the destination and after that it's left on its EOF state.

void ODe_writeToStream ( GsfOutput *  stream,
const char *const   message[],
size_t  nElements 
)
void ODe_writeUTF8StdString ( GsfOutput *  output,
const std::string &  str 
)
void ODe_writeUTF8String ( GsfOutput *  output,
const UT_UTF8String str 
)

References UT_UTF8String::byteLength(), ODe_gsf_output_write(), and UT_UTF8String::utf8_str().

Referenced by ODe_Note_Listener::_closeNote(), ODe_Text_Listener::_closeODList(), ODe_Note_Listener::_openNote(), ODe_Text_Listener::_openODListItem(), ODe_Frame_Listener::_openODTextbox(), ODe_Text_Listener::_openParagraphDelayed(), ODe_ListLevelStyle::_writeListLevelProperties(), ODe_ListLevelStyle::_writeTextProperties(), ODe_Text_Listener::closeAnnotation(), ODe_TOC_Listener::closeBlock(), ODe_Text_Listener::closeBookmark(), ODe_Text_Listener::closeField(), ODe_Frame_Listener::closeFrame(), ODe_Text_Listener::closeHyperlink(), ODe_Text_Listener::closeRDFAnchor(), ODe_Main_Listener::closeSection(), ODe_Text_Listener::closeSpan(), ODe_Table_Listener::closeTable(), ODe_Text_Listener::closeTOC(), ODe_Text_Listener::insertInlinedImage(), ODe_Text_Listener::insertLineBreak(), ODe_Text_Listener::insertPositionedImage(), ODe_TOC_Listener::insertTabChar(), ODe_Text_Listener::insertTabChar(), ODe_TOC_Listener::insertText(), ODe_Text_Listener::insertText(), ODe_Text_Listener::openAnnotation(), ODe_TOC_Listener::openBlock(), ODe_Text_Listener::openBookmark(), ODe_Text_Listener::openField(), ODe_Text_Listener::openFrame(), ODe_Text_Listener::openHyperlink(), ODe_Text_Listener::openRDFAnchor(), ODe_Main_Listener::openSection(), ODe_Text_Listener::openSpan(), ODe_Text_Listener::openTOC(), ODe_Table_Row::write(), ODe_Table_Column::write(), ODe_Table_Cell::write(), ODe_Styles::write(), ODe_Style_Style::write(), ODe_Style_PageLayout::write(), ODe_Style_MasterPage::write(), ODe_Style_List::write(), ODe_Numbered_ListLevelStyle::write(), ODe_Bullet_ListLevelStyle::write(), ODe_FontFaceDecls::write(), ODe_AutomaticStyles::write(), ODe_DocumentData::writeContentXML(), ODe_MetaDataWriter::writeMetaData(), and ODe_DocumentData::writeStylesXML().