NAME

RTF::Reader::Context

DESCRIPTION

A place in an RTF document

METHODS

new

Creates a new context. If you call this on an object, it'll create a child of that object.

toggle_buffering

Pass it a true or false value, depending what you want to do. If it's off, then text will get passed straight up to RTF::Reader::add_to_text. If it's on, it won't, and we have to wait until it's flushed to play with it.

unicode_count

Accessor ... set or get the current number of characters included in the ANSI representation of a Unicode character...

add_to_text

Adds to the text buffer

flush_text

Returns and clears the text buffer

spawn

Create a child context

destroy

Calls all of the context's 'on_destroy' routines, and then returns its parent.

parent

Returns an object's parent

reader

Returns an object's parent

context

Holds a context string, which is free-form. This is just an accessor.

on_destroy

Adds a method call to the ones process when the context is destroyed...

inherited_on_destroy

Adds a method call to the ones process when the context is destroyed, only this is inherited in child contexts.