|
Class: HTMLPrinterStream
Object
|
+--Stream
|
+--PrinterStream
|
+--HTMLPrinterStream
- Package:
- stx:libbasic2
- Category:
- Interface-Printing
- Version:
- rev:
1.8
date: 2023/06/04 13:03:45
- user: cg
- file: HTMLPrinterStream.st directory: libbasic2
- module: stx stc-classLibrary: libbasic2
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.
copyrightCOPYRIGHT (c) 2016 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.
queries
-
isDrivenByCommand
-
-
printerTypeName
-
return a descriptive name
-
supportsPrintingToFile
-
accessing
-
htmlBuilder
-
emphasis
-
bold
-
switch to bold emphasis
-
emphasis: anEmphasis
-
self setupFontTypeEmphasis.
-
normal
-
back to normal (non-bold, non-italic) emphasis
initialization
-
close
-
-
initialize
-
writing
-
cr
-
(comment from inherited method)
append a carriage-return to the stream.
This is only allowed, if the receiver supports writing.
-
flushBuffer
-
bold ifTrue:[ style := self style:style with: htmlBuilder boldEnd ].
-
nextPut: aCharacter
-
append aCharacter.
Answer the argument.
|