Squeak Class Documentation category index | class index  
 
TextPrinter
  category: Graphics-Text
  superclass: Object
  subclasses:

No comment. Sorry.

instance methods
  accessing
  bestColor
blackAndWhite
columns
columns:
documentTitle
documentTitle:
goodColor
landscape
landscape:
noFooter
noFooter:
noHeader
noHeader:
offsetRect
offsetRect:
paperSize
paperSize:
resolution
resolution:

  footer
  footerHeight
footerParagraph
printFooter:

  formatting
  columnRect:
columnSkip
columnWidth
formatColumn:startingWith:
formatPage:startingWith:
textArea
textWidth

  header
  headerHeight
headerParagraph
printHeader:

  initialize
  defaultPaperSize
defaultResolution
initialize

  other
  in2mm:
in2pix:
mm2in:
mm2pix:
pix2in:
pix2mm:

  printing
  flushPage
printParagraph
printText:

  private
  pixelSize
realPaperSize

class methods
  accessing
  defaultPaperSize
defaultPaperSize:
defaultTextPrinter

  class initialization
  initialize

  instance creation
  new

  paper sizes
  mm2in:
paperSize10x14
paperSize11x17
paperSizeA3
paperSizeA4
paperSizeA5
paperSizeB4
paperSizeB5
paperSizeCSheet
paperSizeDSheet
paperSizeESheet
paperSizeEnvelope10
paperSizeEnvelope11
paperSizeEnvelope12
paperSizeEnvelope14
paperSizeEnvelope9
paperSizeEnvelopeB4
paperSizeEnvelopeB5
paperSizeEnvelopeB6
paperSizeEnvelopeC3
paperSizeEnvelopeC4
paperSizeEnvelopeC5
paperSizeEnvelopeC6
paperSizeEnvelopeC65
paperSizeFanfoldGerman
paperSizeFanfoldLegalGerman
paperSizeFanfoldUS
paperSizeFolio
paperSizeLegal
paperSizeLetter
paperSizeNote
paperSizeTabloid

instance methods
  accessing top  
 

bestColor

Set the reproduction quality to true color


 

blackAndWhite

Set the reproduction quality to black and white


 

columns


 

columns:


 

documentTitle


 

documentTitle:


 

goodColor

Set the reproduction quality to 8 bit color depth


 

landscape


 

landscape:


 

noFooter


 

noFooter:

Turn off footer printing


 

noHeader


 

noHeader:

Turn off header printing


 

offsetRect


 

offsetRect:

Set the offset rectangle


 

paperSize


 

paperSize:


 

resolution


 

resolution:


  footer top  
 

footerHeight

Return the (additional) height of the footer in inches.


 

footerParagraph

Return a paragraph for the footer


 

printFooter:

Print the footer for the given page number


  formatting top  
 

columnRect:

Return a rectangle describing the n-th column


 

columnSkip

Return the separating space between two columns in inches


 

columnWidth


 

formatColumn:startingWith:

Format a new column starting at the given string index. Return the string index indicating the start of the next column or nil if no more columns need printing.


 

formatPage:startingWith:

Format a new page starting at the given string index. Return the string index indicating the start of the next page or nil if no more pages need printing.


 

textArea


 

textWidth


  header top  
 

headerHeight

Return the (additional) height of the header in inches.


 

headerParagraph

Return a paragraph for the footer


 

printHeader:

Print the header for the given page number


  initialize top  
 

defaultPaperSize

Return the default paper size (inches) for printing


 

defaultResolution

Return the default resolution (DPI) for printing


 

initialize


  other top  
 

in2mm:

Convert aPoint from millimeters to inches


 

in2pix:

Convert aPoint from inches to actual pixels


 

mm2in:

Convert aPoint from millimeters to inches


 

mm2pix:

Convert aPoint from millimeters to actual pixels


 

pix2in:

Convert aPoint from a pixel value to inches


 

pix2mm:

Convert aPoint from a pixel value to millimeters


  printing top  
 

flushPage

The current page has been set up. Send it to the printer.


 

printParagraph


 

printText:

Print aText


  private top  
 

pixelSize

Return the size of the page in pixels


 

realPaperSize


class methods
  accessing top  
 

defaultPaperSize


 

defaultPaperSize:


 

defaultTextPrinter

This is the global default TextPrinter instance.


  class initialization top  
 

initialize

TextPrinter initialize


  instance creation top  
 

new

Answer a new instance of the receiver (which is a class) with no indexable variables. Fail if the class is indexable.


  paper sizes top  
 

mm2in:

Convert aPoint from millimeters to inches


 

paperSize10x14


 

paperSize11x17


 

paperSizeA3


 

paperSizeA4


 

paperSizeA5


 

paperSizeB4


 

paperSizeB5


 

paperSizeCSheet


 

paperSizeDSheet


 

paperSizeESheet


 

paperSizeEnvelope10


 

paperSizeEnvelope11


 

paperSizeEnvelope12


 

paperSizeEnvelope14


 

paperSizeEnvelope9


 

paperSizeEnvelopeB4


 

paperSizeEnvelopeB5


 

paperSizeEnvelopeB6


 

paperSizeEnvelopeC3


 

paperSizeEnvelopeC4


 

paperSizeEnvelopeC5


 

paperSizeEnvelopeC6


 

paperSizeEnvelopeC65


 

paperSizeFanfoldGerman

German standard fanfold


 

paperSizeFanfoldLegalGerman

German legal fanfold


 

paperSizeFanfoldUS

US standard fanfold


 

paperSizeFolio


 

paperSizeLegal


 

paperSizeLetter


 

paperSizeNote


 

paperSizeTabloid