* src/docgen/OpenOfficeDoc.py (_write_styles_file): Switch paragraph

alignment to "start" and "end" (was "left and "right").
* src/plugins/AncestorReport.py: Change prefixed style name ("AHN-").
Needed because HTML gets confised by ":" in the class name.
* src/plugins/Ancestors.py: Likewise ("AR-").
* src/plugins/DescendReport.py: Likewise ("DR-").
* src/plugins/DetAncestralReport.py: Likewise ("DAR-").
* src/plugins/DetDescendantReport.py: Likewise ("DDR-").
* src/plugins/FtmStyleAncestors.py: Likewise ("FTA-").
* src/plugins/FtmStyleDescendants.py: Likewise ("FTD-").
* src/plugins/FamilyGroup.py: Likewise ("FGR-").
* src/plugins/CustomBookText.py: Likewise ("CBT-").
* src/plugins/SimpleBookTitle.py: Likewise ("SBT-").
* src/plugins/IndivSummary.py: Likewise ("IVS-").
* src/plugins/IndivComplete.py: Likewise ("IDS-").


svn: r1903
This commit is contained in:
Alex Roitman
2003-07-18 13:43:13 +00:00
parent 0d4fd430b2
commit 5ee6d863e0
14 changed files with 308 additions and 296 deletions

View File

@@ -79,7 +79,7 @@ class AncestorReport(Report.Report):
self.filter(self.start,1)
name = self.start.getPrimaryName().getRegularName()
self.doc.start_paragraph("AHN:Title")
self.doc.start_paragraph("AHN-Title")
title = _("Ahnentafel Report for %s") % name
self.doc.write_text(title)
self.doc.end_paragraph()
@@ -92,13 +92,13 @@ class AncestorReport(Report.Report):
if generation == 0 or key >= ( 1 << 30):
if self.pgbrk and generation > 0:
self.doc.page_break()
self.doc.start_paragraph("AHN:Generation")
self.doc.start_paragraph("AHN-Generation")
t = _("%s Generation") % AncestorReport.gen[generation+1]
self.doc.write_text(t)
self.doc.end_paragraph()
generation = generation + 1
self.doc.start_paragraph("AHN:Entry","%s." % str(key))
self.doc.start_paragraph("AHN-Entry","%s." % str(key))
person = self.map[key]
name = person.getPrimaryName().getRegularName()
@@ -391,7 +391,7 @@ def _make_default_style(default_style):
para.set_header_level(1)
para.set(pad=0.5)
para.set_description(_('The style used for the title of the page.'))
default_style.add_style("AHN:Title",para)
default_style.add_style("AHN-Title",para)
font = TextDoc.FontStyle()
font.set(face=TextDoc.FONT_SANS_SERIF,size=14,italic=1)
@@ -400,12 +400,12 @@ def _make_default_style(default_style):
para.set_header_level(2)
para.set(pad=0.5)
para.set_description(_('The style used for the generation header.'))
default_style.add_style("AHN:Generation",para)
default_style.add_style("AHN-Generation",para)
para = TextDoc.ParagraphStyle()
para.set(first_indent=-1.0,lmargin=1.0,pad=0.25)
para.set_description(_('The basic style used for the text display.'))
default_style.add_style("AHN:Entry",para)
default_style.add_style("AHN-Entry",para)
#------------------------------------------------------------------------
#