Changes between Version 14 and Version 15 of TEXT_PARAGRAPH_SPACING_R0
- Timestamp:
- 06/15/09 13:37:51 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TEXT_PARAGRAPH_SPACING_R0
v14 v15 44 44 45 45 = 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. 48 On 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 50 PG_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 52 PG_END attribute. 51 53 * 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_PARAGRAPHin the specified style.54 * static method existsEndParagraph(HotStyleDef) - checks if there is END_PARAGRAPHin 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. 55 57 * Layout 56 58 * Extend Atom class functionality with paragraph related attributes: 57 * Add Atom.isParaBegin to check for BEGIN_PARAGRAPHattribute.58 * Modify Atom.isParaEnd to check for END_PARAGRAPHattribute.59 * Add Atom.isParaBegin to check for PG_BEGIN attribute. 60 * Modify Atom.isParaEnd to check for PG_END attribute. 59 61 * Methods for indentation, top and bottom spacing, etc. 60 62 * Add VertexFields values for the needed paragraph properties: … … 67 69 * right indent 68 70 * 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 . 72 74 * To apply the paragraph visualization properties as follows: 73 75 * EdgeKind.OPEN_LINE - top spacing, line spacing, first line indent, left indent, right indent.