ScripterNG/Development/PortingOldScripter gsoc2011: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
No edit summary
Line 1: Line 1:
==Document API==
==Document related commands==
Object name : Scripter.activeDocument
filename : cmddoc.h, cmddoc.cpp
 
{| class="wikitable"
{| class="wikitable"
|-
|-
! Old Scripter Func/Prop Name !! Filename (in old scripter) !! Scripter2
! command in old scripter !! speculated in Scripter2 !! Proposed API !! Status
|-
|-
| closedoc || cmddoc.cpp || Scripter.activeDocument.close()
| closeDoc(...) || Scripter.activeDocument.close() || Document API || done
|-
|-
| havedoc || cmddoc.cpp || Scripter.activeDocument.available()
| Example || Example || .. || ..
|-
| setmargins || cmddoc.cpp || Scripter.activeDocument.margins.set(..)
|-
|-
| selcount || cmdmani.cpp || Scripter.activeDocument.selection
| Example || Example || .. || ..
|-
| pagedimension || cmdpage.cpp || Scripter.activeDocument.dimensions
|-
| getpagemargins || cmdpage.cpp || Scripter.activeDocument.margins
|-
 
| getpageitems || cmdpage.cpp || Scripter.activeDocument.items
|-
|-
| Example || Example || .. || ..
|}


| docchanged || guiapp.cpp || Scripter.activeDocument.modified
* closeDoc(...)
|-
* docChanged(...)
| getallobj || cmdgetprop.cpp || Scripter.activeDocument.items
* getUnit(...)
|}
* haveDoc(...)
* loadStylesFromFile(...)

Revision as of 17:12, 13 May 2011

Document related commands

filename : cmddoc.h, cmddoc.cpp

command in old scripter speculated in Scripter2 Proposed API Status
closeDoc(...) Scripter.activeDocument.close() Document API done
Example Example .. ..
Example Example .. ..
Example Example .. ..
  • closeDoc(...)
  • docChanged(...)
  • getUnit(...)
  • haveDoc(...)
  • loadStylesFromFile(...)