Changes between Version 2 and Version 3 of SCRIPTING_ACTIONS_API_R0


Ignore:
Timestamp:
07/14/09 17:47:57 (16 years ago)
Author:
deni
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SCRIPTING_ACTIONS_API_R0

    v2 v3  
    1616 
    1717== Task requirements == 
    18 ^(List the necessary requirements that the task must fulfill.)^ 
     18 
     19 * The user should have access to the current book and should be able to do the following actions with it: 
     20  * get/set its title  
     21  * get/set the page size (width and height) 
     22  * get a list of all pages or a page with a given index 
     23  * add a new page in it 
     24  * remove a page 
     25  * reorder the pages 
     26  * get/set the current page 
     27 * For every page the user should be able to: 
     28  * get/set its name 
     29  * get its index (but not set it) 
     30  * get the bounding rectangle (a rectangle that contains all page elements) 
     31  * [Optional for this revision] get/set the background style 
     32  * [Optional for this revision] get/set the border style 
     33  * get a list of all frames 
     34  * add a new frame 
     35  * remove a frame 
     36 * For every frame the user should be able to: 
     37  * get/set its size 
     38  * get/set its z-order 
     39  * get/set its content location 
     40  * get/set its rotation angle 
     41  * get/set its background style 
     42  * get/set its border style 
     43  * get/set its paddings 
     44 * [Optional] The user should also be able to work with groups. 
     45 
     46 * Allow scripts to be defined as link actions. 
     47  * The action settings panel should contain a combo box with all available scripts for current book. 
    1948 
    2049 * Security 
     
    2756 
    2857== Implementation idea == 
     58 * Decide whether to expose the model classes (org.sophie2.base.model.book.Book, org.sophie2.base.model.book.Page, org.sophie2.base.model.book.Frame, etc.) or to write facade classes. 
     59  * The first approach will make scripts very powerful - the user will be able to do with them everything he/she can do with the application. In addition, it won't be necessary to update the facade every time we change something. 
     60  * The second approach however will be more convenient for the user. It will also solve most of the security issues. 
    2961 
    3062 * To filter the access to some Java classes: