#include <ie_exp_RTF_listenerWriteDoc.h>
s_RTF_ListenerWriteDoc::s_RTF_ListenerWriteDoc | ( | PD_Document * | pDocument, | |
IE_Exp_RTF * | pie, | |||
bool | bToClipboard, | |||
bool | bHasMultiBlock | |||
) |
References _rtf_docfmt(), _rtf_info(), _setListBlock(), _setTabEaten(), XAP_EncodingManager::get_instance(), m_apiLastSpan, m_apiSavedBlock, m_apiThisBlock, m_apiThisFrame, m_apiThisSection, m_bAnnotationOpen, m_bBlankLine, m_bHyperLinkOpen, m_bInBlock, m_bInFrame, m_bInSpan, m_bJustOpennedFrame, m_bJustStartingDoc, m_bJustStartingSection, m_bNewTable, m_bOpenBlockForSpan, m_bOpennedFootnote, m_bRDFAnchorOpen, m_bStartedList, m_bTextBox, m_bToClipboard, m_currID, m_iAnnotationNumber, m_iBot, m_iCurRow, m_iFirstTop, m_iLeft, m_iRight, m_iTop, m_LastLinestyle, m_pAnnContent, m_pDocument, m_pie, m_pSavedBuf, m_sdh, m_sdhSavedBlock, m_sLastColor, m_Table, m_wctomb, ie_Table::setDoc(), and UT_Wctomb::setOutCharset().
s_RTF_ListenerWriteDoc::~s_RTF_ListenerWriteDoc | ( | ) | [virtual] |
References _closeBlock(), _closeSection(), _closeSpan(), m_rdfAnchorStack, and UT_DEBUGMSG.
void s_RTF_ListenerWriteDoc::_close_cell | ( | void | ) | [protected] |
References IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), ie_Table::closeCell(), ie_Table::getNestDepth(), m_pie, and m_Table.
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_close_table | ( | void | ) | [protected] |
References _newRow(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), ie_Table::closeTable(), ie_Table::getBot(), ie_Table::getLeft(), ie_Table::getNestDepth(), ie_Table::getNumCols(), ie_Table::getRight(), ie_Table::getTop(), m_iBot, m_iCurRow, m_iLeft, m_iRight, m_iTop, m_pie, and m_Table.
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_closeBlock | ( | PT_AttrPropIndex | nextApi = 0 |
) | [protected] |
References _closeSpan(), _openSpan(), IE_Exp_RTF::_rtf_keyword(), PD_Document::getSpanAttrProp(), PD_Document::getStruxType(), m_apiThisBlock, m_bBlankLine, m_bInBlock, m_bInSpan, m_pDocument, m_pie, m_sdh, IE_Exp_RTF::setCharRTL(), UT_BIDI_UNSET, and xxx_UT_DEBUGMSG.
Referenced by IE_Exp_RTF::exportHdrFtr(), populateStrux(), and ~s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_closeFrame | ( | void | ) | [protected] |
References IE_Exp_RTF::_rtf_close_brace(), m_bInFrame, m_bJustOpennedFrame, m_bTextBox, and m_pie.
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_closeSection | ( | void | ) | [protected] |
References m_apiThisSection, and m_sdh.
Referenced by IE_Exp_RTF::exportHdrFtr(), populateStrux(), and ~s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_closeSpan | ( | void | ) | [protected] |
References IE_Exp_RTF::_rtf_close_brace(), m_bInSpan, and m_pie.
Referenced by _closeBlock(), _openSpan(), _rtf_open_block(), _rtf_open_section(), IE_Exp_RTF::exportHdrFtr(), populate(), populateStrux(), and ~s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_export_AbiWord_Cell_props | ( | PT_AttrPropIndex | api, | |
bool | bFill | |||
) | [protected] |
This exports all the properties in a cell strux by extending rtf with a \* keyword. Code mostly copied for fl_TableLayout::_lookupProperties. This code should should be updated when new properties are defined.
References _fillCellProps(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), m_iFirstTop, m_pie, UT_std_string_getPropVal(), UT_std_string_setProperty(), UT_std_string_sprintf(), and xxx_UT_DEBUGMSG.
Referenced by _open_cell().
void s_RTF_ListenerWriteDoc::_export_AbiWord_Table_props | ( | PT_AttrPropIndex | api | ) | [protected] |
This exports all the properties in atable strux by extend rtf with a \* keyword. Code mostly copied for fl_TableLayout::_lookupProperties. This code should should be updated when new properties are defined.
References _fillTableProps(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), m_pie, and xxx_UT_DEBUGMSG.
Referenced by _open_table().
void s_RTF_ListenerWriteDoc::_exportCellProps | ( | PT_AttrPropIndex | api, | |
std::string & | sTableProps | |||
) | [protected] |
Export all the properties of this cell to the RTF stream. api is the Attribute Property Index. sTableProps is the UT_String containing all the Table Properties defined for the table.
References _fillCellProps(), IE_Exp_RTF::_findOrAddColor(), _getPropString(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_ifnotdefault_twips(), UT_String::c_str(), PP_PropertyMap::linestyle_dashed, PP_PropertyMap::linestyle_dotted, PP_PropertyMap::linestyle_inherit, PP_PropertyMap::linestyle_none, PP_PropertyMap::linestyle_solid, PP_PropertyMap::linestyle_type(), m_LastLinestyle, m_pie, m_sLastColor, and IE_Exp::write().
Referenced by _newRow().
void s_RTF_ListenerWriteDoc::_exportTableProps | ( | PT_AttrPropIndex | api | ) | [protected] |
void s_RTF_ListenerWriteDoc::_fillCellProps | ( | PT_AttrPropIndex | api, | |
std::string & | sCellProps | |||
) | [protected] |
Fill the supplied UT_String with all the properties defined for a cell
References gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_pDocument, UT_std_string_setProperty(), and xxx_UT_DEBUGMSG.
Referenced by _export_AbiWord_Cell_props(), and _exportCellProps().
void s_RTF_ListenerWriteDoc::_fillTableProps | ( | PT_AttrPropIndex | api, | |
std::string & | sTableProps | |||
) | [protected] |
This method fills the suppiled string with all the properties of the table given by api
References gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), ie_Table::getTableSDH(), m_pDocument, m_Table, UT_std_string_setProperty(), and UT_std_string_sprintf().
Referenced by _export_AbiWord_Table_props(), and _newRow().
double s_RTF_ListenerWriteDoc::_getColumnWidthInches | ( | void | ) | [protected] |
References DIM_IN, gchar, PD_Document::getAttrProp(), m_apiThisSection, PD_Document::m_docPageSize, m_pDocument, PP_evalProperty(), UT_convertToInches(), and fp_PageSize::Width().
Referenced by _newRow().
const UT_UCSChar * s_RTF_ListenerWriteDoc::_getFieldValue | ( | void | ) | [protected] |
This method returns the field value at the current document location. If there is not a field at the current document location return NULL.
References fl_BlockLayout::findPointCoords(), fp_Run::getNextRun(), PD_Document::getNthFmtHandle(), PD_Document::getStruxOfTypeFromPosition(), fp_Run::getType(), fl_Layout::getType(), m_pDocument, m_posDoc, m_sdh, PTX_Block, and UT_return_val_if_fail.
Referenced by _writeFieldTrailer().
void s_RTF_ListenerWriteDoc::_getPropString | ( | const std::string & | sPropString, | |
const char * | szProp, | |||
std::string & | sVal | |||
) | [protected] |
Convience function to lookup a property via const char * string. If the property is not present sVal is returned with zero size.
References UT_std_string_getPropVal().
Referenced by _exportCellProps().
bool s_RTF_ListenerWriteDoc::_isListBlock | ( | void | ) | const [inline, protected] |
Referenced by populate().
bool s_RTF_ListenerWriteDoc::_isTabEaten | ( | void | ) | const [inline, protected] |
Referenced by populate().
void s_RTF_ListenerWriteDoc::_newRow | ( | void | ) | [protected] |
References _exportCellProps(), _fillTableProps(), _getColumnWidthInches(), _outputTableBorders(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_nl(), IE_Exp_RTF::_rtf_open_brace(), UT_GenericVector< T >::addItem(), UT_String::c_str(), UT_GenericVector< T >::clear(), ie_Table::getBot(), ie_Table::getCellAPI(), PD_Document::getCellSDHFromRowCol(), ie_Table::getCurRow(), UT_GenericVector< T >::getItemCount(), ie_Table::getLeft(), ie_Table::getNestDepth(), UT_GenericVector< T >::getNthItem(), ie_Table::getNumCols(), ie_Table::getRight(), ie_Table::getTableAPI(), ie_Table::getTableProp(), ie_Table::getTableSDH(), ie_Table::getTop(), ie_Table::incCurRow(), m_bNewTable, fl_ColProps::m_iColWidth, m_pDocument, m_pie, m_Table, PD_Document::miniDump(), ie_Table::setCellRowCol(), UT_String::size(), UT_ASSERT_HARMLESS, UT_convertToInches(), UT_SHOULD_NOT_HAPPEN, UT_VECTOR_PURGEALL, IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by _close_table(), and _open_cell().
void s_RTF_ListenerWriteDoc::_open_cell | ( | PT_AttrPropIndex | api | ) | [protected] |
References _export_AbiWord_Cell_props(), _newRow(), _open_table(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), ie_Table::getBot(), ie_Table::getCurRow(), ie_Table::getLeft(), ie_Table::getNestDepth(), ie_Table::getPrevNumRightMostVMerged(), ie_Table::getRight(), getRightOfCell(), ie_Table::getTop(), m_bNewTable, m_iBot, m_iLeft, m_iRight, m_iTop, m_pie, m_Table, ie_Table::openCell(), and xxx_UT_DEBUGMSG.
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_open_table | ( | PT_AttrPropIndex | api, | |
bool | bIsCell = false | |||
) | [protected] |
References _export_AbiWord_Table_props(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), PD_Document::getAPIFromSDH(), ie_Table::getNestDepth(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), m_bNewTable, m_iBot, m_iFirstTop, m_iLeft, m_iRight, m_iTop, m_pDocument, m_pie, m_sdh, m_Table, ie_Table::openTable(), PTX_SectionTable, and UT_return_if_fail.
Referenced by _open_cell(), and populateStrux().
void s_RTF_ListenerWriteDoc::_openFrame | ( | PT_AttrPropIndex | apiFrame | ) | [protected] |
OK export all the frame properties in RTF format. Use the definitions for this.
References IE_Exp_RTF::_rtf_chardata(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_nl(), IE_Exp_RTF::_rtf_open_brace(), _writeSPNumProp(), PP_PropertyMap::background_none, UT_String::c_str(), convertInchToTwips(), convertTwipsToEMU(), DIM_PT, FL_FRAME_BELOW_TEXT, FL_FRAME_POSITIONED_TO_BLOCK, FL_FRAME_POSITIONED_TO_COLUMN, FL_FRAME_POSITIONED_TO_PAGE, FL_FRAME_TEXTBOX_TYPE, gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemDataByName(), PP_AttrProp::getNthProperty(), PP_AttrProp::getProperty(), m_apiThisFrame, m_bInFrame, m_bInSpan, m_bJustOpennedFrame, UT_RGBColor::m_blu, IE_Exp_RTF::m_braceLevel, m_bTextBox, PP_PropertyMap::Background::m_color, UT_RGBColor::m_grn, m_pDocument, m_pie, UT_RGBColor::m_red, PP_PropertyMap::Background::m_t_background, PT_STRUX_IMAGE_DATAID, PP_PropertyMap::Background::reset(), s_background_properties(), s_border_properties(), UT_String::size(), szName, UT_ASSERT_HARMLESS, UT_convertDimToInches(), UT_convertToInches(), UT_convertToLogicalUnits(), UT_DEBUGMSG, UT_JPEG_getDimensions(), UT_newNumber(), UT_NOT_IMPLEMENTED, UT_PNG_getDimensions(), UT_rand(), UT_SHOULD_NOT_HAPPEN, UT_String_sprintf(), UT_SVG_getDimensions(), IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_openSpan | ( | PT_AttrPropIndex | apiSpan, | |
const PP_AttrProp * | pSpanAP = NULL | |||
) | [protected] |
References _closeSpan(), IE_Exp_RTF::_getStyleNumber(), IE_Exp_RTF::_rtf_chardata(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), IE_Exp_RTF::_write_charfmt(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getStyle(), PD_Style::isCharStyle(), m_apiLastSpan, m_apiThisBlock, m_apiThisSection, m_bBlankLine, m_bInSpan, m_pDocument, m_pie, PT_STYLE_ATTRIBUTE_NAME, UT_ASSERT_HARMLESS, and UT_DEBUGMSG.
Referenced by _closeBlock(), _openTag(), and populate().
void s_RTF_ListenerWriteDoc::_openTag | ( | const char * | szPrefix, | |
const char * | szSuffix, | |||
bool | bNewLineAfter, | |||
PT_AttrPropIndex | api | |||
) | [protected] |
References _openSpan(), IE_Exp_RTF::_rtf_chardata(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_nl(), IE_Exp_RTF::_rtf_open_brace(), _writeEmbedData(), _writeFieldPreamble(), _writeFieldTrailer(), UT_String::c_str(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemDataByName(), AD_Document::getNewUUID(), PP_AttrProp::getNthProperty(), m_pDocument, m_pie, s, UT_String::size(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_if_fail, UT_SHOULD_NOT_HAPPEN, UT_std_string_setProperty(), UT_String_sprintf(), UT_UNUSED, IE_Exp::write(), and xxx_UT_DEBUGMSG.
Referenced by populate().
void s_RTF_ListenerWriteDoc::_outputCellBorders | ( | UT_sint32 | iThick | ) | [protected] |
References IE_Exp_RTF::_rtf_keyword(), m_pie, and IE_Exp::write().
void s_RTF_ListenerWriteDoc::_outputData | ( | const UT_UCSChar * | p, | |
UT_uint32 | length, | |||
PT_DocPosition | pos, | |||
bool | bIgnorePos | |||
) | [protected] |
References IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_nonascii_hex2(), XAP_EncodingManager::cjk_locale(), PD_Document::exportGetVisDirectionAtPos(), FlushBuffer, XAP_EncodingManager::get_instance(), IE_Exp_RTF::isCharRTL(), IE_Exp_RTF::m_atticFormat, IE_Exp_RTF::m_bLastWasKeyword, m_pDocument, m_pie, m_wctomb, IE_Exp_RTF::setCharRTL(), XAP_EncodingManager::try_UToWindows(), type, UCS_FF, UCS_LF, UCS_LRM, UCS_NBSP, UCS_RLM, UCS_TAB, UCS_VTAB, UT_BIDI_LTR, UT_BIDI_RTL, UT_return_if_fail, and UT_Wctomb::wctomb_or_fallback().
Referenced by _writeFieldTrailer(), and populate().
void s_RTF_ListenerWriteDoc::_outputTableBorders | ( | UT_sint32 | iThick | ) | [protected] |
References IE_Exp_RTF::_rtf_keyword(), m_pie, and IE_Exp::write().
Referenced by _newRow().
void s_RTF_ListenerWriteDoc::_rtf_docfmt | ( | void | ) | [protected] |
References IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_ifnotdefault_twips(), UT_String::c_str(), DIM_IN, gchar, fp_PageSize::Height(), fp_PageSize::isPortrait(), PD_Document::m_docPageSize, m_pDocument, m_pie, PP_evalProperty(), UT_String_sprintf(), and fp_PageSize::Width().
Referenced by s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_rtf_info | ( | void | ) | [protected] |
void s_RTF_ListenerWriteDoc::_rtf_open_block | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeSpan(), IE_Exp_RTF::_output_revision(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_nl(), IE_Exp_RTF::_write_parafmt(), PD_Document::getAttrProp(), ie_Table::getNestDepth(), ie_Table::isCellJustOpenned(), m_apiThisBlock, m_apiThisSection, m_bInFrame, m_bIsListBlock, m_bJustOpennedFrame, m_bJustStartingSection, m_bOpennedFootnote, m_bStartedList, m_currID, m_pDocument, m_pie, m_sdh, m_Table, and ie_Table::setCellJustOpenned().
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_rtf_open_section | ( | PT_AttrPropIndex | api | ) | [protected] |
References _closeSpan(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_ifnotdefault(), IE_Exp_RTF::_rtf_keyword_ifnotdefault_twips(), IE_Exp_RTF::_rtf_nl(), UT_String::c_str(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), m_apiThisSection, m_bJustStartingDoc, m_bJustStartingSection, m_bStartedList, m_pDocument, m_pie, PP_evalProperty(), UT_convertToInches(), and UT_String_sprintf().
Referenced by populateStrux().
void s_RTF_ListenerWriteDoc::_setListBlock | ( | bool | bListBlock | ) | [inline, protected] |
Referenced by populateStrux(), and s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_setTabEaten | ( | bool | bTabEaten | ) | [inline, protected] |
Referenced by IE_Exp_RTF::exportHdrFtr(), populate(), populateStrux(), and s_RTF_ListenerWriteDoc().
void s_RTF_ListenerWriteDoc::_writeAnnotation | ( | const PX_ChangeRecord_Object * | pcro | ) | [protected] |
References IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_space(), IE_Exp_RTF::_rtf_open_brace(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord::getIndexAP(), m_bAnnotationOpen, m_iAnnotationNumber, m_pDocument, m_pie, UT_DEBUGMSG, UT_newNumber(), and UT_return_if_fail.
Referenced by populate().
void s_RTF_ListenerWriteDoc::_writeBookmark | ( | const PX_ChangeRecord_Object * | pcro | ) | [protected] |
void s_RTF_ListenerWriteDoc::_writeEmbedData | ( | const std::string & | Name, | |
const UT_ConstByteBufPtr & | pbb, | |||
const std::string & | mime_type | |||
) | [protected] |
void s_RTF_ListenerWriteDoc::_writeFieldPreamble | ( | const PP_AttrProp * | pSpanAP | ) | [protected] |
This method writes out the all the boiler plate needed before every field definition.
References IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), IE_Exp_RTF::_write_charfmt(), PD_Document::getAttrProp(), m_apiThisBlock, m_apiThisSection, m_pDocument, m_pie, and IE_Exp::write().
Referenced by _openTag(), and _writeHyperlink().
void s_RTF_ListenerWriteDoc::_writeFieldTrailer | ( | void | ) | [protected] |
This method writes out the current field value and closes all the braces.
References _getFieldValue(), _outputData(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), m_pie, UT_UCS4_strlen(), and IE_Exp::write().
Referenced by _openTag().
void s_RTF_ListenerWriteDoc::_writeHyperlink | ( | const PX_ChangeRecord_Object * | pcro | ) | [protected] |
References IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), _writeFieldPreamble(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PX_ChangeRecord::getIndexAP(), m_bHyperLinkOpen, m_pDocument, m_pie, UT_DEBUGMSG, and IE_Exp::write().
Referenced by populate().
void s_RTF_ListenerWriteDoc::_writeImageInRTF | ( | const PX_ChangeRecord_Object * | pcro | ) | [protected] |
References IE_Exp_RTF::_rtf_chardata(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_ifnotdefault_twips(), IE_Exp_RTF::_rtf_nl(), IE_Exp_RTF::_rtf_open_brace(), UT_String::c_str(), DIM_IN, DIM_PT, gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), PD_Document::getDataItemDataByName(), PX_ChangeRecord::getIndexAP(), PP_AttrProp::getProperty(), m_pDocument, m_pie, UT_String::size(), UT_convertDimToInches(), UT_convertInchesToDimensionString(), UT_convertToInches(), UT_DEBUGMSG, UT_JPEG_getDimensions(), UT_newNumber(), UT_PNG_getDimensions(), UT_String_sprintf(), and UT_SVG_getDimensions().
Referenced by populate().
void s_RTF_ListenerWriteDoc::_writeRDFAnchor | ( | const PX_ChangeRecord_Object * | pcro | ) | [protected] |
References IE_Exp_RTF::_rtf_chardata(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), PD_Document::getAttrProp(), RDFAnchor::getID(), PX_ChangeRecord::getIndexAP(), RDFAnchor::isEnd(), m_bRDFAnchorOpen, m_pDocument, m_pie, m_rdfAnchorStack, and UT_DEBUGMSG.
Referenced by populate().
void s_RTF_ListenerWriteDoc::_writeSPNumProp | ( | const char * | prop, | |
UT_sint32 | val | |||
) | [protected] |
References IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), m_pie, UT_std_string_sprintf(), and IE_Exp::write().
Referenced by _openFrame().
void s_RTF_ListenerWriteDoc::_writeTOC | ( | PT_AttrPropIndex | apiTOC | ) | [protected] |
OK export all the TOC properties in RTF format.
References IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_open_brace(), gchar, PD_Document::getAttrProp(), PP_AttrProp::getProperty(), m_pDocument, and m_pie.
Referenced by populateStrux().
bool s_RTF_ListenerWriteDoc::change | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
This returns the right-attach of the cell to the right of the cell at (row, col)
References PD_Document::getCellSDHFromRowCol(), PD_Document::getPropertyFromSDH(), ie_Table::getTableSDH(), m_pDocument, m_Table, and PD_MAX_REVISION.
Referenced by _open_cell().
virtual bool s_RTF_ListenerWriteDoc::insertStrux | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr, | |||
pf_Frag_Strux * | sdh, | |||
PL_ListenerId | lid, | |||
void(*)(pf_Frag_Strux *sdhNew, PL_ListenerId lid, fl_ContainerLayout *sfhNew) | pfnBindHandles | |||
) | [virtual] |
Implements PL_Listener.
bool s_RTF_ListenerWriteDoc::populate | ( | fl_ContainerLayout * | sfh, | |
const PX_ChangeRecord * | pcr | |||
) | [virtual] |
Implements PL_Listener.
References _closeSpan(), _isListBlock(), _isTabEaten(), _openSpan(), _openTag(), _outputData(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), IE_Exp_RTF::_rtf_keyword_space(), IE_Exp_RTF::_rtf_open_brace(), _setTabEaten(), _writeAnnotation(), _writeBookmark(), _writeHyperlink(), _writeImageInRTF(), _writeRDFAnchor(), DELETEP, gchar, PD_Document::getAttrProp(), PX_ChangeRecord_Span::getBufIndex(), PD_Document::getFragFromPosition(), PX_ChangeRecord::getIndexAP(), UT_ByteBuf::getLength(), PX_ChangeRecord_Span::getLength(), PP_AttrProp::getNthAttribute(), PX_ChangeRecord_Object::getObjectType(), UT_ByteBuf::getPointer(), PD_Document::getPointer(), PX_ChangeRecord::getPosition(), pf_Frag::getPrev(), pf_Frag::getType(), PX_ChangeRecord::getType(), m_apiThisBlock, m_bAnnotationOpen, m_bHyperLinkOpen, m_bOpenBlockForSpan, m_iAnnotationNumber, m_pAnnContent, m_pDocument, m_pie, m_posDoc, m_sAnnAuthor, m_sAnnDate, PTO_Annotation, PTO_Bookmark, PTO_Embed, PTO_Field, PTO_Hyperlink, PTO_Image, PTO_Math, PTO_RDFAnchor, PX_ChangeRecord::PXT_InsertFmtMark, PX_ChangeRecord::PXT_InsertObject, PX_ChangeRecord::PXT_InsertSpan, UCS_TAB, UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_return_val_if_fail, UT_UTF8String::utf8_str(), and IE_Exp::write().
bool s_RTF_ListenerWriteDoc::populateStrux | ( | pf_Frag_Strux * | sdh, | |
const PX_ChangeRecord * | pcr, | |||
fl_ContainerLayout ** | psfh | |||
) | [virtual] |
Implements PL_Listener.
References _close_cell(), _close_table(), _closeBlock(), _closeFrame(), _closeSection(), _closeSpan(), _open_cell(), _open_table(), _openFrame(), IE_Exp_RTF::_rtf_close_brace(), IE_Exp_RTF::_rtf_keyword(), _rtf_open_block(), IE_Exp_RTF::_rtf_open_brace(), _rtf_open_section(), _setListBlock(), _setTabEaten(), _writeTOC(), IE_Exp_RTF::exportHdrFtr(), gchar, PP_AttrProp::getAttribute(), PD_Document::getAttrProp(), IE_Exp_RTF::getByteBuf(), PX_ChangeRecord::getIndexAP(), PP_AttrProp::getProperty(), PX_ChangeRecord::getType(), m_apiSavedBlock, m_apiThisBlock, m_bBlankLine, m_bInBlock, m_bOpennedFootnote, m_pAnnContent, m_pDocument, m_pie, m_posDoc, m_pSavedBuf, m_sAnnAuthor, m_sAnnDate, m_sAnnTitle, m_sdh, m_sdhSavedBlock, PTX_Block, PTX_EndAnnotation, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionAnnotation, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionTable, PTX_SectionTOC, IE_Exp_RTF::setByteBuf(), UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
bool s_RTF_ListenerWriteDoc::signal | ( | UT_uint32 | iSignal | ) | [virtual] |
Implements PL_Listener.
References UT_ASSERT_NOT_REACHED.
friend class IE_Exp_RTF [friend] |
Referenced by _openSpan(), and s_RTF_ListenerWriteDoc().
Referenced by populateStrux(), and s_RTF_ListenerWriteDoc().
Referenced by _closeBlock(), _openSpan(), _rtf_open_block(), _writeFieldPreamble(), populate(), populateStrux(), and s_RTF_ListenerWriteDoc().
Referenced by _openFrame(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bAnnotationOpen [private] |
Referenced by _writeAnnotation(), populate(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bBlankLine [private] |
Referenced by _closeBlock(), _openSpan(), IE_Exp_RTF::exportHdrFtr(), populateStrux(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bHyperLinkOpen [private] |
Referenced by _writeHyperlink(), populate(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bInBlock [private] |
Referenced by _closeBlock(), populateStrux(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bInFrame [private] |
Referenced by _closeFrame(), _openFrame(), _rtf_open_block(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bInSpan [private] |
Referenced by _closeBlock(), _closeSpan(), _openFrame(), _openSpan(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bIsListBlock [private] |
Referenced by _rtf_open_block().
bool s_RTF_ListenerWriteDoc::m_bIsTabEaten [private] |
bool s_RTF_ListenerWriteDoc::m_bJustOpennedFrame [private] |
Referenced by _closeFrame(), _openFrame(), _rtf_open_block(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bJustStartingDoc [private] |
Referenced by _rtf_open_section(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bJustStartingSection [private] |
Referenced by _rtf_open_block(), _rtf_open_section(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bNewTable [private] |
Referenced by _newRow(), _open_cell(), _open_table(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bOpenBlockForSpan [private] |
Referenced by populate(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bOpennedFootnote [private] |
Referenced by _rtf_open_block(), populateStrux(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bRDFAnchorOpen [private] |
Referenced by _writeRDFAnchor(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bStartedList [private] |
Referenced by _rtf_open_block(), _rtf_open_section(), IE_Exp_RTF::exportHdrFtr(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bTextBox [private] |
Referenced by _closeFrame(), _openFrame(), and s_RTF_ListenerWriteDoc().
bool s_RTF_ListenerWriteDoc::m_bToClipboard [private] |
Referenced by s_RTF_ListenerWriteDoc().
UT_uint32 s_RTF_ListenerWriteDoc::m_currID [private] |
Referenced by _rtf_open_block(), and s_RTF_ListenerWriteDoc().
Referenced by _writeAnnotation(), populate(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iBot [private] |
Referenced by _close_table(), _open_cell(), _open_table(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iCurRow [private] |
Referenced by _close_table(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iFirstTop [private] |
Referenced by _export_AbiWord_Cell_props(), _open_table(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iLeft [private] |
Referenced by _close_table(), _open_cell(), _open_table(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iRight [private] |
Referenced by _close_table(), _open_cell(), _open_table(), and s_RTF_ListenerWriteDoc().
UT_sint32 s_RTF_ListenerWriteDoc::m_iTop [private] |
Referenced by _close_table(), _open_cell(), _open_table(), and s_RTF_ListenerWriteDoc().
Referenced by _exportCellProps(), and s_RTF_ListenerWriteDoc().
UT_ByteBuf* s_RTF_ListenerWriteDoc::m_pAnnContent [private] |
Referenced by populate(), populateStrux(), and s_RTF_ListenerWriteDoc().
PD_Document* s_RTF_ListenerWriteDoc::m_pDocument [private] |
Referenced by _closeBlock(), _fillCellProps(), _fillTableProps(), _getColumnWidthInches(), _getFieldValue(), _newRow(), _open_table(), _openFrame(), _openSpan(), _openTag(), _outputData(), _rtf_docfmt(), _rtf_info(), _rtf_open_block(), _rtf_open_section(), _writeAnnotation(), _writeBookmark(), _writeFieldPreamble(), _writeHyperlink(), _writeImageInRTF(), _writeRDFAnchor(), _writeTOC(), getRightOfCell(), populate(), populateStrux(), and s_RTF_ListenerWriteDoc().
IE_Exp_RTF* s_RTF_ListenerWriteDoc::m_pie [private] |
Referenced by _close_cell(), _close_table(), _closeBlock(), _closeFrame(), _closeSpan(), _export_AbiWord_Cell_props(), _export_AbiWord_Table_props(), _exportCellProps(), _newRow(), _open_cell(), _open_table(), _openFrame(), _openSpan(), _openTag(), _outputCellBorders(), _outputData(), _outputTableBorders(), _rtf_docfmt(), _rtf_info(), _rtf_open_block(), _rtf_open_section(), _writeAnnotation(), _writeBookmark(), _writeEmbedData(), _writeFieldPreamble(), _writeFieldTrailer(), _writeHyperlink(), _writeImageInRTF(), _writeRDFAnchor(), _writeSPNumProp(), _writeTOC(), populate(), populateStrux(), and s_RTF_ListenerWriteDoc().
Referenced by _getFieldValue(), populate(), and populateStrux().
UT_ByteBuf* s_RTF_ListenerWriteDoc::m_pSavedBuf [private] |
Referenced by populateStrux(), and s_RTF_ListenerWriteDoc().
std::list< std::string > s_RTF_ListenerWriteDoc::m_rdfAnchorStack [private] |
Referenced by _writeRDFAnchor(), and ~s_RTF_ListenerWriteDoc().
Referenced by populate(), and populateStrux().
Referenced by populate(), and populateStrux().
Referenced by populateStrux().
pf_Frag_Strux* s_RTF_ListenerWriteDoc::m_sdh [private] |
Referenced by _closeBlock(), _closeSection(), _getFieldValue(), _open_table(), _rtf_open_block(), populateStrux(), and s_RTF_ListenerWriteDoc().
Referenced by populateStrux(), and s_RTF_ListenerWriteDoc().
Referenced by _exportCellProps(), and s_RTF_ListenerWriteDoc().
ie_Table s_RTF_ListenerWriteDoc::m_Table [private] |
Referenced by _close_cell(), _close_table(), _fillTableProps(), _newRow(), _open_cell(), _open_table(), _rtf_open_block(), getRightOfCell(), and s_RTF_ListenerWriteDoc().
UT_Wctomb s_RTF_ListenerWriteDoc::m_wctomb [private] |
Referenced by _outputData(), and s_RTF_ListenerWriteDoc().