diff options
author | nyamatongwe <unknown> | 2000-04-10 03:29:08 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-04-10 03:29:08 +0000 |
commit | ff3e9e7e239217ae5247b1519090a5137e056f80 (patch) | |
tree | fb20ac39661cf0f95e9f1f2cf696fd2dcf545d4f /src/Document.h | |
parent | e138c0e643049ff9ac25bbd69eeb4f709c5547e5 (diff) | |
download | scintilla-mirror-ff3e9e7e239217ae5247b1519090a5137e056f80.tar.gz |
Tab size and indent size can now be different.
Indentation can contain either a mixture of tabs and spaces or only spaces.
Diffstat (limited to 'src/Document.h')
-rw-r--r-- | src/Document.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Document.h b/src/Document.h index 2e00efee5..af449ac73 100644 --- a/src/Document.h +++ b/src/Document.h @@ -90,6 +90,8 @@ public: // dbcsCodePage can also be SC_CP_UTF8 to enable UTF-8 mode int dbcsCodePage; int tabInChars; + int indentInChars; + bool useTabs; Document(); virtual ~Document(); @@ -182,10 +184,15 @@ private: bool IsWordChar(unsigned char ch); bool IsWordAt(int start, int end); void ModifiedAt(int pos); + + int GetLineIndentation(int line); + int GetLineIndentPosition(int line); void NotifyModifyAttempt(); void NotifySavePoint(bool atSavePoint); void NotifyModified(DocModification mh); + + int IndentSize() { return indentInChars ? indentInChars : tabInChars; } }; // To optimise processing of document modifications by DocWatchers, a hint is passed indicating the |