]>
git.saurik.com Git - wxWidgets.git/blob - interface/wx/stc/stc.h
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     interface of wxStyledTextEvent 
   4 // Author:      wxWidgets team 
   6 // Licence:     wxWindows license 
   7 ///////////////////////////////////////////////////////////////////////////// 
  10     @class wxStyledTextEvent 
  12     The type of events sent from wxStyledTextCtrl. 
  14     @todo list styled text ctrl events. 
  19 class wxStyledTextEvent 
: public wxCommandEvent
 
  24         Ctors; used internally by wxWidgets. 
  26     wxStyledTextEvent(wxEventType commandType 
= 0, int id 
= 0); 
  27     wxStyledTextEvent(const wxStyledTextEvent
& event
); 
  38     bool GetControl() const; 
  43     bool GetDragAllowMove(); 
  48     wxDragResult 
GetDragResult(); 
  53     wxString 
GetDragText(); 
  58     int GetFoldLevelNow() const; 
  63     int GetFoldLevelPrev() const; 
  73     int GetLParam() const; 
  78     int GetLength() const; 
  88     int GetLinesAdded() const; 
  93     int GetListType() const; 
  98     int GetMargin() const; 
 103     int GetMessage() const; 
 108     int GetModificationType() const; 
 113     int GetModifiers() const; 
 118     int GetPosition() const; 
 123     bool GetShift() const; 
 128     wxString 
GetText() const; 
 133     int GetWParam() const; 
 148     void SetDragAllowMove(bool val
); 
 153     void SetDragResult(wxDragResult val
); 
 158     void SetDragText(const wxString
& val
); 
 163     void SetFoldLevelNow(int val
); 
 168     void SetFoldLevelPrev(int val
); 
 178     void SetLParam(int val
); 
 183     void SetLength(int len
); 
 188     void SetLine(int val
); 
 193     void SetLinesAdded(int num
); 
 198     void SetListType(int val
); 
 203     void SetMargin(int val
); 
 208     void SetMessage(int val
); 
 213     void SetModificationType(int t
); 
 218     void SetModifiers(int m
); 
 223     void SetPosition(int pos
); 
 228     void SetText(const wxString
& t
); 
 233     void SetWParam(int val
); 
 249     @class wxStyledTextCtrl 
 251     A wxWidgets implementation of the Scintilla source code editing component. 
 253     As well as features found in standard text editing components, Scintilla 
 254     includes features especially useful when editing and debugging source code. 
 255     These include support for syntax styling, error indicators, code completion 
 258     The selection margin can contain markers like those used in debuggers to indicate 
 259     breakpoints and the current line. Styling choices are more open than with many 
 260     editors, allowing the use of proportional fonts, bold and italics, multiple 
 261     foreground and background colours and multiple fonts. 
 263     wxStyledTextCtrl is a 1 to 1 mapping of "raw" scintilla interface, whose 
 264     documentation can be found in the Scintilla website (http://www.scintilla.org/). 
 266     @beginEventTable{wxStyledTextEvent} 
 267     @event{EVT_STC_CHANGE(id, fn)} 
 269     @event{EVT_STC_STYLENEEDED(id, fn)} 
 271     @event{EVT_STC_CHARADDED(id, fn)} 
 273     @event{EVT_STC_SAVEPOINTREACHED(id, fn)} 
 275     @event{EVT_STC_SAVEPOINTLEFT(id, fn)} 
 277     @event{EVT_STC_ROMODIFYATTEMPT(id, fn)} 
 279     @event{EVT_STC_KEY(id, fn)} 
 281     @event{EVT_STC_DOUBLECLICK(id, fn)} 
 283     @event{EVT_STC_UPDATEUI(id, fn)} 
 285     @event{EVT_STC_MODIFIED(id, fn)} 
 287     @event{EVT_STC_MACRORECORD(id, fn)} 
 289     @event{EVT_STC_MARGINCLICK(id, fn)} 
 291     @event{EVT_STC_NEEDSHOWN(id, fn)} 
 293     @event{EVT_STC_PAINTED(id, fn)} 
 295     @event{EVT_STC_USERLISTSELECTION(id, fn)} 
 297     @event{EVT_STC_URIDROPPED(id, fn)} 
 299     @event{EVT_STC_DWELLSTART(id, fn)} 
 301     @event{EVT_STC_DWELLEND(id, fn)} 
 303     @event{EVT_STC_START_DRAG(id, fn)} 
 305     @event{EVT_STC_DRAG_OVER(id, fn)} 
 307     @event{EVT_STC_DO_DROP(id, fn)} 
 309     @event{EVT_STC_ZOOM(id, fn)} 
 311     @event{EVT_STC_HOTSPOT_CLICK(id, fn)} 
 313     @event{EVT_STC_HOTSPOT_DCLICK(id, fn)} 
 315     @event{EVT_STC_CALLTIP_CLICK(id, fn)} 
 317     @event{EVT_STC_AUTOCOMP_SELECTION(id, fn)} 
 324     @see wxStyledTextEvent 
 326 class wxStyledTextCtrl 
: public wxControl
 
 332     wxStyledTextCtrl::wxStyledTextCtrl(wxWindow
* parent
, 
 333                                        wxWindowID id 
= wxID_ANY
, 
 334                                        const wxPoint
& pos 
= wxDefaultPosition
, 
 335                                        const wxSize
& size 
= wxDefaultSize
, 
 337                                        const wxString
& name 
= wxSTCNameStr
); 
 340         Extend life of document. 
 342     void AddRefDocument(void* docPointer
); 
 345         Add array of cells to document. 
 347     void AddStyledText(const wxMemoryBuffer
& data
); 
 350         Add text to the document at current position. 
 352     void AddText(const wxString
& text
); 
 355         The following methods are nearly equivallent to their similarly named 
 356         cousins above.  The difference is that these methods bypass wxString 
 357         and always use a char* even if used in a unicode build of wxWidgets. 
 358         In that case the character data will be utf-8 encoded since that is 
 359         what is used internally by Scintilla in unicode builds. 
 360         Add text to the document at current position. 
 362     void AddTextRaw(const char* text
); 
 365         Enlarge the document to a particular size of text bytes. 
 367     void Allocate(int bytes
); 
 370         Append a string to the end of the document without changing the selection. 
 372     virtual void AppendText(const wxString
& text
); 
 375         Append a string to the end of the document without changing the selection. 
 377     void AppendTextRaw(const char* text
); 
 380         Is there an auto-completion list visible? 
 382     bool AutoCompActive(); 
 385         Remove the auto-completion list from the screen. 
 387     void AutoCompCancel(); 
 390         User has selected an item so remove the list and insert the selection. 
 392     void AutoCompComplete(); 
 395         Retrieve whether or not autocompletion is hidden automatically when nothing 
 398     bool AutoCompGetAutoHide() const; 
 401         Retrieve whether auto-completion cancelled by backspacing before start. 
 403     bool AutoCompGetCancelAtStart() const; 
 406         Retrieve whether a single item auto-completion list automatically choose the 
 409     bool AutoCompGetChooseSingle() const; 
 412         Get currently selected item position in the auto-completion list 
 414     int AutoCompGetCurrent(); 
 417         Retrieve whether or not autocompletion deletes any word characters 
 418         after the inserted text upon completion. 
 420     bool AutoCompGetDropRestOfWord() const; 
 423         Retrieve state of ignore case flag. 
 425     bool AutoCompGetIgnoreCase() const; 
 428         Set the maximum height, in rows, of auto-completion and user lists. 
 430     int AutoCompGetMaxHeight() const; 
 433         Get the maximum width, in characters, of auto-completion and user lists. 
 435     int AutoCompGetMaxWidth() const; 
 438         Retrieve the auto-completion list separator character. 
 440     int AutoCompGetSeparator() const; 
 443         Retrieve the auto-completion list type-separator character. 
 445     int AutoCompGetTypeSeparator() const; 
 448         Retrieve the position of the caret when the auto-completion list was displayed. 
 450     int AutoCompPosStart(); 
 453         Select the item in the auto-completion list that starts with a string. 
 455     void AutoCompSelect(const wxString
& text
); 
 458         Set whether or not autocompletion is hidden automatically when nothing matches. 
 460     void AutoCompSetAutoHide(bool autoHide
); 
 463         Should the auto-completion list be cancelled if the user backspaces to a 
 464         position before where the box was created. 
 466     void AutoCompSetCancelAtStart(bool cancel
); 
 469         Should a single item auto-completion list automatically choose the item. 
 471     void AutoCompSetChooseSingle(bool chooseSingle
); 
 474         Set whether or not autocompletion deletes any word characters 
 475         after the inserted text upon completion. 
 477     void AutoCompSetDropRestOfWord(bool dropRestOfWord
); 
 480         Define a set of characters that when typed will cause the autocompletion to 
 481         choose the selected item. 
 483     void AutoCompSetFillUps(const wxString
& characterSet
); 
 486         Set whether case is significant when performing auto-completion searches. 
 488     void AutoCompSetIgnoreCase(bool ignoreCase
); 
 491         Set the maximum height, in rows, of auto-completion and user lists. 
 492         The default is 5 rows. 
 494     void AutoCompSetMaxHeight(int rowCount
); 
 497         Set the maximum width, in characters, of auto-completion and user lists. 
 498         Set to 0 to autosize to fit longest item, which is the default. 
 500     void AutoCompSetMaxWidth(int characterCount
); 
 503         Change the separator character in the string setting up an auto-completion list. 
 504         Default is space but can be changed if items contain space. 
 506     void AutoCompSetSeparator(int separatorCharacter
); 
 509         Change the type-separator character in the string setting up an auto-completion list. 
 510         Default is '?' but can be changed if items contain '?'. 
 512     void AutoCompSetTypeSeparator(int separatorCharacter
); 
 515         Display a auto-completion list. 
 516         The lenEntered parameter indicates how many characters before 
 517         the caret should be used to provide context. 
 519     void AutoCompShow(int lenEntered
, const wxString
& itemList
); 
 522         Define a set of character that when typed cancel the auto-completion list. 
 524     void AutoCompStops(const wxString
& characterSet
); 
 527         Dedent the selected lines. 
 532         Start a sequence of actions that is undone and redone as a unit. 
 535     void BeginUndoAction(); 
 538         Highlight the character at a position indicating there is no matching brace. 
 540     void BraceBadLight(int pos
); 
 543         Highlight the characters at two positions. 
 545     void BraceHighlight(int pos1
, int pos2
); 
 548         Find the position of a matching brace or INVALID_POSITION if no match. 
 550     int BraceMatch(int pos
); 
 553         Is there an active call tip? 
 555     bool CallTipActive(); 
 558         Remove the call tip from the screen. 
 560     void CallTipCancel(); 
 563         Retrieve the position where the caret was before displaying the call tip. 
 565     int CallTipPosAtStart(); 
 568         Set the background colour for the call tip. 
 570     void CallTipSetBackground(const wxColour
& back
); 
 573         Set the foreground colour for the call tip. 
 575     void CallTipSetForeground(const wxColour
& fore
); 
 578         Set the foreground colour for the highlighted part of the call tip. 
 580     void CallTipSetForegroundHighlight(const wxColour
& fore
); 
 583         Highlight a segment of the definition. 
 585     void CallTipSetHighlight(int start
, int end
); 
 588         Show a call tip containing a definition near position pos. 
 590     void CallTipShow(int pos
, const wxString
& definition
); 
 593         Enable use of STYLE_CALLTIP and set call tip tab size in pixels. 
 595     void CallTipUseStyle(int tabSize
); 
 598         Will a paste succeed? 
 600     virtual bool CanPaste() const; 
 603         Are there any redoable actions in the undo history? 
 605     virtual bool CanRedo() const; 
 608         Are there any undoable actions in the undo history? 
 610     virtual bool CanUndo() const; 
 613         Cancel any modes such as call tip or auto-completion list display. 
 618         Move caret left one character. 
 623         Move caret left one character extending selection to new caret position. 
 625     void CharLeftExtend(); 
 628         Move caret left one character, extending rectangular selection to new caret 
 631     void CharLeftRectExtend(); 
 634         Move caret right one character. 
 639         Move caret right one character extending selection to new caret position. 
 641     void CharRightExtend(); 
 644         Move caret right one character, extending rectangular selection to new caret 
 647     void CharRightRectExtend(); 
 650         Set the last x chosen value to be the caret x position. 
 657     virtual void Clear(); 
 660         Delete all text in the document. 
 665         Set all style bytes to 0, remove all folding information. 
 667     void ClearDocumentStyle(); 
 670         Clear all the registered images. 
 672     void ClearRegisteredImages(); 
 675         When key+modifier combination km is pressed perform msg. 
 677     void CmdKeyAssign(int key
, int modifiers
, int cmd
); 
 680         When key+modifier combination km is pressed do nothing. 
 682     void CmdKeyClear(int key
, int modifiers
); 
 685         Drop all key mappings. 
 687     void CmdKeyClearAll(); 
 690         Perform one of the operations defined by the wxSTC_CMD_* constants. 
 692     void CmdKeyExecute(int cmd
); 
 695         Colourise a segment of the document using the current lexing language. 
 697     void Colourise(int start
, int end
); 
 700         Convert all line endings in the document to one mode. 
 702     void ConvertEOLs(int eolMode
); 
 705         Copy the selection to the clipboard. 
 710         Copy a range of text to the clipboard. Positions are clipped into the document. 
 712     void CopyRange(int start
, int end
); 
 715         Copy argument text to the clipboard. 
 717     void CopyText(int length
, const wxString
& text
); 
 722     bool Create(wxWindow
* parent
, wxWindowID id 
= wxID_ANY
, 
 723                 const wxPoint
& pos 
= wxDefaultPosition
, 
 724                 const wxSize
& size 
= wxDefaultSize
, 
 726                 const wxString
& name 
= wxSTCNameStr
); 
 729         Create a new document object. 
 730         Starts with reference count of 1 and not selected into editor. 
 732     void* CreateDocument(); 
 735         Cut the selection to the clipboard. 
 740         Delete back from the current position to the start of the line. 
 745         Delete forwards from the current position to the end of the line. 
 750         Delete the word to the left of the caret. 
 755         Delete the word to the right of the caret. 
 760         Delete the selection or if no selection, the character before the caret. 
 765         Delete the selection or if no selection, the character before the caret. 
 766         Will not delete the character before at the start of a line. 
 768     void DeleteBackNotLine(); 
 771         Allow for simulating a DnD DragOver 
 773     wxDragResult 
DoDragOver(wxCoord x
, wxCoord y
, wxDragResult def
); 
 776         Allow for simulating a DnD DropText 
 778     bool DoDropText(long x
, long y
, const wxString
& data
); 
 781         Find the document line of a display line taking hidden lines into account. 
 783     int DocLineFromVisible(int lineDisplay
); 
 786         Move caret to last position in document. 
 791         Move caret to last position in document extending selection to new caret 
 794     void DocumentEndExtend(); 
 797         Move caret to first position in document. 
 799     void DocumentStart(); 
 802         Move caret to first position in document extending selection to new caret 
 805     void DocumentStartExtend(); 
 808         Switch from insert to overtype mode or the reverse. 
 810     void EditToggleOvertype(); 
 813         Delete the undo history. 
 815     void EmptyUndoBuffer(); 
 818         End a sequence of actions that is undone and redone as a unit. 
 820     void EndUndoAction(); 
 823         Ensure the caret is visible. 
 825     void EnsureCaretVisible(); 
 828         Ensure a particular line is visible by expanding any header line hiding it. 
 830     void EnsureVisible(int line
); 
 833         Ensure a particular line is visible by expanding any header line hiding it. 
 834         Use the currently set visibility policy to determine which range to display. 
 836     void EnsureVisibleEnforcePolicy(int line
); 
 839         Find the position of a column on a line taking into account tabs and 
 840         multi-byte characters. If beyond end of line, return line end position. 
 842     int FindColumn(int line
, int column
); 
 845         Find some text in the document. 
 847     int FindText(int minPos
, int maxPos
, const wxString
& text
, 
 851         Insert a Form Feed character. 
 856         On Windows, will draw the document into a display context such as a printer. 
 858     int FormatRange(bool doDraw
, int startPos
, int endPos
, 
 859                     wxDC
* draw
, wxDC
* target
, 
 864         Returns the position of the opposite end of the selection to the caret. 
 866     int GetAnchor() const; 
 869         Does a backspace pressed when caret is within indentation unindent? 
 871     bool GetBackSpaceUnIndents() const; 
 874         Is drawing done first into a buffer or direct to the screen? 
 876     bool GetBufferedDraw() const; 
 879         Get the foreground colour of the caret. 
 881     wxColour 
GetCaretForeground() const; 
 884         Get the background alpha of the caret line. 
 886     int GetCaretLineBackAlpha() const; 
 889         Get the colour of the background of the line containing the caret. 
 891     wxColour 
GetCaretLineBackground() const; 
 894         Is the background of the line containing the caret in a different colour? 
 896     bool GetCaretLineVisible() const; 
 899         Get the time in milliseconds that the caret is on and off. 
 901     int GetCaretPeriod() const; 
 904         Can the caret preferred x position only be changed by explicit movement 
 907     bool GetCaretSticky() const; 
 910         Returns the width of the insert mode caret. 
 912     int GetCaretWidth() const; 
 915         Returns the character byte at the position. 
 917     int GetCharAt(int pos
) const; 
 920         Get the code page used to interpret the bytes of the document as characters. 
 922     int GetCodePage() const; 
 925         Retrieve the column number of a position, taking tab width into account. 
 927     int GetColumn(int pos
) const; 
 930         Get the way control characters are displayed. 
 932     int GetControlCharSymbol() const; 
 937     wxString 
GetCurLine(int* linePos 
= NULL
); 
 942     wxCharBuffer 
GetCurLineRaw(int* linePos 
= NULL
); 
 945         END of generated section 
 947         Returns the line number of the line with the caret. 
 949     int GetCurrentLine(); 
 952         Returns the position of the caret. 
 954     int GetCurrentPos() const; 
 957         Retrieve a pointer to the document object. 
 959     void* GetDocPointer(); 
 962         Retrieve the current end of line mode - one of CRLF, CR, or LF. 
 964     int GetEOLMode() const; 
 967         Retrieve the colour used in edge indication. 
 969     wxColour 
GetEdgeColour() const; 
 972         Retrieve the column number which text should be kept within. 
 974     int GetEdgeColumn() const; 
 977         Retrieve the edge highlight mode. 
 979     int GetEdgeMode() const; 
 982         Retrieve whether the maximum scroll position has the last 
 983         line at the bottom of the view. 
 985     bool GetEndAtLastLine() const; 
 988         Retrieve the position of the last correctly styled character. 
 990     int GetEndStyled() const; 
 993         Retrieve the display line at the top of the display. 
 995     int GetFirstVisibleLine() const; 
 998         Is a header line expanded? 
1000     bool GetFoldExpanded(int line
) const; 
1003         Retrieve the fold level of a line. 
1005     int GetFoldLevel(int line
) const; 
1008         Find the parent line of a child line. 
1010     int GetFoldParent(int line
) const; 
1013         Get the highlighted indentation guide column. 
1015     int GetHighlightGuide() const; 
1018         Retrieve indentation size. 
1020     int GetIndent() const; 
1023         Are the indentation guides visible? 
1025     int GetIndentationGuides() const; 
1028         Find the last child line of a header line. 
1030     int GetLastChild(int line
, int level
) const; 
1033         Can be used to prevent the EVT_CHAR handler from adding the char 
1035     bool GetLastKeydownProcessed(); 
1038         Retrieve the degree of caching of layout information. 
1040     int GetLayoutCache() const; 
1043         Returns the number of characters in the document. 
1045     int GetLength() const; 
1048         Retrieve the lexing language of the document. 
1050     int GetLexer() const; 
1053         Retrieve the contents of a line. 
1055     wxString 
GetLine(int line
) const; 
1058         Returns the number of lines in the document. There is always at least one. 
1060     int GetLineCount() const; 
1063         Get the position after the last visible characters on a line. 
1065     int GetLineEndPosition(int line
) const; 
1068         Retrieve the position before the first non indentation character on a line. 
1070     int GetLineIndentPosition(int line
) const; 
1073         Retrieve the number of columns that a line is indented. 
1075     int GetLineIndentation(int line
) const; 
1078         Retrieve the contents of a line. 
1080     wxCharBuffer 
GetLineRaw(int line
); 
1083         Retrieve the position of the end of the selection at the given line 
1084         (INVALID_POSITION if no selection on this line). 
1086     int GetLineSelEndPosition(int line
); 
1089         Retrieve the position of the start of the selection at the given line 
1090         (INVALID_POSITION if no selection on this line). 
1092     int GetLineSelStartPosition(int line
); 
1095         Retrieve the extra styling information for a line. 
1097     int GetLineState(int line
) const; 
1102     bool GetLineVisible(int line
) const; 
1105         Returns the size in pixels of the left margin. 
1107     int GetMarginLeft() const; 
1110         Retrieve the marker mask of a margin. 
1112     int GetMarginMask(int margin
) const; 
1115         Returns the size in pixels of the right margin. 
1117     int GetMarginRight() const; 
1120         Retrieve the mouse click sensitivity of a margin. 
1122     bool GetMarginSensitive(int margin
) const; 
1125         Retrieve the type of a margin. 
1127     int GetMarginType(int margin
) const; 
1130         Retrieve the width of a margin in pixels. 
1132     int GetMarginWidth(int margin
) const; 
1135         Retrieve the last line number that has line state. 
1137     int GetMaxLineState() const; 
1140         Get which document modification events are sent to the container. 
1142     int GetModEventMask() const; 
1145         Is the document different from when it was last saved? 
1147     bool GetModify() const; 
1150         Get whether mouse gets captured. 
1152     bool GetMouseDownCaptures() const; 
1155         Retrieve the time the mouse must sit still to generate a mouse dwell event. 
1157     int GetMouseDwellTime() const; 
1160         Returns @true if overtype mode is active otherwise @false is returned. 
1162     bool GetOvertype() const; 
1165         Get convert-on-paste setting 
1167     bool GetPasteConvertEndings() const; 
1170         Returns the print colour mode. 
1172     int GetPrintColourMode() const; 
1175         Returns the print magnification. 
1177     int GetPrintMagnification() const; 
1180         Is printing line wrapped? 
1182     int GetPrintWrapMode() const; 
1185         Retrieve a 'property' value previously set with SetProperty. 
1187     wxString 
GetProperty(const wxString
& key
); 
1190         Retrieve a 'property' value previously set with SetProperty, 
1191         with '$()' variable replacement on returned buffer. 
1193     wxString 
GetPropertyExpanded(const wxString
& key
); 
1196         Retrieve a 'property' value previously set with SetProperty, 
1197         interpreted as an int AFTER any '$()' variable replacement. 
1199     int GetPropertyInt(const wxString
& key
) const; 
1204     bool GetReadOnly() const; 
1209     int GetSTCCursor() const; 
1212         Get internal focus flag. 
1214     bool GetSTCFocus() const; 
1217         Retrieve the document width assumed for scrolling. 
1219     int GetScrollWidth() const; 
1222         Get the search flags used by SearchInTarget. 
1224     int GetSearchFlags() const; 
1227         Get the alpha of the selection. 
1229     int GetSelAlpha() const; 
1232         Retrieve the selected text. 
1234     wxString 
GetSelectedText(); 
1237         Retrieve the selected text. 
1239     wxCharBuffer 
GetSelectedTextRaw(); 
1244     void GetSelection(int* OUTPUT
, int* OUTPUT
); 
1247         Returns the position at the end of the selection. 
1249     int GetSelectionEnd() const; 
1252         Get the mode of the current selection. 
1254     int GetSelectionMode() const; 
1257         Returns the position at the start of the selection. 
1259     int GetSelectionStart() const; 
1264     int GetStatus() const; 
1267         Returns the style byte at the position. 
1269     int GetStyleAt(int pos
) const; 
1272         Retrieve number of bits in style bytes used to hold the lexical state. 
1274     int GetStyleBits() const; 
1277         Retrieve the number of bits the current lexer needs for styling. 
1279     int GetStyleBitsNeeded() const; 
1282         Retrieve a buffer of cells. 
1284     wxMemoryBuffer 
GetStyledText(int startPos
, int endPos
); 
1287         Does a tab pressed when caret is within indentation indent? 
1289     bool GetTabIndents() const; 
1292         Retrieve the visible size of a tab. 
1294     int GetTabWidth() const; 
1297         Get the position that ends the target. 
1299     int GetTargetEnd() const; 
1302         Get the position that starts the target. 
1304     int GetTargetStart() const; 
1307         Retrieve all the text in the document. 
1309     wxString 
GetText() const; 
1312         Retrieve the number of characters in the document. 
1314     int GetTextLength() const; 
1317         Retrieve a range of text. 
1319     wxString 
GetTextRange(int startPos
, int endPos
); 
1322         Retrieve a range of text. 
1324     wxCharBuffer 
GetTextRangeRaw(int startPos
, int endPos
); 
1327         Retrieve all the text in the document. 
1329     wxCharBuffer 
GetTextRaw(); 
1332         Is drawing done in two phases with backgrounds drawn before foregrounds? 
1334     bool GetTwoPhaseDraw() const; 
1337         Is undo history being collected? 
1339     bool GetUndoCollection() const; 
1342         Returns the current UseAntiAliasing setting. 
1344     bool GetUseAntiAliasing(); 
1347         Is the horizontal scroll bar visible? 
1349     bool GetUseHorizontalScrollBar() const; 
1352         Retrieve whether tabs will be used in indentation. 
1354     bool GetUseTabs() const; 
1357         Is the vertical scroll bar visible? 
1359     bool GetUseVerticalScrollBar() const; 
1362         Are the end of line characters visible? 
1364     bool GetViewEOL() const; 
1367         Are white space characters currently visible? 
1368         Returns one of SCWS_* constants. 
1370     int GetViewWhiteSpace() const; 
1373         Retrieve whether text is word wrapped. 
1375     int GetWrapMode() const; 
1378         Retrive the start indent for wrapped lines. 
1380     int GetWrapStartIndent() const; 
1383         Retrive the display mode of visual flags for wrapped lines. 
1385     int GetWrapVisualFlags() const; 
1388         Retrive the location of visual flags for wrapped lines. 
1390     int GetWrapVisualFlagsLocation() const; 
1395     int GetXOffset() const; 
1398         Retrieve the zoom level. 
1400     int GetZoom() const; 
1403         Set caret to start of a line and ensure it is visible. 
1405     void GotoLine(int line
); 
1408         Set caret to a position and ensure it is visible. 
1410     void GotoPos(int pos
); 
1413         Make a range of lines invisible. 
1415     void HideLines(int lineStart
, int lineEnd
); 
1418         Draw the selection in normal style or with selection highlighted. 
1420     void HideSelection(bool normal
); 
1423         Move caret to first position on line. 
1428         Move caret to first position on display line. 
1433         Move caret to first position on display line extending selection to 
1436     void HomeDisplayExtend(); 
1439         Move caret to first position on line extending selection to new caret position. 
1444         Move caret to first position on line, extending rectangular selection to new 
1447     void HomeRectExtend(); 
1450         These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)? 
1451         except they behave differently when word-wrap is enabled: 
1452         They go first to the start / end of the display line, like (Home|LineEnd)Display 
1453         The difference is that, the cursor is already at the point, it goes on to the 
1454         start or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?. 
1461     void HomeWrapExtend(); 
1464         Retrieve the foreground colour of an indicator. 
1466     wxColour 
IndicatorGetForeground(int indic
) const; 
1469         Retrieve the style of an indicator. 
1471     int IndicatorGetStyle(int indic
) const; 
1474         Set the foreground colour of an indicator. 
1476     void IndicatorSetForeground(int indic
, const wxColour
& fore
); 
1479         Set an indicator to plain, squiggle or TT. 
1481     void IndicatorSetStyle(int indic
, int style
); 
1484         Insert string at a position. 
1486     void InsertText(int pos
, const wxString
& text
); 
1489         Insert string at a position. 
1491     void InsertTextRaw(int pos
, const char* text
); 
1494         Copy the line containing the caret. 
1499         Cut the line containing the caret. 
1504         Delete the line containing the caret. 
1509         Move caret down one line. 
1514         Move caret down one line extending selection to new caret position. 
1516     void LineDownExtend(); 
1519         Move caret down one line, extending rectangular selection to new caret position. 
1521     void LineDownRectExtend(); 
1524         Duplicate the current line. 
1526     void LineDuplicate(); 
1529         Move caret to last position on line. 
1534         Move caret to last position on display line. 
1536     void LineEndDisplay(); 
1539         Move caret to last position on display line extending selection to new 
1542     void LineEndDisplayExtend(); 
1545         Move caret to last position on line extending selection to new caret position. 
1547     void LineEndExtend(); 
1550         Move caret to last position on line, extending rectangular selection to new 
1553     void LineEndRectExtend(); 
1563     void LineEndWrapExtend(); 
1566         Retrieve the line containing a position. 
1568     int LineFromPosition(int pos
) const; 
1571         How many characters are on a line, not including end of line characters? 
1573     int LineLength(int line
) const; 
1576         Scroll horizontally and vertically. 
1578     void LineScroll(int columns
, int lines
); 
1581         Scroll the document down, keeping the caret visible. 
1583     void LineScrollDown(); 
1586         Scroll the document up, keeping the caret visible. 
1588     void LineScrollUp(); 
1591         Switch the current line with the previous. 
1593     void LineTranspose(); 
1596         Move caret up one line. 
1601         Move caret up one line extending selection to new caret position. 
1603     void LineUpExtend(); 
1606         Move caret up one line, extending rectangular selection to new caret position. 
1608     void LineUpRectExtend(); 
1611         Join the lines in the target. 
1616         Retrieves the number of lines completely visible. 
1618     int LinesOnScreen() const; 
1621         Split the lines in the target into lines that are less wide than pixelWidth 
1624     void LinesSplit(int pixelWidth
); 
1627         Load the contents of filename into the editor 
1629     bool LoadFile(const wxString
& file
, int fileType 
= wxTEXT_TYPE_ANY
); 
1632         Transform the selection to lower case. 
1637         Add a marker to a line, returning an ID which can be used to find or delete the 
1640     int MarkerAdd(int line
, int markerNumber
); 
1643         Add a set of markers to a line. 
1645     void MarkerAddSet(int line
, int set
); 
1648         Set the symbol used for a particular marker number, 
1649         and optionally the fore and background colours. 
1651     void MarkerDefine(int markerNumber
, int markerSymbol
, 
1652                       const wxColour
& foreground 
= wxNullColour
, 
1653                       const wxColour
& background 
= wxNullColour
); 
1656         Define a marker from a bitmap 
1658     void MarkerDefineBitmap(int markerNumber
, const wxBitmap
& bmp
); 
1661         Delete a marker from a line. 
1663     void MarkerDelete(int line
, int markerNumber
); 
1666         Delete all markers with a particular number from all lines. 
1668     void MarkerDeleteAll(int markerNumber
); 
1673     void MarkerDeleteHandle(int handle
); 
1676         Get a bit mask of all the markers set on a line. 
1678     int MarkerGet(int line
); 
1681         Retrieve the line number at which a particular marker is located. 
1683     int MarkerLineFromHandle(int handle
); 
1686         Find the next line after lineStart that includes a marker in mask. 
1688     int MarkerNext(int lineStart
, int markerMask
); 
1691         Find the previous line before lineStart that includes a marker in mask. 
1693     int MarkerPrevious(int lineStart
, int markerMask
); 
1696         Set the alpha used for a marker that is drawn in the text area, not the margin. 
1698     void MarkerSetAlpha(int markerNumber
, int alpha
); 
1701         Set the background colour used for a particular marker number. 
1703     void MarkerSetBackground(int markerNumber
, const wxColour
& back
); 
1706         Set the foreground colour used for a particular marker number. 
1708     void MarkerSetForeground(int markerNumber
, const wxColour
& fore
); 
1711         Move the caret inside current view if it's not there already. 
1713     void MoveCaretInsideView(); 
1716         Insert a new line, may use a CRLF, CR or LF depending on EOL mode. 
1721         Move caret one page down. 
1726         Move caret one page down extending selection to new caret position. 
1728     void PageDownExtend(); 
1731         Move caret one page down, extending rectangular selection to new caret position. 
1733     void PageDownRectExtend(); 
1736         Move caret one page up. 
1741         Move caret one page up extending selection to new caret position. 
1743     void PageUpExtend(); 
1746         Move caret one page up, extending rectangular selection to new caret position. 
1748     void PageUpRectExtend(); 
1751         Move caret between paragraphs (delimited by empty lines). 
1758     void ParaDownExtend(); 
1768     void ParaUpExtend(); 
1771         Paste the contents of the clipboard into the document replacing the selection. 
1773     virtual void Paste(); 
1776         Retrieve the point in the window where a position is displayed. 
1778     wxPoint 
PointFromPosition(int pos
); 
1781         Given a valid document position, return the next position taking code 
1782         page into account. Maximum value returned is the last position in the document. 
1784     int PositionAfter(int pos
); 
1787         Given a valid document position, return the previous position taking code 
1788         page into account. Returns 0 if passed 0. 
1790     int PositionBefore(int pos
); 
1793         Retrieve the position at the start of a line. 
1795     int PositionFromLine(int line
) const; 
1798         Find the position from a point within the window. 
1800     int PositionFromPoint(wxPoint pt
) const; 
1803         Find the position from a point within the window but return 
1804         INVALID_POSITION if not close to text. 
1806     int PositionFromPointClose(int x
, int y
); 
1809         Redoes the next action on the undo history. 
1811     virtual void Redo(); 
1814         Register an image for use in autocompletion lists. 
1816     void RegisterImage(int type
, const wxBitmap
& bmp
); 
1819         Release a reference to the document, deleting document if it fades to black. 
1821     void ReleaseDocument(void* docPointer
); 
1824         Replace the selected text with the argument text. 
1826     void ReplaceSelection(const wxString
& text
); 
1829         Replace the target text with the argument text. 
1830         Text is counted so it can contain NULs. 
1831         Returns the length of the replacement text. 
1833     int ReplaceTarget(const wxString
& text
); 
1836         Replace the target text with the argument text after d processing. 
1837         Text is counted so it can contain NULs. 
1839         Looks for d where d is between 1 and 9 and replaces these with the strings 
1840         matched in the last search operation which were surrounded by ( and ). 
1842         Returns the length of the replacement text including any change 
1843         caused by processing the d patterns. 
1845     int ReplaceTargetRE(const wxString
& text
); 
1848         Write the contents of the editor to filename 
1850     bool SaveFile(const wxString
& file 
= wxEmptyString
, int fileType 
= wxTEXT_TYPE_ANY
); 
1853         Scroll enough to make the given column visible 
1855     void ScrollToColumn(int column
); 
1858         Scroll enough to make the given line visible 
1860     void ScrollToLine(int line
); 
1863         Sets the current caret position to be the search anchor. 
1865     void SearchAnchor(); 
1868         Search for a counted string in the target and set the target to the found 
1869         range. Text is counted so it can contain NULs. 
1870         Returns length of range or -1 for failure in which case target is not moved. 
1872     int SearchInTarget(const wxString
& text
); 
1875         Find some text starting at the search anchor. 
1876         Does not ensure the selection is visible. 
1878     int SearchNext(int flags
, const wxString
& text
); 
1881         Find some text starting at the search anchor and moving backwards. 
1882         Does not ensure the selection is visible. 
1884     int SearchPrev(int flags
, const wxString
& text
); 
1887         Select all the text in the document. 
1889     virtual void SelectAll(); 
1892         Duplicate the selection. If selection empty duplicate the line containing the 
1895     void SelectionDuplicate(); 
1898         Is the selection rectangular? The alternative is the more common stream 
1901     bool SelectionIsRectangle() const; 
1904         Send a message to Scintilla 
1906     wxIntPtr 
SendMsg(int msg
, wxUIntPtr wp 
= 0, wxIntPtr lp 
= 0) const; 
1909         Set the selection anchor to a position. The anchor is the opposite 
1910         end of the selection from the caret. 
1912     void SetAnchor(int posAnchor
); 
1915         Sets whether a backspace pressed when caret is within indentation unindents. 
1917     void SetBackSpaceUnIndents(bool bsUnIndents
); 
1920         If drawing is buffered then each line of text is drawn into a bitmap buffer 
1921         before drawing it to the screen to avoid flicker. 
1923     void SetBufferedDraw(bool buffered
); 
1926         Set the foreground colour of the caret. 
1928     void SetCaretForeground(const wxColour
& fore
); 
1931         Set background alpha of the caret line. 
1933     void SetCaretLineBackAlpha(int alpha
); 
1936         Set the colour of the background of the line containing the caret. 
1938     void SetCaretLineBackground(const wxColour
& back
); 
1941         Display the background of the line containing the caret in a different colour. 
1943     void SetCaretLineVisible(bool show
); 
1946         Get the time in milliseconds that the caret is on and off. 0 = steady on. 
1948     void SetCaretPeriod(int periodMilliseconds
); 
1951         Stop the caret preferred x position changing when the user types. 
1953     void SetCaretSticky(bool useCaretStickyBehaviour
); 
1956         Set the width of the insert mode caret. 
1958     void SetCaretWidth(int pixelWidth
); 
1961         Reset the set of characters for whitespace and word characters to the defaults. 
1963     void SetCharsDefault(); 
1966         Set the code page used to interpret the bytes of the document as characters. 
1968     void SetCodePage(int codePage
); 
1971         Change the way control characters are displayed: 
1972         If symbol is  32, keep the drawn way, else, use the given character. 
1974     void SetControlCharSymbol(int symbol
); 
1977         Sets the position of the caret. 
1979     void SetCurrentPos(int pos
); 
1982         Change the document object used. 
1984     void SetDocPointer(void* docPointer
); 
1987         Set the current end of line mode. 
1989     void SetEOLMode(int eolMode
); 
1992         Change the colour used in edge indication. 
1994     void SetEdgeColour(const wxColour
& edgeColour
); 
1997         Set the column number of the edge. 
1998         If text goes past the edge then it is highlighted. 
2000     void SetEdgeColumn(int column
); 
2003         The edge may be displayed by a line (EDGE_LINE) or by highlighting text that 
2004         goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE). 
2006     void SetEdgeMode(int mode
); 
2009         Sets the scroll range so that maximum scroll position has 
2010         the last line at the bottom of the view (default). 
2011         Setting this to @false allows scrolling one page below the last line. 
2013     void SetEndAtLastLine(bool endAtLastLine
); 
2016         Show the children of a header line. 
2018     void SetFoldExpanded(int line
, bool expanded
); 
2021         Set some style options for folding. 
2023     void SetFoldFlags(int flags
); 
2026         Set the fold level of a line. 
2027         This encodes an integer level along with flags indicating whether the 
2028         line is a header and whether it is effectively white space. 
2030     void SetFoldLevel(int line
, int level
); 
2033         Set the colours used as a chequerboard pattern in the fold margin 
2035     void SetFoldMarginColour(bool useSetting
, const wxColour
& back
); 
2040     void SetFoldMarginHiColour(bool useSetting
, const wxColour
& fore
); 
2043         Set the horizontal scrollbar to use instead of the ont that's built-in. 
2045     void SetHScrollBar(wxScrollBar
* bar
); 
2048         Set the highlighted indentation guide column. 
2049         0 = no highlighted guide. 
2051     void SetHighlightGuide(int column
); 
2054         Set a back colour for active hotspots. 
2056     void SetHotspotActiveBackground(bool useSetting
, 
2057                                     const wxColour
& back
); 
2060         Set a fore colour for active hotspots. 
2062     void SetHotspotActiveForeground(bool useSetting
, 
2063                                     const wxColour
& fore
); 
2066         Enable / Disable underlining active hotspots. 
2068     void SetHotspotActiveUnderline(bool underline
); 
2071         Limit hotspots to single line so hotspots on two lines don't merge. 
2073     void SetHotspotSingleLine(bool singleLine
); 
2076         Set the number of spaces used for one level of indentation. 
2078     void SetIndent(int indentSize
); 
2081         Show or hide indentation guides. 
2083     void SetIndentationGuides(int indentView
); 
2086         Set up the key words used by the lexer. 
2088     void SetKeyWords(int keywordSet
, const wxString
& keyWords
); 
2093     void SetLastKeydownProcessed(bool val
); 
2096         Sets the degree of caching of layout information. 
2098     void SetLayoutCache(int mode
); 
2101         Set the lexing language of the document. 
2103     void SetLexer(int lexer
); 
2106         Set the lexing language of the document based on string name. 
2108     void SetLexerLanguage(const wxString
& language
); 
2111         Change the indentation of a line to a number of columns. 
2113     void SetLineIndentation(int line
, int indentSize
); 
2116         Used to hold extra styling information for each line. 
2118     void SetLineState(int line
, int state
); 
2121         Sets the size in pixels of the left margin. 
2123     void SetMarginLeft(int pixelWidth
); 
2126         Set a mask that determines which markers are displayed in a margin. 
2128     void SetMarginMask(int margin
, int mask
); 
2131         Sets the size in pixels of the right margin. 
2133     void SetMarginRight(int pixelWidth
); 
2136         Make a margin sensitive or insensitive to mouse clicks. 
2138     void SetMarginSensitive(int margin
, bool sensitive
); 
2141         Set a margin to be either numeric or symbolic. 
2143     void SetMarginType(int margin
, int marginType
); 
2146         Set the width of a margin to a width expressed in pixels. 
2148     void SetMarginWidth(int margin
, int pixelWidth
); 
2151         Set the left and right margin in the edit area, measured in pixels. 
2153     void SetMargins(int left
, int right
); 
2156         Set which document modification events are sent to the container. 
2158     void SetModEventMask(int mask
); 
2161         Set whether the mouse is captured when its button is pressed. 
2163     void SetMouseDownCaptures(bool captures
); 
2166         Sets the time the mouse must sit still to generate a mouse dwell event. 
2168     void SetMouseDwellTime(int periodMilliseconds
); 
2171         Set to overtype (@true) or insert mode. 
2173     void SetOvertype(bool overtype
); 
2176         Enable/Disable convert-on-paste for line endings 
2178     void SetPasteConvertEndings(bool convert
); 
2181         Modify colours when printing for clearer printed text. 
2183     void SetPrintColourMode(int mode
); 
2186         Sets the print magnification added to the point size of each style for printing. 
2188     void SetPrintMagnification(int magnification
); 
2191         Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE). 
2193     void SetPrintWrapMode(int mode
); 
2196         Set up a value that may be used by a lexer for some optional feature. 
2198     void SetProperty(const wxString
& key
, const wxString
& value
); 
2201         Set to read only or read write. 
2203     void SetReadOnly(bool readOnly
); 
2206         Sets the cursor to one of the SC_CURSOR* values. 
2208     void SetSTCCursor(int cursorType
); 
2211         Change internal focus flag. 
2213     void SetSTCFocus(bool focus
); 
2216         Remember the current position in the undo history as the position 
2217         at which the document was saved. 
2219     void SetSavePoint(); 
2222         Sets the document width assumed for scrolling. 
2224     void SetScrollWidth(int pixelWidth
); 
2227         Set the search flags used by SearchInTarget. 
2229     void SetSearchFlags(int flags
); 
2232         Set the alpha of the selection. 
2234     void SetSelAlpha(int alpha
); 
2237         Set the background colour of the selection and whether to use this setting. 
2239     void SetSelBackground(bool useSetting
, const wxColour
& back
); 
2242         Set the foreground colour of the selection and whether to use this setting. 
2244     void SetSelForeground(bool useSetting
, const wxColour
& fore
); 
2247         Select a range of text. 
2249     virtual void SetSelection(long from
, long to
); 
2252         Sets the position that ends the selection - this becomes the currentPosition. 
2254     void SetSelectionEnd(int pos
); 
2257         Set the selection mode to stream (SC_SEL_STREAM) or rectangular 
2258         (SC_SEL_RECTANGLE) or 
2259         by lines (SC_SEL_LINES). 
2261     void SetSelectionMode(int mode
); 
2264         Sets the position that starts the selection - this becomes the anchor. 
2266     void SetSelectionStart(int pos
); 
2269         Change error status - 0 = OK. 
2271     void SetStatus(int statusCode
); 
2274         Divide each styling byte into lexical class bits (default: 5) and indicator 
2275         bits (default: 3). If a lexer requires more than 32 lexical states, then this 
2276         is used to expand the possible states. 
2278     void SetStyleBits(int bits
); 
2281         Set the styles for a segment of the document. 
2283     void SetStyleBytes(int length
, char* styleBytes
); 
2286         Change style from current styling position for length characters to a style 
2287         and move the current styling position to after this newly styled segment. 
2289     void SetStyling(int length
, int style
); 
2292         Sets whether a tab pressed when caret is within indentation indents. 
2294     void SetTabIndents(bool tabIndents
); 
2297         Change the visible size of a tab to be a multiple of the width of a space 
2300     void SetTabWidth(int tabWidth
); 
2303         Sets the position that ends the target which is used for updating the 
2304         document without affecting the scroll position. 
2306     void SetTargetEnd(int pos
); 
2309         Sets the position that starts the target which is used for updating the 
2310         document without affecting the scroll position. 
2312     void SetTargetStart(int pos
); 
2315         Replace the contents of the document with the argument text. 
2317     void SetText(const wxString
& text
); 
2320         Replace the contents of the document with the argument text. 
2322     void SetTextRaw(const char* text
); 
2325         In twoPhaseDraw mode, drawing is performed in two phases, first the background 
2326         and then the foreground. This avoids chopping off characters that overlap the 
2329     void SetTwoPhaseDraw(bool twoPhase
); 
2332         Choose between collecting actions into the undo 
2333         history and discarding them. 
2335     void SetUndoCollection(bool collectUndo
); 
2338         Specify whether anti-aliased fonts should be used.  Will have no effect 
2339         on some platforms, but on some (wxMac for example) can greatly improve 
2342     void SetUseAntiAliasing(bool useAA
); 
2345         Show or hide the horizontal scroll bar. 
2347     void SetUseHorizontalScrollBar(bool show
); 
2350         Indentation will only use space characters if useTabs is @false, otherwise 
2351         it will use a combination of tabs and spaces. 
2353     void SetUseTabs(bool useTabs
); 
2356         Show or hide the vertical scroll bar. 
2358     void SetUseVerticalScrollBar(bool show
); 
2361         Set the vertical scrollbar to use instead of the ont that's built-in. 
2363     void SetVScrollBar(wxScrollBar
* bar
); 
2366         Make the end of line characters visible or invisible. 
2368     void SetViewEOL(bool visible
); 
2371         Make white space characters invisible, always visible or visible outside 
2374     void SetViewWhiteSpace(int viewWS
); 
2377         Set the way the display area is determined when a particular line 
2378         is to be moved to by Find, FindNext, GotoLine, etc. 
2380     void SetVisiblePolicy(int visiblePolicy
, int visibleSlop
); 
2383         Set the background colour of all whitespace and whether to use this setting. 
2385     void SetWhitespaceBackground(bool useSetting
, 
2386                                  const wxColour
& back
); 
2389         Set the set of characters making up whitespace for when moving or selecting by 
2391         Should be called after SetWordChars. 
2393     void SetWhitespaceChars(const wxString
& characters
); 
2396         Set the foreground colour of all whitespace and whether to use this setting. 
2398     void SetWhitespaceForeground(bool useSetting
, 
2399                                  const wxColour
& fore
); 
2402         Set the set of characters making up words for when moving or selecting by word. 
2403         First sets deaults like SetCharsDefault. 
2405     void SetWordChars(const wxString
& characters
); 
2408         Sets whether text is word wrapped. 
2410     void SetWrapMode(int mode
); 
2413         Set the start indent for wrapped lines. 
2415     void SetWrapStartIndent(int indent
); 
2418         Set the display mode of visual flags for wrapped lines. 
2420     void SetWrapVisualFlags(int wrapVisualFlags
); 
2423         Set the location of visual flags for wrapped lines. 
2425     void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation
); 
2428         Set the way the caret is kept visible when going sideway. 
2429         The exclusion zone is given in pixels. 
2431     void SetXCaretPolicy(int caretPolicy
, int caretSlop
); 
2434         Get and Set the xOffset (ie, horizonal scroll position). 
2436     void SetXOffset(int newOffset
); 
2439         Set the way the line the caret is on is kept visible. 
2440         The exclusion zone is given in lines. 
2442     void SetYCaretPolicy(int caretPolicy
, int caretSlop
); 
2445         Set the zoom level. This number of points is added to the size of all fonts. 
2446         It may be positive to magnify or negative to reduce. 
2448     void SetZoom(int zoom
); 
2451         Make a range of lines visible. 
2453     void ShowLines(int lineStart
, int lineEnd
); 
2456         Start notifying the container of all key presses and commands. 
2461         Set the current styling position to pos and the styling mask to mask. 
2462         The styling mask can be used to protect some bits in each styling byte from 
2465     void StartStyling(int pos
, int mask
); 
2468         Stop notifying the container of all key presses and commands. 
2473         Move caret to bottom of page, or one page down if already at bottom of page. 
2475     void StutteredPageDown(); 
2478         Move caret to bottom of page, or one page down if already at bottom of page, 
2479         extending selection to new caret position. 
2481     void StutteredPageDownExtend(); 
2484         Move caret to top of page, or one page up if already at top of page. 
2486     void StutteredPageUp(); 
2489         Move caret to top of page, or one page up if already at top of page, extending 
2490         selection to new caret position. 
2492     void StutteredPageUpExtend(); 
2495         Clear all the styles and make equivalent to the global default style. 
2497     void StyleClearAll(); 
2500         Reset the default style to its state at startup 
2502     void StyleResetDefault(); 
2505         Set the background colour of a style. 
2507     void StyleSetBackground(int style
, const wxColour
& back
); 
2510         Set a style to be bold or not. 
2512     void StyleSetBold(int style
, bool bold
); 
2515         Set a style to be mixed case, or to force upper or lower case. 
2517     void StyleSetCase(int style
, int caseForce
); 
2520         Set a style to be changeable or not (read only). 
2521         Experimental feature, currently buggy. 
2523     void StyleSetChangeable(int style
, bool changeable
); 
2526         Set the character set of the font in a style.  Converts the Scintilla 
2527         character set values to a wxFontEncoding. 
2529     void StyleSetCharacterSet(int style
, int characterSet
); 
2532         Set a style to have its end of line filled or not. 
2534     void StyleSetEOLFilled(int style
, bool filled
); 
2537         Set the font of a style. 
2539     void StyleSetFaceName(int style
, const wxString
& fontName
); 
2542         Set style size, face, bold, italic, and underline attributes from 
2543         a wxFont's attributes. 
2545     void StyleSetFont(int styleNum
, wxFont
& font
); 
2548         Set all font style attributes at once. 
2550     void StyleSetFontAttr(int styleNum
, int size
, 
2551                           const wxString
& faceName
, 
2555                           wxFontEncoding encoding 
= wxFONTENCODING_DEFAULT
); 
2558         Set the font encoding to be used by a style. 
2560     void StyleSetFontEncoding(int style
, wxFontEncoding encoding
); 
2563         Set the foreground colour of a style. 
2565     void StyleSetForeground(int style
, const wxColour
& fore
); 
2568         Set a style to be a hotspot or not. 
2570     void StyleSetHotSpot(int style
, bool hotspot
); 
2573         Set a style to be italic or not. 
2575     void StyleSetItalic(int style
, bool italic
); 
2578         Set the size of characters of a style. 
2580     void StyleSetSize(int style
, int sizePoints
); 
2583         Extract style settings from a spec-string which is composed of one or 
2584         more of the following comma separated elements: 
2586         italic                  turns on italics 
2587         fore:[name or \#RRGGBB]  sets the foreground colour 
2588         back:[name or \#RRGGBB]  sets the background colour 
2589         face:[facename]         sets the font face name to use 
2590         size:[num]              sets the font size in points 
2591         eol                     turns on eol filling 
2592         underline               turns on underlining 
2594     void StyleSetSpec(int styleNum
, const wxString
& spec
); 
2597         Set a style to be underlined or not. 
2599     void StyleSetUnderline(int style
, bool underline
); 
2602         Set a style to be visible or not. 
2604     void StyleSetVisible(int style
, bool visible
); 
2607         If selection is empty or all on one line replace the selection with a tab 
2609         If more than one line selected, indent the lines. 
2614         Make the target range start and end be the same as the selection range start 
2617     void TargetFromSelection(); 
2620         Retrieve the height of a particular line of text in pixels. 
2622     int TextHeight(int line
); 
2625         Measure the pixel width of some text in a particular style. 
2626         NUL terminated text argument. 
2627         Does not handle tab or control characters. 
2629     int TextWidth(int style
, const wxString
& text
); 
2632         Switch between sticky and non-sticky: meant to be bound to a key. 
2634     void ToggleCaretSticky(); 
2637         Switch a header line between expanded and contracted. 
2639     void ToggleFold(int line
); 
2642         Undo one action in the undo history. 
2644     virtual void Undo(); 
2647         Transform the selection to upper case. 
2652         Set whether a pop up menu is displayed automatically when the user presses 
2653         the wrong mouse button. 
2655     void UsePopUp(bool allowPopUp
); 
2658         Display a list of strings and send notification when user chooses one. 
2660     void UserListShow(int listType
, const wxString
& itemList
); 
2663         Move caret to before first visible character on line. 
2664         If already there move to first character on line. 
2669         Like VCHome but extending selection to new caret position. 
2671     void VCHomeExtend(); 
2674         Move caret to before first visible character on line. 
2675         If already there move to first character on line. 
2676         In either case, extend rectangular selection to new caret position. 
2678     void VCHomeRectExtend(); 
2688     void VCHomeWrapExtend(); 
2691         Find the display line of a document line taking hidden lines into account. 
2693     int VisibleFromDocLine(int line
); 
2696         Get position of end of word. 
2698     int WordEndPosition(int pos
, bool onlyWordCharacters
); 
2701         Move caret left one word. 
2706         Move caret left one word, position cursor at end of word. 
2711         Move caret left one word, position cursor at end of word, extending selection 
2712         to new caret position. 
2714     void WordLeftEndExtend(); 
2717         Move caret left one word extending selection to new caret position. 
2719     void WordLeftExtend(); 
2722         Move to the previous change in capitalisation. 
2724     void WordPartLeft(); 
2727         Move to the previous change in capitalisation extending selection 
2728         to new caret position. 
2730     void WordPartLeftExtend(); 
2733         Move to the change next in capitalisation. 
2735     void WordPartRight(); 
2738         Move to the next change in capitalisation extending selection 
2739         to new caret position. 
2741     void WordPartRightExtend(); 
2744         Move caret right one word. 
2749         Move caret right one word, position cursor at end of word. 
2751     void WordRightEnd(); 
2754         Move caret right one word, position cursor at end of word, extending selection 
2755         to new caret position. 
2757     void WordRightEndExtend(); 
2760         Move caret right one word extending selection to new caret position. 
2762     void WordRightExtend(); 
2765         Get position of start of word. 
2767     int WordStartPosition(int pos
, bool onlyWordCharacters
); 
2770         The number of display lines needed to wrap a document line 
2772     int WrapCount(int line
); 
2775         Magnify the displayed text by increasing the sizes by 1 point. 
2780         Make the displayed text smaller by decreasing the sizes by 1 point.