Class RTF::Style
In: lib/rtf/style.rb
Parent: Object

This is a parent class that all style classes will derive from.

Methods

Constants

LEFT_TO_RIGHT = :rtl   A definition for a character flow setting.
RIGHT_TO_LEFT = :ltr   A definition for a character flow setting.

Public Instance methods

Used to determine if the style applies to characters. This method always returns false and should be overridden by derived classes as needed.

Used to determine if the style applies to documents. This method always returns false and should be overridden by derived classes as needed.

Used to determine if the style applies to paragraphs. This method always returns false and should be overridden by derived classes as needed.

Used to determine if the style applies to tables. This method always returns false and should be overridden by derived classes as needed.

This method retrieves the command prefix text associated with a Style object. This method always returns nil and should be overridden by derived classes as needed.

Parameters

fonts:A reference to the document fonts table. May be nil if no fonts are used.
colours:A reference to the document colour table. May be nil if no colours are used.

This method retrieves the command suffix text associated with a Style object. This method always returns nil and should be overridden by derived classes as needed.

Parameters

fonts:A reference to the document fonts table. May be nil if no fonts are used.
colours:A reference to the document colour table. May be nil if no colours are used.

[Validate]