* src/docgen/ODFDoc.py (init): Correct name for parent style;
Use handling program name obtained from the mime system. svn: r5835
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2006-01-26 Brian Matherly <pez4brian@users.sourceforge.net>
|
||||||
|
* src/docgen/ODFDoc.py (init): Correct name for parent style;
|
||||||
|
Use handling program name obtained from the mime system.
|
||||||
|
|
||||||
2006-01-25 Serge Noiraud <Serge.Noiraud@free.fr>
|
2006-01-25 Serge Noiraud <Serge.Noiraud@free.fr>
|
||||||
* src/docgen/ODFDoc.py: Add new document generator.
|
* src/docgen/ODFDoc.py: Add new document generator.
|
||||||
* src/docgen/Makefile.am: Ship new file.
|
* src/docgen/Makefile.am: Ship new file.
|
||||||
|
@ -219,7 +219,7 @@ class ODFDoc(BaseDoc.BaseDoc):
|
|||||||
|
|
||||||
self.cntnt.write('<style:style style:name="NL%s" ' % style_name)
|
self.cntnt.write('<style:style style:name="NL%s" ' % style_name)
|
||||||
self.cntnt.write('style:family="paragraph" ')
|
self.cntnt.write('style:family="paragraph" ')
|
||||||
self.cntnt.write('style:parent-style-name="Standard" ')
|
self.cntnt.write('style:parent-style-name="%s">\n' % style_name)
|
||||||
self.cntnt.write('<style:paragraph-properties fo:break-before="page"/>\n')
|
self.cntnt.write('<style:paragraph-properties fo:break-before="page"/>\n')
|
||||||
self.cntnt.write('</style:style>\n')
|
self.cntnt.write('</style:style>\n')
|
||||||
|
|
||||||
@ -1136,7 +1136,8 @@ try:
|
|||||||
mtype = GrampsMime.get_description(_apptype)
|
mtype = GrampsMime.get_description(_apptype)
|
||||||
|
|
||||||
if Utils.search_for(mprog[0]):
|
if Utils.search_for(mprog[0]):
|
||||||
print_label = _("Open in Open Document Editor")
|
print_label = _("Open in %{program_name}s") % { 'program_name':
|
||||||
|
mprog[1]}
|
||||||
else:
|
else:
|
||||||
print_label = None
|
print_label = None
|
||||||
|
|
||||||
@ -1144,6 +1145,9 @@ try:
|
|||||||
PluginMgr.register_book_doc(mtype,ODFDoc,1,1,1,".odt")
|
PluginMgr.register_book_doc(mtype,ODFDoc,1,1,1,".odt")
|
||||||
PluginMgr.register_draw_doc(mtype,ODFDoc,1,1, ".odt",print_label);
|
PluginMgr.register_draw_doc(mtype,ODFDoc,1,1, ".odt",print_label);
|
||||||
except:
|
except:
|
||||||
PluginMgr.register_text_doc(_('Open Document Text'), OpenDocumentDoc,1,1,1,".odt", None)
|
PluginMgr.register_text_doc(_('Open Document Text'),
|
||||||
PluginMgr.register_book_doc(_("Open Document Text"), OpenDocumentDoc,1,1,1,".odt")
|
OpenDocumentDoc,1,1,1,".odt", None)
|
||||||
PluginMgr.register_draw_doc(_("Open Document Text"), OpenDocumentDoc,1,1,".odt",None);
|
PluginMgr.register_book_doc(_("Open Document Text"),
|
||||||
|
OpenDocumentDoc,1,1,1,".odt")
|
||||||
|
PluginMgr.register_draw_doc(_("Open Document Text"),
|
||||||
|
OpenDocumentDoc,1,1,".odt",None);
|
||||||
|
Reference in New Issue
Block a user