wiki:TEXT_PARAGPRAPH_FORMAT_COMMONS_R0
Last modified 16 years ago Last modified on 02/06/09 15:25:42

Error: Macro BackLinksMenu(None) failed
compressed data is corrupt

Error: Macro TicketQuery(summary=TEXT_PARAGPRAPH_FORMAT_COMMONS_R0, format=table, col=summary|owner|status|type|component|priority|effort|importance, rows=description|analysis_owners|analysis_reviewers|analysis_score|design_owners|design_reviewers|design_score|implementation_owners|implementation_reviewers|implementation_score|test_owners|test_reviewers|test_score|) failed
current transaction is aborted, commands ignored until end of transaction block

Analysis

Overview

User should be able to manipulate paragraph format options from the halo menu, that appears automatically when the focus is set to a text paragraph. Also this settings should be accessible from detached text frame editor menu.
There should be a paragraph settings hud that is evoked from text halo menu. It should provide control over all paragraph settings as well as adding, editing, loading, saving and deleting text paragraph styles sets. Also the user should be able to edit characters appearance in the entire paragraph. For that purpose we will integrate character settings hud inside paragraph settings hud. However this will look stressful for inexperienced users that is why we will create this hud with 2 states expanded and collapsed. Expanded state will include entire functionality and the collapsed state will include everything except characters settings.

Task requirements

  • Create a prototype for paragraph settings hud.
  • Provide accessible interface for all settings.
  • Provide easy way for development of sub tasks (TEXT_PARAGRAPH_* listed in the related section).

Task result

  • The result should be code

Implementation idea

  • Use javax.swing.text.StyleConstants class to provide needed styles.
  • Instead of starting everything from the beginning see whats already implemented (org.sophie2.main.view.halos.menus.text.TextHaloMenu and org.sophie2.main.view.halos.menus.text.ParagraphHud) and step on it for providing additional functionality.
  • See if ParagraphHud is in correct location. Shouldn't it be part of org.sophie2.main.view.halos.huds instead org.sophie2.main.view.halos.menus.text. Also some of the functionality for this hud is located in related tasks, please review them before implement something that is not part of this task.
  • Since this is R0 please don't remove existing functionality for now, just extend or refactor it if there is a need.
  • Here is a scheme how paragraph settings hud could look like in collapsed state

source:trunk/sophie2-platform/doc/userdoc-images/RELEASE_5/paragraphStettingsHud.jpg

  • And the expanded state

source:trunk/sophie2-platform/doc/userdoc-images/RELEASE_5/paragraphStettingsHudExpanded.jpg

DETACHED_TEXT_FRAME_EDITOR_R0
TEXT_CHARACTER_FORMAT_COMMONS_R0
TEXT_PARAGRAPH_ALIGN_R0
TEXT_PARAGRAPH_SPACING_R0
TEXT_PARAGRAPH_STYLE_TEMPLATES_R0
TEXT_PARAGRAPH_CHAR_STYLE_R0
TEXT_PARAGRAPH_NEXT_STYLE_R0

TEXT_HALO_MENU_R0

How to demo

  • Run the application
  • Create a new book and place text frame inside
  • Populate some lorem ipsum text inside with a number of paragraphs(lorem ipsum generator --> http://www.lipsum.com/)
  • See if you can adjust the settings of separated paragraphs

Design

(Describe your design here.)

Implementation

(Describe and link the implementation results here (from the wiki or the repository).)

Testing

(Place the testing results here.)

Comments

(Write comments for this or later revisions here.)