#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 std::string &szLevelText, const std::string &szLevelNumbers, UT_uint32 iLevel) |
Public Attributes | |
UT_sint32 | m_levelStartAt |
UT_uint32 | m_AbiLevelID |
UT_uint32 | m_RTFListType |
std::string | m_listDelim |
char | m_cLevelFollow |
bool | m_bStartNewList |
bool | m_bRestart |
std::unique_ptr < RTFProps_ParaProps > | m_pParaProps |
std::unique_ptr < RTFProps_CharProps > | m_pCharProps |
std::unique_ptr < RTFProps_bParaProps > | m_pbParaProps |
std::unique_ptr < 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 | |||
) |
RTF_msword97_level::~RTF_msword97_level | ( | void | ) |
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 DIM_IN, IE_Imp::getDoc(), PD_Document::getUID(), fl_AutoLists::getXmlList(), IMPLIES_LIST, UT_UniqueId::List, m_AbiLevelID, m_bRestart, m_bStartNewList, m_levelStartAt, m_listDelim, m_localLevel, m_pbParaProps, RTF_msword97_list::m_pie_rtf, m_pMSWord97_list, m_pParaProps, RTF_msword97_list::m_RTF_level, m_RTFListType, m_sPreviousLevel, UT_convertInchesToDimensionString(), and UT_std_string_sprintf().
Referenced by RTF_msword97_listOverride::buildAbiListProperties().
bool RTF_msword97_level::ParseLevelText | ( | const std::string & | szLevelText, | |
const std::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 m_bStartNewList, m_listDelim, 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().
Referenced by buildAbiListProperties(), ParseLevelText(), and RTF_msword97_level().
Referenced by IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), and RTF_msword97_level().
std::string RTF_msword97_level::m_listDelim |
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), ParseLevelText(), and RTF_msword97_level().
UT_uint32 RTF_msword97_level::m_localLevel [private] |
Referenced by buildAbiListProperties(), and RTF_msword97_level().
std::unique_ptr<RTFProps_bCharProps> RTF_msword97_level::m_pbCharProps |
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(), and RTF_msword97_listOverride::isUnderlineChanged().
std::unique_ptr<RTFProps_bParaProps> RTF_msword97_level::m_pbParaProps |
Referenced by buildAbiListProperties(), IE_Imp_RTF::HandleListLevel(), and RTF_msword97_listOverride::isTab().
std::unique_ptr<RTFProps_CharProps> RTF_msword97_level::m_pCharProps |
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(), and IE_Imp_RTF::HandleListLevel().
Referenced by buildAbiListProperties(), and RTF_msword97_level().
std::unique_ptr<RTFProps_ParaProps> RTF_msword97_level::m_pParaProps |
Referenced by buildAbiListProperties(), and IE_Imp_RTF::HandleListLevel().
UT_uint32 RTF_msword97_level::m_sPreviousLevel = 0 [static] |
Referenced by buildAbiListProperties().