From 5b3f266d4de340bf8a881b37d7e5097d2eda16ab Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 9 Aug 2013 12:51:42 +1000 Subject: Move wrapping, edge and visual adjustments from Editor to ViewStyle. Move printing parameters into a separate struct. --- src/ViewStyle.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'src/ViewStyle.h') diff --git a/src/ViewStyle.h b/src/ViewStyle.h index 8a05cd393..22e8a8f5a 100644 --- a/src/ViewStyle.h +++ b/src/ViewStyle.h @@ -56,6 +56,8 @@ enum WhiteSpaceVisibility {wsInvisible=0, wsVisibleAlways=1, wsVisibleAfterInden typedef std::map FontMap; +enum WrapMode { eWrapNone, eWrapWord, eWrapChar }; + /** */ class ViewStyle { @@ -137,6 +139,17 @@ public: int braceHighlightIndicator; bool braceBadLightIndicatorSet; int braceBadLightIndicator; + int theEdge; + int marginNumberPadding; // the right-side padding of the number margin + int ctrlCharPadding; // the padding around control character text blobs + int lastSegItalicsOffset; // the offset so as not to clip italic characters at EOLs + + // Wrapping support + WrapMode wrapState; + int wrapVisualFlags; + int wrapVisualFlagsLocation; + int wrapVisualStartIndent; + int wrapIndentMode; // SC_WRAPINDENT_FIXED, _SAME, _INDENT ViewStyle(); ViewStyle(const ViewStyle &source); @@ -153,6 +166,11 @@ public: bool ValidStyle(size_t styleIndex) const; void CalcLargestMarkerHeight(); ColourDesired WrapColour() const; + bool SetWrapState(int wrapState_); + bool SetWrapVisualFlags(int wrapVisualFlags_); + bool SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation_); + bool SetWrapVisualStartIndent(int wrapVisualStartIndent_); + bool SetWrapIndentMode(int wrapIndentMode_); private: void AllocStyles(size_t sizeNew); -- cgit v1.2.3