From 50fe4c1dedae94692f95ffaf79c60bb122616d37 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 9 Feb 2003 00:38:33 +0000 Subject: Protected style fixed in several ways. Method to determine cheaply if protection turned on at all. Caret movement doesn't skip over text outside protected range. Methods for deciding if a range or the selection contains protected text. Several deletion commands perform no action if they would delete protected text. Two phase drawing no longer draws invisible text. --- src/ViewStyle.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 887170eaa..d43ccef67 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -78,6 +78,7 @@ public: ColourPair edgecolour; int edgeState; int caretWidth; + bool someStylesProtected; ViewStyle(); ViewStyle(const ViewStyle &source); @@ -88,6 +89,7 @@ public: void ResetDefaultStyle(); void ClearStyles(); void SetStyleFontName(int styleIndex, const char *name); + bool ProtectionActive() const; }; #endif -- cgit v1.2.3