* src/plugins/AncestorChart.py: Change from TextDoc and DrawDoc to
BaseDoc. Enable Book item functionality. * src/plugins/SimpleBookTitle.py: Change from TextDoc to BaseDoc. * src/plugins/BookReport.py: Likewise. * src/plugins/FtmStyleDescendants.py: Likewise. svn: r2049
This commit is contained in:
@@ -32,7 +32,7 @@ import cStringIO
|
||||
#
|
||||
#------------------------------------------------------------------------
|
||||
import Report
|
||||
import TextDoc
|
||||
import BaseDoc
|
||||
import RelLib
|
||||
import Errors
|
||||
from QuestionDialog import ErrorDialog
|
||||
@@ -87,23 +87,23 @@ class SimpleBookTitle(Report.Report):
|
||||
|
||||
def _make_default_style(default_style):
|
||||
"""Make the default output style for the Simple Boot Title report."""
|
||||
font = TextDoc.FontStyle()
|
||||
font.set(face=TextDoc.FONT_SANS_SERIF,size=16,bold=1,italic=1)
|
||||
para = TextDoc.ParagraphStyle()
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=16,bold=1,italic=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_header_level(1)
|
||||
para.set_alignment(TextDoc.PARA_ALIGN_CENTER)
|
||||
para.set_alignment(BaseDoc.PARA_ALIGN_CENTER)
|
||||
para.set(pad=0.5)
|
||||
para.set_description(_('The style used for the title of the page.'))
|
||||
default_style.add_style("SBT-Title",para)
|
||||
|
||||
font = TextDoc.FontStyle()
|
||||
font.set(face=TextDoc.FONT_SANS_SERIF,size=14,italic=1)
|
||||
para = TextDoc.ParagraphStyle()
|
||||
font = BaseDoc.FontStyle()
|
||||
font.set(face=BaseDoc.FONT_SANS_SERIF,size=14,italic=1)
|
||||
para = BaseDoc.ParagraphStyle()
|
||||
para.set_font(font)
|
||||
para.set_header_level(2)
|
||||
para.set(pad=0.5)
|
||||
para.set_alignment(TextDoc.PARA_ALIGN_CENTER)
|
||||
para.set_alignment(BaseDoc.PARA_ALIGN_CENTER)
|
||||
para.set_description(_('The style used for the subtitle.'))
|
||||
default_style.add_style("SBT-Subtitle",para)
|
||||
|
||||
@@ -364,4 +364,3 @@ register_book_item(
|
||||
_style_file,
|
||||
_make_default_style
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user