Class/Object

laika.render

FOWriter

Related Docs: object FOWriter | package render

Permalink

class FOWriter extends TagWriter with FOProperties

API for renderers that produce XSL-FO output.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FOWriter
  2. FOProperties
  3. TagWriter
  4. TextWriter
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FOWriter(out: (String) ⇒ Unit, render: (Element) ⇒ Unit, root: Element, path: Path, styles: StyleDeclarationSet, newLine: String = "\n", formatted: Boolean = true)

    Permalink

    out

    the render function to write string values to

    render

    the render function for writing elements

    root

    the root element to render

    path

    the path of the document getting rendered, used for generating unique ids

    styles

    the styles to apply when writing the attributes of an element

    newLine

    the newline character to use

    formatted

    whether the output is formatted (adding indentation and newlines)

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <<(element: Element): FOWriter.this.type

    Permalink

    Writes the specified element to the output, on the same line.

    Writes the specified element to the output, on the same line.

    Definition Classes
    TextWriter
  4. def <<(elements: Seq[Element]): FOWriter.this.type

    Permalink

    Writes the specified elements to the output, all on the same line.

    Writes the specified elements to the output, all on the same line.

    Definition Classes
    TextWriter
  5. def <<(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on the same line.

    Writes the specified string to the output, on the same line.

    Definition Classes
    TextWriter
  6. def <<&(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on the same line, with all special XML/HTML characters converted to entities.

    Writes the specified string to the output, on the same line, with all special XML/HTML characters converted to entities.

    Definition Classes
    TagWriter
  7. def <<<(elements: Seq[Span]): FOWriter.this.type

    Permalink

    Writes the specified span elements to the output, on the same line, while omitting indentation for all text spans written with one of the methods that convert special characters.

    Writes the specified span elements to the output, on the same line, while omitting indentation for all text spans written with one of the methods that convert special characters.

    Definition Classes
    TagWriter
  8. def <<<&(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, without any indentation, with all special XML/HTML characters converted to entities.

    Writes the specified string to the output, without any indentation, with all special XML/HTML characters converted to entities. This is needed for writing blocks like those enclosed in <pre&rt; tags where whitespace is significant.

    Definition Classes
    TagWriter
  9. def <<@(tag: String, element: Element, attrs: (String, Any)*): FOWriter.this.type

    Permalink

    Writes an opening tag with attributes derived from both the element parameter and the subsequent tuples.

    Writes an opening tag with attributes derived from both the element parameter and the subsequent tuples.

    Definition Classes
    TagWriter
  10. def <<@(tag: String, options: Options, attrs: (String, Any)*): FOWriter.this.type

    Permalink

    Writes an opening tag with attributes derived from both the options parameter and the subsequent tuples.

    Writes an opening tag with attributes derived from both the options parameter and the subsequent tuples.

    Definition Classes
    TagWriter
  11. def <<@(attrs: (String, Any)*): FOWriter.this.type

    Permalink

    Writes the specified attributes (passed as name-value tuples), including a preceding space character.

    Writes the specified attributes (passed as name-value tuples), including a preceding space character. In cases where the value is None nothing will be written to the output.

    Definition Classes
    TagWriter
  12. def <<@(name: String, value: Any): FOWriter.this.type

    Permalink

    Writes the specified name and value as an optional attribute, including a preceding space character.

    Writes the specified name and value as an optional attribute, including a preceding space character. In case the value is None nothing will be written to the output.

    Attributes
    protected
    Definition Classes
    TagWriter
  13. def <<@(name: String, value: String): FOWriter.this.type

    Permalink

    Writes the specified name and value as an attribute, including a preceding space character.

    Writes the specified name and value as an attribute, including a preceding space character.

    Definition Classes
    TagWriter
  14. def <<@(name: String, value: Option[String]): FOWriter.this.type

    Permalink

    Writes the specified name and value as an optional attribute, including a preceding space character.

    Writes the specified name and value as an optional attribute, including a preceding space character. In case the value is None nothing will be written to the output.

    Definition Classes
    TagWriter
  15. def <<@/(tag: String, element: Element, attrs: (String, Any)*): FOWriter.this.type

    Permalink

    Writes an empty tag with attributes derived from both the element parameter and the subsequent tuples.

    Writes an empty tag with attributes derived from both the element parameter and the subsequent tuples.

    Definition Classes
    TagWriter
  16. def <<@/(tag: String, options: Options, attrs: (String, Any)*): FOWriter.this.type

    Permalink

    Writes an empty tag with attributes derived from both the options parameter and the subsequent tuples.

    Writes an empty tag with attributes derived from both the options parameter and the subsequent tuples.

    Definition Classes
    TagWriter
  17. def <<|(element: Element): FOWriter.this.type

    Permalink

    Writes the specified element to the output, on a new line using the current level of indentation.

    Writes the specified element to the output, on a new line using the current level of indentation.

    Definition Classes
    TextWriter
  18. def <<|(elements: Seq[Element]): FOWriter.this.type

    Permalink

    Writes the specified elements to the output, each of them on a new line using the current level of indentation.

    Writes the specified elements to the output, each of them on a new line using the current level of indentation.

    Definition Classes
    TextWriter
  19. def <<|(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on a new line using the current level of indentation.

    Writes the specified string to the output, on a new line using the current level of indentation.

    Definition Classes
    TextWriter
  20. def <<|&(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on a new line using the current level of indentation, with all special XML/HTML characters converted to entities.

    Writes the specified string to the output, on a new line using the current level of indentation, with all special XML/HTML characters converted to entities.

    Definition Classes
    TagWriter
  21. def <<|>(element: Element): FOWriter.this.type

    Permalink

    Writes the specified element to the output, on a new line and increasing indentation one level to the right.

    Writes the specified element to the output, on a new line and increasing indentation one level to the right.

    Definition Classes
    TextWriter
  22. def <<|>(elements: Seq[Element]): FOWriter.this.type

    Permalink

    Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.

    Writes the specified elements to the output, each of them on a new line with the indentation increased one level to the right.

    Definition Classes
    TextWriter
  23. def <<|>(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on a new line and increasing indentation one level to the right.

    Writes the specified string to the output, on a new line and increasing indentation one level to the right.

    Definition Classes
    TextWriter
  24. def <<|>&(str: String): FOWriter.this.type

    Permalink

    Writes the specified string to the output, on a new line and increasing indentation one level to the right, with all special XML/HTML characters converted to entities.

    Writes the specified string to the output, on a new line and increasing indentation one level to the right, with all special XML/HTML characters converted to entities.

    Definition Classes
    TagWriter
  25. def <|: FOWriter.this.type

    Permalink

    Writes a new line character sequence.

    Writes a new line character sequence.

    Definition Classes
    TextWriter
  26. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  27. object Indent

    Permalink
    Attributes
    protected
    Definition Classes
    TextWriter
  28. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  29. def attributes(tag: String, element: Element, attrs: Seq[(String, Any)]): Seq[(String, Any)]

    Permalink

    Produces the complete sequence of attributes to write for the specified tag.

    Produces the complete sequence of attributes to write for the specified tag.

    Attributes
    protected
    Definition Classes
    FOWriterTagWriter
  30. def attributes(tag: String, options: Options, attrs: Seq[(String, Any)]): Seq[(String, Any)]

    Permalink

    Produces the complete sequence of attributes to write for the specified tag.

    Produces the complete sequence of attributes to write for the specified tag.

    Attributes
    protected
    Definition Classes
    FOWriterTagWriter
  31. def block(element: Element, attr: (String, String)*): FOWriter

    Permalink

    Renders an empty FO block element.

  32. def block(element: Element, content: Seq[Span], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO block element and the specified nested spans.

  33. def blockContainer(element: Element, content: Seq[Block], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO block element, containing nested blocks.

  34. def blockWithWS(element: Element, content: Seq[Span], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO block element and the specified nested spans, preserving all whitespace within the text elements of those spans.

  35. def bookmark(bookmark: Bookmark): FOWriter

    Permalink

    Renders an FO bookmark element and all of its nested bookmarks.

  36. def bookmarkTitle(title: BookmarkTitle): FOWriter

    Permalink

    Renders an FO bookmark-title element.

  37. def bookmarkTree(tree: BookmarkTree): FOWriter

    Permalink

    Renders an FO bookmark-tree element and all of its nested bookmarks.

  38. def buildId(path: Path, ref: String): String

    Permalink

    Generates a unique id for the specified path of the target document and the local reference.

  39. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  41. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  42. def escaped(str: String): String

    Permalink

    Replaces all special XML/HTML characters with entities.

    Replaces all special XML/HTML characters with entities.

    Attributes
    protected
    Definition Classes
    TagWriter
  43. def externalGraphic(element: Element, src: String, width: Option[Size], height: Option[Size]): FOWriter

    Permalink

    Renders an FO external-graphic element.

  44. def externalLink(element: Element, url: String, content: Seq[Span], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO basic-link element for an external target.

  45. def filterAttributes(tagName: String, attributes: Seq[(String, Any)]): Seq[(String, Any)]

    Permalink

    Filters out all unsupported attributes for the specified tagName and return a new sequence containing only attributes valid for that tag.

    Filters out all unsupported attributes for the specified tagName and return a new sequence containing only attributes valid for that tag.

    tagName

    the name of tag to filter the attributes for

    attributes

    the attributes to filter as a sequence of key-name tuples

    returns

    a new sequence containing only attributes valid for that tag

    Definition Classes
    FOProperties
  46. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  47. def footnote(element: Element, label: String, body: Seq[Block], options: Options): FOWriter

    Permalink

    Renders an FO footnote element.

  48. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  49. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  50. def indented(indent: Int)(block: ⇒ Unit): Unit

    Permalink

    Executes the specified block while temporarily shifting the indentation level (if it is greater than the currently active one).

    Executes the specified block while temporarily shifting the indentation level (if it is greater than the currently active one).

    Definition Classes
    TextWriter
  51. def inline(element: Element, content: Seq[Span], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO inline element and the specified nested spans.

  52. def internalLink(element: Element, target: String, content: Seq[Span], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO basic-link element for an internal target.

  53. def internalLinkTarget(element: Element): FOWriter

    Permalink

    Renders an FO block or inline for this internal link target, depending on whether it is inside a BlockContainer or SpanContainer.

  54. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  55. def listBlock(element: Element, content: Seq[ListItem], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO list-block element, and the specified list items.

  56. def listItem(element: Element, label: Seq[Span], body: Seq[Block], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO list-item element with the specified label and body.

  57. def listItemBody(element: Element, content: Seq[Block], attr: (String, String)*): FOWriter

    Permalink

    Renders an FO list-item-body element.

  58. def listItemLabel(element: Element, content: Block, attr: (String, String)*): FOWriter

    Permalink

    Renders an FO list-item-label element.

  59. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  60. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  61. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  62. def parents: List[Element]

    Permalink
    Attributes
    protected
    Definition Classes
    TextWriter
  63. def rawText(element: Element, content: String, attr: (String, String)*): FOWriter

    Permalink

    Renders an FO inline element and the specified text, treating it as "raw", prerendered XSL-FO output.

    Renders an FO inline element and the specified text, treating it as "raw", prerendered XSL-FO output. Renders only the text itself in case there are no attributes associated with the text.

  64. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  65. def text(element: Element, content: String, attr: (String, String)*): FOWriter

    Permalink

    Renders an FO inline element and the specified text.

    Renders an FO inline element and the specified text. Renders only the text itself in case there are no attributes associated with the text.

  66. def textBlockWithWS(element: Element, content: String, attr: (String, String)*): FOWriter

    Permalink

    Renders an FO block element and the specified text, preserving all whitespace.

    Renders an FO block element and the specified text, preserving all whitespace. Renders only the text itself in case there are no attributes associated with the text.

  67. def textWithWS(element: Element, content: String, attr: (String, String)*): FOWriter

    Permalink

    Renders an FO inline element and the specified text, preserving all whitespace.

    Renders an FO inline element and the specified text, preserving all whitespace. Renders only the text itself in case there are no attributes associated with the text.

  68. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  69. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  70. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  71. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  72. def withoutIndentation(f: ⇒ Any): FOWriter.this.type

    Permalink

    Invokes the specified function after switching off the rendering of any indentation for escaped text elements.

    Invokes the specified function after switching off the rendering of any indentation for escaped text elements. The old flag gets restored after invocation.

    Attributes
    protected
    Definition Classes
    TagWriter

Inherited from FOProperties

Inherited from TagWriter

Inherited from TextWriter

Inherited from AnyRef

Inherited from Any

Ungrouped