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/docco/stylesheet.py
4
#standard stylesheet for our manuals
5
from reportlab.lib.styles import StyleSheet1, ParagraphStyle
6
from reportlab.lib.enums import TA_CENTER, TA_LEFT, TA_RIGHT, TA_JUSTIFY
7
from reportlab.lib import colors
11
"""Returns a stylesheet object"""
12
stylesheet = StyleSheet1()
14
stylesheet.add(ParagraphStyle(name='Normal',
15
fontName='Times-Roman',
21
stylesheet.add(ParagraphStyle(name='Comment',
22
fontName='Times-Italic')
25
stylesheet.add(ParagraphStyle(name='Indent1',
30
stylesheet.add(ParagraphStyle(name='BodyText',
31
parent=stylesheet['Normal'],
34
stylesheet.add(ParagraphStyle(name='Italic',
35
parent=stylesheet['BodyText'],
36
fontName = 'Times-Italic')
39
stylesheet.add(ParagraphStyle(name='Heading1',
40
parent=stylesheet['Normal'],
41
fontName = 'Times-Bold',
48
stylesheet.add(ParagraphStyle(name='Heading2',
49
parent=stylesheet['Normal'],
50
fontName = 'Times-Bold',
57
stylesheet.add(ParagraphStyle(name='Heading3',
58
parent=stylesheet['Normal'],
59
fontName = 'Times-BoldItalic',
66
stylesheet.add(ParagraphStyle(name='Heading4',
67
parent=stylesheet['Normal'],
68
fontName = 'Times-BoldItalic',
73
stylesheet.add(ParagraphStyle(name='Title',
74
parent=stylesheet['Normal'],
75
fontName = 'Times-Bold',
83
stylesheet.add(ParagraphStyle(name='Bullet',
84
parent=stylesheet['Normal'],
89
bulletFontName='Symbol'),
92
stylesheet.add(ParagraphStyle(name='Definition',
93
parent=stylesheet['Normal'],
98
bulletFontName='Times-BoldItalic'),
101
stylesheet.add(ParagraphStyle(name='Code',
102
parent=stylesheet['Normal'],
104
textColor=colors.navy,
110
stylesheet.add(ParagraphStyle(name='FunctionHeader',
111
parent=stylesheet['Normal'],
112
fontName='Courier-Bold',
116
stylesheet.add(ParagraphStyle(name='DocString',
117
parent=stylesheet['Normal'],
123
stylesheet.add(ParagraphStyle(name='DocStringIndent',
124
parent=stylesheet['Normal'],
130
stylesheet.add(ParagraphStyle(name='URL',
131
parent=stylesheet['Normal'],
133
textColor=colors.navy,
134
alignment=TA_CENTER),
137
stylesheet.add(ParagraphStyle(name='Centred',
138
parent=stylesheet['Normal'],
142
stylesheet.add(ParagraphStyle(name='Caption',
143
parent=stylesheet['Centred'],
144
fontName='Times-Italic'
b'\\ No newline at end of file'