aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-04-10 03:29:08 +0000
committernyamatongwe <devnull@localhost>2000-04-10 03:29:08 +0000
commitdba48e020c0a68a84f4f5f11d5600bba90598da3 (patch)
treefb20ac39661cf0f95e9f1f2cf696fd2dcf545d4f /src/Document.h
parent78a323542a138be07f172742fcebce0eaf203a5d (diff)
downloadscintilla-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.h7
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