From 364b60217e9f79fb634e987302df94035c61558f Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 26 Oct 2011 16:54:05 +1100 Subject: Implement ILoader interface so that clients can load documents from background threads. --- src/Document.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/Document.h') 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(); } -- cgit v1.2.3