diff options
author | Neil <nyamatongwe@gmail.com> | 2017-06-22 16:38:26 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-06-22 16:38:26 +1000 |
commit | cac2920096062453ed19e5697146cd1b42ba088d (patch) | |
tree | 4de045a6b3dc4bc82f40964607f52fd0949a3ab0 /include/ILexer.h | |
parent | d1be79eee1940dc99389deefd9d3ae766c3035e3 (diff) | |
download | scintilla-mirror-cac2920096062453ed19e5697146cd1b42ba088d.tar.gz |
Update IDocument for version 4. Drop IDocumentWithLineEnd interface to just have
IDocument but with all the methods from IDocumentWithLineEnd. This removes
version checking (for now). Use dvRelease4 ID.
Drop mask argument to StartStyling.
Diffstat (limited to 'include/ILexer.h')
-rw-r--r-- | include/ILexer.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/include/ILexer.h b/include/ILexer.h index f01029178..5680acb4e 100644 --- a/include/ILexer.h +++ b/include/ILexer.h @@ -20,7 +20,7 @@ namespace Scintilla { #define SCI_METHOD #endif -enum { dvOriginal=0, dvLineEnd=1 }; +enum { dvRelease4=2 }; class IDocument { public: @@ -35,7 +35,7 @@ public: virtual int SCI_METHOD SetLevel(Sci_Position line, int level) = 0; virtual int SCI_METHOD GetLineState(Sci_Position line) const = 0; virtual int SCI_METHOD SetLineState(Sci_Position line, int state) = 0; - virtual void SCI_METHOD StartStyling(Sci_Position position, char mask) = 0; + virtual void SCI_METHOD StartStyling(Sci_Position position) = 0; virtual bool SCI_METHOD SetStyleFor(Sci_Position length, char style) = 0; virtual bool SCI_METHOD SetStyles(Sci_Position length, const char *styles) = 0; virtual void SCI_METHOD DecorationSetCurrentIndicator(int indicator) = 0; @@ -45,10 +45,6 @@ public: virtual bool SCI_METHOD IsDBCSLeadByte(char ch) const = 0; virtual const char * SCI_METHOD BufferPointer() = 0; virtual int SCI_METHOD GetLineIndentation(Sci_Position line) = 0; -}; - -class IDocumentWithLineEnd : public IDocument { -public: virtual Sci_Position SCI_METHOD LineEnd(Sci_Position line) const = 0; virtual Sci_Position SCI_METHOD GetRelativePosition(Sci_Position positionStart, Sci_Position characterOffset) const = 0; virtual int SCI_METHOD GetCharacterAndWidth(Sci_Position position, Sci_Position *pWidth) const = 0; |