Analysis
Overview
When the user define a custom style for a paragraph and then creates second one, the style of the second paragraph should be default. This functionality should present in all cases when the user could edit text(text frame, detached text frame editor etc.). However if they are custom defined character appearance they shouldn't change(same rule is applied for links).
Task requirements
- Provide functionality that automatically applies default paragraph style to newly created paragraphs.
Task result
- The result should be code.
Implementation idea
- In order to stay remain consistence please review TEXT_PARAGPRAPH_FORMAT_COMMONS_R0 and TEXT_PARAGRAPH_CHAR_STYLE_R0.
- Create predefine default paragraph style and apply it to a paragraph when he is created.
Related
TEXT_PARAGPRAPH_FORMAT_COMMONS_R0
TEXT_PARAGRAPH_ALIGN_R0
TEXT_PARAGRAPH_SPACING_R0
TEXT_PARAGRAPH_CHAR_STYLE_R0
TEXT_PARAGRAPH_NEXT_STYLE_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/)
- Define custom paragraph style including characters appearance in the paragraph(change the color for example).
- Set focus in the middle of the paragraph. Press enter. This way you'll create separated paragraph.
- The new paragraph should have default paragraph style applied(color should change).
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.)