* 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user