aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-10-26 16:54:05 +1100
committernyamatongwe <unknown>2011-10-26 16:54:05 +1100
commit364b60217e9f79fb634e987302df94035c61558f (patch)
tree0270ed645dc3f748352379149cea607a6354f1a3 /src/Document.h
parent5c994706efdabc3fdd547d169ed99192decf67b5 (diff)
downloadscintilla-mirror-364b60217e9f79fb634e987302df94035c61558f.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.h6
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(); }