* src/docgen/ODFDoc.py: Add "open with" option for book reports

* src/docgen/OpenOfficeDoc.py: Add "open with" option for book reports
* src/plugins/BookReport.py: Add "open with" option for book reports
* src/PluginUtils/_PluginMgr.py: Add "open with" option for book reports

svn: r7976
This commit is contained in:
Brian Matherly
2007-01-25 03:22:46 +00:00
parent 0cebd61da3
commit c6c5c8be50
5 changed files with 16 additions and 4 deletions

View File

@@ -414,6 +414,7 @@ class ODFDoc(BaseDoc.BaseDoc):
self._write_meta_file()
self._write_mimetype_file()
self._write_zip()
print self.print_req
if self.print_req:
app = Mime.get_application(_apptype)
Utils.launch(app[0],self.filename)
@@ -1185,5 +1186,5 @@ except:
print_label = None
register_text_doc(_('Open Document Text'), ODFDoc, 1, 1, 1, ".odt", print_label)
register_book_doc(_("Open Document Text"), ODFDoc, 1, 1, 1, ".odt")
register_book_doc(_("Open Document Text"), ODFDoc, 1, 1, 1, ".odt", print_label)
register_draw_doc(_("Open Document Text"), ODFDoc, 1, 1, ".odt", print_label);