#include <ie_imp_RTF.h>
Public Member Functions | |
| RTF_msword97_level (RTF_msword97_list *pmsword97List, UT_uint32 level) | |
| ~RTF_msword97_level () | |
| void | buildAbiListProperties (const char **szListID, const char **szParentID, const char **szLevel, const char **szStartat, const char **szFieldFont, const char **szListDelim, const char **szListDecimal, const char **szAlign, const char **szIndent, const char **szListStyle) |
| bool | ParseLevelText (const UT_String &szLevelText, const UT_String &szLevelNumbers, UT_uint32 iLevel) |
Public Attributes | |
| UT_sint32 | m_levelStartAt |
| UT_uint32 | m_AbiLevelID |
| UT_uint32 | m_RTFListType |
| UT_String | m_listDelim |
| char | m_cLevelFollow |
| bool | m_bStartNewList |
| bool | m_bRestart |
| RTFProps_ParaProps * | m_pParaProps |
| RTFProps_CharProps * | m_pCharProps |
| RTFProps_bParaProps * | m_pbParaProps |
| RTFProps_bCharProps * | m_pbCharProps |
Static Public Attributes | |
| static UT_uint32 | m_sPreviousLevel = 0 |
Private Attributes | |
| UT_uint32 | m_localLevel |
| RTF_msword97_list * | m_pMSWord97_list |
| RTF_msword97_level::RTF_msword97_level | ( | RTF_msword97_list * | pmsword97List, | |
| UT_uint32 | level | |||
| ) |
References IE_Imp::getDoc(), PD_Document::getUID(), UT_UniqueId::List, m_AbiLevelID, m_bRestart, m_bStartNewList, m_cLevelFollow, m_levelStartAt, m_listDelim, m_localLevel, m_pbCharProps, m_pbParaProps, m_pCharProps, RTF_msword97_list::m_pie_rtf, m_pMSWord97_list, m_pParaProps, UT_rand(), and UT_return_if_fail.
| RTF_msword97_level::~RTF_msword97_level | ( | void | ) |
References DELETEP, m_pbCharProps, m_pbParaProps, m_pCharProps, and m_pParaProps.
| void RTF_msword97_level::buildAbiListProperties | ( | const char ** | szListID, | |
| const char ** | szParentID, | |||
| const char ** | szLevel, | |||
| const char ** | szStartat, | |||
| const char ** | szFieldFont, | |||
| const char ** | szListDelim, | |||
| const char ** | szListDecimal, | |||
| const char ** | szAlign, | |||
| const char ** | szIndent, | |||
| const char ** | szListStyle | |||
| ) |
References RTFProps_bParaProps::bm_indentLeft, BULLETED_LIST, UT_String::c_str(), DIM_IN, IE_Imp::getDoc(), PD_Document::getUID(), fl_AutoLists::getXmlList(), HEBREW_LIST, IMPLIES_LIST, UT_UniqueId::List, LOWERCASE_LIST, LOWERROMAN_LIST, m_AbiLevelID, m_bRestart, m_bStartNewList, RTFProps_ParaProps::m_indentFirst, RTFProps_ParaProps::m_indentLeft, m_levelStartAt, m_listDelim, m_localLevel, m_pbParaProps, RTF_msword97_list::m_pie_rtf, m_pMSWord97_list, m_pParaProps, RTFProps_ParaProps::m_pszFieldFont, RTF_msword97_list::m_RTF_level, m_RTFListType, m_sPreviousLevel, NUMBERED_LIST, UPPERCASE_LIST, UPPERROMAN_LIST, UT_convertInchesToDimensionString(), and UT_String_sprintf().
Referenced by RTF_msword97_listOverride::buildAbiListProperties().
| bool RTF_msword97_level::ParseLevelText | ( | const UT_String & | szLevelText, | |
| const UT_String & | szLevelNumbers, | |||
| UT_uint32 | iLevel | |||
| ) |
Parse the leveltext and levelnumbers values. The idea is to translate the strings into AbiWord compatible format.
From the RTF standard: "... a level three number such as '1.a.(i)' would generate the following RTF: '{ \'07\'00.\'01.(\'02)'}' where \'07 is the string length, the \'00 \'01 and \'02 are level place holders, and the rest is surrounding text. The corresponding levelnumbers would be { \'01\'03\'06} because the level place holders have indices 1,3,6.
In AbiWord, either this level resuses the parent label and adds on more text, or starts a new label. So we can only get 1.a.(i) if the parent label is 1.a. or 1.a
References UT_String::c_str(), m_bStartNewList, m_listDelim, UT_String::size(), UT_DEBUGMSG, UT_return_val_if_fail, and UT_UCS4_isdigit.
Referenced by IE_Imp_RTF::HandleListLevel().
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
UT_uint32 RTF_msword97_level::m_sPreviousLevel = 0 [static] |
Referenced by buildAbiListProperties().
Referenced by buildAbiListProperties(), and IE_Imp_RTF::HandleListLevel().
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), ParseLevelText(), and RTF_msword97_level().
Referenced by IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
Referenced by buildAbiListProperties(), ParseLevelText(), and RTF_msword97_level().
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
Referenced by RTF_msword97_listOverride::getBgColourNumber(), RTF_msword97_listOverride::getBold(), RTF_msword97_listOverride::getColourNumber(), RTF_msword97_listOverride::getDeleted(), RTF_msword97_listOverride::getFontNumber(), RTF_msword97_listOverride::getFontSize(), RTF_msword97_listOverride::getHasBgColour(), RTF_msword97_listOverride::getHasColour(), RTF_msword97_listOverride::getItalic(), RTF_msword97_listOverride::getStrikeout(), RTF_msword97_listOverride::getSubscript(), RTF_msword97_listOverride::getSubscriptPos(), RTF_msword97_listOverride::getSuperscript(), RTF_msword97_listOverride::getSuperscriptPos(), RTF_msword97_listOverride::getUnderline(), IE_Imp_RTF::HandleListLevel(), RTF_msword97_level(), and ~RTF_msword97_level().
Referenced by IE_Imp_RTF::HandleListLevel(), RTF_msword97_listOverride::isBgColourNumberChanged(), RTF_msword97_listOverride::isBoldChanged(), RTF_msword97_listOverride::isColourNumberChanged(), RTF_msword97_listOverride::isDeletedChanged(), RTF_msword97_listOverride::isFontNumberChanged(), RTF_msword97_listOverride::isFontSizeChanged(), RTF_msword97_listOverride::isHasBgColourChanged(), RTF_msword97_listOverride::isHasColourChanged(), RTF_msword97_listOverride::isItalicChanged(), RTF_msword97_listOverride::isStrikeoutChanged(), RTF_msword97_listOverride::isSubscriptChanged(), RTF_msword97_listOverride::isSubscriptPosChanged(), RTF_msword97_listOverride::isSuperscriptChanged(), RTF_msword97_listOverride::isSuperscriptPosChanged(), RTF_msword97_listOverride::isUnderlineChanged(), RTF_msword97_level(), and ~RTF_msword97_level().
UT_uint32 RTF_msword97_level::m_localLevel [private] |
Referenced by buildAbiListProperties(), and RTF_msword97_level().
Referenced by buildAbiListProperties(), and RTF_msword97_level().
1.5.5