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

@@ -572,6 +572,7 @@ class ParagraphStyle:
self.pad = source.pad
self.bgcolor = source.bgcolor
self.description = source.description
self.tabs = source.tabs
else:
self.font = FontStyle()
self.rmargin = 0
@@ -588,6 +589,7 @@ class ParagraphStyle:
self.pad = 0
self.bgcolor = (255, 255, 255)
self.description = ""
self.tabs = []
def set_description(self, text):
"""
@@ -822,6 +824,13 @@ class ParagraphStyle:
"returns the space below paragraph in centimeters"
return self.bmargin
def set_tabs(self, tab_stops):
assert(type(tab_stops) == type([]))
self.tabs = tab_stops
def get_tabs(self):
return self.tabs
#------------------------------------------------------------------------
#
# StyleSheetList