Here is the little patch to change the rtf importer and exporter to use
"\ol" as the overline tag. Thanks Peter for pointing out that this is the
best way to implement a new rtf tag.
Martin Sevior
diff -Naur src/wp/impexp/xp/ie_exp_RTF_listenerWriteDoc.cpp
src-new/wp/impexp/xp/ie_exp_RTF_listenerWriteDoc.cpp
--- src/wp/impexp/xp/ie_exp_RTF_listenerWriteDoc.cpp Sat Jan 22 22:48:23 2000
+++ src-new/wp/impexp/xp/ie_exp_RTF_listenerWriteDoc.cpp Sat Jan 22 22:57:59
+2000
@@ -111,7 +111,7 @@
if (strstr(szFontDecoration,"underline") != 0)
m_pie->_rtf_keyword("ul");
if (strstr(szFontDecoration,"overline") != 0)
- m_pie->_rtf_keyword("*\\ol");
+ m_pie->_rtf_keyword("ol");
if (strstr(szFontDecoration,"line-through") != 0)
m_pie->_rtf_keyword("strike");
}
diff -Naur src/wp/impexp/xp/ie_imp_RTF.cpp src-new/wp/impexp/xp/ie_imp_RTF.cpp
--- src/wp/impexp/xp/ie_imp_RTF.cpp Sat Jan 22 22:48:23 2000
+++ src-new/wp/impexp/xp/ie_imp_RTF.cpp Sun Jan 23 19:48:37 2000
@@ -758,6 +758,12 @@
m_currentRTFState.m_paraProps.m_indentLeft = param;
}
break;
+ case 'o':
+ if (strcmp((char*)pKeyword,"ol") == 0)
+ {
+ return HandleOverline(fParam ? param : 1);
+ }
+ break;
case 'p':
if (strcmp((char*)pKeyword, "par") == 0)
{