#include <ie_imp_RTF.h>
enum IE_Imp_RTF::RTFBookmarkType [private] |
enum IE_Imp_RTF::RTFTokenType [private] |
IE_Imp_RTF::IE_Imp_RTF | ( | PD_Document * | pDocument | ) |
References _initialKeywordSort(), UT_UTF8String::clear(), XAP_EncodingManager::get_instance(), IE_Imp::getDoc(), keywordSorted, m_hyperlinkBase, m_mbtowc, m_pasteTableStack, m_sImageName, m_vecAbiListTable, m_XMLIDCreatorHandle, PD_Document::makeXMLIDCreator(), UT_Stack::push(), UT_UCS4_mbtowc::setInCharset(), UT_DEBUGMSG, and UT_std_vector_purgeall().
IE_Imp_RTF::~IE_Imp_RTF | ( | ) |
bool IE_Imp_RTF::_appendField | ( | const gchar * | xmlField, | |
const gchar ** | pszAttribs = NULL | |||
) | [private] |
Appends a field to the document.
xmlField | the field type value |
References PD_Document::appendObject(), PD_Document::appendStrux(), buildCharacterProps(), bUseInsertNotAppend(), FlushStoredChars(), gchar, XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), FV_View::getFrameLayout(), XAP_App::getLastFocussedFrame(), fl_ContainerLayout::getPosition(), PD_Document::insertObject(), PD_Document::insertObjectBeforeFrag(), PD_Document::insertStruxBeforeFrag(), FV_View::isInFrame(), m_bAppendAnyway, m_bCellBlank, m_bEndTableOpen, m_bFieldRecognized, m_bMovedPos, RTFStateStore::m_charProps, m_currentRTFState, RTFStateStore::m_destinationState, m_dPosBeforeFootnote, m_dposPaste, m_pDelayedFrag, m_posSavedDocPosition, RTFProps_CharProps::m_styleNumber, m_styleTable, PTO_Field, PTX_Block, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by HandleField(), HandleNoteReference(), HandleStarKeyword(), and TranslateKeywordID().
void IE_Imp_RTF::_appendHdrFtr | ( | ) | [private] |
References _parseFile(), PD_Document::appendStrux(), PD_Document::changeStruxAttsNoUpdate(), gchar, IE_Imp::getDoc(), PD_Document::getLastSectionMutableSDH(), UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), RTFHdrFtr::hftFooter, RTFHdrFtr::hftFooterEven, RTFHdrFtr::hftFooterFirst, RTFHdrFtr::hftFooterLast, RTFHdrFtr::hftHeader, RTFHdrFtr::hftHeaderEven, RTFHdrFtr::hftHeaderFirst, RTFHdrFtr::hftHeaderLast, m_bSectionHasPara, RTFHdrFtr::m_buf, m_dposPaste, m_hdrFtrTable, RTFHdrFtr::m_id, m_lenPasteBuffer, m_newParaFlagged, m_parsingHdrFtr, m_pCurrentCharInPasteBuffer, m_pImportFile, m_pPasteBuffer, RTFHdrFtr::m_type, PTX_Block, PTX_SectionHdrFtr, UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_return_if_fail, and UT_std_string_sprintf().
Referenced by _loadFile().
bool IE_Imp_RTF::_appendSpan | ( | ) | [private] |
References _formRevisionAttr(), PD_Document::appendFmt(), IE_Imp::appendFmt(), PD_Document::appendSpan(), IE_Imp::appendSpan(), buildCharacterProps(), IE_Imp::getDoc(), UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), PD_Document::insertFmtMarkBeforeFrag(), PD_Document::insertSpanBeforeFrag(), m_bBidiMode, RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_dir, RTFProps_CharProps::m_eRevision, m_gbBlock, m_iAutoBidiOverride, m_iBidiLastType, m_iBidiNextType, m_pDelayedFrag, RTFStateStore::m_revAttr, RTFProps_CharProps::m_styleNumber, m_styleTable, PT_STYLE_ATTRIBUTE_NAME, UT_UTF8String::size(), UT_BIDI_IS_NEUTRAL, UT_BIDI_LTR, UT_BIDI_RTL, UT_BIDI_UNSET, UT_bidiGetCharType(), UT_DEBUGMSG, and UT_UTF8String::utf8_str().
Referenced by ApplyCharacterAttributes().
void IE_Imp_RTF::_formRevisionAttr | ( | std::string & | s, | |
const std::string & | props, | |||
const std::string & | style | |||
) | [private] |
References RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_eRevision, RTFProps_CharProps::m_iCurrentRevisionId, PP_REVISION_ADDITION, PP_REVISION_ADDITION_AND_FMT, PP_REVISION_DELETION, PP_REVISION_FMT_CHANGE, PP_REVISION_NONE, and UT_std_string_sprintf().
Referenced by _appendSpan(), _insertSpan(), and HandleParKeyword().
RTF_msword97_listOverride * IE_Imp_RTF::_getTableListOverride | ( | UT_uint32 | id | ) | [private] |
Get list override of given id
id | Id of list override |
The old code in ApplyParagraphAttributes would use the given id as an index to the vector of list overrides. But these can be given arbitrary ids from 1 to 2000, so the code would not always have worked. Also, and more relevant, this function handles an id of 0, as output by StarWriter/OpenOffice even though it is not allowed in the spec.
References RTF_msword97_listOverride::m_RTF_listID, m_vecWord97ListOverride, and UT_ASSERT_NOT_REACHED.
Referenced by ApplyParagraphAttributes().
void IE_Imp_RTF::_initialKeywordSort | ( | void | ) | [static, private] |
References keywordSorted, kwsortcomparator(), rtfKeywords, and UT_DEBUGMSG.
Referenced by IE_Imp_RTF().
bool IE_Imp_RTF::_insertSpan | ( | ) | [private] |
References _formRevisionAttr(), buildCharacterProps(), PD_Document::changeSpanFmt(), IE_Imp::getDoc(), UT_GrowBuf::getLength(), UT_GrowBuf::getPointer(), PD_Document::insertSpan(), PD_Document::insertStrux(), PD_Document::isCellAtPos(), PD_Document::isFrameAtPos(), PD_Document::isTableAtPos(), m_bBidiMode, RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_dir, m_dposPaste, RTFProps_CharProps::m_eRevision, m_gbBlock, m_iAutoBidiOverride, m_iBidiLastType, m_iBidiNextType, m_posSavedDocPosition, RTFProps_CharProps::m_styleNumber, m_styleTable, PT_STYLE_ATTRIBUTE_NAME, PTC_SetFmt, PTX_Block, UT_BIDI_IS_NEUTRAL, UT_BIDI_LTR, UT_BIDI_RTL, UT_BIDI_UNSET, and UT_bidiGetCharType().
Referenced by ApplyCharacterAttributes().
UT_Error IE_Imp_RTF::_isBidiDocument | ( | ) | [private] |
References m_bBidiMode, m_pImportFile, UT_DEBUGMSG, UT_ERROR, UT_MIN, and UT_return_val_if_fail.
Referenced by _parseFile().
UT_Error IE_Imp_RTF::_loadFile | ( | GsfInput * | input | ) | [protected, virtual] |
Implements IE_Imp.
References _appendHdrFtr(), _parseFile(), _writeHeader(), abicollab::service::error(), IE_Imp::getDoc(), m_bAppendAnyway, m_newParaFlagged, m_newSectionFlagged, m_szFileDirName, and UT_basename().
UT_Error IE_Imp_RTF::_parseFile | ( | GsfInput * | fp | ) | [protected] |
References _isBidiDocument(), _parseText(), DIM_IN, IE_Imp::getDoc(), IE_Imp::getLoadStylesOnly(), m_currentFtrEvenID, m_currentFtrFirstID, m_currentFtrID, m_currentFtrLastID, m_currentHdrEvenID, m_currentHdrFirstID, m_currentHdrID, m_currentHdrLastID, m_currentRTFState, RTFStateStore::m_destinationState, PD_Document::m_docPageSize, RTFStateStore::m_internalState, m_parsingHdrFtr, m_pImportFile, fp_PageSize::Set(), PD_Document::setAttrProp(), and UT_OK.
Referenced by _appendHdrFtr(), _loadFile(), and pasteFromBuffer().
gchar * IE_Imp_RTF::_parseFldinstBlock | ( | UT_ByteBuf & | _buf, | |
gchar * | xmlField, | |||
bool & | isXML | |||
) | [private] |
buf | the buffer that contains the RTF. | |
xmlField | the XML attributes for the field. | |
isXML | whether xmlField is used or not. |
References PD_Document::appendObject(), PD_Document::appendStrux(), bUseInsertNotAppend(), abicollab::service::error(), FlushStoredChars(), FREEP, IE_Imp::getDoc(), UT_ByteBuf::getLength(), UT_ByteBuf::getPointer(), IEGFT_JPEG, InsertImage(), PD_Document::insertObject(), PD_Document::insertStruxBeforeFrag(), IE_ImpGraphic::loadGraphic(), m_bCellBlank, m_bEndTableOpen, m_bParaWrittenForSection, m_dposPaste, m_hyperlinkBase, m_iHyperlinkOpen, m_iRDFAnchorOpen, m_pDelayedFrag, m_szFileDirName, m_XMLIDCreatorHandle, PTO_Hyperlink, PTO_RDFAnchor, PTX_Block, PTX_EndTOC, PTX_SectionTOC, s, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_go_path_is_uri(), UT_OK, and xxx_UT_DEBUGMSG.
Referenced by HandleField().
UT_Error IE_Imp_RTF::_parseHdrFtr | ( | ) | [protected] |
UT_Error IE_Imp_RTF::_parseText | ( | ) | [protected] |
References FlushStoredChars(), g_dbgLastKeyword, UT_Stack::getDepth(), IE_Imp::getLoadStylesOnly(), HandleAnnotation(), HandleNote(), hexVal(), m_bFootnotePending, m_bInAnnotation, m_bNoteIsFNote, m_bStyleImportDone, m_currentRTFState, RTFStateStore::m_internalState, ABI_RTF_Annotation::m_iRTFLevel, m_pAnnotation, m_stateStack, MAX_KEYWORD_LEN, ParseChar(), ParseRTFKeyword(), PopRTFState(), PushRTFState(), ReadCharFromFile(), ReadKeyword(), RTFStateStore::risBin, RTFStateStore::risHex, RTFStateStore::risNorm, setEncoding(), SkipBackChar(), TranslateKeyword(), UT_ASSERT, UT_DEBUGMSG, UT_ERROR, UT_OK, and UT_return_val_if_fail.
Referenced by _parseFile(), and HandleField().
void IE_Imp_RTF::_setStringProperty | ( | std::string & | sPropsString, | |
const char * | szProp, | |||
const char * | szVal | |||
) | [private] |
Set a property, value pair in the supplied string. This is just a convience wrapper function to use const char * strings
References UT_std_string_setProperty().
Referenced by TranslateKeywordID().
UT_Error IE_Imp_RTF::_writeHeader | ( | GsfInput * | fp | ) | [protected] |
Referenced by _loadFile().
bool IE_Imp_RTF::AddChar | ( | UT_UCSChar | ch | ) | [private] |
References UT_GrowBuf::getLength(), UT_GrowBuf::ins(), and m_gbBlock.
Referenced by ParseChar().
void IE_Imp_RTF::addFrame | ( | RTFProps_FrameProps & | frame | ) |
Construct all the frame properties and add the frame to the PT
References PD_Document::appendStrux(), bUseInsertNotAppend(), FL_FRAME_ABOVE_TEXT, FL_FRAME_POSITIONED_TO_COLUMN, FL_FRAME_POSITIONED_TO_PAGE, FlushStoredChars(), IE_Imp::getDoc(), insertStrux(), isStruxImage(), RTFProps_FrameProps::m_abiProps, m_bFrameStruxIn, m_bFrameTextBox, RTFProps_FrameProps::m_iBackgroundColor, RTFProps_FrameProps::m_iBotPad, RTFProps_FrameProps::m_iBotPos, RTFProps_FrameProps::m_iFillType, RTFProps_FrameProps::m_iFramePositionTo, RTFProps_FrameProps::m_iFrameType, RTFProps_FrameProps::m_iFrameWrapMode, RTFProps_FrameProps::m_iLeftPad, RTFProps_FrameProps::m_iLeftPos, RTFProps_FrameProps::m_iRightPad, RTFProps_FrameProps::m_iRightPos, RTFProps_FrameProps::m_iTopPad, RTFProps_FrameProps::m_iTopPos, m_sImageName, PT_STRUX_IMAGE_DATAID, PTX_SectionFrame, UT_DEBUGMSG, UT_rand(), UT_RAND_MAX, UT_std_string_setProperty(), UT_std_string_sprintf(), and UT_UTF8String::utf8_str().
Referenced by HandleShapeText(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool IE_Imp_RTF::AddTabstop | ( | UT_sint32 | stopDist, | |
eTabType | tabType, | |||
eTabLeader | tableader | |||
) | [private] |
bool IE_Imp_RTF::AddTabstop | ( | UT_sint32 | stopDist, | |
eTabType | tabType, | |||
eTabLeader | tabLeader, | |||
const std::unique_ptr< RTFProps_ParaProps > & | pParas | |||
) | [private] |
References FL_LEADER_EQUALSIGN, FL_LEADER_NONE, FL_TAB_BAR, and FL_TAB_LEFT.
bool IE_Imp_RTF::ApplyCharacterAttributes | ( | ) | [private] |
References _appendSpan(), _insertSpan(), PD_Document::appendFmt(), IE_Imp::appendFmt(), PD_Document::appendFmtMark(), ApplyParagraphAttributes(), buildCharacterProps(), bUseInsertNotAppend(), PD_Document::changeSpanFmt(), gchar, IE_Imp::getDoc(), UT_GrowBuf::getLength(), PD_Document::insertFmtMarkBeforeFrag(), isBlockNeededForPasteTable(), m_bContentFlushed, RTFStateStore::m_charProps, m_currentRTFState, m_dOrigPos, m_dposPaste, m_gbBlock, RTFProps_ParaProps::m_isList, RTFStateStore::m_paraProps, m_pDelayedFrag, RTFStateStore::m_revAttr, RTFProps_CharProps::m_styleNumber, m_styleTable, PTC_SetFmt, UT_UTF8String::size(), UT_GrowBuf::truncate(), and UT_UTF8String::utf8_str().
Referenced by FlushStoredChars().
bool IE_Imp_RTF::ApplyParagraphAttributes | ( | bool | bDontInsert = false |
) | [private] |
Now insert this into the pAuto List
References _getTableListOverride(), PD_Document::addList(), PD_Document::appendFmt(), PD_Document::appendFmtMark(), PD_Document::appendObject(), PD_Document::appendSpan(), PD_Document::appendStrux(), RTF_msword97_listOverride::buildAbiListProperties(), buildCharacterProps(), bUseInsertNotAppend(), PD_Document::changeStruxFmt(), CloseTable(), DIM_IN, FL_TAB_BAR, FL_TAB_CENTER, FL_TAB_DECIMAL, FL_TAB_LEFT, FL_TAB_RIGHT, XAP_App::getApp(), RTF_msword97_listOverride::getBgColourNumber(), RTF_msword97_listOverride::getBold(), RTF_msword97_listOverride::getColourNumber(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), RTF_msword97_listOverride::getFontNumber(), RTF_msword97_listOverride::getFontSize(), RTF_msword97_listOverride::getHasBgColour(), RTF_msword97_listOverride::getHasColour(), RTF_msword97_listOverride::getItalic(), XAP_App::getLastFocussedFrame(), PD_Document::getListByID(), PD_Document::getListsCount(), ie_imp_table_control::getNestDepth(), PD_Document::getNthList(), GetNthTableBgColour(), GetNthTableColour(), GetNthTableFont(), RTF_msword97_listOverride::getStrikeout(), PD_Document::getStruxOfTypeFromPosition(), RTF_msword97_listOverride::getSubscript(), RTF_msword97_listOverride::getSubscriptPos(), RTF_msword97_listOverride::getSuperscript(), RTF_msword97_listOverride::getSuperscriptPos(), getTable(), RTF_msword97_listOverride::getTabLeaderVect(), RTF_msword97_listOverride::getTabStopVect(), RTF_msword97_listOverride::getTabTypeVect(), RTF_msword97_listOverride::getUnderline(), fl_AutoLists::getXmlList(), fl_AutoLists::getXmlListsSize(), PD_Document::insertSpan(), insertStrux(), PD_Document::insertStruxBeforeFrag(), RTF_msword97_listOverride::isBoldChanged(), RTF_msword97_listOverride::isFontNumberChanged(), RTF_msword97_listOverride::isFontSizeChanged(), RTF_msword97_listOverride::isHasBgColourChanged(), RTF_msword97_listOverride::isHasColourChanged(), FV_View::isHdrFtrEdit(), RTF_msword97_listOverride::isItalicChanged(), RTF_msword97_listOverride::isStrikeoutChanged(), RTF_msword97_listOverride::isSubscriptChanged(), RTF_msword97_listOverride::isSuperscriptChanged(), RTF_msword97_listOverride::isTab(), RTF_msword97_listOverride::isUnderlineChanged(), isWord97Lists(), RTFProps_ParaProps::m_bBotBorder, m_bCellBlank, m_bDoCloseTable, m_bEndTableOpen, ABI_Paste_Table::m_bHasPastedCellStrux, ABI_Paste_Table::m_bHasPastedTableStrux, RTFProps_ParaProps::m_bInTable, RTFProps_ParaProps::m_bLeftBorder, RTFProps_ParaProps::m_bMergeBordersShading, m_bParaWrittenForSection, RTFProps_ParaProps::m_bRightBorder, m_bSectionHasPara, RTFProps_ParaProps::m_bTopBorder, m_currentRTFState, RTFProps_ParaProps::m_dir, m_dposPaste, RTFProps_ParaProps::m_iBotBorderCol, RTFProps_ParaProps::m_iBotBorderSpacing, RTFProps_ParaProps::m_iBotBorderStyle, RTFProps_ParaProps::m_iBotBorderWidth, RTFProps_ParaProps::m_iLeftBorderCol, RTFProps_ParaProps::m_iLeftBorderSpacing, RTFProps_ParaProps::m_iLeftBorderStyle, RTFProps_ParaProps::m_iLeftBorderWidth, RTFProps_ParaProps::m_indentFirst, RTFProps_ParaProps::m_indentLeft, RTFProps_ParaProps::m_indentRight, RTFProps_ParaProps::m_iOverride, RTFProps_ParaProps::m_iOverrideLevel, RTFProps_ParaProps::m_iRightBorderCol, RTFProps_ParaProps::m_iRightBorderSpacing, RTFProps_ParaProps::m_iRightBorderStyle, RTFProps_ParaProps::m_iRightBorderWidth, RTFProps_ParaProps::m_iShadingBackCol, RTFProps_ParaProps::m_iShadingForeCol, RTFProps_ParaProps::m_iShadingPattern, RTFProps_ParaProps::m_isList, RTFProps_ParaProps::m_iTopBorderCol, RTFProps_ParaProps::m_iTopBorderSpacing, RTFProps_ParaProps::m_iTopBorderStyle, RTFProps_ParaProps::m_iTopBorderWidth, RTFProps_ParaProps::m_justification, RTFProps_ParaProps::m_level, RTFProps_ParaProps::m_lineSpaceExact, RTFProps_ParaProps::m_lineSpaceVal, m_newParaFlagged, RTFStateStore::m_paraProps, m_pasteTableStack, m_pDelayedFrag, RTFFontTableItem::m_pFontName, m_posSavedDocPosition, RTFProps_ParaProps::m_pszFieldFont, RTFProps_ParaProps::m_pszListDecimal, RTFProps_ParaProps::m_pszListDelim, RTFProps_ParaProps::m_pszStyle, RTFProps_ParaProps::m_rawID, RTFProps_ParaProps::m_rawParentID, RTFStateStore::m_revAttr, RTFProps_ParaProps::m_spaceAfter, RTFProps_ParaProps::m_spaceBefore, RTFProps_ParaProps::m_startValue, RTFProps_ParaProps::m_styleNumber, m_styleTable, RTFProps_ParaProps::m_tabLeader, m_TableControl, RTFProps_ParaProps::m_tableLevel, RTFProps_ParaProps::m_tabStops, RTFProps_ParaProps::m_tabTypes, mapID(), mapParentID(), markPasteBlock(), OpenTable(), RTFProps_ParaProps::pjCentre, RTFProps_ParaProps::pjFull, RTFProps_ParaProps::pjLeft, RTFProps_ParaProps::pjRight, PT_LEVEL_ATTRIBUTE_NAME, PT_LISTID_ATTRIBUTE_NAME, PT_PARENTID_ATTRIBUTE_NAME, PT_PROPS_ATTRIBUTE_NAME, PT_STYLE_ATTRIBUTE_NAME, PTC_SetFmt, PTO_Field, PTX_Block, UT_UTF8String::size(), std_size_string(), PD_Document::StopList(), UT_ASSERT_HARMLESS, UT_ASSERT_NOT_REACHED, UT_BIDI_RTL, UT_convertInchesToDimensionString(), UT_convertToDimensionlessString(), UT_convertToInches(), UT_DEBUGMSG, UT_formatDimensionedValue(), UT_std_string_sprintf(), UT_UTF8String::utf8_str(), UT_Stack::viewTop(), and xxx_UT_DEBUGMSG.
Referenced by ApplyCharacterAttributes(), FlushStoredChars(), and HandleParKeyword().
bool IE_Imp_RTF::ApplySectionAttributes | ( | ) | [private] |
References PD_Document::appendStrux(), bUseInsertNotAppend(), PD_Document::changeStruxFmt(), gchar, XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), XAP_App::getLastFocussedFrame(), insertStrux(), FV_View::isInDocSection(), RTFProps_SectionProps::m_bColumnLine, RTFProps_SectionProps::m_bottomMargTwips, RTFProps_SectionProps::m_breakType, RTFProps_SectionProps::m_colSpaceTwips, m_currentFtrEvenID, m_currentFtrFirstID, m_currentFtrID, m_currentFtrLastID, m_currentHdrEvenID, m_currentHdrFirstID, m_currentHdrID, m_currentHdrLastID, m_currentRTFState, RTFProps_SectionProps::m_dir, m_dposPaste, RTFProps_SectionProps::m_footerYTwips, RTFProps_SectionProps::m_gutterTwips, RTFProps_SectionProps::m_headerYTwips, RTFProps_SectionProps::m_leftMargTwips, RTFProps_SectionProps::m_numCols, m_posSavedDocPosition, RTFStateStore::m_revAttr, RTFProps_SectionProps::m_rightMargTwips, RTFStateStore::m_sectionProps, RTFProps_SectionProps::m_topMargTwips, markPasteBlock(), PTC_SetFmt, PTX_Block, PTX_Section, RTFProps_SectionProps::sbkColumn, RTFProps_SectionProps::sbkEven, RTFProps_SectionProps::sbkNone, RTFProps_SectionProps::sbkOdd, RTFProps_SectionProps::sbkPage, UT_UTF8String::size(), UT_ASSERT_HARMLESS, UT_BIDI_RTL, UT_BIDI_UNSET, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, UT_std_string_sprintf(), UT_UTF8String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by FlushStoredChars(), HandleBookmark(), and HandleParKeyword().
bool IE_Imp_RTF::buildAllProps | ( | std::string & | s, | |
const std::unique_ptr< RTFProps_ParaProps > & | pParas, | |||
const std::unique_ptr< RTFProps_CharProps > & | pChars, | |||
const std::unique_ptr< RTFProps_bParaProps > & | pbParas, | |||
const std::unique_ptr< RTFProps_bCharProps > & | pbChars | |||
) | [private] |
This method builds the property list from Paragraph and character classes pParas and pChars
References DIM_IN, FL_TAB_BAR, FL_TAB_CENTER, FL_TAB_DECIMAL, FL_TAB_LEFT, FL_TAB_RIGHT, GetNthTableBgColour(), GetNthTableColour(), GetNthTableFont(), RTFFontTableItem::m_pFontName, RTFProps_ParaProps::pjCentre, RTFProps_ParaProps::pjFull, RTFProps_ParaProps::pjLeft, RTFProps_ParaProps::pjRight, std_size_string(), UT_ASSERT_HARMLESS, UT_ASSERT_NOT_REACHED, UT_convertInchesToDimensionString(), UT_convertToDimensionlessString(), UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and UT_std_string_sprintf().
Referenced by HandleStyleDefinition().
bool IE_Imp_RTF::buildCharacterProps | ( | std::string & | propBuffer | ) | [private] |
References GetNthTableBgColour(), GetNthTableColour(), GetNthTableFont(), RTFProps_CharProps::m_bgcolourNumber, RTFProps_CharProps::m_bold, RTFProps_CharProps::m_botline, RTFStateStore::m_charProps, RTFProps_CharProps::m_colourNumber, m_currentRTFState, RTFProps_CharProps::m_dirOverride, RTFProps_CharProps::m_fontNumber, RTFProps_CharProps::m_fontSize, RTFProps_CharProps::m_hasBgColour, RTFProps_CharProps::m_hasColour, RTFProps_CharProps::m_Hidden, RTFProps_CharProps::m_italic, RTFProps_CharProps::m_listTag, RTFProps_CharProps::m_overline, RTFFontTableItem::m_pFontName, RTFProps_CharProps::m_strikeout, RTFProps_CharProps::m_subscript, RTFProps_CharProps::m_superscript, RTFProps_CharProps::m_szLang, RTFProps_CharProps::m_topline, RTFProps_CharProps::m_underline, std_size_string(), UT_BIDI_LTR, UT_BIDI_RTL, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by _appendField(), _appendSpan(), _insertSpan(), ApplyCharacterAttributes(), ApplyParagraphAttributes(), and HandleParKeyword().
bool IE_Imp_RTF::bUseInsertNotAppend | ( | void | ) |
Returns true if we're pasting text rather than parsing a file
References m_parsingHdrFtr, and m_pImportFile.
Referenced by _appendField(), _parseFldinstBlock(), addFrame(), ApplyCharacterAttributes(), ApplyParagraphAttributes(), ApplySectionAttributes(), CloseTable(), EndAnnotation(), FlushCellProps(), FlushStoredChars(), FlushTableProps(), HandleAbiEmbed(), HandleAbiMathml(), HandleAnnotation(), HandleBookmark(), HandleCell(), HandleCellX(), HandleField(), HandleNote(), HandleRDFAnchor(), HandleRow(), HandleShape(), HandleStarKeyword(), InsertImage(), mapID(), mapParentID(), markPasteBlock(), OpenTable(), StartAnnotation(), TranslateKeywordID(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
void IE_Imp_RTF::clearImageName | ( | void | ) | [inline] |
void IE_Imp_RTF::closePastedTableIfNeeded | ( | void | ) |
Close off pasted Tables
References PD_Document::changeStruxFmt(), UT_Stack::getDepth(), IE_Imp::getDoc(), PD_Document::getEndTableStruxFromTableSDH(), PD_Document::getNextStruxOfType(), PD_Document::getPropertyFromSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), insertStrux(), UT_UniqueId::List, ABI_Paste_Table::m_bHasPastedBlockStrux, ABI_Paste_Table::m_bHasPastedCellStrux, ABI_Paste_Table::m_bHasPastedTableStrux, ABI_Paste_Table::m_bPasteAfterRow, m_dposPaste, ABI_Paste_Table::m_iCurRightCell, ABI_Paste_Table::m_iCurTopCell, ABI_Paste_Table::m_iNumRows, m_pasteTableStack, PD_MAX_REVISION, UT_Stack::pop(), PTC_AddFmt, PTX_Block, PTX_EndCell, PTX_EndTable, PTX_SectionCell, PTX_SectionTable, UT_ASSERT, UT_DEBUGMSG, UT_std_string_setProperty(), and UT_std_string_sprintf().
Referenced by ~IE_Imp_RTF(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
void IE_Imp_RTF::CloseTable | ( | bool | bForce = false |
) |
Closes the current table. Does all the book keeping of inserting endstruxs and deleting used ones.
References PD_Document::appendStrux(), bUseInsertNotAppend(), ie_imp_table_control::CloseTable(), PD_Document::deleteStruxNoUpdate(), IE_Imp::getDoc(), getTable(), PD_Document::insertStruxNoUpdateBefore(), m_bEndTableOpen, m_lastCellSDH, m_TableControl, PTX_Block, PTX_EndTable, and UT_DEBUGMSG.
Referenced by ApplyParagraphAttributes(), HandleCell(), TranslateKeywordID(), ~IE_Imp_RTF(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool IE_Imp_RTF::CreateDataItemfromStream | ( | void | ) |
References PD_Document::createDataItem(), PD_Document::getDataItemDataByName(), IE_Imp::getDoc(), hexVal(), ReadCharFromFile(), SkipBackChar(), and UT_UTF8String::utf8_str().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::digVal | ( | char | ch, | |
int & | value, | |||
int | base | |||
) | [static, private] |
Referenced by hexVal().
void IE_Imp_RTF::EndAnnotation | ( | ) | [private] |
References PD_Document::appendObject(), bUseInsertNotAppend(), FlushStoredChars(), IE_Imp::getDoc(), PD_Document::insertObject(), ABI_RTF_Annotation::m_Annpos, m_dposPaste, ABI_RTF_Annotation::m_iAnnNumber, m_pAnnotation, m_posSavedDocPosition, PTO_Annotation, UT_ASSERT, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and UT_std_string_sprintf().
Referenced by FlushStoredChars().
void IE_Imp_RTF::FlushCellProps | ( | void | ) |
References ie_imp_cell::addPropString(), bUseInsertNotAppend(), getCell(), RTFProps_CellProps::m_bBotBorder, RTFProps_CellProps::m_bHorizontalMerged, RTFProps_CellProps::m_bHorizontalMergedFirst, RTFProps_CellProps::m_bLeftBorder, RTFProps_CellProps::m_bRightBorder, RTFProps_CellProps::m_bTopBorder, RTFProps_CellProps::m_bVerticalMerged, RTFProps_CellProps::m_bVerticalMergedFirst, RTFStateStore::m_cellProps, m_currentRTFState, RTFProps_CellProps::m_sCellProps, ie_imp_cell::setFirstHorizontalMerge(), ie_imp_cell::setFirstVerticalMerge(), ie_imp_cell::setMergeAbove(), ie_imp_cell::setMergeLeft(), UT_DEBUGMSG, and UT_std_string_setProperty().
Referenced by HandleCellX(), and OpenTable().
bool IE_Imp_RTF::FlushStoredChars | ( | bool | forceInsertPara = false |
) |
References PD_Document::appendFmtMark(), PD_Document::appendStrux(), ApplyCharacterAttributes(), ApplyParagraphAttributes(), ApplySectionAttributes(), bUseInsertNotAppend(), DELETEP, EndAnnotation(), UT_Stack::getDepth(), IE_Imp::getDoc(), UT_GrowBuf::getLength(), getTable(), PD_Document::insertStrux(), insertStrux(), PD_Document::insertStruxBeforeFrag(), isPastedTableOpen(), m_bCellBlank, m_bContentFlushed, m_bEndTableOpen, m_bInAnnotation, m_bInFootnote, m_bMovedPos, m_bNoteIsFNote, m_bSectionHasPara, m_dPosBeforeFootnote, m_dposPaste, m_gbBlock, m_iDepthAtFootnote, ABI_RTF_Annotation::m_iRTFLevel, m_newParaFlagged, m_newSectionFlagged, m_pAnnotation, m_pDelayedFrag, m_posSavedDocPosition, m_stateStack, PTX_Block, PTX_EndAnnotation, PTX_EndEndnote, PTX_EndFootnote, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _appendField(), _parseFldinstBlock(), _parseText(), addFrame(), EndAnnotation(), HandleAbiEmbed(), HandleAbiMathml(), HandleAbiTable(), HandleAnnotation(), HandleBoolCharacterProp(), HandleCell(), HandleField(), HandleFloatCharacterProp(), HandleNote(), HandleRevisedText(), HandleU32CharacterProp(), LoadPictData(), OpenTable(), pasteFromBuffer(), PopRTFState(), ResetCellAttributes(), ResetParagraphAttributes(), ResetSectionAttributes(), ResetTableAttributes(), StartAnnotation(), StartNewPara(), and StartNewSection().
void IE_Imp_RTF::FlushTableProps | ( | void | ) |
UT_sint32 IE_Imp_RTF::get_vecWord97ListsCount | ( | void | ) | const [inline] |
Referenced by RTF_msword97_listOverride::setList().
RTF_msword97_list* IE_Imp_RTF::get_vecWord97NthList | ( | UT_sint32 | i | ) | const [inline] |
Referenced by RTF_msword97_listOverride::setList().
_rtfAbiListTable* IE_Imp_RTF::getAbiList | ( | UT_uint32 | i | ) | const [inline, private] |
Referenced by HandleAbiLists(), mapID(), and mapParentID().
ie_imp_cell * IE_Imp_RTF::getCell | ( | void | ) |
References ie_imp_table::getCurCell(), getTable(), and UT_return_val_if_fail.
Referenced by FlushCellProps(), HandleCell(), HandleCellX(), and OpenTable().
char * IE_Imp_RTF::getCharsInsideBrace | ( | void | ) | [private] |
This is a general purpose parameter reader. It returns the value of a keyword surrounded by a brace. For a construct of the form... { fred} ^ Current read point. It will return fred and swallow the closing brace. For a construct of the form { fred;} ^ Current read point. It will return fred and swallow the closing brace and semicolon. For a construct of the form { { fred;} { fred2} { { fred}}} ^ Current read point. It will return { fred;} { fred2} { { fred}} and swallow the closing brace. returns NULL on error.
References MAX_KEYWORD_LEN, ReadCharFromFile(), and SkipBackChar().
Referenced by HandleListLevel(), and HandleTableList().
References m_colourTable.
Referenced by ApplyParagraphAttributes(), buildAllProps(), and buildCharacterProps().
References m_colourTable.
Referenced by ApplyParagraphAttributes(), buildAllProps(), buildCharacterProps(), and TranslateKeywordID().
RTFFontTableItem * IE_Imp_RTF::GetNthTableFont | ( | UT_sint32 | fontNum | ) | [private] |
References m_fontTable.
Referenced by ApplyParagraphAttributes(), buildAllProps(), buildCharacterProps(), ParseCharParaProps(), and setEncoding().
UT_sint32 IE_Imp_RTF::getPasteDepth | ( | void | ) |
References UT_Stack::getDepth(), and m_pasteTableStack.
Referenced by IE_Imp_ShpGroupParser::IE_Imp_ShpGroupParser(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
ie_imp_table * IE_Imp_RTF::getTable | ( | void | ) |
References ie_imp_table_control::getTable(), and m_TableControl.
Referenced by ApplyParagraphAttributes(), CloseTable(), FlushStoredChars(), FlushTableProps(), getCell(), HandleCell(), HandleCellX(), HandleRow(), OpenTable(), TranslateKeywordID(), ~IE_Imp_RTF(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool IE_Imp_RTF::HandleAbiCell | ( | void | ) |
References insertStrux(), ABI_Paste_Table::m_bHasPastedBlockStrux, ABI_Paste_Table::m_bHasPastedCellStrux, ABI_Paste_Table::m_bPasteAfterRow, m_bSectionHasPara, m_dposPaste, ABI_Paste_Table::m_iCurRightCell, ABI_Paste_Table::m_iCurTopCell, ABI_Paste_Table::m_iMaxRightCell, ABI_Paste_Table::m_iNumRows, ABI_Paste_Table::m_iPrevPasteTop, ABI_Paste_Table::m_iRowNumberAtPaste, m_newParaFlagged, m_pasteTableStack, PopRTFState(), PTX_SectionCell, ReadCharFromFile(), UT_DEBUGMSG, UT_std_string_getPropVal(), UT_std_string_setProperty(), UT_std_string_sprintf(), and UT_Stack::viewTop().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiEmbed | ( | void | ) |
References PD_Document::appendObject(), PD_Document::appendStrux(), bUseInsertNotAppend(), FlushStoredChars(), XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), XAP_App::getLastFocussedFrame(), PD_Document::insertObject(), PD_Document::insertObjectBeforeFrag(), PD_Document::insertStruxBeforeFrag(), m_bAppendAnyway, m_bCellBlank, m_bEndTableOpen, m_currentRTFState, RTFStateStore::m_destinationState, m_dposPaste, m_pDelayedFrag, m_posSavedDocPosition, PopRTFState(), PTO_Embed, PTX_Block, ReadCharFromFile(), UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_getPropVal(), and UT_std_string_removeProperty().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiEndCell | ( | void | ) |
References insertStrux(), ABI_Paste_Table::m_bHasPastedBlockStrux, ABI_Paste_Table::m_bHasPastedCellStrux, m_pasteTableStack, PTX_Block, PTX_EndCell, UT_DEBUGMSG, and UT_Stack::viewTop().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiEndTable | ( | void | ) |
References PD_Document::changeStruxFmt(), IE_Imp::getDoc(), PD_Document::getEndTableStruxFromTableSDH(), PD_Document::getNextStruxOfType(), PD_Document::getPropertyFromSDH(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), insertStrux(), ABI_Paste_Table::m_bPasteAfterRow, m_dposPaste, ABI_Paste_Table::m_iCurTopCell, ABI_Paste_Table::m_iRowNumberAtPaste, m_pasteTableStack, PD_MAX_REVISION, UT_Stack::pop(), PTC_AddFmt, PTX_EndTable, PTX_SectionCell, PTX_SectionTable, UT_ASSERT_HARMLESS, UT_return_val_if_fail, UT_SHOULD_NOT_HAPPEN, UT_std_string_sprintf(), and UT_Stack::viewTop().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiLists | ( | void | ) |
References getAbiList(), IE_Imp_RTF::_rtfAbiListTable::hasBeenMapped, IE_Imp_RTF::_rtfAbiListTable::level, m_currentRTFState, RTFProps_ParaProps::m_isList, RTFProps_ParaProps::m_level, m_numLists, RTFStateStore::m_paraProps, RTFProps_ParaProps::m_pszFieldFont, RTFProps_ParaProps::m_pszListDecimal, RTFProps_ParaProps::m_pszListDelim, RTFProps_ParaProps::m_pszStyle, RTFProps_ParaProps::m_rawID, RTFProps_ParaProps::m_rawParentID, RTFProps_ParaProps::m_startValue, m_vecAbiListTable, IE_Imp_RTF::_rtfAbiListTable::mapped_id, IE_Imp_RTF::_rtfAbiListTable::mapped_parentid, MAX_KEYWORD_LEN, IE_Imp_RTF::_rtfAbiListTable::orig_id, IE_Imp_RTF::_rtfAbiListTable::orig_parentid, PopRTFState(), ReadCharFromFile(), ReadKeyword(), IE_Imp_RTF::_rtfAbiListTable::start_value, and UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiMathml | ( | void | ) |
References PD_Document::appendObject(), PD_Document::appendStrux(), bUseInsertNotAppend(), FlushStoredChars(), XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), XAP_App::getLastFocussedFrame(), PD_Document::getUID(), UT_UniqueId::Image, PD_Document::insertObject(), PD_Document::insertObjectBeforeFrag(), PD_Document::insertStruxBeforeFrag(), m_bAppendAnyway, m_bCellBlank, m_bEndTableOpen, m_currentRTFState, RTFStateStore::m_destinationState, m_dposPaste, m_pDelayedFrag, m_posSavedDocPosition, PopRTFState(), PTO_Math, PTX_Block, ReadCharFromFile(), UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_getPropVal(), and UT_std_string_removeProperty().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleAbiTable | ( | void | ) |
References PD_Document::changeStruxFmt(), FlushStoredChars(), XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), PD_Document::getEndTableStruxFromTableSDH(), XAP_App::getLastFocussedFrame(), PD_Document::getNextStruxOfType(), FV_View::getPrevSelectionMode(), PD_Document::getPropertyFromSDH(), FV_View::getSelectionMode(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getStruxPosition(), insertStrux(), UT_UniqueId::List, ABI_Paste_Table::m_bHasPastedTableStrux, ABI_Paste_Table::m_bPasteAfterRow, m_dposPaste, ABI_Paste_Table::m_iRowNumberAtPaste, m_newParaFlagged, m_pasteTableStack, m_posSavedDocPosition, PD_MAX_REVISION, PopRTFState(), PTC_AddFmt, PTX_SectionCell, PTX_SectionTable, UT_Stack::push(), ReadCharFromFile(), UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_getPropVal(), UT_std_string_removeProperty(), and UT_std_string_sprintf().
Referenced by HandleStarKeyword().
void IE_Imp_RTF::HandleAnnotation | ( | void | ) | [private] |
References bUseInsertNotAppend(), FlushStoredChars(), IE_Imp::getDoc(), PD_Document::getLastFrag(), pf_Frag::getNext(), insertStrux(), PD_Document::insertStruxBeforeFrag(), ABI_RTF_Annotation::m_Annpos, m_bInAnnotation, m_dposPaste, ABI_RTF_Annotation::m_iAnnNumber, m_pAnnotation, m_pDelayedFrag, ABI_RTF_Annotation::m_pInsertFrag, m_posSavedDocPosition, ABI_RTF_Annotation::m_sAuthor, ABI_RTF_Annotation::m_sDate, ABI_RTF_Annotation::m_sTitle, markPasteBlock(), PP_std_copyProps(), PTX_Block, PTX_SectionAnnotation, UT_UTF8String::size(), UT_DEBUGMSG, UT_return_if_fail, UT_std_string_sprintf(), UT_UTF8String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by _parseText().
bool IE_Imp_RTF::HandleBackgroundColour | ( | UT_uint32 | colourNumber | ) | [private] |
bool IE_Imp_RTF::HandleBold | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFProps_CharProps::m_bold, RTFStateStore::m_charProps, and m_currentRTFState.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleBookmark | ( | RTFBookmarkType | type | ) | [private] |
Handle a bookmark keyword
References PD_Document::appendObject(), PD_Document::appendStrux(), ApplySectionAttributes(), bUseInsertNotAppend(), IE_Imp::getDoc(), HandlePCData(), PD_Document::insertObject(), PD_Document::insertObjectBeforeFrag(), insertStrux(), PD_Document::insertStruxBeforeFrag(), isBlockNeededForPasteTable(), m_bCellBlank, m_bEndTableOpen, m_bSectionHasPara, m_dposPaste, m_newParaFlagged, m_newSectionFlagged, m_pDelayedFrag, m_posSavedDocPosition, markPasteBlock(), PTO_Bookmark, PTX_Block, RBT_END, RBT_START, UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_UTF8String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleBoolCharacterProp | ( | bool | state, | |
bool * | pProp | |||
) | [private] |
References FlushStoredChars().
Referenced by HandleBackgroundColour(), HandleBold(), HandleBotline(), HandleColour(), HandleDeleted(), HandleHidden(), HandleItalic(), HandleOverline(), HandleStrikeout(), HandleSubscript(), HandleSubscriptPosition(), HandleSuperscript(), HandleSuperscriptPosition(), HandleTopline(), HandleUnderline(), and ParseCharParaProps().
bool IE_Imp_RTF::HandleBotline | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFProps_CharProps::m_botline, RTFStateStore::m_charProps, and m_currentRTFState.
Referenced by HandleStarKeyword(), and TranslateKeywordID().
void IE_Imp_RTF::HandleCell | ( | void | ) |
References UT_GenericVector< T >::addItem(), PD_Document::appendStrux(), bUseInsertNotAppend(), ie_imp_table::CloseCell(), CloseTable(), ie_imp_cell::copyCell(), FlushStoredChars(), getCell(), ie_imp_cell::getCellX(), IE_Imp::getDoc(), UT_GenericVector< T >::getItemCount(), PD_Document::getLastStruxOfType(), UT_GrowBuf::getLength(), ie_imp_table::getNthCellOnRow(), UT_GenericVector< T >::getNthItem(), ie_imp_table::getRow(), getTable(), ie_imp_table::getVecOfCellsOnRow(), ie_imp_table::incPosOnRow(), PD_Document::insertFmtMarkBeforeFrag(), PD_Document::insertStruxNoUpdateBefore(), m_bCellBlank, m_bCellHandled, m_bDoCloseTable, m_bRowJustPassed, m_gbBlock, m_iNoCellsSinceLastRow, m_lastCellSDH, ie_imp_table::OpenCell(), OpenTable(), PTX_Block, PTX_EndCell, PTX_SectionCell, ie_imp_cell::setCellSDH(), ie_imp_table::setNthCellOnThisRow(), ie_imp_table::setPosOnRow(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_if_fail, UT_VECTOR_PURGEALL, and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
void IE_Imp_RTF::HandleCellX | ( | UT_sint32 | cellx | ) |
References bUseInsertNotAppend(), FlushCellProps(), getCell(), ie_imp_table::getCellAtRowColX(), ie_imp_cell::getCellX(), ie_imp_table::getNthCellOnRow(), ie_imp_table::getRow(), getTable(), ie_imp_table::incCellXOnRow(), RTFProps_CellProps::m_bHorizontalMerged, RTFProps_CellProps::m_bHorizontalMergedFirst, RTFStateStore::m_cellProps, m_currentRTFState, ie_imp_table::OpenCell(), OpenTable(), ResetCellAttributes(), ie_imp_table::setCell(), ie_imp_table::setCellX(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleColour | ( | UT_uint32 | colourNumber | ) | [private] |
bool IE_Imp_RTF::HandleDeleted | ( | bool | state | ) | [private] |
bool IE_Imp_RTF::HandleDeltaMoveID | ( | ) | [private] |
References PD_Document::changeStruxAttsNoUpdate(), IE_Imp::getDoc(), PD_Document::getStruxOfTypeFromPosition(), HandlePCData(), m_dposPaste, PTX_Block, and UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleFace | ( | UT_uint32 | fontNumber | ) | [private] |
References HandleU32CharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_fontNumber, and setEncoding().
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleField | ( | ) | [private] |
Handle a RTF field
References _appendField(), _parseFldinstBlock(), _parseText(), UT_ByteBuf::append(), PD_Document::appendObject(), PD_Document::appendStrux(), bUseInsertNotAppend(), FlushStoredChars(), FREEP, gchar, IE_Imp::getDoc(), PD_Document::insertObject(), PD_Document::insertStruxBeforeFrag(), m_bCellBlank, m_bEndTableOpen, m_bFieldRecognized, m_dposPaste, m_iHyperlinkOpen, m_pDelayedFrag, MAX_KEYWORD_LEN, NextToken(), PopRTFState(), PTO_Hyperlink, PTX_Block, PushRTFState(), RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, SkipCurrentGroup(), UT_ASSERT_HARMLESS, UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, UT_OK, UT_SHOULD_NOT_HAPPEN, and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleFloatCharacterProp | ( | double | val, | |
double * | pProp | |||
) | [private] |
References FlushStoredChars().
Referenced by HandleFontSize(), HandleSubscriptPosition(), HandleSuperscriptPosition(), and ParseCharParaProps().
bool IE_Imp_RTF::HandleFontSize | ( | long | sizeInHalfPoints | ) | [private] |
References HandleFloatCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_fontSize.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleHeaderFooter | ( | RTFHdrFtr::HdrFtrType | hftype, | |
UT_uint32 & | headerID | |||
) | [private] |
Handle a header header return the created header, for information purpose since it belongs to the header/footer table
References IE_Imp::getDoc(), PD_Document::getUID(), UT_UniqueId::HeaderFtr, RTFHdrFtr::hftFooter, RTFHdrFtr::hftFooterEven, RTFHdrFtr::hftFooterFirst, RTFHdrFtr::hftFooterLast, RTFHdrFtr::hftHeader, RTFHdrFtr::hftHeaderEven, RTFHdrFtr::hftHeaderFirst, RTFHdrFtr::hftHeaderLast, RTFHdrFtr::m_buf, m_currentFtrEvenID, m_currentFtrFirstID, m_currentFtrID, m_currentFtrLastID, m_currentHdrEvenID, m_currentHdrFirstID, m_currentHdrID, m_currentHdrLastID, m_hdrFtrTable, RTFHdrFtr::m_id, RTFHdrFtr::m_type, StuffCurrentGroup(), UT_ASSERT_NOT_REACHED, UT_DEBUGMSG, and UT_rand().
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleHidden | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_Hidden.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleInfoMetaData | ( | void | ) | [private] |
Handle document meta data
References IE_Imp::getDoc(), HandlePCData(), KeywordToID(), MAX_KEYWORD_LEN, NextToken(), PopRTFState(), RTF_KW_author, RTF_KW_buptim, RTF_KW_comment, RTF_KW_company, RTF_KW_creatim, RTF_KW_doccomm, RTF_KW_hlinkbase, RTF_KW_keywords, RTF_KW_manager, RTF_KW_operator, RTF_KW_printim, RTF_KW_revtim, RTF_KW_subject, RTF_KW_title, RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, PD_Document::setMetaDataProp(), SkipCurrentGroup(), and UT_ASSERT_NOT_REACHED.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleItalic | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_italic.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleListLevel | ( | RTF_msword97_list * | pList, | |
UT_uint32 | levelCount | |||
) | [private] |
This method parses out the list table definition of listlevel's
References getCharsInsideBrace(), IE_Imp::getDoc(), PD_Document::getUID(), UT_UniqueId::List, RTF_msword97_level::m_AbiLevelID, RTF_msword97_level::m_bRestart, RTF_msword97_level::m_cLevelFollow, RTF_msword97_level::m_levelStartAt, RTF_msword97_level::m_listDelim, RTF_msword97_level::m_pbCharProps, RTF_msword97_level::m_pbParaProps, RTF_msword97_level::m_pCharProps, RTF_msword97_level::m_pParaProps, RTF_msword97_list::m_RTF_level, RTF_msword97_level::m_RTFListType, MAX_KEYWORD_LEN, ParseCharParaProps(), RTF_msword97_level::ParseLevelText(), ReadCharFromFile(), ReadKeyword(), UT_ASSERT_NOT_REACHED, and UT_rand().
Referenced by HandleTableList().
bool IE_Imp_RTF::HandleLists | ( | _rtfListTable & | rtfListTable | ) |
References _sanitizeListLevel(), _rtfListTable::bold, _rtfListTable::bullet, _rtfListTable::caps, _rtfListTable::continueList, _rtfListTable::font, _rtfListTable::fontsize, _rtfListTable::forecolor, _rtfListTable::hangingIndent, _rtfListTable::indent, _rtfListTable::italic, _rtfListTable::iWord97Level, _rtfListTable::iWord97Override, _rtfListTable::level, MAX_KEYWORD_LEN, _rtfListTable::nounderline, _rtfListTable::prevlist, ReadCharFromFile(), ReadKeyword(), _rtfListTable::scaps, _rtfListTable::simple, SkipBackChar(), _rtfListTable::start_value, _rtfListTable::strike, _rtfListTable::textafter, _rtfListTable::textbefore, _rtfListTable::type, _rtfListTable::underline, UT_ASSERT_HARMLESS, UT_ASSERT_NOT_REACHED, and UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleListTag | ( | long | id | ) | [private] |
References HandleU32CharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_listTag.
Referenced by HandleStarKeyword().
void IE_Imp_RTF::HandleNote | ( | void | ) | [private] |
References PD_Document::appendStrux(), bUseInsertNotAppend(), FlushStoredChars(), UT_Stack::getDepth(), IE_Imp::getDoc(), HandleNoteReference(), insertStrux(), m_bFtnReferencePending, m_bInFootnote, m_bNoteIsFNote, m_iDepthAtFootnote, m_iLastEndnoteId, m_iLastFootnoteId, m_stateStack, markPasteBlock(), PTX_Block, PTX_SectionEndnote, PTX_SectionFootnote, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by _parseText().
void IE_Imp_RTF::HandleNoteReference | ( | void | ) | [private] |
References _appendField(), RTFStateStore::clone(), DELETEP, UT_UniqueId::Endnote, UT_UniqueId::Footnote, gchar, IE_Imp::getDoc(), PD_Document::getUID(), m_bFtnReferencePending, m_bInFootnote, m_bNoteIsFNote, m_currentRTFState, m_FootnoteRefState, m_iLastEndnoteId, m_iLastFootnoteId, m_stateStack, UT_Stack::pop(), UT_Stack::push(), UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by HandleNote(), and TranslateKeywordID().
bool IE_Imp_RTF::HandleObject | ( | ) | [private] |
Handle a object in the current group
References HandlePicture(), HandleShapePict(), KeywordToID(), MAX_KEYWORD_LEN, NextToken(), PopRTFState(), PushRTFState(), RTF_KW_cell, RTF_KW_nonshppict, RTF_KW_pict, RTF_KW_result, RTF_KW_rsltbmp, RTF_KW_rslthtml, RTF_KW_rsltpict, RTF_KW_rsltrtf, RTF_KW_rslttxt, RTF_KW_shppict, RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, SkipCurrentGroup(), UT_ASSERT, UT_ASSERT_NOT_REACHED, and UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleOverline | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_overline.
Referenced by HandleStarKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::HandleParKeyword | ( | ) | [private] |
References _formRevisionAttr(), ApplyParagraphAttributes(), ApplySectionAttributes(), buildCharacterProps(), IE_Imp::getDoc(), m_bSectionHasPara, RTFStateStore::m_charProps, m_currentRTFState, m_dposPaste, RTFProps_CharProps::m_eRevision, m_newParaFlagged, m_newSectionFlagged, m_pImportFile, RTFProps_CharProps::m_styleNumber, m_styleTable, PP_REVISION_NONE, PTX_Block, StartNewPara(), and UT_return_val_if_fail.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandlePCData | ( | UT_UTF8String & | str | ) | [private] |
References UT_UTF8String::appendBuf(), UT_UTF8String::appendUCS2(), UT_UTF8String::clear(), KeywordToID(), m_currentRTFState, m_mbtowc, RTFStateStore::m_unicodeAlternateSkipCount, MAX_KEYWORD_LEN, NextToken(), ParseChar(), ReadHexChar(), RTF_KW_QUOTE, RTF_KW_u, RTF_KW_uc, RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, SkipBackChar(), TranslateKeywordID(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_SHOULD_NOT_HAPPEN, and UT_UTF8String::utf8_str().
Referenced by HandleBookmark(), HandleDeltaMoveID(), HandleInfoMetaData(), HandlePCData(), HandleRDFAnchor(), and StandardKeywordParser().
bool IE_Imp_RTF::HandlePCData | ( | std::string & | str | ) | [private] |
References HandlePCData(), and UT_UTF8String::utf8_str().
bool IE_Imp_RTF::HandlePicture | ( | ) |
Handle a picture in the current group
References RTFProps_ImageProps::bCrop, RTFProps_ImageProps::cropb, RTFProps_ImageProps::cropl, RTFProps_ImageProps::cropr, RTFProps_ImageProps::cropt, IE_Imp::getDoc(), RTFProps_ImageProps::hGoal, UT_UniqueId::Image, RTFProps_ImageProps::ipstNone, KeywordToID(), LoadPictData(), MAX_KEYWORD_LEN, ReadCharFromFile(), ReadCharFromFileWithCRLF(), ReadKeyword(), RTF_KW_bin, RTF_KW_cell, RTF_KW_jpegblip, RTF_KW_piccropb, RTF_KW_piccropl, RTF_KW_piccropr, RTF_KW_piccropt, RTF_KW_pichgoal, RTF_KW_picscalex, RTF_KW_picscaley, RTF_KW_picwgoal, RTF_KW_pngblip, RTF_KW_svgblip, RTF_KW_wmetafile, RTFProps_ImageProps::scaleX, RTFProps_ImageProps::scaleY, RTFProps_ImageProps::sizeType, SkipBackChar(), SkipCurrentGroup(), UT_ASSERT, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, UT_UTF8String_sprintf(), UT_UTF8String::utf8_str(), and RTFProps_ImageProps::wGoal.
Referenced by HandleObject(), HandleShapePict(), IE_Imp_ShpPropParser::tokenKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::HandleRDFAnchor | ( | RTFBookmarkType | type | ) | [private] |
References PD_Document::appendObject(), bUseInsertNotAppend(), IE_Imp::getDoc(), HandlePCData(), PD_Document::insertObject(), PD_Document::insertObjectBeforeFrag(), insertStrux(), isBlockNeededForPasteTable(), m_dposPaste, m_iRDFAnchorOpen, m_pDelayedFrag, m_posSavedDocPosition, m_rdfAnchorCloseXMLIDs, m_XMLIDCreatorHandle, markPasteBlock(), PT_RDF_END, PTO_RDFAnchor, PTX_Block, RBT_END, RBT_START, and UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::HandleRevisedText | ( | PP_RevisionType | eType, | |
UT_uint32 | iId | |||
) | [private] |
References FlushStoredChars(), RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_eRevision, RTFProps_CharProps::m_iCurrentRevisionId, PP_REVISION_ADDITION, PP_REVISION_ADDITION_AND_FMT, PP_REVISION_DELETION, PP_REVISION_FMT_CHANGE, and UT_return_val_if_fail.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleRevisedTextTimestamp | ( | UT_uint32 | iDttm | ) | [private] |
void IE_Imp_RTF::HandleRow | ( | void | ) |
References bUseInsertNotAppend(), UT_Stack::getDepth(), IE_Imp::getDoc(), getTable(), m_bCellBlank, m_bCellHandled, m_bContentFlushed, m_bDoCloseTable, m_bRowJustPassed, m_iNoCellsSinceLastRow, m_iStackLevelAtRow, m_lastCellSDH, m_stateStack, m_TableControl, PD_Document::miniDump(), ie_imp_table_control::NewRow(), ie_imp_table::removeCurrentRow(), UT_ASSERT_HARMLESS, and UT_DEBUGMSG.
Referenced by TranslateKeywordID().
void IE_Imp_RTF::HandleShape | ( | void | ) | [private] |
Handle the keyword
References PD_Document::appendStrux(), bUseInsertNotAppend(), RTFStateStore::clone(), PD_Document::deleteFragNoUpdate(), IE_Imp::getDoc(), PD_Document::getLastFrag(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), insertStrux(), m_bFrameStruxIn, m_bFrameTextBox, RTFStateStore::m_bInKeywordStar, m_currentRTFState, m_newParaFlagged, m_stateStack, UT_Stack::pop(), PTX_EndFrame, UT_Stack::push(), StandardKeywordParser(), and UT_DEBUGMSG.
Referenced by TranslateKeywordID().
void IE_Imp_RTF::HandleShapePict | ( | void | ) | [private] |
Handle the shppict RTF keyword.
References HandlePicture(), KeywordToID(), MAX_KEYWORD_LEN, NextToken(), PopRTFState(), PushRTFState(), RTF_KW_cell, RTF_KW_pict, RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, UT_ASSERT, and UT_ASSERT_NOT_REACHED.
Referenced by HandleObject(), and HandleStarKeyword().
void IE_Imp_RTF::HandleShapeText | ( | RTFProps_FrameProps & | frame | ) |
Handle the text inside the shape.
References addFrame(), m_bFrameStruxIn, setStruxImage(), and UT_DEBUGMSG.
Referenced by IE_Imp_ShpGroupParser::tokenKeyword().
bool IE_Imp_RTF::HandleStarKeyword | ( | ) | [private] |
References _appendField(), bUseInsertNotAppend(), CreateDataItemfromStream(), FREEP, XAP_App::getApp(), XAP_Frame::getCurrentView(), UT_Stack::getDepth(), XAP_App::getLastFocussedFrame(), HandleAbiCell(), HandleAbiEmbed(), HandleAbiEndCell(), HandleAbiEndTable(), HandleAbiLists(), HandleAbiMathml(), HandleAbiTable(), HandleBookmark(), HandleBotline(), HandleDeltaMoveID(), HandleLists(), HandleListTag(), HandleOverline(), HandleRDFAnchor(), HandleShapePict(), HandleTopline(), FV_View::isHdrFtrEdit(), FV_View::isInEndnote(), FV_View::isInFootnote(), FV_View::isInTable(), KeywordToID(), m_bFootnotePending, RTFStateStore::m_bInKeywordStar, m_bNestTableProps, m_currentRTFState, RTFStateStore::m_destinationState, m_dposPaste, m_hyperlinkBase, m_iIsInHeaderFooter, ABI_RTF_Annotation::m_iRTFLevel, m_pAnnotation, RTFStateStore::m_paraProps, m_pasteTableStack, RTFStateStore::m_revAttr, RTFProps_ParaProps::m_rtfListTable, ABI_RTF_Annotation::m_sAuthor, ABI_RTF_Annotation::m_sAuthorId, ABI_RTF_Annotation::m_sDate, m_stateStack, MAX_KEYWORD_LEN, PopRTFState(), RBT_END, RBT_START, ReadCharFromFile(), ReadContentFromFile(), ReadKeyword(), ReadListOverrideTable(), ReadListTable(), ReadRDFTriples(), ReadRevisionTable(), RTF_KW_abicellprops, RTF_KW_abiembed, RTF_KW_abiembeddata, RTF_KW_abiendcell, RTF_KW_abiendtable, RTF_KW_abifieldD, RTF_KW_abilatexdata, RTF_KW_abilist, RTF_KW_abimathml, RTF_KW_abimathmldata, RTF_KW_abirevision, RTF_KW_abitableprops, RTF_KW_annotation, RTF_KW_atnauthor, RTF_KW_atndate, RTF_KW_atnid, RTF_KW_atnref, RTF_KW_atrfend, RTF_KW_atrfstart, RTF_KW_bkmkend, RTF_KW_bkmkstart, RTF_KW_botline, RTF_KW_cs, RTF_KW_deltamoveid, RTF_KW_footnote, RTF_KW_hlinkbase, RTF_KW_listoverridetable, RTF_KW_listtable, RTF_KW_listtag, RTF_KW_nesttableprops, RTF_KW_ol, RTF_KW_pn, RTF_KW_rdf, RTF_KW_rdfanchorend, RTF_KW_rdfanchorstart, RTF_KW_revtbl, RTF_KW_shpinst, RTF_KW_shppict, RTF_KW_topline, SkipCurrentGroup(), StartAnnotation(), UT_DEBUGMSG, UT_return_val_if_fail, UT_UTF8String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleStrikeout | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_strikeout.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleStyleDefinition | ( | void | ) | [private] |
References PD_Style::addAttributes(), UT_GenericVector< T >::addItem(), PD_Document::appendStyle(), buildAllProps(), gchar, PD_Style::getBasedOn(), IE_Imp::getDoc(), PD_Style::getFollowedBy(), UT_GenericVector< T >::getItemCount(), UT_GenericVector< T >::getNthItem(), UT_UCS4_mbtowc::initialize(), IE_Imp::isPasting(), m_bStyleImportDone, m_mbtowc, m_styleTable, MAX_KEYWORD_LEN, UT_UCS4_mbtowc::mbtowc(), ParseCharParaProps(), PopRTFState(), PT_BASEDON_ATTRIBUTE_NAME, PT_FOLLOWEDBY_ATTRIBUTE_NAME, PT_NAME_ATTRIBUTE_NAME, PT_PROPS_ATTRIBUTE_NAME, PT_TYPE_ATTRIBUTE_NAME, ReadCharFromFile(), ReadHexChar(), ReadKeyword(), RTF_BASEDON_NONE, szName, UT_DEBUGMSG, UT_WARNINGMSG, UT_UCS4String::utf8_str(), and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleSubscript | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_subscript.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleSubscriptPosition | ( | UT_uint32 | pos | ) | [private] |
bool IE_Imp_RTF::HandleSuperscript | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_superscript.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::HandleSuperscriptPosition | ( | UT_uint32 | pos | ) | [private] |
bool IE_Imp_RTF::HandleTableList | ( | void | ) | [private] |
This method parses out the item in a list tabledefinition.
References getCharsInsideBrace(), HandleListLevel(), RTF_msword97_list::m_RTF_listID, RTF_msword97_list::m_RTF_listTemplateID, m_vecWord97Lists, MAX_KEYWORD_LEN, ReadCharFromFile(), ReadKeyword(), and UT_DEBUGMSG.
Referenced by ReadListTable().
bool IE_Imp_RTF::HandleTableListOverride | ( | void | ) | [private] |
References RTF_msword97_listOverride::m_pbCharProps, RTF_msword97_listOverride::m_pbParaProps, RTF_msword97_listOverride::m_pCharProps, RTF_msword97_listOverride::m_pParaProps, RTF_msword97_listOverride::m_RTF_listID, m_vecWord97ListOverride, MAX_KEYWORD_LEN, ParseCharParaProps(), ReadCharFromFile(), ReadKeyword(), RTF_msword97_listOverride::setList(), and xxx_UT_DEBUGMSG.
Referenced by ReadListOverrideTable().
bool IE_Imp_RTF::HandleTopline | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_topline.
Referenced by HandleStarKeyword(), and TranslateKeywordID().
References FlushStoredChars().
Referenced by HandleBackgroundColour(), HandleColour(), HandleFace(), HandleListTag(), and ParseCharParaProps().
bool IE_Imp_RTF::HandleUnderline | ( | bool | state | ) | [private] |
References HandleBoolCharacterProp(), RTFStateStore::m_charProps, m_currentRTFState, and RTFProps_CharProps::m_underline.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::hexVal | ( | char | c, | |
int & | value | |||
) | [static, private] |
References digVal().
Referenced by _parseText(), CreateDataItemfromStream(), LoadPictData(), and ReadHexChar().
bool IE_Imp_RTF::InsertImage | ( | const FG_ConstGraphicPtr & | pFG, | |
const char * | image_name, | |||
const struct RTFProps_ImageProps & | imgProps | |||
) | [private] |
buf | the buffer the image content is in. | |
image_name | the image name inside the XML file or the piecetable. | |
imgProps | the RTF image properties. |
References IE_Imp::appendObject(), PD_Document::appendStrux(), RTFProps_ImageProps::bCrop, bUseInsertNotAppend(), clearImageName(), PD_Document::createDataItem(), RTFProps_ImageProps::cropb, RTFProps_ImageProps::cropl, RTFProps_ImageProps::cropr, RTFProps_ImageProps::cropt, IE_Imp::getDoc(), PD_Document::getUID(), RTFProps_ImageProps::height, RTFProps_ImageProps::hGoal, UT_UniqueId::Image, PD_Document::insertObject(), RTFProps_ImageProps::ipstGoal, RTFProps_ImageProps::ipstScale, isStruxImage(), m_bCellBlank, m_bEndTableOpen, m_dposPaste, m_sImageName, PTO_Image, PTX_Block, RTFProps_ImageProps::scaleX, RTFProps_ImageProps::scaleY, RTFProps_ImageProps::sizeType, szName, UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, UT_std_string_sprintf(), RTFProps_ImageProps::wGoal, RTFProps_ImageProps::width, and xxx_UT_DEBUGMSG.
Referenced by _parseFldinstBlock(), and LoadPictData().
bool IE_Imp_RTF::insertStrux | ( | PTStruxType | pts, | |
const PP_PropertyVector & | attrs = PP_NOPROPS , |
|||
const PP_PropertyVector & | props = PP_NOPROPS | |||
) |
Handle context senstive inserts. Like inserting a table into a block Requires an extra block insert Insert into a hyperlink means the m_dposPate is additionally incremented to handle the extra end hyperlink run.
References XAP_App::getApp(), FV_View::getBlockAtPosition(), fl_ContainerLayout::getContainerType(), XAP_Frame::getCurrentView(), UT_Stack::getDepth(), IE_Imp::getDoc(), FV_View::getEditableBounds(), FV_View::getEmbedDepth(), FV_View::getHyperLinkRun(), fp_HyperlinkRun::getHyperlinkType(), XAP_App::getLastFocussedFrame(), fl_BlockLayout::getLength(), fl_ContainerLayout::getNext(), pf_Frag::getPos(), fl_BlockLayout::getPosition(), fl_ContainerLayout::getPrev(), FV_View::getTableAtPos(), PD_Document::insertStrux(), fl_TableLayout::isEndTableIn(), FV_View::isInFrame(), FV_View::isInHdrFtr(), FV_View::isInTable(), PD_Document::isTOCAtPos(), m_bStruxInserted, m_currentRTFState, RTFStateStore::m_destinationState, m_dposPaste, m_iHyperlinkOpen, m_pasteTableStack, m_posSavedDocPosition, fl_ContainerLayout::myContainingLayout(), PTX_Block, PTX_EndCell, PTX_EndFrame, PTX_EndTable, PTX_Section, PTX_SectionCell, PTX_SectionFrame, and PTX_SectionTable.
Referenced by addFrame(), ApplyParagraphAttributes(), ApplySectionAttributes(), closePastedTableIfNeeded(), FlushStoredChars(), HandleAbiCell(), HandleAbiEndCell(), HandleAbiEndTable(), HandleAbiTable(), HandleAnnotation(), HandleBookmark(), HandleNote(), HandleRDFAnchor(), HandleShape(), OpenTable(), and IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool IE_Imp_RTF::isBlockNeededForPasteTable | ( | void | ) |
References UT_Stack::getDepth(), ABI_Paste_Table::m_bHasPastedBlockStrux, m_pasteTableStack, and UT_Stack::viewTop().
Referenced by ApplyCharacterAttributes(), HandleBookmark(), and HandleRDFAnchor().
bool IE_Imp_RTF::isFrameIn | ( | void | ) | [inline] |
Referenced by IE_Imp_ShpGroupParser::~IE_Imp_ShpGroupParser().
bool IE_Imp_RTF::isPastedTableOpen | ( | void | ) |
returns true if we've pasted a table strux and have not yet pasted a cell or we've pasted an endcell and have not yet pasted a cell
References UT_Stack::getDepth(), ABI_Paste_Table::m_bHasPastedCellStrux, ABI_Paste_Table::m_bHasPastedTableStrux, m_pasteTableStack, and UT_Stack::viewTop().
Referenced by FlushStoredChars().
bool IE_Imp_RTF::isStruxImage | ( | void | ) | const [inline] |
Referenced by addFrame(), and InsertImage().
bool IE_Imp_RTF::isWord97Lists | ( | void | ) | const [inline] |
Referenced by ApplyParagraphAttributes().
RTF_KEYWORD_ID IE_Imp_RTF::KeywordToID | ( | const char * | keyword | ) | [private] |
Return the keyword ID for the given keyword
References _rtf_keyword::id, and rtfKeywords.
Referenced by HandleInfoMetaData(), HandleObject(), HandlePCData(), HandlePicture(), HandleShapePict(), HandleStarKeyword(), ReadFontTable(), StandardKeywordParser(), and TranslateKeyword().
bool IE_Imp_RTF::LoadPictData | ( | PictFormat | format, | |
const char * | image_name, | |||
struct RTFProps_ImageProps & | imgProps, | |||
bool | isBinary = false , |
|||
long | binaryLen = 0 | |||
) | [private] |
Load the picture data
format | the Picture Format. | |
image_name | the name of the image. Must be unique. | |
imgProps | the RTF properties for the image. |
References abicollab::service::error(), FlushStoredChars(), RTFProps_ImageProps::height, hexVal(), iegftForRTF(), InsertImage(), IE_ImpGraphic::loadGraphic(), ReadCharFromFile(), ReadCharFromFileWithCRLF(), SkipBackChar(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_OK, and RTFProps_ImageProps::width.
Referenced by HandlePicture().
OK if we are pasting into the text we have to decide if the list we paste should be a new list or an old list. The user might want to swap paragraphs in a list for example.
Use the following algorithim to decide. If the docpos of the paste is within a list of the same ID as our list or if the docpos is immediately before or after a list of the same ID reuse the ID. Otherwise change it.
Now look to see if the ID has been remapped.
Do the remapping!
Now look to see if the parent ID has been remapped, if so update mapped_parentid
References bUseInsertNotAppend(), getAbiList(), IE_Imp::getDoc(), PD_Document::getListByID(), PD_Document::getListsCount(), PD_Document::getNthList(), PD_Document::getStruxOfTypeFromPosition(), PD_Document::getUID(), fl_AutoLists::getXmlList(), fl_AutoLists::getXmlListsSize(), IE_Imp_RTF::_rtfAbiListTable::hasBeenMapped, IE_Imp_RTF::_rtfAbiListTable::level, UT_UniqueId::List, m_bStruxInserted, m_currentRTFState, m_dposPaste, m_numLists, RTFStateStore::m_paraProps, RTFProps_ParaProps::m_pszStyle, IE_Imp_RTF::_rtfAbiListTable::mapped_id, IE_Imp_RTF::_rtfAbiListTable::mapped_parentid, IE_Imp_RTF::_rtfAbiListTable::orig_parentid, PTX_Block, and UT_ASSERT_NOT_REACHED.
Referenced by ApplyParagraphAttributes().
OK if we are pasting into the text we have to decide if the list we paste should be a new list or an old list. The user might want to swap paragraphs for example.
References bUseInsertNotAppend(), getAbiList(), m_numLists, and IE_Imp_RTF::_rtfAbiListTable::mapped_id.
Referenced by ApplyParagraphAttributes().
bool IE_Imp_RTF::markPasteBlock | ( | void | ) |
If there is an open paste cell mark that the a block has been pasted.
References bUseInsertNotAppend(), ABI_Paste_Table::m_bHasPastedBlockStrux, m_pasteTableStack, and UT_Stack::viewTop().
Referenced by ApplyParagraphAttributes(), ApplySectionAttributes(), HandleAnnotation(), HandleBookmark(), HandleNote(), and HandleRDFAnchor().
IE_Imp_RTF::RTFTokenType IE_Imp_RTF::NextToken | ( | unsigned char * | pKeyword, | |
UT_sint32 * | pParam, | |||
bool * | pParamUsed, | |||
UT_uint32 | len, | |||
bool | bIgnoreWhiteSpace = false | |||
) | [private] |
Get the next token, put it into buf, if there is an error return RTF_TOKEN_ERROR otherwise returns the RTFTokenType If it is RTF_TOKEN_DATA, data is returned byte by byte. RTF_TOKEN_KEYWORD includes control words and control symbols (like hex char). It is up to the caller to distinguish beetween them and parse them.
pKeyword | is the data | |
pParam | is the keyword parameter if any, otherwise "". RTF spec says it should be a signed 16-bits int. | |
pParamUsed | is a flag to tell whether there is a parameter. |
References ReadCharFromFile(), ReadKeyword(), RTF_TOKEN_NONE, and UT_return_val_if_fail.
Referenced by HandleField(), HandleInfoMetaData(), HandleObject(), HandlePCData(), HandleShapePict(), ReadFontTable(), and StandardKeywordParser().
void IE_Imp_RTF::OpenTable | ( | bool | bDontFlush = false |
) |
Opens a table by inserting a table and cell strux. The boolean argument bDontFlush is false by default. If true the current stored chars are not flushed.
References PD_Document::appendStrux(), bUseInsertNotAppend(), FlushCellProps(), FlushStoredChars(), PD_Document::getBounds(), getCell(), IE_Imp::getDoc(), PD_Document::getLastStruxOfType(), ie_imp_table_control::getNestDepth(), getTable(), insertStrux(), m_bCellBlank, m_bInFootnote, m_bMovedPos, m_bNoteIsFNote, m_bParaWrittenForSection, RTFStateStore::m_cellProps, m_currentRTFState, m_dPosBeforeFootnote, m_dposPaste, m_iDepthAtFootnote, m_lastCellSDH, m_newParaFlagged, m_TableControl, RTFStateStore::m_tableProps, ie_imp_table::OpenCell(), ie_imp_table_control::OpenTable(), PTX_Block, PTX_EndEndnote, PTX_EndFootnote, PTX_SectionCell, PTX_SectionTable, ResetCellAttributes(), ie_imp_cell::setCellSDH(), ie_imp_table::setTableSDH(), UT_ASSERT, and UT_DEBUGMSG.
Referenced by ApplyParagraphAttributes(), HandleCell(), HandleCellX(), and TranslateKeywordID().
bool IE_Imp_RTF::ParseChar | ( | UT_UCSChar | ch, | |
bool | no_convert = 1 | |||
) |
References AddChar(), m_cbBin, RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_deleted, RTFStateStore::m_destinationState, RTFStateStore::m_internalState, m_mbtowc, RTFStateStore::m_unicodeInAlternate, UT_UCS4_mbtowc::mbtowc(), RTFStateStore::rdsNorm, RTFStateStore::rdsSkip, RTFStateStore::risBin, UCS_FF, UCS_LF, UCS_VTAB, and UT_DEBUGMSG.
Referenced by _parseText(), HandlePCData(), IE_Imp_TextParaPropParser::tokenData(), and TranslateKeywordID().
bool IE_Imp_RTF::ParseCharParaProps | ( | unsigned char * | pKeyword, | |
UT_sint32 | param, | |||
bool | fParam, | |||
const std::unique_ptr< RTFProps_CharProps > & | pChars, | |||
const std::unique_ptr< RTFProps_ParaProps > & | pParas, | |||
const std::unique_ptr< RTFProps_bCharProps > & | pbChars, | |||
const std::unique_ptr< RTFProps_bParaProps > & | pbParas | |||
) | [private] |
OK this method parses the RTF against all the character and paragraph properties. and fills the pointers to the character and paragraph classes. These are used by the list table and stylesheet reader.
References AddTabstop(), FL_TAB_BAR, GetNthTableFont(), HandleBoolCharacterProp(), HandleFloatCharacterProp(), HandleU32CharacterProp(), m_mbtowc, RTFFontTableItem::m_szEncoding, UT_UCS4_mbtowc::setInCharset(), UT_DEBUGMSG, UT_return_val_if_fail, and wvLIDToLangConverter().
Referenced by HandleListLevel(), HandleStyleDefinition(), and HandleTableListOverride().
bool IE_Imp_RTF::ParseRTFKeyword | ( | ) | [private] |
Reads and proccesses a RTF control word and its parameter
References g_dbgLastKeyword, MAX_KEYWORD_LEN, ReadKeyword(), TranslateKeyword(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _parseText().
bool IE_Imp_RTF::pasteFromBuffer | ( | PD_DocumentRange * | pDocRange, | |
const unsigned char * | pData, | |||
UT_uint32 | lenData, | |||
const char * | szEncoding = 0 | |||
) | [virtual] |
Reimplemented from IE_Imp.
References _parseFile(), FlushStoredChars(), PD_Document::getBounds(), IE_Imp::getDoc(), PD_Document::getFragFromPosition(), pf_Frag::getPrev(), pf_Frag_Strux::getStruxType(), pf_Frag::getType(), PD_Document::insertStrux(), m_bSectionHasPara, m_dOrigPos, m_dposPaste, m_lenPasteBuffer, m_newParaFlagged, m_newSectionFlagged, m_pCurrentCharInPasteBuffer, PD_DocumentRange::m_pDoc, m_pImportFile, PD_DocumentRange::m_pos1, PD_DocumentRange::m_pos2, m_posSavedDocPosition, m_pPasteBuffer, PTX_Block, PTX_EndCell, PTX_EndEndnote, PTX_EndFootnote, PTX_EndFrame, PTX_EndMarginnote, PTX_EndTable, PTX_EndTOC, PTX_Section, PTX_SectionCell, PTX_SectionEndnote, PTX_SectionFootnote, PTX_SectionFrame, PTX_SectionHdrFtr, PTX_SectionMarginnote, PTX_SectionTable, PTX_SectionTOC, PTX_StruxDummy, s, IE_Imp::setClipboard(), UT_ASSERT_HARMLESS, UT_DEBUGMSG, UT_return_val_if_fail, and UT_SHOULD_NOT_HAPPEN.
Referenced by FV_View::_pasteFromLocalTo(), FL_DocLayout::loadPendingObjects(), AP_UnixApp::pasteFromClipboard(), AP_CocoaApp::pasteFromClipboard(), FV_Selection::pasteRowOrCol(), and FL_DocLayout::relocateFrame().
bool IE_Imp_RTF::PopRTFState | ( | void | ) |
References FlushStoredChars(), UT_Stack::getDepth(), m_currentRTFState, m_stateStack, RTFStateStore::m_unicodeInAlternate, UT_Stack::pop(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _parseText(), HandleAbiCell(), HandleAbiEmbed(), HandleAbiLists(), HandleAbiMathml(), HandleAbiTable(), HandleField(), HandleInfoMetaData(), HandleObject(), HandleShapePict(), HandleStarKeyword(), HandleStyleDefinition(), s_unEscapeXMLString(), and IE_Imp_TextParaPropParser::tokenCloseBrace().
bool IE_Imp_RTF::PostProcessAndValidatePanose | ( | UT_UTF8String & | Panose | ) | [private] |
References UT_UTF8Stringbuf::UTF8Iterator::current(), UT_UTF8String::getIterator(), UT_UTF8Stringbuf::UTF8Iterator::start(), and UT_DEBUGMSG.
Referenced by ReadFontTable().
bool IE_Imp_RTF::PushRTFState | ( | void | ) |
References m_currentRTFState, RTFStateStore::m_internalState, m_stateStack, UT_Stack::push(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by _parseText(), HandleField(), HandleObject(), HandleShapePict(), and IE_Imp_TextParaPropParser::tokenOpenBrace().
bool IE_Imp_RTF::ReadCharFromFile | ( | unsigned char * | pCh | ) | [private] |
Reads a character from the file ignoring CR and LF
pCh | the char read |
References ReadCharFromFileWithCRLF().
Referenced by _parseText(), CreateDataItemfromStream(), getCharsInsideBrace(), HandleAbiCell(), HandleAbiEmbed(), HandleAbiLists(), HandleAbiMathml(), HandleAbiTable(), HandleListLevel(), HandleLists(), HandlePicture(), HandleStarKeyword(), HandleStyleDefinition(), HandleTableList(), HandleTableListOverride(), LoadPictData(), NextToken(), ReadColourTable(), ReadHexChar(), ReadListOverrideTable(), ReadListTable(), ReadRevisionTable(), and s_unEscapeXMLString().
bool IE_Imp_RTF::ReadCharFromFileWithCRLF | ( | unsigned char * | pCh | ) | [private] |
Reads a character from the file. Doesn't ignore CR and LF
pCh | the char read |
References m_lenPasteBuffer, m_pCurrentCharInPasteBuffer, m_pImportFile, and m_pPasteBuffer.
Referenced by HandlePicture(), LoadPictData(), ReadCharFromFile(), ReadContentFromFile(), ReadKeyword(), SkipCurrentGroup(), StuffCurrentGroup(), and TranslateKeywordID().
bool IE_Imp_RTF::ReadColourTable | ( | ) | [private] |
References m_colourTable, MAX_KEYWORD_LEN, ReadCharFromFile(), ReadKeyword(), SkipBackChar(), UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::ReadContentFromFile | ( | UT_UTF8String & | str | ) | [private] |
References ReadCharFromFileWithCRLF(), and SkipBackChar().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::ReadFontTable | ( | ) | [private] |
References UT_UTF8String::append(), UT_UTF8String::appendBuf(), UT_UTF8String::appendUCS2(), SFontTableState::bSeenStar, DELETEP, SFontTableState::iCurrentInputData, SFontTableState::iUniCharsLeftToSkip, SFontTableState::iUniSkipCount, KeywordToID(), m_currentRTFState, m_mbtowc, RTFStateStore::m_unicodeAlternateSkipCount, SFontTableState::MainFontName, MAX_KEYWORD_LEN, NextToken(), SFontTableState::Panose, UT_Stack::pop(), PostProcessAndValidatePanose(), UT_Stack::push(), ReadHexChar(), RegisterFont(), RTF_KW_f, RTF_KW_falt, RTF_KW_fbidi, RTF_KW_fcharset, RTF_KW_fdecor, RTF_KW_fmodern, RTF_KW_fnil, RTF_KW_froman, RTF_KW_fscript, RTF_KW_fswiss, RTF_KW_ftech, RTF_KW_panose, RTF_KW_QUOTE, RTF_KW_STAR, RTF_KW_u, RTF_KW_uc, RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_NONE, RTF_TOKEN_OPEN_BRACE, SkipBackChar(), SkipCurrentGroup(), and UT_DEBUGMSG.
Referenced by TranslateKeywordID().
UT_UCS4Char IE_Imp_RTF::ReadHexChar | ( | void | ) | [private] |
References hexVal(), ReadCharFromFile(), and UT_DEBUGMSG.
Referenced by HandlePCData(), HandleStyleDefinition(), and ReadFontTable().
bool IE_Imp_RTF::ReadKeyword | ( | unsigned char * | pKeyword, | |
UT_sint32 * | pParam, | |||
bool * | pParamUsed, | |||
UT_uint32 | keywordBuffLen | |||
) | [private] |
Read a keyword from the file.
pKeyword | the keyword buffer whose len is in keywordBuffLen Can not be NULL on input. | |
pParam | the keyword parameter as specified by the RTF spec. 0 is there is no param. | |
pParamUsed | true if the keyword does really have a param. false otherwise (pParam is 0 then). |
keywordBuffLen | the length of the pKeyword memory block |
References g_dbgLastKeyword, g_dbgLastParam, RTFStateStore::m_bInKeywordStar, m_currentRTFState, ReadCharFromFileWithCRLF(), SkipBackChar(), UT_DEBUGMSG, UT_return_val_if_fail, and xxx_UT_DEBUGMSG.
Referenced by _parseText(), HandleAbiLists(), HandleListLevel(), HandleLists(), HandlePicture(), HandleStarKeyword(), HandleStyleDefinition(), HandleTableList(), HandleTableListOverride(), NextToken(), ParseRTFKeyword(), ReadColourTable(), ReadListOverrideTable(), ReadListTable(), and TranslateKeywordID().
bool IE_Imp_RTF::ReadListOverrideTable | ( | void | ) | [private] |
References HandleTableListOverride(), m_vecWord97ListOverride, MAX_KEYWORD_LEN, ReadCharFromFile(), ReadKeyword(), SkipBackChar(), and UT_std_vector_purgeall().
Referenced by HandleStarKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::ReadListTable | ( | void | ) | [private] |
References HandleTableList(), m_vecWord97Lists, MAX_KEYWORD_LEN, ReadCharFromFile(), ReadKeyword(), SkipBackChar(), UT_DEBUGMSG, UT_std_vector_purgeall(), and xxx_UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::ReadRDFTriples | ( | ) | [private] |
References IE_Imp::getDoc(), PD_Document::getDocumentRDF(), loadRDFXML(), s_unEscapeXMLString(), and UT_DEBUGMSG.
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::ReadRevisionTable | ( | ) | [private] |
References AD_Document::addRevision(), UT_UCS4String::clear(), IE_Imp::getDoc(), UT_UCS4String::length(), ReadCharFromFile(), s, UT_UCS4String::ucs4_str(), UT_return_val_if_fail, and UT_UCS4_strcmp().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::RegisterFont | ( | RTFFontTableItem::FontFamilyEnum | fontFamily, | |
RTFFontTableItem::FontPitch | pitch, | |||
UT_uint16 | fontIndex, | |||
int | charSet, | |||
int | codepage, | |||
UT_UTF8String | sFontNames[] | |||
) | [private] |
References SFontTableState::AltFontName, DELETEP, m_fontTable, SFontTableState::MainFontName, SFontTableState::Panose, UT_DEBUGMSG, and UT_return_val_if_fail.
Referenced by ReadFontTable().
void IE_Imp_RTF::RemoveRowInfo | ( | void | ) |
This Method Clears any information about the current row
bool IE_Imp_RTF::ResetCellAttributes | ( | void | ) |
References FlushStoredChars(), RTFStateStore::m_cellProps, and m_currentRTFState.
Referenced by HandleCellX(), OpenTable(), and TranslateKeywordID().
bool IE_Imp_RTF::ResetCharacterAttributes | ( | ) | [private] |
References RTFStateStore::m_charProps, and m_currentRTFState.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::ResetParagraphAttributes | ( | ) | [private] |
References FlushStoredChars(), RTFStateStore::m_cellProps, m_currentRTFState, RTFStateStore::m_paraProps, and xxx_UT_DEBUGMSG.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::ResetSectionAttributes | ( | ) | [private] |
References FlushStoredChars(), m_bParaWrittenForSection, m_currentRTFState, m_sectdProps, and RTFStateStore::m_sectionProps.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::ResetTableAttributes | ( | void | ) |
References FlushStoredChars(), m_currentRTFState, and RTFStateStore::m_tableProps.
Referenced by TranslateKeywordID().
std::string IE_Imp_RTF::s_unEscapeXMLString | ( | ) | [private] |
Reads back data that was written with IE_Exp_RTF::s_escapeXMLString().
References PopRTFState(), ReadCharFromFile(), replace_all(), and s.
Referenced by ReadRDFTriples().
void IE_Imp_RTF::SaveRowInfo | ( | void | ) |
This Method saves the information about the current row
void IE_Imp_RTF::setEncoding | ( | ) | [private] |
bool IE_Imp_RTF::SetParaJustification | ( | RTFProps_ParaProps::ParaJustification | just | ) | [private] |
References m_currentRTFState, RTFProps_ParaProps::m_justification, and RTFStateStore::m_paraProps.
Referenced by TranslateKeywordID().
void IE_Imp_RTF::setStruxImage | ( | bool | b | ) | [inline] |
bool IE_Imp_RTF::SkipBackChar | ( | unsigned char | ch | ) | [private] |
Push a char back to the stream.
ch | the char to push back |
References m_pCurrentCharInPasteBuffer, m_pImportFile, and m_pPasteBuffer.
Referenced by _parseText(), CreateDataItemfromStream(), getCharsInsideBrace(), HandleLists(), HandlePCData(), HandlePicture(), LoadPictData(), ReadColourTable(), ReadContentFromFile(), ReadFontTable(), ReadKeyword(), ReadListOverrideTable(), ReadListTable(), SkipCurrentGroup(), StandardKeywordParser(), and StuffCurrentGroup().
bool IE_Imp_RTF::SkipCurrentGroup | ( | bool | bConsumeLastBrace = false |
) |
Skip the current group
bConsumeLastBrace | pass true to discard the last } |
References ReadCharFromFileWithCRLF(), and SkipBackChar().
Referenced by HandleField(), HandleInfoMetaData(), HandleObject(), HandlePicture(), HandleStarKeyword(), ReadFontTable(), IE_Imp_ShpGroupParser::tokenKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::StandardKeywordParser | ( | IE_Imp_RTFGroupParser * | parser | ) |
This is the standard keyword parser
parser | the IE_Imp_RTFGroupParser subclass that will do the real syntaxic parsing. |
References IE_Imp_RTFGroupParser::finalizeParse(), HandlePCData(), KeywordToID(), MAX_KEYWORD_LEN, IE_Imp_RTFGroupParser::nested(), NextToken(), RTF_TOKEN_CLOSE_BRACE, RTF_TOKEN_DATA, RTF_TOKEN_ERROR, RTF_TOKEN_KEYWORD, RTF_TOKEN_OPEN_BRACE, SkipBackChar(), IE_Imp_RTFGroupParser::tokenCloseBrace(), IE_Imp_RTFGroupParser::tokenData(), IE_Imp_RTFGroupParser::tokenError(), IE_Imp_RTFGroupParser::tokenKeyword(), IE_Imp_RTFGroupParser::tokenOpenBrace(), UT_DEBUGMSG, and xxx_UT_DEBUGMSG.
Referenced by HandleShape(), and IE_Imp_ShpGroupParser::tokenKeyword().
void IE_Imp_RTF::StartAnnotation | ( | ) | [private] |
References PD_Document::appendObject(), bUseInsertNotAppend(), FlushStoredChars(), IE_Imp::getDoc(), PD_Document::getLastFrag(), ABI_RTF_Annotation::m_Annpos, m_dposPaste, ABI_RTF_Annotation::m_iAnnNumber, m_pAnnotation, ABI_RTF_Annotation::m_pInsertFrag, ABI_RTF_Annotation::newNumber(), PTO_Annotation, UT_DEBUGMSG, and UT_std_string_sprintf().
Referenced by HandleStarKeyword().
bool IE_Imp_RTF::StartNewPara | ( | ) | [private] |
References FlushStoredChars(), RTFStateStore::m_charProps, m_currentRTFState, RTFProps_CharProps::m_dirOverride, and m_newParaFlagged.
Referenced by HandleParKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::StartNewSection | ( | ) | [private] |
References FlushStoredChars(), m_bSectionHasPara, m_newParaFlagged, and m_newSectionFlagged.
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::StuffCurrentGroup | ( | UT_ByteBuf & | buf | ) | [private] |
Stuff the current group into the buffer
buf | the buffer to stuff RTF in. |
References UT_ByteBuf::append(), ReadCharFromFileWithCRLF(), and SkipBackChar().
Referenced by HandleHeaderFooter().
virtual bool IE_Imp_RTF::supportsLoadStylesOnly | ( | ) | const [inline, virtual] |
bool IE_Imp_RTF::TranslateKeyword | ( | unsigned char * | pKeyword, | |
UT_sint32 | param, | |||
bool | fParam | |||
) | [private] |
References KeywordToID(), TranslateKeywordID(), and xxx_UT_DEBUGMSG.
Referenced by _parseText(), and ParseRTFKeyword().
bool IE_Imp_RTF::TranslateKeywordID | ( | RTF_KEYWORD_ID | keywordID, | |
UT_sint32 | param, | |||
bool | fParam | |||
) |
References _appendField(), _sanitizeListLevel(), _setStringProperty(), AddTabstop(), bUseInsertNotAppend(), XAP_EncodingManager::charsetFromCodepage(), CloseTable(), DIM_IN, FL_TAB_BAR, gchar, XAP_EncodingManager::get_instance(), XAP_App::getApp(), XAP_Frame::getCurrentView(), IE_Imp::getDoc(), XAP_App::getLastFocussedFrame(), IE_Imp::getLoadStylesOnly(), XAP_EncodingManager::getNative8BitEncodingName(), ie_imp_table_control::getNestDepth(), GetNthTableColour(), getTable(), HandleBackgroundColour(), HandleBold(), HandleBotline(), HandleCell(), HandleCellX(), HandleColour(), HandleFace(), HandleField(), HandleFontSize(), HandleHeaderFooter(), HandleHidden(), HandleInfoMetaData(), HandleItalic(), HandleNoteReference(), HandleObject(), HandleOverline(), HandleParKeyword(), HandlePicture(), HandleRevisedText(), HandleRevisedTextTimestamp(), HandleRow(), HandleShape(), HandleStarKeyword(), HandleStrikeout(), HandleStyleDefinition(), HandleSubscript(), HandleSubscriptPosition(), HandleSuperscript(), HandleSuperscriptPosition(), HandleTopline(), HandleUnderline(), fp_PageSize::Height(), RTFHdrFtr::hftFooter, RTFHdrFtr::hftFooterEven, RTFHdrFtr::hftFooterFirst, RTFHdrFtr::hftHeader, RTFHdrFtr::hftHeaderEven, RTFHdrFtr::hftHeaderFirst, FV_View::isHdrFtrEdit(), FV_View::isInEndnote(), FV_View::isInFootnote(), m_bBidiMode, RTFProps_CellProps::m_bBotBorder, RTFProps_ParaProps::m_bBotBorder, m_bCellActive, m_bCellBlank, m_bCellHandled, RTFProps_SectionProps::m_bColumnLine, m_bContentFlushed, m_bDoCloseTable, m_bFieldRecognized, m_bFootnotePending, RTFProps_CellProps::m_bHorizontalMerged, RTFProps_CellProps::m_bHorizontalMergedFirst, m_bInFootnote, RTFProps_ParaProps::m_bInTable, RTFProps_CellProps::m_bLeftBorder, RTFProps_ParaProps::m_bLeftBorder, RTFProps_ParaProps::m_bMergeBordersShading, m_bNestTableProps, RTFProps_SectionProps::m_bottomMargTwips, m_bParaActive, RTFProps_SectionProps::m_breakType, RTFProps_CellProps::m_bRightBorder, RTFProps_ParaProps::m_bRightBorder, m_bRowJustPassed, RTFProps_CellProps::m_bTopBorder, RTFProps_ParaProps::m_bTopBorder, RTFProps_CellProps::m_bVerticalMerged, RTFProps_CellProps::m_bVerticalMergedFirst, RTFStateStore::m_cellProps, RTFStateStore::m_charProps, RTFProps_SectionProps::m_colSpaceTwips, m_currentRTFState, RTFProps_ParaProps::m_curTabLeader, RTFProps_ParaProps::m_curTabType, RTFStateStore::m_destinationState, RTFProps_CharProps::m_dir, RTFProps_SectionProps::m_dir, RTFProps_ParaProps::m_dir, RTFProps_CharProps::m_dirOverride, PD_Document::m_docPageSize, m_dposPaste, RTFProps_CharProps::m_fontNumber, RTFProps_SectionProps::m_footerYTwips, RTFProps_SectionProps::m_gutterTwips, RTFProps_SectionProps::m_headerYTwips, RTFProps_ParaProps::m_iBotBorderCol, RTFProps_ParaProps::m_iBotBorderSpacing, RTFProps_ParaProps::m_iBotBorderStyle, RTFProps_ParaProps::m_iBotBorderWidth, RTFProps_CellProps::m_iCurBorder, RTFProps_ParaProps::m_iCurBorder, m_iDefaultFontNumber, m_iHyperlinkOpen, RTFProps_ParaProps::m_iLeftBorderCol, RTFProps_ParaProps::m_iLeftBorderSpacing, RTFProps_ParaProps::m_iLeftBorderStyle, RTFProps_ParaProps::m_iLeftBorderWidth, RTFProps_ParaProps::m_indentFirst, RTFProps_ParaProps::m_indentLeft, RTFProps_ParaProps::m_indentRight, RTFStateStore::m_internalState, RTFProps_ParaProps::m_iOverride, RTFProps_ParaProps::m_iOverrideLevel, RTFProps_ParaProps::m_iRightBorderCol, RTFProps_ParaProps::m_iRightBorderSpacing, RTFProps_ParaProps::m_iRightBorderStyle, RTFProps_ParaProps::m_iRightBorderWidth, RTFProps_ParaProps::m_iShadingBackCol, RTFProps_ParaProps::m_iShadingForeCol, RTFProps_ParaProps::m_iShadingPattern, RTFProps_ParaProps::m_isList, RTFProps_ParaProps::m_iTopBorderCol, RTFProps_ParaProps::m_iTopBorderSpacing, RTFProps_ParaProps::m_iTopBorderStyle, RTFProps_ParaProps::m_iTopBorderWidth, RTFProps_SectionProps::m_leftMargTwips, RTFProps_ParaProps::m_lineSpaceExact, RTFProps_ParaProps::m_lineSpaceVal, m_mbtowc, RTFProps_SectionProps::m_numCols, RTFStateStore::m_paraProps, RTFStateStore::m_revAttr, RTFProps_SectionProps::m_rightMargTwips, RTFProps_CellProps::m_sCellProps, m_sectdProps, RTFStateStore::m_sectionProps, RTFProps_ParaProps::m_spaceAfter, RTFProps_ParaProps::m_spaceBefore, RTFProps_ParaProps::m_styleNumber, RTFProps_CharProps::m_styleNumber, m_szDefaultEncoding, RTFProps_CharProps::m_szLang, m_TableControl, RTFProps_ParaProps::m_tableLevel, RTFProps_SectionProps::m_topMargTwips, RTFStateStore::m_unicodeAlternateSkipCount, RTFStateStore::m_unicodeInAlternate, MAX_KEYWORD_LEN, OpenTable(), ParseChar(), RTFProps_ParaProps::pjCentre, RTFProps_ParaProps::pjFull, RTFProps_ParaProps::pjLeft, RTFProps_ParaProps::pjRight, PP_REVISION_ADDITION, PP_REVISION_DELETION, PP_REVISION_FMT_CHANGE, ReadCharFromFileWithCRLF(), ReadColourTable(), ReadFontTable(), ReadKeyword(), ReadListOverrideTable(), ResetCellAttributes(), ResetCharacterAttributes(), ResetParagraphAttributes(), ResetSectionAttributes(), ResetTableAttributes(), RTF_KW_abibotline, RTF_KW_abiltr, RTF_KW_abinodiroverride, RTF_KW_abirtl, RTF_KW_abitopline, RTF_KW_aenddoc, RTF_KW_aendnotes, RTF_KW_aftnnalc, RTF_KW_aftnnar, RTF_KW_aftnnauc, RTF_KW_aftnnrlc, RTF_KW_aftnnruc, RTF_KW_aftnrestart, RTF_KW_aftnstart, RTF_KW_ansi, RTF_KW_ansicpg, RTF_KW_b, RTF_KW_BACKSLASH, RTF_KW_brdrb, RTF_KW_brdrbtw, RTF_KW_brdrcf, RTF_KW_brdrdash, RTF_KW_brdrdot, RTF_KW_brdrl, RTF_KW_brdrnone, RTF_KW_brdrr, RTF_KW_brdrs, RTF_KW_brdrt, RTF_KW_brdrw, RTF_KW_brsp, RTF_KW_bullet, RTF_KW_cb, RTF_KW_cbpat, RTF_KW_cell, RTF_KW_cellx, RTF_KW_cf, RTF_KW_cfpat, RTF_KW_chdate, RTF_KW_chdpa, RTF_KW_chdpl, RTF_KW_chftn, RTF_KW_chpgn, RTF_KW_chtime, RTF_KW_clbrdrb, RTF_KW_clbrdrl, RTF_KW_clbrdrr, RTF_KW_clbrdrt, RTF_KW_clcbpat, RTF_KW_clmgf, RTF_KW_clmrg, RTF_KW_CLOSECBRACE, RTF_KW_clvmgf, RTF_KW_clvmrg, RTF_KW_colortbl, RTF_KW_cols, RTF_KW_colsx, RTF_KW_column, RTF_KW_CR, RTF_KW_crauth, RTF_KW_crdate, RTF_KW_cs, RTF_KW_deff, RTF_KW_deleted, RTF_KW_dn, RTF_KW_emdash, RTF_KW_emspace, RTF_KW_endash, RTF_KW_enddoc, RTF_KW_endnotes, RTF_KW_enspace, RTF_KW_f, RTF_KW_fi, RTF_KW_field, RTF_KW_fldrslt, RTF_KW_fonttbl, RTF_KW_footer, RTF_KW_footerf, RTF_KW_footerl, RTF_KW_footerr, RTF_KW_footery, RTF_KW_footnote, RTF_KW_fs, RTF_KW_ftnalt, RTF_KW_ftnnalc, RTF_KW_ftnnar, RTF_KW_ftnnauc, RTF_KW_ftnnrlc, RTF_KW_ftnnruc, RTF_KW_ftnrestart, RTF_KW_ftnrstpg, RTF_KW_ftnstart, RTF_KW_gutter, RTF_KW_header, RTF_KW_headerf, RTF_KW_headerl, RTF_KW_headerr, RTF_KW_headery, RTF_KW_highlight, RTF_KW_HYPHEN, RTF_KW_i, RTF_KW_ilvl, RTF_KW_info, RTF_KW_intbl, RTF_KW_itap, RTF_KW_landscape, RTF_KW_lang, RTF_KW_ldblquote, RTF_KW_LF, RTF_KW_li, RTF_KW_line, RTF_KW_linebetcol, RTF_KW_listoverridetable, RTF_KW_listtext, RTF_KW_lquote, RTF_KW_ls, RTF_KW_ltrch, RTF_KW_ltrmark, RTF_KW_ltrpar, RTF_KW_ltrsect, RTF_KW_mac, RTF_KW_margb, RTF_KW_margbsxn, RTF_KW_margl, RTF_KW_marglsxn, RTF_KW_margr, RTF_KW_margrsxn, RTF_KW_margt, RTF_KW_margtsxn, RTF_KW_nestcell, RTF_KW_nestrow, RTF_KW_nonesttables, RTF_KW_nonshppict, RTF_KW_noproof, RTF_KW_object, RTF_KW_ol, RTF_KW_OPENCBRACE, RTF_KW_page, RTF_KW_paperh, RTF_KW_paperw, RTF_KW_par, RTF_KW_pard, RTF_KW_pc, RTF_KW_pca, RTF_KW_pict, RTF_KW_plain, RTF_KW_pntext, RTF_KW_qc, RTF_KW_qj, RTF_KW_ql, RTF_KW_qr, RTF_KW_QUOTE, RTF_KW_rdblquote, RTF_KW_revauth, RTF_KW_revauthdel, RTF_KW_revdttm, RTF_KW_revdttmdel, RTF_KW_revised, RTF_KW_ri, RTF_KW_row, RTF_KW_rquote, RTF_KW_rtf, RTF_KW_rtlch, RTF_KW_rtlmark, RTF_KW_rtlpar, RTF_KW_rtlsect, RTF_KW_s, RTF_KW_sa, RTF_KW_sb, RTF_KW_sbkcol, RTF_KW_sbkeven, RTF_KW_sbknone, RTF_KW_sbkodd, RTF_KW_sbkpage, RTF_KW_sect, RTF_KW_sectd, RTF_KW_shp, RTF_KW_sl, RTF_KW_slmult, RTF_KW_STAR, RTF_KW_strike, RTF_KW_striked, RTF_KW_stylesheet, RTF_KW_sub, RTF_KW_super, RTF_KW_tab, RTF_KW_tb, RTF_KW_TILDE, RTF_KW_tldot, RTF_KW_tleq, RTF_KW_tlhyph, RTF_KW_tlul, RTF_KW_tqc, RTF_KW_tqdec, RTF_KW_tqr, RTF_KW_trautofit, RTF_KW_trleft, RTF_KW_trowd, RTF_KW_tx, RTF_KW_u, RTF_KW_uc, RTF_KW_ul, RTF_KW_uld, RTF_KW_uldash, RTF_KW_uldashd, RTF_KW_uldashdd, RTF_KW_uldb, RTF_KW_ulnone, RTF_KW_ulth, RTF_KW_ulw, RTF_KW_ulwave, RTF_KW_UNDERSCORE, RTF_KW_up, RTF_KW_v, rtfBorderBot, rtfBorderLeft, rtfBorderRight, rtfBorderTop, rtfCellBorderBot, rtfCellBorderLeft, rtfCellBorderRight, rtfCellBorderTop, fp_PageSize::Set(), ie_imp_table::setAutoFit(), setEncoding(), AD_Document::setEncodingName(), UT_UCS4_mbtowc::setInCharset(), SetParaJustification(), ie_imp_table::setProp(), PD_Document::setProperties(), UT_UTF8String::size(), SkipCurrentGroup(), StartNewPara(), StartNewSection(), UCS_BULLET, UCS_EM_DASH, UCS_EM_SPACE, UCS_EN_DASH, UCS_EN_SPACE, UCS_FF, UCS_LDBLQUOTE, UCS_LF, UCS_LQUOTE, UCS_NBSP, UCS_RDBLQUOTE, UCS_RQUOTE, UCS_VTAB, UT_ASSERT, UT_DEBUGMSG, UT_formatDimensionString(), UT_return_val_if_fail, UT_std_string_sprintf(), fp_PageSize::Width(), wvLIDToLangConverter(), and xxx_UT_DEBUGMSG.
Referenced by HandlePCData(), IE_Imp_TextParaPropParser::tokenKeyword(), and TranslateKeyword().
UT_uint32 IE_Imp_RTF::deflangid [private] |
bool IE_Imp_RTF::keywordSorted = false [static, private] |
Referenced by _initialKeywordSort(), and IE_Imp_RTF().
bool IE_Imp_RTF::m_bAppendAnyway [private] |
Referenced by _appendField(), _loadFile(), HandleAbiEmbed(), and HandleAbiMathml().
bool IE_Imp_RTF::m_bBidiMode [private] |
Referenced by _appendSpan(), _insertSpan(), _isBidiDocument(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bCellActive [private] |
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::m_bCellBlank [private] |
bool IE_Imp_RTF::m_bCellHandled [private] |
Referenced by HandleCell(), HandleRow(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bContentFlushed [private] |
Referenced by ApplyCharacterAttributes(), FlushStoredChars(), HandleRow(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bDoCloseTable [private] |
Referenced by ApplyParagraphAttributes(), HandleCell(), HandleRow(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bEndTableOpen [private] |
bool IE_Imp_RTF::m_bFieldRecognized [private] |
Referenced by _appendField(), HandleField(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bFootnotePending [private] |
Referenced by _parseText(), HandleStarKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bFrameStruxIn [private] |
Referenced by addFrame(), HandleShape(), and HandleShapeText().
bool IE_Imp_RTF::m_bFrameTextBox [private] |
Referenced by addFrame(), and HandleShape().
bool IE_Imp_RTF::m_bFtnReferencePending [private] |
Referenced by HandleNote(), and HandleNoteReference().
bool IE_Imp_RTF::m_bInAnnotation [private] |
Referenced by _parseText(), FlushStoredChars(), and HandleAnnotation().
bool IE_Imp_RTF::m_bInFootnote [private] |
Referenced by FlushStoredChars(), HandleNote(), HandleNoteReference(), OpenTable(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bisAbiList [private] |
bool IE_Imp_RTF::m_bisNOTList [private] |
bool IE_Imp_RTF::m_bMovedPos [private] |
Referenced by _appendField(), FlushStoredChars(), and OpenTable().
bool IE_Imp_RTF::m_bNestTableProps [private] |
Referenced by HandleStarKeyword(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bNoteIsFNote [private] |
Referenced by _parseText(), FlushStoredChars(), HandleNote(), HandleNoteReference(), and OpenTable().
bool IE_Imp_RTF::m_bParaActive [private] |
Referenced by TranslateKeywordID().
bool IE_Imp_RTF::m_bParaHasRTFContinue [private] |
bool IE_Imp_RTF::m_bParaHasRTFList [private] |
bool IE_Imp_RTF::m_bParaWrittenForSection [private] |
Referenced by _parseFldinstBlock(), ApplyParagraphAttributes(), OpenTable(), and ResetSectionAttributes().
bool IE_Imp_RTF::m_bRowJustPassed [private] |
Referenced by HandleCell(), HandleRow(), and TranslateKeywordID().
bool IE_Imp_RTF::m_bSectionHasPara [private] |
bool IE_Imp_RTF::m_bStruxImage [private] |
bool IE_Imp_RTF::m_bStruxInserted [private] |
Referenced by insertStrux(), and mapID().
bool IE_Imp_RTF::m_bStyleImportDone [private] |
Referenced by _parseText(), and HandleStyleDefinition().
int IE_Imp_RTF::m_cbBin [private] |
Referenced by ParseChar().
std::vector<UT_sint32> IE_Imp_RTF::m_colourTable [private] |
Referenced by GetNthTableBgColour(), GetNthTableColour(), and ReadColourTable().
std::string IE_Imp_RTF::m_ctMoveID [private] |
UT_uint32 IE_Imp_RTF::m_currentFtrEvenID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentFtrFirstID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentFtrID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentFtrLastID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentHdrEvenID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentHdrFirstID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentHdrID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
UT_uint32 IE_Imp_RTF::m_currentHdrLastID [private] |
Referenced by _parseFile(), ApplySectionAttributes(), and HandleHeaderFooter().
RTFStateStore IE_Imp_RTF::m_currentRTFState [private] |
Referenced by _appendField(), _appendSpan(), _formRevisionAttr(), _insertSpan(), _parseFile(), _parseText(), AddTabstop(), ApplyCharacterAttributes(), ApplyParagraphAttributes(), ApplySectionAttributes(), buildCharacterProps(), FlushCellProps(), FlushTableProps(), HandleAbiEmbed(), HandleAbiLists(), HandleAbiMathml(), HandleBackgroundColour(), HandleBold(), HandleBotline(), HandleCellX(), HandleColour(), HandleDeleted(), HandleFace(), HandleFontSize(), HandleHidden(), HandleItalic(), HandleListTag(), HandleNoteReference(), HandleOverline(), HandleParKeyword(), HandlePCData(), HandleRevisedText(), HandleRevisedTextTimestamp(), HandleShape(), HandleStarKeyword(), HandleStrikeout(), HandleSubscript(), HandleSubscriptPosition(), HandleSuperscript(), HandleSuperscriptPosition(), HandleTopline(), HandleUnderline(), insertStrux(), mapID(), OpenTable(), ParseChar(), PopRTFState(), PushRTFState(), ReadFontTable(), ReadKeyword(), ResetCellAttributes(), ResetCharacterAttributes(), ResetParagraphAttributes(), ResetSectionAttributes(), ResetTableAttributes(), setEncoding(), SetParaJustification(), StartNewPara(), and TranslateKeywordID().
PT_DocPosition IE_Imp_RTF::m_dOrigPos [private] |
Referenced by ApplyCharacterAttributes(), and pasteFromBuffer().
Referenced by _appendField(), FlushStoredChars(), and OpenTable().
PT_DocPosition IE_Imp_RTF::m_dposPaste [private] |
Referenced by _appendField(), _appendHdrFtr(), _insertSpan(), _parseFldinstBlock(), ApplyCharacterAttributes(), ApplyParagraphAttributes(), ApplySectionAttributes(), closePastedTableIfNeeded(), EndAnnotation(), FlushStoredChars(), HandleAbiCell(), HandleAbiEmbed(), HandleAbiEndTable(), HandleAbiMathml(), HandleAbiTable(), HandleAnnotation(), HandleBookmark(), HandleDeltaMoveID(), HandleField(), HandleParKeyword(), HandleRDFAnchor(), HandleStarKeyword(), InsertImage(), insertStrux(), mapID(), OpenTable(), pasteFromBuffer(), StartAnnotation(), and TranslateKeywordID().
std::vector<RTFFontTableItem*> IE_Imp_RTF::m_fontTable [private] |
Referenced by GetNthTableFont(), RegisterFont(), and ~IE_Imp_RTF().
RTFStateStore IE_Imp_RTF::m_FootnoteRefState [private] |
Referenced by HandleNoteReference().
UT_GrowBuf IE_Imp_RTF::m_gbBlock [private] |
Referenced by _appendSpan(), _insertSpan(), AddChar(), ApplyCharacterAttributes(), FlushStoredChars(), and HandleCell().
int IE_Imp_RTF::m_groupCount [private] |
std::vector<RTFHdrFtr*> IE_Imp_RTF::m_hdrFtrTable [private] |
Referenced by _appendHdrFtr(), HandleHeaderFooter(), and ~IE_Imp_RTF().
std::string IE_Imp_RTF::m_hyperlinkBase [private] |
Referenced by _parseFldinstBlock(), HandleStarKeyword(), and IE_Imp_RTF().
Referenced by _appendSpan(), and _insertSpan().
UT_BidiCharType IE_Imp_RTF::m_iBidiLastType [private] |
Referenced by _appendSpan(), and _insertSpan().
UT_BidiCharType IE_Imp_RTF::m_iBidiNextType [private] |
Referenced by _appendSpan(), and _insertSpan().
UT_uint32 IE_Imp_RTF::m_icurOverride [private] |
UT_uint32 IE_Imp_RTF::m_icurOverrideLevel [private] |
int IE_Imp_RTF::m_iDefaultFontNumber [private] |
Referenced by TranslateKeywordID().
UT_sint32 IE_Imp_RTF::m_iDepthAtFootnote [private] |
Referenced by FlushStoredChars(), HandleNote(), and OpenTable().
UT_uint32 IE_Imp_RTF::m_iHyperlinkOpen [private] |
Referenced by _parseFldinstBlock(), HandleField(), insertStrux(), and TranslateKeywordID().
UT_sint32 IE_Imp_RTF::m_iIsInHeaderFooter [private] |
Referenced by HandleStarKeyword().
UT_uint32 IE_Imp_RTF::m_iLastEndnoteId [private] |
Referenced by HandleNote(), and HandleNoteReference().
UT_uint32 IE_Imp_RTF::m_iLastFootnoteId [private] |
Referenced by HandleNote(), and HandleNoteReference().
UT_sint32 IE_Imp_RTF::m_iNoCellsSinceLastRow [private] |
Referenced by HandleCell(), and HandleRow().
UT_uint32 IE_Imp_RTF::m_iRDFAnchorOpen [private] |
Referenced by _parseFldinstBlock(), and HandleRDFAnchor().
UT_sint32 IE_Imp_RTF::m_iStackLevelAtRow [private] |
Referenced by HandleRow().
pf_Frag_Strux* IE_Imp_RTF::m_lastCellSDH [private] |
Referenced by CloseTable(), HandleCell(), HandleRow(), and OpenTable().
UT_uint32 IE_Imp_RTF::m_lenPasteBuffer [private] |
Referenced by _appendHdrFtr(), pasteFromBuffer(), and ReadCharFromFileWithCRLF().
UT_UCS4_mbtowc IE_Imp_RTF::m_mbtowc [private] |
Referenced by HandlePCData(), HandleStyleDefinition(), IE_Imp_RTF(), ParseChar(), ParseCharParaProps(), ReadFontTable(), setEncoding(), and TranslateKeywordID().
bool IE_Imp_RTF::m_newParaFlagged [private] |
bool IE_Imp_RTF::m_newSectionFlagged [private] |
Referenced by _loadFile(), FlushStoredChars(), HandleBookmark(), HandleParKeyword(), pasteFromBuffer(), and StartNewSection().
UT_uint32 IE_Imp_RTF::m_numLists [private] |
Referenced by HandleAbiLists(), mapID(), and mapParentID().
ABI_RTF_Annotation* IE_Imp_RTF::m_pAnnotation [private] |
Referenced by _parseText(), EndAnnotation(), FlushStoredChars(), HandleAnnotation(), HandleStarKeyword(), and StartAnnotation().
bool IE_Imp_RTF::m_parsingHdrFtr [private] |
Referenced by _appendHdrFtr(), _parseFile(), and bUseInsertNotAppend().
UT_Stack IE_Imp_RTF::m_pasteTableStack [private] |
const unsigned char* IE_Imp_RTF::m_pCurrentCharInPasteBuffer [private] |
Referenced by _appendHdrFtr(), pasteFromBuffer(), ReadCharFromFileWithCRLF(), and SkipBackChar().
pf_Frag* IE_Imp_RTF::m_pDelayedFrag [private] |
GsfInput* IE_Imp_RTF::m_pImportFile [private] |
const unsigned char* IE_Imp_RTF::m_pPasteBuffer [private] |
Referenced by _appendHdrFtr(), pasteFromBuffer(), ReadCharFromFileWithCRLF(), and SkipBackChar().
std::map< std::string, std::string > IE_Imp_RTF::m_rdfAnchorCloseXMLIDs [private] |
Referenced by HandleRDFAnchor().
Referenced by ResetSectionAttributes(), and TranslateKeywordID().
UT_UTF8String IE_Imp_RTF::m_sImageName [private] |
Referenced by addFrame(), IE_Imp_RTF(), and InsertImage().
UT_Stack IE_Imp_RTF::m_stateStack [private] |
Referenced by _parseText(), FlushStoredChars(), HandleNote(), HandleNoteReference(), HandleRow(), HandleShape(), HandleStarKeyword(), PopRTFState(), PushRTFState(), and ~IE_Imp_RTF().
std::vector<std::string> IE_Imp_RTF::m_styleTable [private] |
const char* IE_Imp_RTF::m_szDefaultEncoding [private] |
Referenced by setEncoding(), and TranslateKeywordID().
char* IE_Imp_RTF::m_szFileDirName [private] |
Referenced by _loadFile(), _parseFldinstBlock(), and ~IE_Imp_RTF().
Referenced by ApplyParagraphAttributes(), CloseTable(), getTable(), HandleRow(), OpenTable(), and TranslateKeywordID().
std::vector<_rtfAbiListTable *> IE_Imp_RTF::m_vecAbiListTable [private] |
Referenced by HandleAbiLists(), IE_Imp_RTF(), and ~IE_Imp_RTF().
std::vector<RTF_msword97_listOverride*> IE_Imp_RTF::m_vecWord97ListOverride [private] |
Referenced by _getTableListOverride(), HandleTableListOverride(), ReadListOverrideTable(), and ~IE_Imp_RTF().
std::vector<RTF_msword97_list *> IE_Imp_RTF::m_vecWord97Lists [private] |
Referenced by HandleTableList(), ReadListTable(), and ~IE_Imp_RTF().
Referenced by _parseFldinstBlock(), HandleRDFAnchor(), and IE_Imp_RTF().