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

This class represents a styling for a paragraph within an RTF document.

Methods

Constants

LEFT_JUSTIFY = :ql   A definition for a paragraph justification setting.
RIGHT_JUSTIFY = :qr   A definition for a paragraph justification setting.
CENTER_JUSTIFY = :qc   A definition for a paragraph justification setting.
CENTRE_JUSTIFY = :qc   A definition for a paragraph justification setting.
FULL_JUSTIFY = :qj   A definition for a paragraph justification setting.

Attributes

first_line_indent  [R]  Attribute accessor.
first_line_indent  [W]  Attribute mutator.
flow  [R]  Attribute accessor.
flow  [W]  Attribute mutator.
justification  [W]  Attribute mutator.
justification  [R]  Attribute accessor.
left_indent  [W]  Attribute mutator.
left_indent  [R]  Attribute accessor.
line_spacing  [W]  Attribute mutator.
line_spacing  [R]  Attribute accessor.
right_indent  [R]  Attribute accessor.
right_indent  [W]  Attribute mutator.
space_after  [R]  Attribute accessor.
space_after  [W]  Attribute mutator.
space_before  [R]  Attribute accessor.
space_before  [W]  Attribute mutator.

Public Class methods

This is a constructor for the ParagraphStyle class.

Parameters

base:A reference to base object that the new style will inherit its initial properties from. Defaults to nil.

Public Instance methods

This method overrides the is_paragraph_style? method inherited from the Style class to always return true.

This method generates a string containing the prefix associated with a style object.

Parameters

fonts:A reference to a FontTable containing any fonts used by the style (may be nil if no fonts used).
colours:A reference to a ColourTable containing any colours used by the style (may be nil if no colours used).

[Validate]