Home > Class Reference > ENSLIB namespace > CSPX.SVGEditor

CSPX.SVGEditor

class CSPX.SVGEditor extends %CSP.Page

Base class for SVG-editor documents displayed in Studio

Method Inventory

Parameters

parameter DOMAIN = Ensemble;
Use our own domain for localization
parameter EDITORURL;
URL used to render editor
parameter HEIGHT = 2000;
Initial height of editor
parameter WIDTH = 2000;
Initial width of editor

Methods

classmethod DrawHTMLHead() [ Language = objectscript ]
Draw Head section for editor page
classmethod DrawInitDocument(pDocument As %RegisteredObject) as %Status [ Language = objectscript ]
Find the document for the given document pDocument and write out its initial state as an xml document.
classmethod DrawInitEditorFunction(pDocument As %RegisteredObject) as %Status [ Language = objectscript ]
Give subclass opportunity to inject additional JS code into the client-side initEditor function
classmethod GetDocument(pName As %String, Output pDocument As %RegisteredObject) as %Status [ Language = objectscript ]
Find corresponding "document" object for this page.
classmethod OnDrawHTMLHead() [ Language = objectscript ]
Draw any additional JS or other head section items
classmethod OnPage() as %Status [ Language = objectscript ]
Inherited description: Event handler for PAGE event: this is invoked in order to generate the content of a csp page.
classmethod OnPreHTTP() as %Boolean [ Language = objectscript ]
Inherited description: Event handler for PreHTTP event: this is invoked before the HTTP headers for a CSP page have been sent. All changes to the %CSP.Response class, such as adding cookies, HTTP headers, setting the content type etc. must be made from within the OnPreHTTP() method. Also changes to the state of the CSP application such as changing %session.EndSession or %session.AppTimeout must be made within the OnPreHTTP() method. It is prefered that changes to %session.Preserve are also made in the OnPreHTTP() method as this is more efficient, although it is supported in any section of the page. Return 0 to prevent OnPage() from being called.

Inherited Members

Inherited Methods

Subclasses