[[BackLinksMenu]]
[[TicketQuery(summary=TEXT_RESOURCE_HTML_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 ==
User should be able to import html as a resource. When inserted on the stage the resource should appear as text frame containing the information form the html file. Most of the html tags and styles should be applied to the resulting text. A message that warns the user for eventual data lost, should appear.
* For example if there is a tag - a corresponding bold style should be added for the resulting HotText. This style sholud be applied till
tag is met in the html document.
* The resulting text could have non-corresponding nesting of tags (example: ) due to the noncorresponding nesting in html.
As almost all resources this one should have origin(the origin url) and reload functionality(all edits should be lost when reloading - user should be notified for this).
== Task requirements ==
* Provide "HTML Document..." in the Insert menu.
* Provide a chooser for the html files.
* Provide a "plain" resulting HotText from the html file resource, meaning that no styles or tags will be applied yet.
* Optional we may be able to create reload functionality and origin property.
== Task result ==
The result should be source code.
== Implementation idea ==
Use HTMLEditorKit.ParserCallback from the javax.swing.text.html package to create a Parser for the html text.
== Related ==
[wiki:BOOK_HTML_EXPORT_R0]
== How to demo ==
* Run the application
* Create a new book
* Go to insert menu and select insert html file
* Chose simple html file to be imported on the stage
= 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.)