diff options
author | nyamatongwe <devnull@localhost> | 2000-04-10 03:29:08 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2000-04-10 03:29:08 +0000 |
commit | dba48e020c0a68a84f4f5f11d5600bba90598da3 (patch) | |
tree | fb20ac39661cf0f95e9f1f2cf696fd2dcf545d4f /src/Document.h | |
parent | 78a323542a138be07f172742fcebce0eaf203a5d (diff) | |
download | scintilla-mirror-dba48e020c0a68a84f4f5f11d5600bba90598da3.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 |