Paragraph editor enhancements - styles have descriptions

svn: r1332
This commit is contained in:
Don Allingham
2003-03-08 05:03:18 +00:00
parent e6392837cf
commit f51271f0be
8 changed files with 360 additions and 183 deletions

View File

@@ -958,90 +958,108 @@ class WebReportDialog(Report.ReportDialog):
font.set(bold=1, face=TextDoc.FONT_SANS_SERIF, size=16)
p = TextDoc.ParagraphStyle()
p.set(align=TextDoc.PARA_ALIGN_CENTER,font=font)
p.set_description(_("The style used for the title of the page."))
self.default_style.add_style("Title",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font,bborder=1)
p.set_description(_("The style used for the header that identifies "
"facts and events."))
self.default_style.add_style("EventsTitle",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font,bborder=1)
p.set_description(_("The style used for the header for the notes section."))
self.default_style.add_style("NotesTitle",p)
font = TextDoc.FontStyle()
font.set(face=TextDoc.FONT_SANS_SERIF,size=10)
p = TextDoc.ParagraphStyle()
p.set(font=font,align=TextDoc.PARA_ALIGN_CENTER)
p.set_description(_("The style used for the copyright notice."))
self.default_style.add_style("Copyright",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font,bborder=1)
p.set_description(_("The style used for the header for the sources section."))
self.default_style.add_style("SourcesTitle",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=14,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font)
p.set_description(_("The style used on the index page that labels each section."))
self.default_style.add_style("IndexLabel",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font,bborder=1)
p.set_description(_("The style used for the header for the image section."))
self.default_style.add_style("GalleryTitle",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set(font=font,bborder=1)
p.set_description(_("The style used for the header for the marriages "
"and children section."))
self.default_style.add_style("FamilyTitle",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the spouse's name."))
self.default_style.add_style("Spouse",p)
font = TextDoc.FontStyle()
font.set(size=12,italic=1)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the general data labels."))
self.default_style.add_style("Label",p)
font = TextDoc.FontStyle()
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the general data."))
self.default_style.add_style("Data",p)
font = TextDoc.FontStyle()
font.set(bold=1,face=TextDoc.FONT_SANS_SERIF,size=12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the description of images."))
self.default_style.add_style("PhotoDescription",p)
font = TextDoc.FontStyle()
font.set(size=12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the notes associated with images."))
self.default_style.add_style("PhotoNote",p)
font = TextDoc.FontStyle()
font.set_size(10)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the source information."))
self.default_style.add_style("SourceParagraph",p)
font = TextDoc.FontStyle()
font.set_size(12)
p = TextDoc.ParagraphStyle()
p.set_font(font)
p.set_description(_("The style used for the note information."))
self.default_style.add_style("NotesParagraph",p)
#------------------------------------------------------------------------