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

IE_Exp_OpenXML Class Reference

Class used to export OpenXML files. More...

#include <ie_exp_OpenXML.h>

Inheritance diagram for IE_Exp_OpenXML:
IE_Exp

List of all members.

Public Member Functions

 IE_Exp_OpenXML (PD_Document *pDocument)
 Constructor.
virtual ~IE_Exp_OpenXML ()
 Destructor.
UT_Error startDocument ()
 Starts exporting the OXML_Document object.
UT_Error finishDocument ()
 Finishes exporting OXML_Document object.
UT_Error startSection ()
UT_Error finishSection ()
UT_Error startSectionProperties ()
 Starts exporting the OXML_Section object's properties.
UT_Error finishSectionProperties ()
 Finishes exporting the OXML_Section object's properties.
UT_Error startParagraph (int target)
 Starts exporting the OXML_Element_Paragraph object.
UT_Error finishParagraph (int target)
 Finishes exporting the OXML_Element_Paragraph object.
UT_Error startText (int target)
 Starts exporting the OXML_Element_Text object.
UT_Error writeText (int target, const UT_UCS4Char *text, bool list)
 Writes the actual content of OXML_Element_Text object.
UT_Error finishText (int target)
 Finishes exporting the OXML_Element_Text object.
UT_Error startMath ()
 Starts exporting the OXML_Element_Math object.
UT_Error writeMath (const char *omml)
 Writes the actual content of OXML_Element_Math object.
UT_Error finishMath ()
 Finishes exporting the OXML_Element_Math object.
UT_Error startRun (int target)
 Starts exporting the OXML_Element_Run object.
UT_Error finishRun (int target)
 Finishes exporting the OXML_Element_Run object.
UT_Error startRunProperties (int target)
 Starts exporting the OXML_Element_Run object's properties.
UT_Error finishRunProperties (int target)
 Finishes exporting the OXML_Element_Run object's properties.
UT_Error startParagraphProperties (int target)
 Starts exporting the OXML_Element_Paragraph object's properties.
UT_Error finishParagraphProperties (int target)
 Finishes exporting the OXML_Element_Paragraph object's properties.
UT_Error startCellProperties (int target)
 Starts exporting the OXML_Element_Cell object's properties.
UT_Error finishCellProperties (int target)
 Finishes exporting the OXML_Element_Cell object's properties.
UT_Error startStyle (const std::string &name, const std::string &basedon, const std::string &followedby, const std::string &type)
UT_Error finishStyle ()
UT_Error startDocumentDefaultProperties ()
UT_Error finishDocumentDefaultProperties ()
UT_Error startRunDefaultProperties ()
UT_Error finishRunDefaultProperties ()
UT_Error startParagraphDefaultProperties ()
UT_Error finishParagraphDefaultProperties ()
UT_Error startTable ()
 Starts exporting the OXML_Element_Table object.
UT_Error finishTable ()
 Finishes exporting the OXML_Element_Table object.
UT_Error startTableProperties (int target)
 Starts exporting the OXML_Element_Table's properties.
UT_Error finishTableProperties (int target)
 Finishes exporting the OXML_Element_Table's properties.
UT_Error startTableBorderProperties (int target)
 Starts exporting the OXML_Element_Table's border properties.
UT_Error finishTableBorderProperties (int target)
 Finishes exporting the OXML_Element_Table's border properties.
UT_Error startCellBorderProperties (int target)
 Starts exporting the OXML_Element_Cell's border properties.
UT_Error finishCellBorderProperties (int target)
 Finishes exporting the OXML_Element_Cell's border properties.
UT_Error startListProperties (int target)
 Starts exporting the OXML_Element_List properties.
UT_Error finishListProperties (int target)
 Finishes exporting the OXML_Element_List properties.
UT_Error startAbstractNumbering (int target, UT_uint32 id)
 Starts exporting the OXML_List abstract numbering.
UT_Error finishAbstractNumbering (int target)
 Finishes exporting the OXML_List abstract numbering.
UT_Error startTextBox (int target, const gchar *id)
 Starts exporting the OXML_Element_TextBox object.
UT_Error finishTextBox (int target)
 Finishes exporting the OXML_Element_TextBox object.
UT_Error startTextBoxProperties (int target)
 Starts exporting the OXML_Element_TextBox object's properties.
UT_Error finishTextBoxProperties (int target)
 Finishes exporting the OXML_Element_TextBox object's properties.
UT_Error startTextBoxContent (int target)
 Starts exporting the OXML_Element_TextBox object's content.
UT_Error finishTextBoxContent (int target)
 Finishes exporting the OXML_Element_TextBox object's content.
UT_Error startNumbering (int target, UT_uint32 id)
 Starts exporting the OXML_List numbering.
UT_Error finishNumbering (int target)
 Finishes exporting the OXML_List numbering definition.
UT_Error startNumberingLevel (int target, UT_uint32 level)
 Starts exporting the OXML_List abstract numbering level.
UT_Error finishNumberingLevel (int target)
 Finishes exporting the OXML_List abstract numbering level.
UT_Error startRow ()
 Starts exporting the OXML_Element_Row object.
UT_Error finishRow ()
 Finishes exporting the OXML_Element_Row object.
UT_Error startRowProperties (int target)
 Starts table row properties.
UT_Error finishRowProperties (int target)
 Finishes table row properties.
UT_Error startCell ()
 Starts exporting the OXML_Element_Cell object.
UT_Error finishCell ()
 Finishes exporting the OXML_Element_Cell object.
UT_Error startTableGrid (int target)
 Starts table grid.
UT_Error finishTableGrid (int target)
 Finishes table grid.
UT_Error startExternalHyperlink (const gchar *id)
 Starts exporting the OXML_Element_Hyperlink object.
UT_Error startInternalHyperlink (const gchar *anchor)
 Starts exporting the OXML_Element_Hyperlink object.
UT_Error setHeaderRelation (const char *relId, const char *headerId)
 Sets the necessary relationships for header.
UT_Error setFooterRelation (const char *relId, const char *footerId)
 Sets the necessary relationship for footer.
UT_Error finishHyperlink ()
 Finishes exporting the OXML_Element_Hyperlink object.
UT_Error startBookmark (const gchar *id, const gchar *name)
 Exports the OXML_Element_BookmarkStart object.
UT_Error finishBookmark (const gchar *id)
 Exports the OXML_Element_BookmarkFinish object.
UT_Error startFootnote (const gchar *id)
UT_Error finishFootnote ()
 Finishes footnote.
UT_Error startEndnote (const gchar *id)
UT_Error finishEndnote ()
 Finishes endnote.
UT_Error setBold (int target)
 Sets bold style.
UT_Error setItalic (int target)
 Sets italic style.
UT_Error setUnderline (int target)
 Sets underline style.
UT_Error setOverline ()
 Sets overline style.
UT_Error setLineThrough (int target)
 Sets line-through style.
UT_Error setSuperscript (int target)
 Sets superscript style.
UT_Error setSubscript (int target)
 Sets subscript style.
UT_Error setTextColor (int target, const gchar *color)
 Sets text color style.
UT_Error setBackgroundColor (int target, const gchar *color)
 Sets background color style.
UT_Error setTextAlignment (int target, const gchar *alignment)
 Sets text alignment.
UT_Error setTextIndentation (int target, const gchar *indentation)
 Sets text indentation.
UT_Error setParagraphStyle (int target, const gchar *style)
 Sets the paragraph style.
UT_Error setParagraphLeftMargin (int target, const gchar *margin)
 Sets paragraph left margin.
UT_Error setParagraphRightMargin (int target, const gchar *margin)
 Sets paragraph right margin.
UT_Error setParagraphTopMargin (int target, const gchar *margin)
 Sets paragraph top margin.
UT_Error setParagraphBottomMargin (int target, const gchar *margin)
 Sets paragraph bottom margin.
UT_Error setLineHeight (int target, const gchar *height)
 Sets line height.
UT_Error setTabstops (int target, const gchar *tabstops)
 Sets tab stops.
UT_Error setFontSize (int target, const gchar *size)
 Sets font size.
UT_Error setFontFamily (int target, const gchar *family)
 Sets font family.
UT_Error setTextDirection (int target, const gchar *direction)
 Sets text direction, eg.
UT_Error setWidows (int target, const gchar *widows)
 Sets the widows.
UT_Error setGridSpan (int target, UT_sint32 hspan)
 Sets grid span for horizontally merged cells.
UT_Error setVerticalMerge (int target, const char *vmerge)
 Sets vertical merge feature for vertically merged cells.
UT_Error setTableBorder (int target, const char *border, const char *type, const char *color, const char *size)
 Sets table border style for the specified border in the table.
UT_Error setGridCol (int target, const char *column)
 Sets grid column.
UT_Error setColumnWidth (int target, const char *width)
 Sets column width.
UT_Error setRowHeight (int target, const char *height)
 Sets table row height to some exact value.
UT_Error setListLevel (int target, const char *level)
 Sets list level.
UT_Error setListFormat (int target, const char *format)
 Sets list format.
UT_Error setListStartValue (int target, UT_uint32 startValue)
 Sets the start value of the list.
UT_Error setListLevelText (int target, const char *text)
 Sets list level text.
UT_Error setListType (int target, const char *type)
 Sets list type.
UT_Error setAbstractNumberingId (int target, UT_uint32 id)
 Sets abstract numbering id.
UT_Error setNumberingFormat (int target, const char *format)
 Sets the numbering format of the list.
UT_Error setMultilevelType (int target, const char *type)
 Sets the multilevel type of the list.
UT_Error setHyperlinkRelation (int target, const char *id, const char *addr, const char *mode)
 Sets the necessary relationship for hyperlink target address.
UT_Error setImage (const char *id, const char *relId, const char *filename, const char *width, const char *height)
 Sets the inline image.
UT_Error setPositionedImage (const char *id, const char *relId, const char *filename, const char *width, const char *height, const char *xpos, const char *ypos, const char *wrapMode)
 Sets the positioned image.
UT_Error setImageRelation (const char *filename, const char *id)
 Sets the relation of the image.
UT_Error writeImage (const char *filename, const UT_ConstByteBufPtr &data)
UT_Error setSimpleField (int target, const char *instr, const char *value)
 Sets the simple field.
UT_Error setHeaderReference (const char *id, const char *type)
 Set the header reference.
UT_Error setFooterReference (const char *id, const char *type)
 Set the footer reference.
UT_Error setFootnoteReference (const char *id)
 Set the footnote reference.
UT_Error setFootnoteRef ()
 Set the footnoteRef tag.
UT_Error setEndnoteReference (const char *id)
 Set the endnote reference.
UT_Error setEndnoteRef ()
 Set the endnoteRef tag.
UT_Error startHeaderStream (const char *id)
UT_Error finishHeaderStream ()
UT_Error startFooterStream (const char *id)
UT_Error finishFooterStream ()
UT_Error setTitlePage ()
 Sets the titlePg tag for the first page headers/footers.
UT_Error setEvenAndOddHeaders ()
 Sets the evenAndOddHeaders tag for the even/odd page headers/footers.
UT_Error setColumns (int target, const gchar *num, const gchar *sep)
 Sets the columns for the section.
UT_Error setContinuousSection (int target)
 Sets the section type continuous.
UT_Error setPageBreak (int target)
 Sets page break.
UT_Error setPageSize (int target, const char *width, const char *height, const char *orientation)
 Sets page size and orientation.
UT_Error setPageMargins (int target, const char *top, const char *left, const char *right, const char *bottom)
 Sets page margins.
UT_Error setLanguage (int target, const gchar *lang)
 Sets language.
UT_Error setNoProof (int target)
 Sets no proof.
UT_Error setTextBoxWidth (int target, const gchar *width)
 Sets textbox width.
UT_Error setTextBoxHeight (int target, const gchar *height)
 Sets textbox height.
PD_DocumentgetDoc ()

Protected Member Functions

virtual UT_Error _writeDocument (void)
 Export the OOXML document here.

Private Member Functions

UT_Error startNumbering ()
 Starts the numbering.xml file which describes the default list styles.
UT_Error startStyles ()
 Starts the styles.xml file which describes the default styles.
UT_Error startContentTypes ()
 Starts the [Content_Types].xml file which describes the contents of the package.
UT_Error startRelations ()
 Writes the relationships for the files within the package Outputs the _rels folder and _rels/.rels file which defines the package relations.
UT_Error startWordRelations ()
 Outputs the word/_rels folder and word/_rels/document.xml.rels file.
UT_Error startWordMedia ()
 Does nothing for now.
UT_Error startMainPart ()
 Starts the main part of the document to word/document.xml file.
UT_Error startHeaders ()
 Does nothing for now.
UT_Error startFooters ()
 Does nothing for now.
UT_Error startSettings ()
 Starts the settings of the document in word/settings.xml file.
UT_Error startFootnotes ()
 Starts the footnotes.xml file which describes the footnotes.
UT_Error startEndnotes ()
 Starts the endnotes.xml file which describes the endnotes.
UT_Error finishNumbering ()
 Finishes the numbering.xml file which describes the contents of the package.
UT_Error finishStyles ()
 Finishes the styles.xml file which describes the contents of the package.
UT_Error finishContentTypes ()
 Finishes the [Content_Types].xml file which describes the contents of the package.
UT_Error finishRelations ()
 Finishes the relationships.
UT_Error finishWordRelations ()
 Finishes the relationships.
UT_Error finishWordMedia ()
 Exports all the image streams to actual files in the word/media folder.
UT_Error finishMainPart ()
 Finishes the main part of the document to word/document.xml file.
UT_Error finishHeaders ()
 Finishes the headers in word/header.xml file.
UT_Error finishFooters ()
 Finishes the headers in word/footer.xml file.
UT_Error finishSettings ()
 Finishes the settings of the document in word/setting.xml file.
UT_Error finishFootnotes ()
 Finishes the footnotes.xml file.
UT_Error finishEndnotes ()
 Finishes the endnotes.xml file.
UT_Error writeXmlHeader (GsfOutput *file)
 Write the simple xml header to the file This function should be called before anything written to file.
const gchar * convertToPoints (const gchar *str)
 Converts the string str to points.
const gchar * convertToTwips (const gchar *str)
 Converts the string str to twips, returns NULL if twips=0.
const gchar * convertToPositiveTwips (const gchar *str)
 Converts the string str to twips, returns positive whole number or NULL if twips=0.
const gchar * convertToPositiveEmus (const gchar *str)
 Converts the string str to EMUs, returns non-negative whole number.
bool isNegativeQuantity (const gchar *quantity)
 Checks whether the quantity string is a negative quantity.
const gchar * convertToLines (const gchar *str)
 Converts the string str to lines, returns NULL if lines=0.
const gchar * computeFontSize (const gchar *str)
 Computes the font-size.
const gchar * computeBorderWidth (const gchar *str)
 Converts the string str to eighths of a point.
GsfOutput * getTargetStream (int target)
 Retrieves the target stream.
UT_Error writeTargetStream (int target, const char *str)
 Writes to the target stream.
bool isListBullet (const char *str)
 Checks whether given a string is a special list bullet symbol.
void _cleanup ()
 Cleans up everything.

Private Attributes

PD_Documentm_pDoc
GsfOutfile * root
GsfOutfile * relsDir
GsfOutfile * wordDir
GsfOutfile * wordRelsDir
GsfOutfile * wordMediaDir
GsfOutput * contentTypesStream
GsfOutput * relStream
GsfOutput * wordRelStream
GsfOutput * documentStream
GsfOutput * settingsStream
GsfOutput * stylesStream
GsfOutput * numberingStream
GsfOutput * headerStream
GsfOutput * footerStream
GsfOutput * footnoteStream
GsfOutput * endnoteStream
std::map< std::string,
GsfOutput * > 
mediaStreams
std::map< std::string,
GsfOutput * > 
headerStreams
std::map< std::string,
GsfOutput * > 
footerStreams
bool isOverline

Detailed Description

Class used to export OpenXML files.


Constructor & Destructor Documentation

IE_Exp_OpenXML::IE_Exp_OpenXML ( PD_Document pDocument  ) 

Constructor.

IE_Exp_OpenXML::~IE_Exp_OpenXML (  )  [virtual]

Destructor.

References _cleanup().


Member Function Documentation

void IE_Exp_OpenXML::_cleanup (  )  [private]
UT_Error IE_Exp_OpenXML::_writeDocument ( void   )  [protected, virtual]

Export the OOXML document here.

Implements IE_Exp.

References DELETEP, getDoc(), IE_Exp_OpenXML_Listener::getDocument(), and OXML_Document::serialize().

const gchar * IE_Exp_OpenXML::computeBorderWidth ( const gchar *  str  )  [private]

Converts the string str to eighths of a point.

References UT_convertToDimensionlessString(), and UT_convertToPoints().

Referenced by setTableBorder().

const gchar * IE_Exp_OpenXML::computeFontSize ( const gchar *  str  )  [private]

Computes the font-size.

References UT_convertDimensionless(), and UT_convertToDimensionlessString().

Referenced by setFontSize().

const gchar * IE_Exp_OpenXML::convertToLines ( const gchar *  str  )  [private]

Converts the string str to lines, returns NULL if lines=0.

References UT_convertDimensionless(), and UT_convertToDimensionlessString().

Referenced by setLineHeight().

const gchar * IE_Exp_OpenXML::convertToPoints ( const gchar *  str  )  [private]

Converts the string str to points.

References UT_convertToDimensionlessString(), and UT_convertToPoints().

Referenced by setTextBoxHeight(), and setTextBoxWidth().

const gchar * IE_Exp_OpenXML::convertToPositiveEmus ( const gchar *  str  )  [private]

Converts the string str to EMUs, returns non-negative whole number.

References UT_convertToDimensionlessString(), and UT_convertToInches().

Referenced by setImage(), and setPositionedImage().

const gchar * IE_Exp_OpenXML::convertToPositiveTwips ( const gchar *  str  )  [private]

Converts the string str to twips, returns positive whole number or NULL if twips=0.

References UT_convertToDimensionlessString(), and UT_convertToPoints().

Referenced by setColumnWidth(), setGridCol(), setParagraphBottomMargin(), setParagraphTopMargin(), setRowHeight(), setTabstops(), and setTextIndentation().

const gchar * IE_Exp_OpenXML::convertToTwips ( const gchar *  str  )  [private]

Converts the string str to twips, returns NULL if twips=0.

References UT_convertToDimensionlessString(), and UT_convertToPoints().

Referenced by setLineHeight(), setPageMargins(), setParagraphLeftMargin(), and setParagraphRightMargin().

UT_Error IE_Exp_OpenXML::finishAbstractNumbering ( int  target  ) 

Finishes exporting the OXML_List abstract numbering.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::finishBookmark ( const gchar *  id  ) 

Exports the OXML_Element_BookmarkFinish object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Bookmark::serialize().

UT_Error IE_Exp_OpenXML::finishCell (  ) 

Finishes exporting the OXML_Element_Cell object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Cell::serialize().

UT_Error IE_Exp_OpenXML::finishCellBorderProperties ( int  target  ) 

Finishes exporting the OXML_Element_Cell's border properties.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::finishCellProperties ( int  target  ) 

Finishes exporting the OXML_Element_Cell object's properties.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::finishContentTypes (  )  [private]

Finishes the [Content_Types].xml file which describes the contents of the package.

References contentTypesStream, root, TARGET_CONTENT, UT_DEBUGMSG, UT_OK, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishDocumentDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::finishEndnote (  ) 

Finishes endnote.

References TARGET_ENDNOTE, and writeTargetStream().

Referenced by OXML_Section::serializeEndnote().

UT_Error IE_Exp_OpenXML::finishEndnotes (  )  [private]

Finishes the endnotes.xml file.

References endnoteStream, TARGET_ENDNOTE, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishFooters (  )  [private]

Finishes the headers in word/footer.xml file.

References footerStreams, UT_DEBUGMSG, and wordDir.

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishFooterStream (  ) 
UT_Error IE_Exp_OpenXML::finishFootnote (  ) 

Finishes footnote.

References TARGET_FOOTNOTE, and writeTargetStream().

Referenced by OXML_Section::serializeFootnote().

UT_Error IE_Exp_OpenXML::finishFootnotes (  )  [private]

Finishes the footnotes.xml file.

References footnoteStream, TARGET_FOOTNOTE, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishHeaders (  )  [private]

Finishes the headers in word/header.xml file.

References headerStreams, UT_DEBUGMSG, and wordDir.

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishHeaderStream (  ) 
UT_Error IE_Exp_OpenXML::finishHyperlink (  ) 

Finishes exporting the OXML_Element_Hyperlink object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Hyperlink::serialize().

UT_Error IE_Exp_OpenXML::finishListProperties ( int  target  ) 

Finishes exporting the OXML_Element_List properties.

References writeTargetStream().

Referenced by OXML_Element_List::serializeProperties().

UT_Error IE_Exp_OpenXML::finishMainPart (  )  [private]

Finishes the main part of the document to word/document.xml file.

References documentStream, root, TARGET_DOCUMENT, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishMath (  ) 

Finishes exporting the OXML_Element_Math object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Math::serialize().

UT_Error IE_Exp_OpenXML::finishNumbering (  )  [private]

Finishes the numbering.xml file which describes the contents of the package.

References numberingStream, TARGET_NUMBERING, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishNumbering ( int  target  ) 

Finishes exporting the OXML_List numbering definition.

References writeTargetStream().

Referenced by OXML_List::serializeNumbering().

UT_Error IE_Exp_OpenXML::finishNumberingLevel ( int  target  ) 

Finishes exporting the OXML_List abstract numbering level.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::finishParagraph ( int  target  ) 

Finishes exporting the OXML_Element_Paragraph object.

References writeTargetStream().

Referenced by OXML_Element_Paragraph::serialize().

UT_Error IE_Exp_OpenXML::finishParagraphDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::finishParagraphProperties ( int  target  ) 

Finishes exporting the OXML_Element_Paragraph object's properties.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Paragraph::serializeProperties().

UT_Error IE_Exp_OpenXML::finishRelations (  )  [private]

Finishes the relationships.

References relsDir, relStream, root, TARGET_RELATION, UT_DEBUGMSG, UT_OK, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishRow (  ) 

Finishes exporting the OXML_Element_Row object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Row::serialize().

UT_Error IE_Exp_OpenXML::finishRowProperties ( int  target  ) 

Finishes table row properties.

References writeTargetStream().

Referenced by OXML_Element_Row::serializeProperties().

UT_Error IE_Exp_OpenXML::finishRun ( int  target  ) 

Finishes exporting the OXML_Element_Run object.

References isOverline, and writeTargetStream().

Referenced by OXML_Element_Run::serialize(), and OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::finishRunDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::finishRunProperties ( int  target  ) 
UT_Error IE_Exp_OpenXML::finishSection (  ) 
UT_Error IE_Exp_OpenXML::finishSectionProperties (  ) 

Finishes exporting the OXML_Section object's properties.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Document::serialize(), and OXML_Section::serializeProperties().

UT_Error IE_Exp_OpenXML::finishSettings (  )  [private]

Finishes the settings of the document in word/setting.xml file.

References settingsStream, TARGET_SETTINGS, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishStyle (  ) 
UT_Error IE_Exp_OpenXML::finishStyles (  )  [private]

Finishes the styles.xml file which describes the contents of the package.

References stylesStream, TARGET_STYLES, UT_DEBUGMSG, UT_OK, wordDir, and writeTargetStream().

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishTable (  ) 

Finishes exporting the OXML_Element_Table object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Table::serialize().

UT_Error IE_Exp_OpenXML::finishTableBorderProperties ( int  target  ) 

Finishes exporting the OXML_Element_Table's border properties.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::finishTableGrid ( int  target  ) 

Finishes table grid.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::finishTableProperties ( int  target  ) 

Finishes exporting the OXML_Element_Table's properties.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::finishText ( int  target  ) 

Finishes exporting the OXML_Element_Text object.

References isOverline, and writeTargetStream().

Referenced by OXML_Element_Text::serialize().

UT_Error IE_Exp_OpenXML::finishTextBox ( int  target  ) 

Finishes exporting the OXML_Element_TextBox object.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serialize().

UT_Error IE_Exp_OpenXML::finishTextBoxContent ( int  target  ) 

Finishes exporting the OXML_Element_TextBox object's content.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serialize().

UT_Error IE_Exp_OpenXML::finishTextBoxProperties ( int  target  ) 

Finishes exporting the OXML_Element_TextBox object's properties.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serializeProperties().

UT_Error IE_Exp_OpenXML::finishWordMedia (  )  [private]

Exports all the image streams to actual files in the word/media folder.

References mediaStreams, UT_DEBUGMSG, wordDir, and wordMediaDir.

Referenced by finishDocument().

UT_Error IE_Exp_OpenXML::finishWordRelations (  )  [private]

Finishes the relationships.

References TARGET_DOCUMENT_RELATION, UT_DEBUGMSG, UT_OK, wordDir, wordRelsDir, wordRelStream, and writeTargetStream().

Referenced by finishDocument().

PD_Document* IE_Exp_OpenXML::getDoc (  )  [inline]

References m_pDoc.

Referenced by _writeDocument(), and OXML_Element_Image::serialize().

bool IE_Exp_OpenXML::isListBullet ( const char *  str  )  [private]

Checks whether given a string is a special list bullet symbol.

References BOX, BULLET, DASH, DIAMOND, HAND, HEART, IMPLIES, SQUARE, TICK, and TRIANGLE.

Referenced by setListLevelText().

bool IE_Exp_OpenXML::isNegativeQuantity ( const gchar *  quantity  )  [private]

Checks whether the quantity string is a negative quantity.

Referenced by setTextIndentation().

UT_Error IE_Exp_OpenXML::setAbstractNumberingId ( int  target,
UT_uint32  id 
)

Sets abstract numbering id.

References writeTargetStream().

Referenced by OXML_List::serializeNumbering().

UT_Error IE_Exp_OpenXML::setBackgroundColor ( int  target,
const gchar *  color 
)
UT_Error IE_Exp_OpenXML::setBold ( int  target  ) 
UT_Error IE_Exp_OpenXML::setColumns ( int  target,
const gchar *  num,
const gchar *  sep 
)
UT_Error IE_Exp_OpenXML::setColumnWidth ( int  target,
const char *  width 
)
UT_Error IE_Exp_OpenXML::setContinuousSection ( int  target  ) 

Sets the section type continuous.

References writeTargetStream().

Referenced by OXML_Document::serialize(), and OXML_Section::serializeProperties().

UT_Error IE_Exp_OpenXML::setEndnoteRef (  ) 

Set the endnoteRef tag.

References TARGET_ENDNOTE, and writeTargetStream().

Referenced by OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::setEndnoteReference ( const char *  id  ) 

Set the endnote reference.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::setEvenAndOddHeaders (  ) 

Sets the evenAndOddHeaders tag for the even/odd page headers/footers.

References TARGET_SETTINGS, and writeTargetStream().

Referenced by OXML_Document::serialize().

UT_Error IE_Exp_OpenXML::setFontFamily ( int  target,
const gchar *  family 
)
UT_Error IE_Exp_OpenXML::setFontSize ( int  target,
const gchar *  size 
)
UT_Error IE_Exp_OpenXML::setFooterReference ( const char *  id,
const char *  type 
)

Set the footer reference.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Section::serializeFooter().

UT_Error IE_Exp_OpenXML::setFooterRelation ( const char *  relId,
const char *  footerId 
)

Sets the necessary relationship for footer.

References TARGET_CONTENT, TARGET_DOCUMENT_RELATION, UT_OK, and writeTargetStream().

Referenced by OXML_Section::serializeFooter().

UT_Error IE_Exp_OpenXML::setFootnoteRef (  ) 

Set the footnoteRef tag.

References TARGET_FOOTNOTE, and writeTargetStream().

Referenced by OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::setFootnoteReference ( const char *  id  ) 

Set the footnote reference.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::setGridCol ( int  target,
const char *  column 
)
UT_Error IE_Exp_OpenXML::setGridSpan ( int  target,
UT_sint32  hspan 
)

Sets grid span for horizontally merged cells.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::setHeaderReference ( const char *  id,
const char *  type 
)

Set the header reference.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Section::serializeHeader().

UT_Error IE_Exp_OpenXML::setHeaderRelation ( const char *  relId,
const char *  headerId 
)

Sets the necessary relationships for header.

References TARGET_CONTENT, TARGET_DOCUMENT_RELATION, UT_OK, and writeTargetStream().

Referenced by OXML_Section::serializeHeader().

UT_Error IE_Exp_OpenXML::setHyperlinkRelation ( int  target,
const char *  id,
const char *  addr,
const char *  mode 
)

Sets the necessary relationship for hyperlink target address.

References UT_UTF8String::escapeURL(), UT_UTF8String::utf8_str(), and writeTargetStream().

Referenced by OXML_Element_Hyperlink::serialize().

UT_Error IE_Exp_OpenXML::setImage ( const char *  id,
const char *  relId,
const char *  filename,
const char *  width,
const char *  height 
)

Sets the inline image.

References convertToPositiveEmus(), TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Image::serialize().

UT_Error IE_Exp_OpenXML::setImageRelation ( const char *  filename,
const char *  id 
)

Sets the relation of the image.

References TARGET_DOCUMENT_RELATION, and writeTargetStream().

Referenced by OXML_Element_Image::serialize().

UT_Error IE_Exp_OpenXML::setItalic ( int  target  ) 

Sets italic style.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setLanguage ( int  target,
const gchar *  lang 
)
UT_Error IE_Exp_OpenXML::setLineHeight ( int  target,
const gchar *  height 
)
UT_Error IE_Exp_OpenXML::setLineThrough ( int  target  ) 

Sets line-through style.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setListFormat ( int  target,
const char *  format 
)

Sets list format.

References writeTargetStream().

Referenced by OXML_Element_List::serializeProperties().

UT_Error IE_Exp_OpenXML::setListLevel ( int  target,
const char *  level 
)

Sets list level.

References writeTargetStream().

Referenced by OXML_Element_List::serializeProperties().

UT_Error IE_Exp_OpenXML::setListLevelText ( int  target,
const char *  text 
)
UT_Error IE_Exp_OpenXML::setListStartValue ( int  target,
UT_uint32  startValue 
)

Sets the start value of the list.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::setListType ( int  target,
const char *  type 
)

Sets list type.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::setMultilevelType ( int  target,
const char *  type 
)

Sets the multilevel type of the list.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::setNoProof ( int  target  ) 

Sets no proof.

References writeTargetStream().

Referenced by OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setNumberingFormat ( int  target,
const char *  format 
)

Sets the numbering format of the list.

References writeTargetStream().

UT_Error IE_Exp_OpenXML::setOverline (  ) 

Sets overline style.

References isOverline.

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setPageBreak ( int  target  ) 

Sets page break.

References writeTargetStream().

Referenced by OXML_Element_Paragraph::serializeProperties().

UT_Error IE_Exp_OpenXML::setPageMargins ( int  target,
const char *  top,
const char *  left,
const char *  right,
const char *  bottom 
)
UT_Error IE_Exp_OpenXML::setPageSize ( int  target,
const char *  width,
const char *  height,
const char *  orientation 
)

Sets page size and orientation.

References writeTargetStream().

Referenced by OXML_Document::serialize().

UT_Error IE_Exp_OpenXML::setParagraphBottomMargin ( int  target,
const gchar *  margin 
)
UT_Error IE_Exp_OpenXML::setParagraphLeftMargin ( int  target,
const gchar *  margin 
)

Sets paragraph left margin.

References convertToTwips(), gchar, and writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Paragraph::serializeProperties().

UT_Error IE_Exp_OpenXML::setParagraphRightMargin ( int  target,
const gchar *  margin 
)

Sets paragraph right margin.

References convertToTwips(), gchar, and writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Paragraph::serializeProperties().

UT_Error IE_Exp_OpenXML::setParagraphStyle ( int  target,
const gchar *  style 
)
UT_Error IE_Exp_OpenXML::setParagraphTopMargin ( int  target,
const gchar *  margin 
)
UT_Error IE_Exp_OpenXML::setPositionedImage ( const char *  id,
const char *  relId,
const char *  filename,
const char *  width,
const char *  height,
const char *  xpos,
const char *  ypos,
const char *  wrapMode 
)

Sets the positioned image.

References convertToPositiveEmus(), TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Image::serialize().

UT_Error IE_Exp_OpenXML::setRowHeight ( int  target,
const char *  height 
)

Sets table row height to some exact value.

References convertToPositiveTwips(), and writeTargetStream().

Referenced by OXML_Element_Row::serializeProperties().

UT_Error IE_Exp_OpenXML::setSimpleField ( int  target,
const char *  instr,
const char *  value 
)
UT_Error IE_Exp_OpenXML::setSubscript ( int  target  ) 

Sets subscript style.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setSuperscript ( int  target  ) 
UT_Error IE_Exp_OpenXML::setTableBorder ( int  target,
const char *  border,
const char *  type,
const char *  color,
const char *  size 
)

Sets table border style for the specified border in the table.

References computeBorderWidth(), UT_colorToHex(), UT_OK, UT_return_val_if_fail, and writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties(), and OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::setTabstops ( int  target,
const gchar *  tabstops 
)
UT_Error IE_Exp_OpenXML::setTextAlignment ( int  target,
const gchar *  alignment 
)
UT_Error IE_Exp_OpenXML::setTextBoxHeight ( int  target,
const gchar *  height 
)

Sets textbox height.

References convertToPoints(), and writeTargetStream().

Referenced by OXML_Element_TextBox::serializeProperties().

UT_Error IE_Exp_OpenXML::setTextBoxWidth ( int  target,
const gchar *  width 
)

Sets textbox width.

References convertToPoints(), and writeTargetStream().

Referenced by OXML_Element_TextBox::serializeProperties().

UT_Error IE_Exp_OpenXML::setTextColor ( int  target,
const gchar *  color 
)

Sets text color style.

References UT_colorToHex(), and writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setTextDirection ( int  target,
const gchar *  direction 
)

Sets text direction, eg.

right-to-left

References writeTargetStream().

Referenced by OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setTextIndentation ( int  target,
const gchar *  indentation 
)
UT_Error IE_Exp_OpenXML::setTitlePage (  ) 

Sets the titlePg tag for the first page headers/footers.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Document::serialize().

UT_Error IE_Exp_OpenXML::setUnderline ( int  target  ) 

Sets underline style.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Run::serializeProperties().

UT_Error IE_Exp_OpenXML::setVerticalMerge ( int  target,
const char *  vmerge 
)

Sets vertical merge feature for vertically merged cells.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::setWidows ( int  target,
const gchar *  widows 
)
UT_Error IE_Exp_OpenXML::startAbstractNumbering ( int  target,
UT_uint32  id 
)

Starts exporting the OXML_List abstract numbering.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::startBookmark ( const gchar *  id,
const gchar *  name 
)

Exports the OXML_Element_BookmarkStart object.

References UT_UTF8String::escapeXML(), TARGET_DOCUMENT, UT_UTF8String::utf8_str(), and writeTargetStream().

Referenced by OXML_Element_Bookmark::serialize().

UT_Error IE_Exp_OpenXML::startCell (  ) 

Starts exporting the OXML_Element_Cell object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Cell::serialize().

UT_Error IE_Exp_OpenXML::startCellBorderProperties ( int  target  ) 

Starts exporting the OXML_Element_Cell's border properties.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::startCellProperties ( int  target  ) 

Starts exporting the OXML_Element_Cell object's properties.

References writeTargetStream().

Referenced by OXML_Element_Cell::serializeProperties().

UT_Error IE_Exp_OpenXML::startContentTypes (  )  [private]

Starts the [Content_Types].xml file which describes the contents of the package.

References contentTypesStream, TARGET_CONTENT, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startDocumentDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::startEndnote ( const gchar *  id  ) 
UT_Error IE_Exp_OpenXML::startEndnotes (  )  [private]

Starts the endnotes.xml file which describes the endnotes.

References endnoteStream, TARGET_ENDNOTE, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startExternalHyperlink ( const gchar *  id  ) 

Starts exporting the OXML_Element_Hyperlink object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Hyperlink::serialize().

UT_Error IE_Exp_OpenXML::startFooters (  )  [private]

Does nothing for now.

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startFooterStream ( const char *  id  ) 
UT_Error IE_Exp_OpenXML::startFootnote ( const gchar *  id  ) 
UT_Error IE_Exp_OpenXML::startFootnotes (  )  [private]

Starts the footnotes.xml file which describes the footnotes.

References footnoteStream, TARGET_FOOTNOTE, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startHeaders (  )  [private]

Does nothing for now.

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startHeaderStream ( const char *  id  ) 
UT_Error IE_Exp_OpenXML::startInternalHyperlink ( const gchar *  anchor  ) 
UT_Error IE_Exp_OpenXML::startListProperties ( int  target  ) 

Starts exporting the OXML_Element_List properties.

References writeTargetStream().

Referenced by OXML_Element_List::serializeProperties().

UT_Error IE_Exp_OpenXML::startMainPart (  )  [private]

Starts the main part of the document to word/document.xml file.

References documentStream, TARGET_DOCUMENT, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startMath (  ) 

Starts exporting the OXML_Element_Math object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Math::serialize().

UT_Error IE_Exp_OpenXML::startNumbering (  )  [private]

Starts the numbering.xml file which describes the default list styles.

References numberingStream, TARGET_NUMBERING, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startNumbering ( int  target,
UT_uint32  id 
)

Starts exporting the OXML_List numbering.

References writeTargetStream().

Referenced by OXML_List::serializeNumbering().

UT_Error IE_Exp_OpenXML::startNumberingLevel ( int  target,
UT_uint32  level 
)

Starts exporting the OXML_List abstract numbering level.

References writeTargetStream().

Referenced by OXML_List::serialize().

UT_Error IE_Exp_OpenXML::startParagraph ( int  target  ) 

Starts exporting the OXML_Element_Paragraph object.

References writeTargetStream().

Referenced by OXML_Element_Paragraph::serialize().

UT_Error IE_Exp_OpenXML::startParagraphDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::startParagraphProperties ( int  target  ) 

Starts exporting the OXML_Element_Paragraph object's properties.

References writeTargetStream().

Referenced by OXML_Style::serialize(), and OXML_Element_Paragraph::serializeProperties().

UT_Error IE_Exp_OpenXML::startRelations (  )  [private]

Writes the relationships for the files within the package Outputs the _rels folder and _rels/.rels file which defines the package relations.

References relStream, TARGET_RELATION, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startRow (  ) 

Starts exporting the OXML_Element_Row object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Row::serialize().

UT_Error IE_Exp_OpenXML::startRowProperties ( int  target  ) 

Starts table row properties.

References writeTargetStream().

Referenced by OXML_Element_Row::serializeProperties().

UT_Error IE_Exp_OpenXML::startRun ( int  target  ) 

Starts exporting the OXML_Element_Run object.

References writeTargetStream().

Referenced by OXML_Element_Run::serialize(), and OXML_Element_Field::serialize().

UT_Error IE_Exp_OpenXML::startRunDefaultProperties (  ) 
UT_Error IE_Exp_OpenXML::startRunProperties ( int  target  ) 
UT_Error IE_Exp_OpenXML::startSection (  ) 
UT_Error IE_Exp_OpenXML::startSectionProperties (  ) 

Starts exporting the OXML_Section object's properties.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Document::serialize(), and OXML_Section::serializeProperties().

UT_Error IE_Exp_OpenXML::startSettings (  )  [private]

Starts the settings of the document in word/settings.xml file.

References settingsStream, TARGET_SETTINGS, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startStyle ( const std::string &  name,
const std::string &  basedon,
const std::string &  followedby,
const std::string &  type 
)
UT_Error IE_Exp_OpenXML::startStyles (  )  [private]

Starts the styles.xml file which describes the default styles.

References stylesStream, TARGET_STYLES, UT_DEBUGMSG, UT_OK, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startTable (  ) 

Starts exporting the OXML_Element_Table object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Table::serialize().

UT_Error IE_Exp_OpenXML::startTableBorderProperties ( int  target  ) 

Starts exporting the OXML_Element_Table's border properties.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::startTableGrid ( int  target  ) 

Starts table grid.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::startTableProperties ( int  target  ) 

Starts exporting the OXML_Element_Table's properties.

References writeTargetStream().

Referenced by OXML_Element_Table::serializeProperties().

UT_Error IE_Exp_OpenXML::startText ( int  target  ) 

Starts exporting the OXML_Element_Text object.

References isOverline, and writeTargetStream().

Referenced by OXML_Element_Text::serialize().

UT_Error IE_Exp_OpenXML::startTextBox ( int  target,
const gchar *  id 
)

Starts exporting the OXML_Element_TextBox object.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serialize().

UT_Error IE_Exp_OpenXML::startTextBoxContent ( int  target  ) 

Starts exporting the OXML_Element_TextBox object's content.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serialize().

UT_Error IE_Exp_OpenXML::startTextBoxProperties ( int  target  ) 

Starts exporting the OXML_Element_TextBox object's properties.

References writeTargetStream().

Referenced by OXML_Element_TextBox::serializeProperties().

UT_Error IE_Exp_OpenXML::startWordMedia (  )  [private]

Does nothing for now.

If we need a default file in word/media folder we should create the necessary stream here.

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::startWordRelations (  )  [private]

Outputs the word/_rels folder and word/_rels/document.xml.rels file.

References TARGET_DOCUMENT_RELATION, UT_DEBUGMSG, UT_OK, wordRelStream, writeTargetStream(), and writeXmlHeader().

Referenced by startDocument().

UT_Error IE_Exp_OpenXML::writeImage ( const char *  filename,
const UT_ConstByteBufPtr data 
)

References mediaStreams, and UT_DEBUGMSG.

Referenced by OXML_Image::serialize().

UT_Error IE_Exp_OpenXML::writeMath ( const char *  omml  ) 

Writes the actual content of OXML_Element_Math object.

References TARGET_DOCUMENT, and writeTargetStream().

Referenced by OXML_Element_Math::serialize().

UT_Error IE_Exp_OpenXML::writeTargetStream ( int  target,
const char *  str 
) [private]

Writes to the target stream.

References getTargetStream(), and UT_DEBUGMSG.

Referenced by finishAbstractNumbering(), finishBookmark(), finishCell(), finishCellBorderProperties(), finishCellProperties(), finishContentTypes(), finishDocumentDefaultProperties(), finishEndnote(), finishEndnotes(), finishFooterStream(), finishFootnote(), finishFootnotes(), finishHeaderStream(), finishHyperlink(), finishListProperties(), finishMainPart(), finishMath(), finishNumbering(), finishNumberingLevel(), finishParagraph(), finishParagraphDefaultProperties(), finishParagraphProperties(), finishRelations(), finishRow(), finishRowProperties(), finishRun(), finishRunDefaultProperties(), finishRunProperties(), finishSectionProperties(), finishSettings(), finishStyle(), finishStyles(), finishTable(), finishTableBorderProperties(), finishTableGrid(), finishTableProperties(), finishText(), finishTextBox(), finishTextBoxContent(), finishTextBoxProperties(), finishWordRelations(), setAbstractNumberingId(), setBackgroundColor(), setBold(), setColumns(), setColumnWidth(), setContinuousSection(), setEndnoteRef(), setEndnoteReference(), setEvenAndOddHeaders(), setFontFamily(), setFontSize(), setFooterReference(), setFooterRelation(), setFootnoteRef(), setFootnoteReference(), setGridCol(), setGridSpan(), setHeaderReference(), setHeaderRelation(), setHyperlinkRelation(), setImage(), setImageRelation(), setItalic(), setLanguage(), setLineHeight(), setLineThrough(), setListFormat(), setListLevel(), setListLevelText(), setListStartValue(), setListType(), setMultilevelType(), setNoProof(), setNumberingFormat(), setPageBreak(), setPageMargins(), setPageSize(), setParagraphBottomMargin(), setParagraphLeftMargin(), setParagraphRightMargin(), setParagraphStyle(), setParagraphTopMargin(), setPositionedImage(), setRowHeight(), setSimpleField(), setSubscript(), setSuperscript(), setTableBorder(), setTabstops(), setTextAlignment(), setTextBoxHeight(), setTextBoxWidth(), setTextColor(), setTextDirection(), setTextIndentation(), setTitlePage(), setUnderline(), setVerticalMerge(), setWidows(), startAbstractNumbering(), startBookmark(), startCell(), startCellBorderProperties(), startCellProperties(), startContentTypes(), startDocumentDefaultProperties(), startEndnotes(), startExternalHyperlink(), startFooterStream(), startFootnotes(), startHeaderStream(), startInternalHyperlink(), startListProperties(), startMainPart(), startMath(), startNumbering(), startNumberingLevel(), startParagraph(), startParagraphDefaultProperties(), startParagraphProperties(), startRelations(), startRow(), startRowProperties(), startRun(), startRunDefaultProperties(), startRunProperties(), startSectionProperties(), startSettings(), startStyle(), startStyles(), startTable(), startTableBorderProperties(), startTableGrid(), startTableProperties(), startText(), startTextBox(), startTextBoxContent(), startTextBoxProperties(), startWordRelations(), writeMath(), and writeText().

UT_Error IE_Exp_OpenXML::writeText ( int  target,
const UT_UCS4Char text,
bool  list 
)
UT_Error IE_Exp_OpenXML::writeXmlHeader ( GsfOutput *  file  )  [private]

Write the simple xml header to the file This function should be called before anything written to file.

References UT_DEBUGMSG.

Referenced by startContentTypes(), startEndnotes(), startFooterStream(), startFootnotes(), startHeaderStream(), startMainPart(), startNumbering(), startRelations(), startSettings(), startStyles(), and startWordRelations().


Member Data Documentation

std::map<std::string, GsfOutput*> IE_Exp_OpenXML::footerStreams [private]

Referenced by finishFooters(), and startFooterStream().

std::map<std::string, GsfOutput*> IE_Exp_OpenXML::headerStreams [private]

Referenced by finishHeaders(), and startHeaderStream().

Referenced by _cleanup(), and getDoc().

std::map<std::string, GsfOutput*> IE_Exp_OpenXML::mediaStreams [private]

Referenced by finishWordMedia(), and writeImage().

GsfOutfile* IE_Exp_OpenXML::relsDir [private]

Referenced by _cleanup(), and finishRelations().

GsfOutfile* IE_Exp_OpenXML::wordMediaDir [private]

Referenced by _cleanup(), and finishWordMedia().

GsfOutfile* IE_Exp_OpenXML::wordRelsDir [private]

Referenced by _cleanup(), and finishWordRelations().


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