Reports handle file extensions and check for existing file.

svn: r1462
This commit is contained in:
Don Allingham
2003-04-18 04:15:42 +00:00
parent d502310c3c
commit a67cd53b35
19 changed files with 288 additions and 129 deletions

View File

@@ -163,6 +163,7 @@ class AncestorChart:
g.set_width(self.box_width)
g.set_paragraph_style("Normal")
g.set_shadow(1)
g.set_fill_color((255,255,255))
self.doc.add_draw_style("box",g)
g = DrawDoc.GraphicsStyle()

View File

@@ -315,6 +315,10 @@ class TimeLineDialog(Report.DrawReportDialog):
return "%s - %s - GRAMPS" % (_("Timeline"),
_("Graphical Reports"))
def get_stylesheet_savefile(self):
"""Where to save user defined styles for this report."""
return "timeline.xml"
def get_target_browser_title(self):
"""The title of the window created when the 'browse' button is
clicked in the 'Save As' frame."""

View File

@@ -36,7 +36,6 @@ import re
#
#-------------------------------------------------------------------------
import gtk
import gnome.ui
import gtk.glade
#-------------------------------------------------------------------------