diff options
author | nyamatongwe <devnull@localhost> | 2011-10-26 16:54:05 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-10-26 16:54:05 +1100 |
commit | b0c6298f1a5b7a1b16a20ccd577f6e2318ae95ad (patch) | |
tree | ccffc12c65a182ec59140f049c1d0e9faace2152 /src/Document.h | |
parent | 576adef9a5df55d74e2730dc3ffb5db9f0a0a3f2 (diff) | |
download | scintilla-mirror-b0c6298f1a5b7a1b16a20ccd577f6e2318ae95ad.tar.gz |
Implement ILoader interface so that clients can load documents from
background threads.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index 15aecbfe4..bd8a58274 100644 --- a/src/Document.h +++ b/src/Document.h @@ -193,7 +193,7 @@ public: /** */ -class Document : PerLine, public IDocument { +class Document : PerLine, public IDocument, public ILoader { public: /** Used to pair watcher pointer with user data. */ @@ -252,7 +252,7 @@ public: virtual ~Document(); int AddRef(); - int Release(); + int SCI_METHOD Release(); virtual void Init(); virtual void InsertLine(int line); @@ -281,6 +281,8 @@ public: void CheckReadOnly(); bool DeleteChars(int pos, int len); bool InsertString(int position, const char *s, int insertLength); + int SCI_METHOD AddData(char *data, int length); + void * SCI_METHOD ConvertToDocument(); int Undo(); int Redo(); bool CanUndo() { return cb.CanUndo(); } |