0003796: Make export available when no GUI available. Patch from jmodule (Jakim Friant).
svn: r15294
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||
# Copyright (C) 2007-2009 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -44,7 +45,9 @@ from gen.plug.menu import BooleanOption, NumberOption, PersonOption, \
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, INDEX_TYPE_TOC,
|
||||
PARA_ALIGN_CENTER)
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
import TransUtils
|
||||
from libnarrate import Narrator
|
||||
from libtranslate import Translator, get_language_string
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||
# Copyright (C) 2008-2009 Brian G. Matherly
|
||||
# Copyright (C) 2009 Rob G. Healey <robhealey1@gmail.com>
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -45,7 +46,9 @@ from gen.plug.docgen import (FontStyle, ParagraphStyle, GraphicsStyle,
|
||||
from gen.plug.menu import (BooleanOption, StringOption, NumberOption,
|
||||
EnumeratedListOption, FilterOption, PersonOption)
|
||||
from gui.utils import ProgressMeter
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from Utils import probably_alive
|
||||
import GrampsLocale
|
||||
from DateHandler import displayer as _dd
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#
|
||||
# Copyright (C) 2003-2006 Donald N. Allingham
|
||||
# Copyright (C) 2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -42,7 +43,8 @@ from gen.ggettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug.menu import TextOption
|
||||
from ReportBase import Report, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (FontStyle, ParagraphStyle, FONT_SANS_SERIF,
|
||||
PARA_ALIGN_CENTER)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2009 Gary Burton
|
||||
# Copyright (C) 2010 Craig J. Anderson
|
||||
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -45,7 +45,9 @@ from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
from gen.plug.menu import NumberOption, PersonOption, BooleanOption, EnumeratedListOption
|
||||
from gen.display.name import displayer as _nd
|
||||
from Errors import ReportError
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
import DateHandler
|
||||
import Sort
|
||||
from gen.utils import get_birth_or_fallback, get_death_or_fallback
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
# Copyright (C) 2007-2009 Brian G. Matherly
|
||||
# Copyright (C) 2008 James Friedmann <jfriedmannj@gmail.com>
|
||||
# Copyright (C) 2009 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -45,8 +46,11 @@ from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, FONT_SERIF,
|
||||
INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
from gen.plug.menu import BooleanOption, NumberOption, PersonOption
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions,
|
||||
Bibliography, Endnotes)
|
||||
from gen.plug.report import ( Report, Bibliography )
|
||||
from gen.plug.report import endnotes
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
|
||||
import DateHandler
|
||||
|
||||
from libnarrate import Narrator
|
||||
@@ -200,7 +204,7 @@ class DetAncestorReport(Report):
|
||||
if self.inc_events:
|
||||
self.write_family_events(family)
|
||||
if self.inc_sources:
|
||||
Endnotes.write_endnotes(self.bibli, self.database, self.doc,
|
||||
endnotes.write_endnotes(self.bibli, self.database, self.doc,
|
||||
printnotes=self.inc_srcnotes)
|
||||
|
||||
def write_person(self, key):
|
||||
@@ -638,7 +642,7 @@ class DetAncestorReport(Report):
|
||||
if not obj or not self.inc_sources:
|
||||
return ""
|
||||
|
||||
txt = Endnotes.cite_source(self.bibli, obj)
|
||||
txt = endnotes.cite_source(self.bibli, obj)
|
||||
if txt:
|
||||
txt = '<super>' + txt + '</super>'
|
||||
return txt
|
||||
@@ -837,4 +841,4 @@ class DetAncestorOptions(MenuReportOptions):
|
||||
para.set_description(_('The style used for additional detail data.'))
|
||||
default_style.add_paragraph_style("DAR-MoreDetails",para)
|
||||
|
||||
Endnotes.add_endnote_styles(default_style)
|
||||
endnotes.add_endnote_styles(default_style)
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
# Copyright (C) 2007 Robert Cawley <rjc@cawley.id.au>
|
||||
# Copyright (C) 2008-2009 James Friedmann <jfriedmannj@gmail.com>
|
||||
# Copyright (C) 2009 Benny Malengier <benny.malengier@gramps-project.org>
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -47,8 +48,11 @@ from gen.plug.menu import (BooleanOption, NumberOption, PersonOption,
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, FONT_SERIF,
|
||||
INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
from ReportBase import (Report, ReportUtils, MenuReportOptions,
|
||||
Bibliography, Endnotes)
|
||||
from gen.plug.report import (Report, Bibliography)
|
||||
from gen.plug.report import endnotes
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
|
||||
import DateHandler
|
||||
|
||||
from libnarrate import Narrator
|
||||
@@ -273,7 +277,7 @@ class DetDescendantReport(Report):
|
||||
self.write_person(key)
|
||||
|
||||
if self.inc_sources:
|
||||
Endnotes.write_endnotes(self.bibli, self.database, self.doc,
|
||||
endnotes.write_endnotes(self.bibli, self.database, self.doc,
|
||||
printnotes=self.inc_srcnotes)
|
||||
|
||||
def write_path(self, person):
|
||||
@@ -718,7 +722,7 @@ class DetDescendantReport(Report):
|
||||
if not obj or not self.inc_sources:
|
||||
return ""
|
||||
|
||||
txt = Endnotes.cite_source(self.bibli, obj)
|
||||
txt = endnotes.cite_source(self.bibli, obj)
|
||||
if txt:
|
||||
txt = '<super>' + txt + '</super>'
|
||||
return txt
|
||||
@@ -947,4 +951,4 @@ class DetDescendantOptions(MenuReportOptions):
|
||||
para.set_description(_('The style used for additional detail data.'))
|
||||
default_style.add_paragraph_style("DDR-MoreDetails", para)
|
||||
|
||||
Endnotes.add_endnote_styles(default_style)
|
||||
endnotes.add_endnote_styles(default_style)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -40,7 +41,9 @@ from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle, TableStyle,
|
||||
TableCellStyle, FONT_SANS_SERIF, INDEX_TYPE_TOC,
|
||||
PARA_ALIGN_CENTER)
|
||||
from gen.plug.menu import PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
import DateHandler
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -30,7 +31,9 @@
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from gen.plug.menu import BooleanOption, FamilyOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle, TableStyle,
|
||||
TableCellStyle, FONT_SANS_SERIF, FONT_SERIF,
|
||||
INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2009 Nick Hall
|
||||
# Copyright (C) 2009 Benny Malengier
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -44,8 +45,11 @@ from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle, TableStyle,
|
||||
import DateHandler
|
||||
from gen.plug.menu import BooleanOption, FilterOption, PersonOption, \
|
||||
BooleanListOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from ReportBase import Bibliography, Endnotes
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.report import Bibliography
|
||||
from gen.plug.report import endnotes as Endnotes
|
||||
from gen.display.name import displayer as _nd
|
||||
from Utils import media_path_full
|
||||
from QuestionDialog import WarningDialog
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2009 Gary Burton
|
||||
# Contribution 2009 by Reinhard Mueller <reinhard.mueller@bytewise.at>
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -42,7 +43,9 @@ import Relationship
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
from gen.plug.menu import NumberOption, BooleanOption, PersonOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
import DateHandler
|
||||
from gen.utils import get_birth_or_fallback, get_death_or_fallback
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# Copyright (C) 2007-2008 Brian G. Matherly
|
||||
# Copyright (C) 2009 Gary Burton
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -36,7 +37,9 @@ from gen.ggettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug.menu import EnumeratedListOption
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
TableStyle, TableCellStyle, FONT_SANS_SERIF,
|
||||
INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
# Copyright (C) 2004-2006 Donald Allingham
|
||||
# Copyright (C) 2007 Johan Gonqvist <johan.gronqvist@gmail.com>
|
||||
# Copyright (C) 2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -46,7 +47,9 @@ from gen.plug.menu import PersonOption
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, PARA_ALIGN_CENTER,
|
||||
INDEX_TYPE_TOC)
|
||||
from ReportBase import Report, MenuReportOptions, ReportUtils
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2008 Gary Burton
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -35,7 +36,8 @@ from gen.ggettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug.menu import FilterOption, PlaceListOption
|
||||
from ReportBase import Report, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle, TableStyle,
|
||||
TableCellStyle, FONT_SANS_SERIF, FONT_SERIF,
|
||||
INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#
|
||||
# Copyright (C) 2003-2006 Donald N. Allingham
|
||||
# Copyright (C) 2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -35,7 +36,8 @@ from gen.ggettext import sgettext as _
|
||||
#------------------------------------------------------------------------
|
||||
from gen.plug.menu import StringOption, MediaOption, NumberOption
|
||||
from Utils import media_path_full
|
||||
from ReportBase import Report, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, PARA_ALIGN_CENTER)
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#
|
||||
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||
# Copyright (C) 2008 Brian G. Matherly
|
||||
# Copyright (C) 2010 Jakim Friant
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@@ -39,7 +40,9 @@ from gen.ggettext import gettext as _
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import gen.lib
|
||||
from ReportBase import Report, ReportUtils, MenuReportOptions
|
||||
from gen.plug.report import Report
|
||||
from gen.plug.report import utils as ReportUtils
|
||||
from gui.plug.report import MenuReportOptions
|
||||
from gen.plug.docgen import (IndexMark, FontStyle, ParagraphStyle,
|
||||
FONT_SANS_SERIF, INDEX_TYPE_TOC, PARA_ALIGN_CENTER)
|
||||
from Utils import media_path_full
|
||||
|
||||
Reference in New Issue
Block a user