Documentation

ETTextHTML documentation

ETXHTMLWriter : NSObject <ETTextVisitor>

AuthorsGenerated by builder
Declared inETTextHTML.h

Overview

ETXHTMLWriter is a visitor class that walks an EtoileText tree and generates an XHTML document from it.


Default

- (void) setTagName: (NSString *)aString forTextType: (NSString *)aType

Sets the HTML tag name to use for a specified EtoileText type. Ignored if a delegate is set for this type. If no tag name is specified for a type, span is used.

    - (void) setAttributes: (NSDictionary *)attributes forTextType: (NSString *)aType

    Sets the default attributes to use for a specified EtoileText type. If no attributes are specified for a tag type, the class attribute is set to the EtoileText type.

      - (void) setDelegate: (id <ETXHTMLWriterDelegate>)aDelegate forTextType: (NSString *)aType

      Specifies a delegate to use for a specified EtoileText type.

        - (NSString *) generateHTMLForDocument: (id <ETText>)aDocument
        Description forthcoming.
          - (NSString *) endDocument

          Ends the document and returns a string containing the XHTML rendition of it.