add Table of Contents marks

svn: r6855
This commit is contained in:
Brian Matherly
2006-06-04 04:26:28 +00:00
parent 97cec77029
commit 5b88e0a716
10 changed files with 48 additions and 16 deletions

View File

@@ -738,9 +738,11 @@ class OpenOfficeDoc(BaseDoc.BaseDoc):
key = key.replace('"','"')
if mark.type == BaseDoc.INDEX_TYPE_ALP:
self.cntnt.write('<text:alphabetical-index-mark ')
self.cntnt.write('text:string-value="%s" />' % key)
elif mark.type == BaseDoc.INDEX_TYPE_TOC:
self.cntnt.write('<text:toc-mark ')
self.cntnt.write('text:string-value="%s" />' % key)
self.cntnt.write('text:string-value="%s" ' % key)
self.cntnt.write('text:outline-level="%d" />' % mark.level)
self.cntnt.write(escape(text,_esc_map))
def _write_manifest(self):