Changes between Version 3 and Version 4 of GROUP_PLAIN_AND_RTF_RESOURCES_R0


Ignore:
Timestamp:
07/02/09 20:33:34 (16 years ago)
Author:
diana
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GROUP_PLAIN_AND_RTF_RESOURCES_R0

    v3 v4  
    2727 * Save and reload the book 
    2828= Design = 
    29 ^(Describe your design here.)^ 
     29Two new modules are created: one for importing plain text documents and the other - for importing rtf documents. 
     30The html modole is extended with functionality for importing html documents. 
     31A new abstract class ImportUtil is created with the following methods: 
     32 * handleHelper - helper fo the handle function of each newly created modules. 
     33 * insertFrame - inserts a new Frame in the current book 
     34 * createHotTextBookResource - creates HotTextBookResource for insert operation. 
     35 * abstract method createRes - fills the HotTextBookResource  with appropriate content for each import module. 
     36Each module has RtfImportUtil/HtmlImportUtil/PlainTextImportUtil which extends this class and cretes appropriate content for the  
     37newly added HotTextBookResource. 
     38A new abstract class is added ApplyStyles with the following functions: 
     39 * applyStyles - apply styles recurselively to its HotText parameter according to the html/rtf tags. 
     40 * abstract  method getCorrespondingVal - returns the corresponding CommonAttr with value for each tag in html/rtf document. 
     41The module for importing rtf documents and the module for importing html documents have the following class: 
     42 * ApplyRtfStyles/ApplyHtmlStyles - extends ApplyStyles and use AttributedPair class to get the corresponding CommonAttr for each  
     43pair tag/attribute. 
     44Each of the modules for importing rtf/html uses RTFEditorKit/HTMLEditorKit to get the attributes from the html/rtf document. 
    3045 
     46Tests can be found here: [] 
    3147= Implementation = 
    32 ^(Describe and link the implementation results here (from the wiki or the repository).)^ 
    33  
     48Done according to the design. 
     49Source code: [] 
    3450= Testing = 
    3551^(Place the testing results here.)^ 
    3652 
    3753= Comments = 
    38 ^(Write comments for this or later revisions here.) 
     54In the next revision the function getCorrespondingVal should be removed. 
     55Some kind of AttributedIterator may be used to obtain the values directly.