From 0a2ff428ac974b0e30664a6fd496e8f2ab5087b9 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 14 Jun 2001 17:11:18 +0000 Subject: [PATCH] DrawDoc style support svn: r126 --- src/FindDoc.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/FindDoc.py b/src/FindDoc.py index f0412739d..1c57bac31 100644 --- a/src/FindDoc.py +++ b/src/FindDoc.py @@ -152,10 +152,7 @@ def get_draw_doc_menu(main_menu,callback,obj=None): index = 0 myMenu = gtk.GtkMenu() - for item in _textdoc: - if tables and item[1] == 0: - continue - name = item[0] + for name in _drawdoc: menuitem = gtk.GtkMenuItem(name) menuitem.set_data("name",name) menuitem.set_data("obj",obj) @@ -195,9 +192,9 @@ def make_text_doc(styles,name,paper,orien,template): # # #------------------------------------------------------------------------- -def make_draw_doc(name,paper,orien): +def make_draw_doc(styles,name,paper,orien): if name == _OpenOffice: - return OpenDrawDoc.OpenDrawDoc(paper,orien) + return OpenDrawDoc.OpenDrawDoc(styles,paper,orien) else: - return PdfDrawDoc.PdfDrawDoc(paper,orien) + return PdfDrawDoc.PdfDrawDoc(styles,paper,orien)