eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HPLjetIIPrinterStream':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: HPLjetIIPrinterStream


Inheritance:

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

Package:
stx:libbasic2
Category:
Interface-Printing
Version:
rev: 1.20 date: 2017/11/28 18:19:40
user: cg
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.)

[Disclaimer:]    
    This class is not officially supported - take it or leave it.


Class protocol:

initialization
o  initialize
self 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 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Tue, 19 Mar 2024 02:14:38 GMT