Public Member Functions | Public Attributes | Protected Member Functions | Private Member Functions | Private Attributes

IE_Imp_OpenWriter Class Reference

Inheritance diagram for IE_Imp_OpenWriter:
IE_Imp

List of all members.

Public Member Functions

 IE_Imp_OpenWriter (PD_Document *pDocument)
virtual ~IE_Imp_OpenWriter ()
PD_DocumentgetDocument () const
GsfInfile * getOO () const
void defineSimpleStyle (const UT_UTF8String &name, const gchar **props)
const gchar * mapStyle (const gchar *name) const
const OO_StylemapStyleObj (const gchar *name) const

Public Attributes

OpenWriter_StylesStream_Listenerm_pSSListener

Protected Member Functions

virtual UT_Error _loadFile (GsfInput *input)

Private Member Functions

UT_Error _handleMimetype ()
UT_Error _handleMetaStream ()
UT_Error _handleSettingsStream ()
UT_Error _handleStylesStream ()
UT_Error _handleContentStream ()

Private Attributes

GsfInfile * m_oo
UT_GenericStringMap< OO_Style * > m_styleBucket
bool m_bOpenDocument
 TRUE ... OASIS OpenDocument, FALSE ... OpenOffice.org 1.0 OpenWriter.

Detailed Description

Class used to import OpenWriter documents


Constructor & Destructor Documentation

IE_Imp_OpenWriter::IE_Imp_OpenWriter ( PD_Document pDocument  ) 

Create a new OpenWriter importer object

IE_Imp_OpenWriter::~IE_Imp_OpenWriter (  )  [virtual]

Destroy an OpenWriter importer object

References DELETEP, m_oo, m_pSSListener, m_styleBucket, and UT_GenericStringMap< T >::purgeData().


Member Function Documentation

UT_Error IE_Imp_OpenWriter::_handleContentStream (  )  [private]

Handle the content-stream

References handleStream(), m_bOpenDocument, m_oo, and m_pSSListener.

Referenced by _loadFile().

UT_Error IE_Imp_OpenWriter::_handleMetaStream (  )  [private]

Handle the meta-stream

References handleStream(), m_bOpenDocument, and m_oo.

Referenced by _loadFile().

UT_Error IE_Imp_OpenWriter::_handleMimetype (  )  [private]

Determine mimetype

References UT_UTF8String::append(), m_oo, UT_DEBUGMSG, and UT_UTF8String::utf8_str().

Referenced by _loadFile().

UT_Error IE_Imp_OpenWriter::_handleSettingsStream (  )  [private]

Handle the setting-stream

References handleStream(), and m_oo.

UT_Error IE_Imp_OpenWriter::_handleStylesStream (  )  [private]

Handle the styles-stream

References handleStream(), m_bOpenDocument, m_oo, and m_pSSListener.

Referenced by _loadFile().

UT_Error IE_Imp_OpenWriter::_loadFile ( GsfInput *  oo_src  )  [protected, virtual]
void IE_Imp_OpenWriter::defineSimpleStyle ( const UT_UTF8String name,
const gchar **  props 
)
PD_Document * IE_Imp_OpenWriter::getDocument ( void   )  const
GsfInfile* IE_Imp_OpenWriter::getOO (  )  const [inline]

References m_oo.

const gchar * IE_Imp_OpenWriter::mapStyle ( const gchar *  name  )  const
const OO_Style * IE_Imp_OpenWriter::mapStyleObj ( const gchar *  name  )  const

Member Data Documentation

TRUE ... OASIS OpenDocument, FALSE ... OpenOffice.org 1.0 OpenWriter.

Referenced by _handleContentStream(), _handleMetaStream(), _handleStylesStream(), and defineSimpleStyle().


The documentation for this class was generated from the following file: