Module BaseDoc
[frames] | no frames]

Module BaseDoc

source code

Provide base interface to text based documents. Specific document interfaces should be derived from the core classes.

Classes
  PaperSize
Defines the dimensions of a sheet of paper.
  PaperStyle
Define the various options for a sheet of paper.
  FontStyle
Defines a font style.
  TableStyle
Specifies the style or format of a table.
  TableCellStyle
Defines the style of a particular table cell.
  ParagraphStyle
Defines the characteristics of a paragraph.
  StyleSheetList
Interface into the user's defined style sheets.
  StyleSheet
A collection of named paragraph styles.
  SheetParser
SAX parsing class for the StyleSheetList XML file.
  GraphicsStyle
Defines the properties of graphics objects, such as line width, color, fill, ect.
  IndexMark
Defines a mark to be associated with text for indexing.
  BaseDoc
Base class for document generators.
  TextDoc
Abstract Interface for text document generators.
  DrawDoc
Abstract Interface for graphical document generators.
  GVDoc
Abstract Interface for Graphviz document generators.
Functions
 
escxml(string)
Escapes XML special characters.
source code
 
cnv2color(text)
converts a hex value in the form of #XXXXXX into a tuple of integers representing the RGB values
source code
Variables
  log = logging.getLogger(".BaseDoc")
  FONT_SANS_SERIF = 0
  FONT_SERIF = 1
  FONT_MONOSPACE = 2
  PAPER_PORTRAIT = 0
  PAPER_LANDSCAPE = 1
  PARA_ALIGN_CENTER = 0
  PARA_ALIGN_LEFT = 1
  PARA_ALIGN_RIGHT = 2
  PARA_ALIGN_JUSTIFY = 3
  TEXT_MODE = 0
  GRAPHICS_MODE = 1
  SOLID = 0
  DASHED = 1
  INDEX_TYPE_ALP = 0
  INDEX_TYPE_TOC = 1

Imports: os, escape, Utils, FontScale, const, logging, make_parser, handler, SAXParseException