1
#Copyright ReportLab Europe Ltd. 2000-2004
2
#see license.txt for license details
3
#history http://www.reportlab.co.uk/cgi-bin/viewcvs.cgi/public/reportlab/trunk/reportlab/tools/pythonpoint/styles/horrible.py
4
__version__=''' $Id$ '''
6
__doc__="""This is an example style sheet. You can create your own, and
7
have them loaded by the presentation. A style sheet is just a
8
dictionary, where they keys are style names and the values are
9
ParagraphStyle objects.
11
You must provide a function called "getParagraphStyles()" to
12
return it. In future, we can put things like LineStyles,
13
TableCellStyles etc. in the same modules.
15
You might wish to have two parallel style sheets, one for colour
16
and one for black and white, so you can switch your presentations
19
A style sheet MUST define a style called 'Normal'.
22
from reportlab.lib import styles, enums
23
def getParagraphStyles():
24
"""Returns a dictionary of styles based on Helvetica"""
27
para = styles.ParagraphStyle('Normal', None) #the ancestor of all
28
para.fontName = 'Courier'
31
stylesheet['Normal'] = para
33
para = ParagraphStyle('BodyText', stylesheet['Normal'])
35
stylesheet['BodyText'] = para
37
para = ParagraphStyle('BigCentered', stylesheet['Normal'])
39
para.alignment = enums.TA_CENTER
40
stylesheet['BigCentered'] = para
42
para = ParagraphStyle('Italic', stylesheet['BodyText'])
43
para.fontName = 'Courier-Oblique'
44
stylesheet['Italic'] = para
46
para = ParagraphStyle('Title', stylesheet['Normal'])
47
para.fontName = 'Courier'
51
para.alignment = enums.TA_CENTER
52
stylesheet['Title'] = para
54
para = ParagraphStyle('Heading1', stylesheet['Normal'])
55
para.fontName = 'Courier-Bold'
59
para.alignment = enums.TA_CENTER
60
stylesheet['Heading1'] = para
62
para = ParagraphStyle('Heading2', stylesheet['Normal'])
63
para.fontName = 'Courier-Bold'
68
stylesheet['Heading2'] = para
70
para = ParagraphStyle('Heading3', stylesheet['Normal'])
71
para.fontName = 'Courier-BoldOblique'
74
stylesheet['Heading3'] = para
76
para = ParagraphStyle('Bullet', stylesheet['Normal'])
77
para.firstLineIndent = -18
80
#para.bulletFontName = 'Symbol'
81
para.bulletFontSize = 24
82
para.bulletIndent = 36
83
stylesheet['Bullet'] = para
85
para = ParagraphStyle('Definition', stylesheet['Normal'])
86
#use this for definition lists
87
para.firstLineIndent = 0
91
para.bulletFontName = 'Couruer-BoldOblique'
92
stylesheet['Definition'] = para
94
para = ParagraphStyle('Code', stylesheet['Normal'])
95
para.fontName = 'Courier'
99
stylesheet['Code'] = para
b'\\ No newline at end of file'