Changes between Version 18 and Version 19 of SCRIPTING_ACTIONS_API_R0


Ignore:
Timestamp:
08/03/09 21:34:03 (16 years ago)
Author:
mitex
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SCRIPTING_ACTIONS_API_R0

    v18 v19  
    164164   * Property | Type | Description | Examples 
    165165   * title | string | Book's title | {{{book.title = 'Demonstration Book'}}} 
     166   * pages | array of Page | All pages in the book | Getting the number of pages: {{{book.pages.length}}} 
    166167   * pageSize | ImmSize | Page's dimensions | Getting the page height: {{{var height = book.pageSize.height}}}; Setting new dimensions: {{{book.pageSize = new ImmSize(600, 900);}}} 
     168  * Methods in Book: 
     169   * Method | Description | Examples 
     170   * function newPage() | Creates a new page in the book and returns it | Add new page after existing pages: book.newPage()}}} 
     171   * function removePage(index) | Removes the page with the given index. The first page has an index 0 (not 1) | Delete last page: {{{b.removePage(b.pages.length - 1)}}} 
     172   * function movePage(oldIndex, newIndex) | Moves the page with index {{{oldIndex}}} to index {{{newIndex}}} | Move the first page after the second: {{{book.movePage(0, 1)}}} 
     173   * setCurrentPage(page) | Sets the given page as current | 
     174 
     175 * Page: 
     176  * Properties: 
     177   * pageNumber | integer | Gets the number of the page. First page has a number 1. Page number cannot be changed. | 
     178   * name | string | Gets the name of the page, for example "Page A" | 
     179   * boundingRectangle | ImmRect | Gets the rectangle that contains all page elements (frames, etc.) | Get the width of the rectangle: {{{book.pages[0].boundingRectangle.size.width}}} 
     180   * frames | array of Frame | All frames in the page | Getting the number of frames in 1st page: {{{book.pages[0].frames.length}}} 
     181  * Methods: 
     182   * newFrame() | Creates a new frame in the page and returns it. | 
     183   * removeFrame(index) | Removes the frame with the given index (starting from zero) | 
     184 
     185 * Frame 
     186  * Properties: 
     187   * name | string | Gets the name of the frame | 
     188   * size | ImmSize | The outer size of the frame | Set the frame's size to be the same as the page's size (without moving it to the top-left corner): {{{book.pages[0].frames[0].size = book.pageSize}}} 
     189   * zOrder | integer | The z-order of the frame. The bottom-most frame has z-order 0, the front-most has the biggest z-order | 
     190   * contentLocation | ImmPoint | The location (the coordinates) of the frame content | 
     191   * rotatingAngle | double | The angle at which the frame is rotated. Currently it is in radians, but in next revisions it will be in degrees. |