File: Synopsis/Formatters/HTML/Parts/Heading.py 1
2
3
4
5
6
7
8
9from Synopsis.Processor import Parameter
10from Synopsis.Formatters.HTML.Part import Part
11from Synopsis.Formatters.HTML.Fragments import *
12from Synopsis.Formatters.HTML.Tags import *
13
14class Heading(Part):
15 """Heading view part. Displays a header for the view -- its strategies are
16 only passed the object that the view is for; ie a Class or Module"""
17
18 fragments = Parameter([HeadingFormatter(),
19 DetailCommenter(),
20 TemplateSpecializations(),
21 ClassHierarchyGraph()],
22 '')
23
24 def write_section_item(self, text):
25 """Writes text and follows with a horizontal rule"""
26
27 self.write(text + '\n')
28
29 def process(self, decl):
30 """Process this Part by formatting only the given decl"""
31
32 self.write_start()
33 decl.accept(self)
34 self.write_end()
35
36
Generated on Tue Jul 20 09:07:15 2010 by
synopsis (version devel)