loaddocumentΒΆ
Load a new document
Arguments:
- file The gproject file to load (or nil to display a file dialog)
- warn If true, warn the user when the current document is modified and wait for Ok or Cancel to proceed
- discardmissingref If true, don't ask for the user to provide correct reference path and go on without the reference instead.
- loadrefs Replace references
- loadasbox Force the document to load as bounding boxes
Return:
- success true if the file was loaded (false when an error occured or the user canceled)