* src/BaseDoc.py: Scaleable shadow

* src/plugins/AncestorChart2.py: Scale to page implemented
* src/docgen/PdfDoc.py: Scalable shadow


svn: r2609
This commit is contained in:
Don Allingham
2004-01-08 18:09:18 +00:00
parent 3736aa58ef
commit b56cdceddf
3 changed files with 32 additions and 11 deletions

View File

@ -413,10 +413,11 @@ class PdfDoc(BaseDoc.BaseDoc):
w = box_style.get_width()*cm
h = box_style.get_height()*cm
sspace = box_style.get_shadow_space()
if box_style.get_shadow():
col = make_color((0xc0,0xc0,0xc0))
r = reportlab.graphics.shapes.Rect((x+0.2)*cm,
(y-0.2)*cm-h,
r = reportlab.graphics.shapes.Rect((x+sspace)*cm,
(y-sspace)*cm-h,
w,h,
fillColor=col,
strokeColor=col)
@ -433,7 +434,7 @@ class PdfDoc(BaseDoc.BaseDoc):
size = p.get_font().get_size()
x = x + 0.2
x = x + sspace
if text != "":
lines = text.split('\n')
self.left_print(lines,p.get_font(),x*cm,y*cm - size)