diff options
| author | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2013-08-09 12:51:42 +1000 | 
| commit | 227385917246e410723a9f68c5960053a932982f (patch) | |
| tree | 83cf208d48149c48df77df0c914a6e356ef22879 /src/ViewStyle.h | |
| parent | 6e5804b4ecfbfd0fe6ac4228c40ef121c96452ab (diff) | |
| download | scintilla-mirror-227385917246e410723a9f68c5960053a932982f.tar.gz | |
Move wrapping, edge and visual adjustments from Editor to ViewStyle.
Move printing parameters into a separate struct.
Diffstat (limited to 'src/ViewStyle.h')
| -rw-r--r-- | src/ViewStyle.h | 18 | 
1 files changed, 18 insertions, 0 deletions
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<FontSpecification, FontRealised *> 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);  | 
