ScripterNG/Development/PortingOldScripter gsoc2011: Difference between revisions

From Scribus Wiki
Jump to navigation Jump to search
(Created page with "==Document API== Object name : Scripter.activeDocument {| class="wikitable" |- ! Old Scripter Func/Prop Name !! File (in old scripter) |- | Example || Example |- | Example || Ex...")
 
No edit summary
Line 4: Line 4:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Old Scripter Func/Prop Name !! File (in old scripter)
! Old Scripter Func/Prop Name !! Filename (in old scripter) !! Scripter2
|-
|-
| Example || Example
| closedoc || cmddoc.cpp || Scripter.activeDocument.close()
|-
|-
| Example || Example
| havedoc || cmddoc.cpp || Scripter.activeDocument.available()
|-
|-
| Example || Example
| selcount || cmdmani.cpp || Scripter.activeDocument.selection
|-
|-
| Example || Example
| pagedimension || cmdpage.cpp || Scripter.activeDocument.dimensions
|-
|-
| Example || Example
| getpagemargins || cmdpage.cpp || Scripter.activeDocument.margins
|}
|}

Revision as of 16:47, 13 May 2011

Document API

Object name : Scripter.activeDocument

Old Scripter Func/Prop Name Filename (in old scripter) Scripter2
closedoc cmddoc.cpp Scripter.activeDocument.close()
havedoc cmddoc.cpp Scripter.activeDocument.available()
selcount cmdmani.cpp Scripter.activeDocument.selection
pagedimension cmdpage.cpp Scripter.activeDocument.dimensions
getpagemargins cmdpage.cpp Scripter.activeDocument.margins