CDocBuilderContext
Class used by ONLYOFFICE Document Builder for getting JS context for working.
Syntax
class CDocBuilderContext
Methods
| Name | Description |
|---|---|
| AllocMemoryTypedArray | Allocates the memory for a typed array. (C++ only) |
| CreateArray | Creates an array, an analogue of new Array (length) in JS. |
| CreateNull | Creates a null value, an analogue of null in JS. |
| CreateObject | Creates an empty object, an analogue of {} in JS. |
| CreateScope | Creates a context scope. |
| CreateTypedArray | Creates a Uint8Array value, an analogue of Uint8Array in JS. (not used in Java and Python) |
| CreateUndefined | Creates an undefined value, an analogue of undefined in JS. |
| FreeMemoryTypedArray | Frees the memory for a typed array. (C++ only) |
| GetGlobal | Returns the global object for the current context. |
| IsError | Checks for errors in JS. |
note
Java uses camelCase method names: createArray, createNull, createObject, etc.