2007-05-07 Don Allingham <don@gramps-project.org>

* src/ReportBase/_SimpleDoc.py: add support for tabs
	* src/BaseDoc.py: add support for tabs	
	* src/docgen/TextBufDoc.py: add support for tabs



svn: r8443
This commit is contained in:
Don Allingham
2007-05-08 02:56:33 +00:00
parent c5916814e8
commit 87764d64c0
4 changed files with 29 additions and 1 deletions

View File

@@ -85,6 +85,7 @@ def make_basic_stylesheet():
fstyle.set_bold(True)
pstyle.set_font(fstyle)
pstyle.set_alignment(BaseDoc.PARA_ALIGN_LEFT)
pstyle.set_tabs([4, 8, 12, 16])
sheet.add_paragraph_style('Header1', pstyle)
pstyle = BaseDoc.ParagraphStyle()
@@ -94,6 +95,7 @@ def make_basic_stylesheet():
fstyle.set_bold(True)
pstyle.set_font(fstyle)
pstyle.set_alignment(BaseDoc.PARA_ALIGN_LEFT)
pstyle.set_tabs([4, 8, 12, 16])
sheet.add_paragraph_style('Header2', pstyle)
pstyle = BaseDoc.ParagraphStyle()
@@ -104,7 +106,10 @@ def make_basic_stylesheet():
fstyle.set_italic(True)
pstyle.set_font(fstyle)
pstyle.set_alignment(BaseDoc.PARA_ALIGN_LEFT)
pstyle.set_tabs([4, 8, 12, 16])
sheet.add_paragraph_style('Header3', pstyle)
sheet.add_paragraph_style('Normal', BaseDoc.ParagraphStyle())
pstyle = BaseDoc.ParagraphStyle()
pstyle.set_tabs([4, 8, 12, 16])
sheet.add_paragraph_style('Normal', pstyle)
return sheet