|
OWLNext 6.32
|
#include <filedoc.h>
Public Types | |
| enum | TFileDocProp { PrevProperty = TDocument::NextProperty-1, CreateTime, ModifyTime, AccessTime, StorageSize, FileHandle, NextProperty } |
Public Member Functions | |
| bool | Open (int mode, LPCTSTR path=0) |
| bool | Close () |
| TInStream * | InStream (int mode, LPCTSTR strmId=0) |
| TOutStream * | OutStream (int mode, LPCTSTR strmId=0) |
| bool | Commit (bool force=false) |
| bool | Revert (bool clear=false) |
| int | FindProperty (LPCTSTR name) |
| int | PropertyFlags (int index) |
| LPCTSTR | PropertyName (int index) |
| int | GetProperty (int index, void *dest, int textlen=0) |
| bool | SetProperty (int index, const void *src) |
| bool | Open (HFILE fhdl) |
| TFileDocument (TDocument *parent=0) | |
| ~TFileDocument () | |
| bool | IsOpen () |
| int | PropertyCount () |
Protected Member Functions | |
| HFILE | OpenThisFile (int omode, const tstring &fileName, std::streampos *pseekpos) |
| void | CloseThisFile (HFILE fhdl, int omode) |
Friends | |
| class | TFileInStream |
| class | TFileOutStream |
Derived from TDocument, TFileDocument opens and closes views and provides stream support for views. TFileDocument has member functions that continue to process FileNew and FileOpen messages after a view is constructed. You can add support for specialized file types by deriving classes from TFileDocument. TFileDocument makes this process easy by hiding the actual process of storing file types.
Contains constants that define the following properties of the document:
1.7.4