
RTF::Reader::Style

Interface to RTF styles

To (hopefully) make document conversion from RTF easier, styles are interfaced through a nice clean class of their own.
This allows us to take care of stylesheet inheritance without harrassing you, the user, with the details. An RTF::Reader::Style object represents a single style in a document - that is, it represents an entry in the stylesheet table.

We use this method internally, but maybe it'll be useful to you. Instantiates a new object.
Clears paragraph properties
Clears character formatting properties
Clone's the current style...
Clear a style's attributes
Sets/gets the number of the style
Accessor for defining inheritance. We don't know what order styles will be set in, so this is just an integer.
Accessor for defining the style's 'Name'. For example 'Default Paragraph Font'.
Retrieves the value of a formatting property. If it's undefined, and we have a parent set, we check the parent value, and so on.
Sets the value of a formatting property. You're unlikely to need to play with this method, but, it seems worth documenting and making public just incase you do.

As per the RTF spec. Sorry, this is documentation for my object, not RTF in general ;-)