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.23 date: 2021/01/20 14:31:57
user: cg
file: HPLjetIIPrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

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.

copyright

COPYRIGHT (c) 1988 by Claus Gittinger All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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
print aCharacter.
Answer the argument.

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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 09:24:18 GMT