Home | History | Annotate | Download | only in python2.7

Lines Matching full:writer

4 specific output events on writer objects. Formatters manage several stack
5 structures to allow various properties of a writer object to be changed and
7 of ``change back'' operation. Specific writer properties which may be
10 arbitrary, non-exclusive style settings to a writer as well. Additional
14 Writer objects encapsulate device interfaces. Abstract devices, such as
30 If the writer parameter is omitted, a NullWriter instance is created.
31 No methods of the writer are called by NullFormatter instances.
33 Implementations should inherit from this class if implementing a writer
38 def __init__(self, writer=None):
39 if writer is None:
40 writer = NullWriter()
41 self.writer = writer
75 def __init__(self, writer):
76 self.writer = writer # Output device
92 self.writer.send_line_break()
95 self.writer.send_paragraph(blankline - self.parskip)
103 self.writer.send_line_break()
110 self.writer.send_line_break()
111 self.writer.send_hor_rule(*args, **kw)
117 self.writer.send_line_break()
119 self.writer.send_paragraph((blankline and 1) or 0)
121 self.writer.send_label_data(self.format_counter(format, counter))
123 self.writer.send_label_data(format)
195 self.writer.send_flowing_data(data)
200 self.writer.send_flowing_data(" ")
204 self.writer.send_literal_data(data)
211 self.writer.send_flowing_data(' ')
215 self.writer.new_alignment(align)
226 self.writer.new_alignment(align)
229 self.writer.new_alignment(None)
236 self.writer.send_flowing_data(' ')
245 self.writer.new_font(font)
254 self.writer.new_font(font)
261 self.writer.new_margin(margin, len(fstack))
271 self.writer.new_margin(margin, len(fstack))
275 self.writer.new_spacing(spacing)
281 self.writer.send_flowing_data(' ')
284 self.writer.new_styles(tuple(self.style_stack))
288 self.writer.new_styles(tuple(self.style_stack))
296 """Minimal writer interface to use in testing & inheritance.
298 A writer which only provides the interface definition; no actions are
319 """A writer which can be used in debugging formatters, but not much else.
361 """Simple writer class which writes output on the file object passed in