NAME
RTF::Reader::Style
DESCRIPTION
Interface to RTF styles
OVERVIEW
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.
METHODS
new
We use this method internally, but maybe it'll be useful to you. Instantiates a new object.
pard
Clears paragraph properties
plain
Clears character formatting properties
clone
Clone's the current style...
nuke
Clear a style's attributes
number
Sets/gets the number of the style
parent
Accessor for defining inheritance. We don't know what order styles will be set in, so this is just an integer.
name
Accessor for defining the style's 'Name'. For example 'Default Paragraph Font'.
get
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.
set
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.
FORMATTING PROPERTIES
As per the RTF spec. Sorry, this is documentation for my object, not RTF in general ;-)