From 4eefcbc170bbb0647d4828dbc1a0f93399e2db95 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 22 Jun 2000 05:49:23 +0000 Subject: Removed deprecated APIs. Added gets to match sets for UndoCollection, BufferedDraw, CodePage, UsePalette, ReadOnly, CaretFore, and ModEventMask. Undo collection status is a bool again - enumeration deprecated. Timing code commented out. --- src/Document.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/Document.h') diff --git a/src/Document.h b/src/Document.h index 64955639e..b8f24ebe1 100644 --- a/src/Document.h +++ b/src/Document.h @@ -113,9 +113,10 @@ public: bool CanUndo() { return cb.CanUndo(); } bool CanRedo() { return cb.CanRedo(); } void DeleteUndoHistory() { cb.DeleteUndoHistory(); } - undoCollectionType SetUndoCollection(undoCollectionType collectUndo) { + bool SetUndoCollection(bool collectUndo) { return cb.SetUndoCollection(collectUndo); } + bool IsCollectingUndo() { return cb.IsCollectingUndo(); } void BeginUndoAction() { cb.BeginUndoAction(); } void EndUndoAction() { cb.EndUndoAction(); } void SetSavePoint(); @@ -128,6 +129,7 @@ public: void Indent(bool forwards, int lineBottom, int lineTop); void ConvertLineEnds(int eolModeSet); 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); -- cgit v1.2.3