
This method creates a stationery document of the specified part with the content of the part's storage unit in the data file.
Signature
ODBoolean CreateTemplate (ODPart *part,
ODSession *session,
string ObjectID,
string ObjectTitle,
ODStorageUnit *unit)
|
Parameters
Returns
| kODTrue | The stationery document was created. |
| kODFalse | The stationery document was not created. |
Remarks
This stationery document is placed in the OpenDoc Stationery folder on the desktop with the specified object ID as its Workplace Shell object ID.
Exception Handling
| kODErrFocusNotRegistered | The requested focus is not registered. |
| kODErrOutOfMemory | There is not enough memory to allocate the focus-owner iterator object. |
Related Methods
This method deletes a stationery document with the specified object ID.
Signature
ODBoolean DeleteTemplate (string ObjectID) |
Parameters
Returns
| kODTrue | The stationery document was deleted. |
| kODFalse | The stationery document was not deleted. |
This method returns an empty storage unit into which the part can clone its storage unit.
Signature
ODStorageUnit *GetStorageUnit (ODSession *session) |
Parameters
Returns