diff options
| author | nyamatongwe <unknown> | 2007-02-04 08:52:03 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2007-02-04 08:52:03 +0000 | 
| commit | 94748a6e7a7b88371c88e6af24338b71fb184a0e (patch) | |
| tree | 0f2b99f4f9e0d77a25d12f713a427ab24b786eaa /src | |
| parent | b38df338445feaf03674bf2cb471dd1b516970c6 (diff) | |
| download | scintilla-mirror-94748a6e7a7b88371c88e6af24338b71fb184a0e.tar.gz | |
Patch from Chris Rickard adds get calls for many style settings.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 78 | 
1 files changed, 78 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index b50984b92..7f46543f1 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6775,7 +6775,73 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  			InvalidateStyleRedraw();  		}  		break; +	case SCI_STYLEGETFORE: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].fore.desired.AsLong(); +		else +			return 0;  +	case SCI_STYLEGETBACK: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].back.desired.AsLong(); +		else +			return 0; +	case SCI_STYLEGETBOLD: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].bold ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETITALIC: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].italic ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETEOLFILLED: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].eolFilled ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETSIZE: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].size; +		else +			return 0; +	case SCI_STYLEGETFONT: +		if (lParam == 0) +			return strlen(vs.styles[wParam].fontName); +		if (wParam <= STYLE_MAX) +			strcpy(CharPtrFromSPtr(lParam), vs.styles[wParam].fontName); +		break; +	case SCI_STYLEGETUNDERLINE: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].underline ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETCASE: +		if (wParam <= STYLE_MAX) +			return static_cast<int>(vs.styles[wParam].caseForce); +		else +			return 0; +	case SCI_STYLEGETCHARACTERSET: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].characterSet; +		else +			return 0; +	case SCI_STYLEGETVISIBLE: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].visible ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETCHANGEABLE: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].changeable ? 1 : 0; +		else +			return 0; +	case SCI_STYLEGETHOTSPOT: +		if (wParam <= STYLE_MAX) +			return vs.styles[wParam].hotspot ? 1 : 0; +		else +			return 0;  	case SCI_STYLERESETDEFAULT:  		vs.ResetDefaultStyle();  		InvalidateStyleRedraw(); @@ -7312,22 +7378,34 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {  		InvalidateStyleRedraw();  		break; +	case SCI_GETHOTSPOTACTIVEFORE: +		return vs.hotspotForeground.desired.AsLong(); +  	case SCI_SETHOTSPOTACTIVEBACK:  		vs.hotspotBackgroundSet = wParam != 0;  		vs.hotspotBackground.desired = ColourDesired(lParam);  		InvalidateStyleRedraw();  		break; +	case SCI_GETHOTSPOTACTIVEBACK: +		return vs.hotspotBackground.desired.AsLong(); +  	case SCI_SETHOTSPOTACTIVEUNDERLINE:  		vs.hotspotUnderline = wParam != 0;  		InvalidateStyleRedraw();  		break; +	case SCI_GETHOTSPOTACTIVEUNDERLINE: +		return vs.hotspotUnderline ? 1 : 0; +  	case SCI_SETHOTSPOTSINGLELINE:  		vs.hotspotSingleLine = wParam != 0;  		InvalidateStyleRedraw();  		break; +	case SCI_GETHOTSPOTSINGLELINE: +		return vs.hotspotSingleLine ? 1 : 0; +  	case SCI_SETPASTECONVERTENDINGS:  		convertPastes = wParam != 0;  		break;  | 
