eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'HTMLPrinterStream':

Home

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

Class: HTMLPrinterStream


Inheritance:

   Object
   |
   +--Stream
      |
      +--PrinterStream
         |
         +--HTMLPrinterStream

Package:
stx:libbasic2
Category:
Interface-Printing
Version:
rev: 1.4 date: 2017/03/07 06:31:18
user: cg
file: HTMLPrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2
Author:
Claus Gittinger

Description:


A simple HTML generating printer stream.
Useful to generate indented listings, which need to be included in
an html document.
Currently only supports bold and normal printing; 
needs more care & feeding for italic, underline and colors.


Related information:

    PSPrinterStream
    PrinterStream
    PDFPrinterStream

Class protocol:

queries
o  isDrivenByCommand

o  printerTypeName
return a descriptive name

o  supportsMargins

o  supportsPageSizes

o  supportsPostscript

o  supportsPrintingToFile


Instance protocol:

accessing
o  htmlBuilder

emphasis
o  bold
switch to bold emphasis

o  emphasis: anEmphasis
self setupFontTypeEmphasis.

o  normal
back to normal (non-bold, non-italic) emphasis

initialization
o  close

o  initialize

writing
o  cr

o  flushBuffer
bold ifTrue:[ style := self style:style with: htmlBuilder boldEnd ].

o  nextPut: aCharacter



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 29 Mar 2024 05:28:18 GMT