[[BackLinksMenu]] [[TicketQuery(summary=TEXT_CHAIN_AUTO_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|)]] = Analysis = == Overview == Autochaining should be more stable == Task requirements == * Add an item "Autochain" in the chain dropdown and remove the autochain button. * The item may be italic in order to be clear that it is not a regular item * When autochaining is enabled, a template for this page is automatically added. * When the last page is modified, a new template is created automatically on creating a new page for the flow. * New pages appear with the layout of the last page in the chain. * When the text overflows, a new page with the same layout is created at the end of the page sequence * The page may contain more than one auto chained frame * When text is deleted and the flow no longer fills all of the frames on a page * If the page has local modifications, it is not deleted * If there are previous pages without local modifications, they are deleted (there should not be text from other flows) * When autochain is created the last frame of the autochain should be with enabled autochain by default: * Create text frame paste. -> Text frame is inserted. * Paste text in it. -> The frame is filled with text (visual marker appears (optional)). * Click on autochain. -> New pages with same template are created. * Paste some text in the already created autochain. -> New pages with frames should be added after the last, because the text is overflowing. * Optional - When a text frame is full and unchained, make a red glow to indicate that there is text that is not displayed * This glow should be visible in author mode only == Task result == Code == Implementation idea == Make a single method that uses the dry run of HotLayout and recalculates the areas needed for the text flow. It should add or remove pages if necessary. When auto-chaining is enabled call this method whenever chainging the layout of the HeadTextFrameView. == Related == TEXT_AUTO_CHAIN_BEHAVIOUR_R1[[BR]] TEXT_AUTO_CHAIN_BEHAVIOUR_R0 == How to demo == * First case: * Create a page * Set custom layout. * Insert an image frame * Insert a text frame, put enough text and autochain * Delete the text and show that pages are deleted * Second case: * Create text frame paste. -> Text frame is inserted. * Paste text in it. -> The frame is filled with text (visual marker appears (optional)). * Click on autochain. -> New pages with same template are created. * Paste some text in the already created autochain. -> New pages with frames should be added after the last, because the text is overflowing. = 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.)