Changes between Version 14 and Version 15 of TEXT_PARAGRAPH_SPACING_R0


Ignore:
Timestamp:
06/15/09 13:37:51 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TEXT_PARAGRAPH_SPACING_R0

    v14 v15  
    4444 
    4545= Design = 
    46  * Add CommonAttr.BEGIN_PARAGRAPH and CommonAttr.END_PARAGRAPH attributes to represent existence of baragraph breaks in the style. 
    47  * Create classes extending HotStyleValue: 
    48   * HotBeginParagraphAttr - style value for begin paragraph 
    49   * HotEndParagraphAttr - style value for end paragraph 
    50  * Add HotTextLogic.INSERT_PARAGRAPH_BREAKS operation to define behavior for specifying a paragraph in HotText 
     46 * Add CommonAttr.PG_BEGIN and CommonAttr.PG_END attributes to represent existence of baragraph breaks in the style. 
     47 *  Add  HotTextLogic.INSERT_PARAGRAPH_BREAKS to represent the logic for properly adding paragraph attributes on enter in a HotText. 
     48On enter: 
     49  * the HotUnit after the current caret position gets a derive HotStyleDef for its preStyle. The new style is concatination of the old one plus  
     50PG_BEGIN attribute. 
     51  * the HotUnit before the current caret position gets a derive HotStyleDef for its postStyle. The new style is concatination of the old one plus  
     52PG_END attribute. 
    5153 * Create utility class ParagraphUtils with: 
    52   * static method checkCorrectness(HotText) - checks if BEGIN_PARAGRAPH and END_PARAGRAPH are nested correctly. 
    53   * static method existsBeginParagraph(HotStyleDef) - checks if there is BEGIN_PARAGRAPH in the specified style. 
    54   * static method existsEndParagraph(HotStyleDef) - checks if there is END_PARAGRAPH in the specified style. 
     54  * static method checkCorrectness(HotText) - checks if PG_BEGIN and PG_END are nested correctly(every begin attribute has it's end attribute and after a begin attribute only an end attribute can be placed). 
     55  * static method existsBeginParagraph(HotStyleDef) - checks if there is PG_BEGIN in the specified style. 
     56  * static method existsEndParagraph(HotStyleDef) - checks if there is PG_END in the specified style. 
    5557 * Layout 
    5658  * Extend Atom class functionality with paragraph related attributes: 
    57    * Add Atom.isParaBegin to check for BEGIN_PARAGRAPH attribute. 
    58    * Modify Atom.isParaEnd to check for END_PARAGRAPH attribute. 
     59   * Add Atom.isParaBegin to check for PG_BEGIN attribute. 
     60   * Modify Atom.isParaEnd to check for PG_END attribute. 
    5961   * Methods for indentation, top and bottom spacing, etc. 
    6062  * Add VertexFields values for the needed paragraph properties: 
     
    6769   * right indent 
    6870  * Modify the layout algorithm: 
    69    * EdgeKind.OPEN_LINE to check for BEGIN_PARAGRAPH. 
    70    * EdgeKind.CLOSE_LINE to check for END_PARAGRAPH. 
    71    * EdgeKind.SEGMENT to check for BEGIN_PARAGRAPH and END_PARAGRAPH. 
     71   * EdgeKind.OPEN_LINE to check for PG_BEGIN . 
     72   * EdgeKind.CLOSE_LINE to check for PG_END. 
     73   * EdgeKind.SEGMENT to check for PG_BEGIN and PG_END . 
    7274   * To apply the paragraph visualization properties as follows: 
    7375    * EdgeKind.OPEN_LINE - top spacing, line spacing, first line indent, left indent, right indent.