diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-22 09:11:03 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-22 09:11:03 +1000 |
commit | 0801e0084a5cf87f424235d5947f5158474d5da4 (patch) | |
tree | c5e5a3be2dfd1d94dd3597cb39edadc510f0273e /src/Document.h | |
parent | af243dd42dabdabd15a92a295d66f721e44dd473 (diff) | |
download | scintilla-mirror-0801e0084a5cf87f424235d5947f5158474d5da4.tar.gz |
Encapsulate the LexInterface of Document.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Document.h b/src/Document.h index b6c9c5bd1..788f9bd33 100644 --- a/src/Document.h +++ b/src/Document.h @@ -228,6 +228,7 @@ private: bool matchesValid; std::unique_ptr<RegexSearchBase> regex; + std::unique_ptr<LexInterface> pli; public: @@ -243,8 +244,6 @@ public: } }; - LexInterface *pli; - int eolMode; /// Can also be SC_CP_UTF8 to enable UTF-8 mode int dbcsCodePage; @@ -415,6 +414,8 @@ public: void IncrementStyleClock(); void SCI_METHOD DecorationSetCurrentIndicator(int indicator); void SCI_METHOD DecorationFillRange(Sci_Position position, int value, Sci_Position fillLength); + LexInterface *GetLexInterface() const; + void SetLexInterface(LexInterface *pLexInterface); int SCI_METHOD SetLineState(Sci_Position line, int state); int SCI_METHOD GetLineState(Sci_Position line) const; |