aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Document.h
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2002-04-03 12:51:37 +0000
committernyamatongwe <devnull@localhost>2002-04-03 12:51:37 +0000
commitdb9feebd77015fb8ad8da6caceaf238da2f405ce (patch)
treea9a11313782ccf31cd3a41a64a558d20a4077f3f /src/Document.h
parented996486fea7385b7d1abd5ee085d60870c08c01 (diff)
downloadscintilla-mirror-db9feebd77015fb8ad8da6caceaf238da2f405ce.tar.gz
Enhancements to read-only mode to stop caret moving when typing or deleting.
Diffstat (limited to 'src/Document.h')
-rw-r--r--src/Document.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/Document.h b/src/Document.h
index 941ad79cc..61fe33fce 100644
--- a/src/Document.h
+++ b/src/Document.h
@@ -132,8 +132,8 @@ public:
int MovePositionOutsideChar(int pos, int moveDir, bool checkLineEnd=true);
// Gateways to modifying document
- void DeleteChars(int pos, int len);
- void InsertStyledString(int position, char *s, int insertLength);
+ bool DeleteChars(int pos, int len);
+ bool InsertStyledString(int position, char *s, int insertLength);
int Undo();
int Redo();
bool CanUndo() { return cb.CanUndo(); }
@@ -158,9 +158,9 @@ public:
void SetReadOnly(bool set) { cb.SetReadOnly(set); }
bool IsReadOnly() { return cb.IsReadOnly(); }
- void InsertChar(int pos, char ch);
- void InsertString(int position, const char *s);
- void InsertString(int position, const char *s, int insertLength);
+ bool InsertChar(int pos, char ch);
+ bool InsertString(int position, const char *s);
+ bool InsertString(int position, const char *s, int insertLength);
void ChangeChar(int pos, char ch);
void DelChar(int pos);
int DelCharBack(int pos);
@@ -233,6 +233,7 @@ private:
void NotifySavePoint(bool atSavePoint);
void NotifyModified(DocModification mh);
+ int DelCharBackMove(int pos, int len);
int IndentSize() { return indentInChars ? indentInChars : tabInChars; }
};