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.8 date: 2023/06/04 13:03:45
user: cg
file: HTMLPrinterStream.st directory: libbasic2
module: stx stc-classLibrary: libbasic2

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.

copyright

COPYRIGHT (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.

Class protocol:

queries
o  isDrivenByCommand

o  printerTypeName
return a descriptive name

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
(comment from inherited method)
append a carriage-return to the stream.
This is only allowed, if the receiver supports writing.

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

o  nextPut: aCharacter
append aCharacter.
Answer the argument.



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Thu, 21 Nov 2024 12:30:11 GMT