eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HPLjetIIPrinterStream':

Home

everywhere
www.exept.de
for:
[back]

Class: HPLjetIIPrinterStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--PrinterStream
         |
         +--HPLjetIIPrinterStream

Package:
stx:libbasic2
Category:
Interface-Printing
Version:
rev: 1.18 date: 2006-08-07 13:26:59
user: fm
file: HPLjetIIPrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Claus Gittinger

Description:


This class defines protocol for simple text prinitng on an HP Laserjet 2/3
(and compatible) printer. 
It does not support multiple fonts, but knows how to print bold, italic etc.

Graphics printing is not supported - you need a postscriptprinter for this.

Notice: 
    This class only defines some minimum protocol for printing on
    HP-LJ - you really should use a PostscriptPrinter ...
    ... however, if you own a LJ, here is some class to start with.
    It may need to be enhanced at some places (for example: provide more
    fonts/emphasis's, better international character translation,
    image printing etc.)

    This class is not officially supported - take it or leave it.


Class protocol:

initialization
o  initialize

queries
o  printerTypeName
return a descriptive name


Instance protocol:

access writing
o  cr
send a carriage-return (newLine) to the printer.
We have to output cr-nl here

o  nextPut: aCharacter

emphasis change
o  bold
switch to bold emphasis

o  italic
switch to italic/oblique emphasis

o  normal
switch to normal/roman emphasis

font change
o  courier
switch to courier font

o  helvetica
switch to helvetica font

o  times
switch to times font



ST/X 6.1.1; WebServer 1.620 at exept:8081; Fri, 10 Feb 2012 15:08:00 GMT