1 // Scintilla source code edit control
3 ** Interface for loading into a Scintilla document from a background thread.
4 ** Interface for manipulating a document without a view.
6 // Copyright 1998-2017 by Neil Hodgson <neilh@scintilla.org>
7 // The License.txt file describes the conditions under which this software may be distributed.
12 #include "Sci_Position.h"
18 virtual int SCI_METHOD
Release() = 0;
19 // Returns a status code from SC_STATUS_*
20 virtual int SCI_METHOD
AddData(const char *data
, Sci_Position length
) = 0;
21 virtual void * SCI_METHOD
ConvertToDocument() = 0;
24 static constexpr int deRelease0
= 0;
26 class IDocumentEditable
{
28 // Allow this interface to add methods over time and discover whether new methods available.
29 virtual int SCI_METHOD
DEVersion() const noexcept
= 0;
32 virtual int SCI_METHOD
AddRef() noexcept
= 0;
33 virtual int SCI_METHOD
Release() = 0;