TBinary Document Ancestor Class
Manage documents as binary files. If you provide a private key they are encrypted with a XOR algorithm.
The TBinaryDocumentAncestor type exposes the following members.
Name | Description | |
---|---|---|
![]() | Create | Used to create a new instance of this class. It's better to use TDocument.DefaultDocument if you have only one document in your project, but create instances for each document if you want to edit more than one at the same time. (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
Name | Description | |
---|---|---|
![]() | FileName | The FileName for this document (no path, no extension) if opened by LoadFromFile(WithAName) or it has been saved by SaveToFile(WithAName) (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
![]() | HasChanged | Returns True if a document parameter has changed since last Clear(), LoadXXX() or SaveXXX() (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
![]() | Path | Path to the folder where this document will be saved. (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
Name | Description | |
---|---|---|
![]() | Clear | Used to clean current instance and reset all properties and fields to their default values (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
![]() | GetDocumentExtension | Returns the file extension for the storrage file of this document. (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
![]() | GetDocumentGUID | Returns the unique identifier used in the document jeader to check if the file is compatible with this project. (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
![]() | GetPrivateXORKey | Returns the optional key to use to crypt/uncrypt the document file. |
![]() | IsCrypted | Returns True if this document as a Private XOR Key and should by crypted (Overrides uDocumentsAncestor.TDocumentAncestor.IsCrypted .) |
![]() | LoadFromFile | Load this document from a file. (Overrides uDocumentsAncestor.TDocumentAncestor.LoadFromFile .) |
![]() | LoadFromStream | Load the document content in this instance. |
![]() | SaveToFile | Save this document to a file. (Overrides uDocumentsAncestor.TDocumentAncestor.SaveToFile .) |
![]() | SaveToStream | Save this instance to the given stream. |
![]() | SetHasChanged | (Inherited from uDocumentsAncestor.TDocumentAncestor .) |
In your descendants, don't forget to override the methods GetDocumentGUID, GetDocumentExtension and GetPrivateXORKey