From dba48e020c0a68a84f4f5f11d5600bba90598da3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 10 Apr 2000 03:29:08 +0000 Subject: Tab size and indent size can now be different. Indentation can contain either a mixture of tabs and spaces or only spaces. --- src/Document.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Document.h') 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 -- cgit v1.2.3