From e0fe3aa2a092b17a65cea9793a7cef4a7ec61a95 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 1 May 2003 23:35:27 +0000 Subject: [PATCH] Fixed title in count_anc.py, added superscript for TextDoc svn: r1485 --- src/TextDoc.py | 15 +++++++++++++++ src/docgen/PdfDoc.py | 8 ++++++++ src/plugins/count_anc.py | 2 +- 3 files changed, 24 insertions(+), 1 deletion(-) diff --git a/src/TextDoc.py b/src/TextDoc.py index 98b490dce..26557720a 100644 --- a/src/TextDoc.py +++ b/src/TextDoc.py @@ -1059,6 +1059,12 @@ class TextDoc: def end_bold(self): pass + def start_superscript(self): + pass + + def end_superscript(self): + pass + def start_listing(self,style_name): """ Starts a new listing block, using the specified style name. @@ -1129,3 +1135,12 @@ class TextDoc: text - text to write. """ pass + + def write_cmdstr(self,text): + """ + Writes the text in the current paragraph. Should only be used after a + start_paragraph and before an end_paragraph. + + text - text to write. + """ + pass diff --git a/src/docgen/PdfDoc.py b/src/docgen/PdfDoc.py index 7118d2d7c..92c34c5f7 100644 --- a/src/docgen/PdfDoc.py +++ b/src/docgen/PdfDoc.py @@ -177,6 +177,12 @@ class PdfDoc(TextDoc.TextDoc): def end_bold(self): self.text = self.text + '' + def start_superscript(self): + self.text = self.text + '' + + def end_superscript(self): + self.text = self.text + '' + def start_table(self,name,style_name): self.in_table = 1 self.cur_table = self.table_styles[style_name] @@ -280,6 +286,8 @@ class PdfDoc(TextDoc.TextDoc): text = text.replace('&','&'); # Must be first text = text.replace('<','<'); text = text.replace('>','>'); + text = text.replace('<super>',''); + text = text.replace('</super>',''); self.text = self.text + text.replace('\n','
'); #------------------------------------------------------------------------ diff --git a/src/plugins/count_anc.py b/src/plugins/count_anc.py index 7a7168725..41e3cb747 100644 --- a/src/plugins/count_anc.py +++ b/src/plugins/count_anc.py @@ -78,7 +78,7 @@ class CountAncestors: top = topDialog.get_widget("summary") textwindow = topDialog.get_widget("textwindow") - topDialog.get_widget("summaryTitle").set_text(title) + topDialog.get_widget("title").set_text(title) textwindow.get_buffer().set_text(text) top.show()