Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
formatter.NullFormatter Class Reference

List of all members.

Public Member Functions

def __init__
def end_paragraph
def add_line_break
def add_hor_rule
def add_label_data
def add_flowing_data
def add_literal_data
def flush_softspace
def push_alignment
def pop_alignment
def push_font
def pop_font
def push_margin
def pop_margin
def set_spacing
def push_style
def pop_style
def assert_line_data

Public Attributes

 writer

Detailed Description

A formatter which does nothing.

If the writer parameter is omitted, a NullWriter instance is created.
No methods of the writer are called by NullFormatter instances.

Implementations should inherit from this class if implementing a writer
interface but don't need to inherit any implementation.

Definition at line 27 of file formatter.py.


Constructor & Destructor Documentation

def formatter.NullFormatter.__init__ (   self,
  writer = None 
)

Definition at line 38 of file formatter.py.

00038 
00039     def __init__(self, writer=None):
00040         if writer is None:
00041             writer = NullWriter()
        self.writer = writer

Here is the caller graph for this function:


Member Function Documentation

def formatter.NullFormatter.add_flowing_data (   self,
  data 
)

Definition at line 46 of file formatter.py.

00046 
    def add_flowing_data(self, data): pass
def formatter.NullFormatter.add_hor_rule (   self,
  args,
  kw 
)

Definition at line 44 of file formatter.py.

00044 
    def add_hor_rule(self, *args, **kw): pass
def formatter.NullFormatter.add_label_data (   self,
  format,
  counter,
  blankline = None 
)

Definition at line 45 of file formatter.py.

00045 
    def add_label_data(self, format, counter, blankline=None): pass

Definition at line 43 of file formatter.py.

00043 
    def add_line_break(self): pass
def formatter.NullFormatter.add_literal_data (   self,
  data 
)

Definition at line 47 of file formatter.py.

00047 
    def add_literal_data(self, data): pass
def formatter.NullFormatter.assert_line_data (   self,
  flag = 1 
)

Definition at line 58 of file formatter.py.

00058 
00059     def assert_line_data(self, flag=1): pass
00060 

def formatter.NullFormatter.end_paragraph (   self,
  blankline 
)

Definition at line 42 of file formatter.py.

00042 
    def end_paragraph(self, blankline): pass

Definition at line 48 of file formatter.py.

00048 
    def flush_softspace(self): pass

Definition at line 50 of file formatter.py.

00050 
    def pop_alignment(self): pass

Definition at line 52 of file formatter.py.

00052 
    def pop_font(self): pass

Definition at line 54 of file formatter.py.

00054 
    def pop_margin(self): pass
def formatter.NullFormatter.pop_style (   self,
  n = 1 
)

Definition at line 57 of file formatter.py.

00057 
    def pop_style(self, n=1): pass
def formatter.NullFormatter.push_alignment (   self,
  align 
)

Definition at line 49 of file formatter.py.

00049 
    def push_alignment(self, align): pass
def formatter.NullFormatter.push_font (   self,
  x 
)

Definition at line 51 of file formatter.py.

00051 
    def push_font(self, x): pass
def formatter.NullFormatter.push_margin (   self,
  margin 
)

Definition at line 53 of file formatter.py.

00053 
    def push_margin(self, margin): pass
def formatter.NullFormatter.push_style (   self,
  styles 
)

Definition at line 56 of file formatter.py.

00056 
    def push_style(self, *styles): pass
def formatter.NullFormatter.set_spacing (   self,
  spacing 
)

Definition at line 55 of file formatter.py.

00055 
    def set_spacing(self, spacing): pass

Member Data Documentation

Definition at line 41 of file formatter.py.


The documentation for this class was generated from the following file: