This is a Document class Save the document to disc Restore the document from disc Export the dependencies of the objects as graph Open a new Undo/Redo transaction. Abort an Undo/Redo transaction (rollback) Commit an Undo/Redo transaction Add an object with given type and name to the document Remove an object from the document Copy an object from another document to this document Move an object from another document to this document Undo one transaction Redo a previosly undid transaction Clear the undo stack of the document Recompute the document Return the object with the given name Return the objects with the given label name. NOTE: It's possible that several objects have the same label name. findObjects([string (type)], [string (name)]) -> list Return a list of objects that match the specified type and name. Both parameters are optional. A list of supported types of objects Returns a file name with path in the temp directory of the document. The dependency graph as GraphViz text The active object of the document The list of object handled by this document The Undo mode of the Document (0 = no Undo, 1 = Undo/Redo) The size of the Undo stack in byte Number of possible Undos Number of possible Redos A list of Undo names A List of Redo names The internal name of the document