stc.h 165 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013
  1. ////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/stc/stc.h
  3. // Purpose: A wxWidgets implementation of Scintilla. This class is the
  4. // one meant to be used directly by wx applications. It does not
  5. // derive directly from the Scintilla classes, and in fact there
  6. // is no mention of Scintilla classes at all in this header.
  7. // This class delegates all method calls and events to the
  8. // Scintilla objects and so forth. This allows the use of
  9. // Scintilla without polluting the namespace with all the
  10. // classes and itentifiers from Scintilla.
  11. //
  12. // Author: Robin Dunn
  13. //
  14. // Created: 13-Jan-2000
  15. // Copyright: (c) 2000 by Total Control Software
  16. // Licence: wxWindows licence
  17. /////////////////////////////////////////////////////////////////////////////
  18. /*
  19. IMPORTANT: include/wx/stc/stc.h is generated by src/stc/gen_iface.py from
  20. src/stc/stc.h.in, don't edit stc.h file as your changes will be
  21. lost after the next regeneration, edit stc.h.in and rerun the
  22. gen_iface.py script instead!
  23. Parts of this file generated by the script are found in between
  24. the special "{{{" and "}}}" markers, the rest of it is copied
  25. verbatim from src.h.in.
  26. */
  27. #ifndef _WX_STC_STC_H_
  28. #define _WX_STC_STC_H_
  29. #include "wx/defs.h"
  30. #if wxUSE_STC
  31. #include "wx/control.h"
  32. #include "wx/dnd.h"
  33. #include "wx/stopwatch.h"
  34. #include "wx/versioninfo.h"
  35. #include "wx/textentry.h"
  36. #if wxUSE_TEXTCTRL
  37. #include "wx/textctrl.h"
  38. #endif // wxUSE_TEXTCTRL
  39. class WXDLLIMPEXP_FWD_CORE wxScrollBar;
  40. // SWIG can't handle "#if" type of conditionals, only "#ifdef"
  41. #ifdef SWIG
  42. #define STC_USE_DND 1
  43. #else
  44. #if wxUSE_DRAG_AND_DROP
  45. #define STC_USE_DND 1
  46. #endif
  47. #endif
  48. //----------------------------------------------------------------------
  49. // STC constants generated section {{{
  50. #define wxSTC_INVALID_POSITION -1
  51. /// Define start of Scintilla messages to be greater than all Windows edit (EM_*) messages
  52. /// as many EM_ messages can be used although that use is deprecated.
  53. #define wxSTC_START 2000
  54. #define wxSTC_OPTIONAL_START 3000
  55. #define wxSTC_LEXER_START 4000
  56. #define wxSTC_WS_INVISIBLE 0
  57. #define wxSTC_WS_VISIBLEALWAYS 1
  58. #define wxSTC_WS_VISIBLEAFTERINDENT 2
  59. #define wxSTC_EOL_CRLF 0
  60. #define wxSTC_EOL_CR 1
  61. #define wxSTC_EOL_LF 2
  62. /// The SC_CP_UTF8 value can be used to enter Unicode mode.
  63. /// This is the same value as CP_UTF8 in Windows
  64. #define wxSTC_CP_UTF8 65001
  65. #define wxSTC_MARKER_MAX 31
  66. #define wxSTC_MARK_CIRCLE 0
  67. #define wxSTC_MARK_ROUNDRECT 1
  68. #define wxSTC_MARK_ARROW 2
  69. #define wxSTC_MARK_SMALLRECT 3
  70. #define wxSTC_MARK_SHORTARROW 4
  71. #define wxSTC_MARK_EMPTY 5
  72. #define wxSTC_MARK_ARROWDOWN 6
  73. #define wxSTC_MARK_MINUS 7
  74. #define wxSTC_MARK_PLUS 8
  75. /// Shapes used for outlining column.
  76. #define wxSTC_MARK_VLINE 9
  77. #define wxSTC_MARK_LCORNER 10
  78. #define wxSTC_MARK_TCORNER 11
  79. #define wxSTC_MARK_BOXPLUS 12
  80. #define wxSTC_MARK_BOXPLUSCONNECTED 13
  81. #define wxSTC_MARK_BOXMINUS 14
  82. #define wxSTC_MARK_BOXMINUSCONNECTED 15
  83. #define wxSTC_MARK_LCORNERCURVE 16
  84. #define wxSTC_MARK_TCORNERCURVE 17
  85. #define wxSTC_MARK_CIRCLEPLUS 18
  86. #define wxSTC_MARK_CIRCLEPLUSCONNECTED 19
  87. #define wxSTC_MARK_CIRCLEMINUS 20
  88. #define wxSTC_MARK_CIRCLEMINUSCONNECTED 21
  89. /// Invisible mark that only sets the line background colour.
  90. #define wxSTC_MARK_BACKGROUND 22
  91. #define wxSTC_MARK_DOTDOTDOT 23
  92. #define wxSTC_MARK_ARROWS 24
  93. #define wxSTC_MARK_PIXMAP 25
  94. #define wxSTC_MARK_FULLRECT 26
  95. #define wxSTC_MARK_LEFTRECT 27
  96. #define wxSTC_MARK_AVAILABLE 28
  97. #define wxSTC_MARK_UNDERLINE 29
  98. #define wxSTC_MARK_RGBAIMAGE 30
  99. #define wxSTC_MARK_CHARACTER 10000
  100. /// Markers used for outlining column.
  101. #define wxSTC_MARKNUM_FOLDEREND 25
  102. #define wxSTC_MARKNUM_FOLDEROPENMID 26
  103. #define wxSTC_MARKNUM_FOLDERMIDTAIL 27
  104. #define wxSTC_MARKNUM_FOLDERTAIL 28
  105. #define wxSTC_MARKNUM_FOLDERSUB 29
  106. #define wxSTC_MARKNUM_FOLDER 30
  107. #define wxSTC_MARKNUM_FOLDEROPEN 31
  108. #define wxSTC_MASK_FOLDERS 0xFE000000
  109. #define wxSTC_MARGIN_SYMBOL 0
  110. #define wxSTC_MARGIN_NUMBER 1
  111. #define wxSTC_MARGIN_BACK 2
  112. #define wxSTC_MARGIN_FORE 3
  113. #define wxSTC_MARGIN_TEXT 4
  114. #define wxSTC_MARGIN_RTEXT 5
  115. /// Styles in range 32..38 are predefined for parts of the UI and are not used as normal styles.
  116. /// Style 39 is for future use.
  117. #define wxSTC_STYLE_DEFAULT 32
  118. #define wxSTC_STYLE_LINENUMBER 33
  119. #define wxSTC_STYLE_BRACELIGHT 34
  120. #define wxSTC_STYLE_BRACEBAD 35
  121. #define wxSTC_STYLE_CONTROLCHAR 36
  122. #define wxSTC_STYLE_INDENTGUIDE 37
  123. #define wxSTC_STYLE_CALLTIP 38
  124. #define wxSTC_STYLE_LASTPREDEFINED 39
  125. #define wxSTC_STYLE_MAX 255
  126. /// Character set identifiers are used in StyleSetCharacterSet.
  127. /// The values are the same as the Windows *_CHARSET values.
  128. #define wxSTC_CHARSET_ANSI 0
  129. #define wxSTC_CHARSET_DEFAULT 1
  130. #define wxSTC_CHARSET_BALTIC 186
  131. #define wxSTC_CHARSET_CHINESEBIG5 136
  132. #define wxSTC_CHARSET_EASTEUROPE 238
  133. #define wxSTC_CHARSET_GB2312 134
  134. #define wxSTC_CHARSET_GREEK 161
  135. #define wxSTC_CHARSET_HANGUL 129
  136. #define wxSTC_CHARSET_MAC 77
  137. #define wxSTC_CHARSET_OEM 255
  138. #define wxSTC_CHARSET_RUSSIAN 204
  139. #define wxSTC_CHARSET_CYRILLIC 1251
  140. #define wxSTC_CHARSET_SHIFTJIS 128
  141. #define wxSTC_CHARSET_SYMBOL 2
  142. #define wxSTC_CHARSET_TURKISH 162
  143. #define wxSTC_CHARSET_JOHAB 130
  144. #define wxSTC_CHARSET_HEBREW 177
  145. #define wxSTC_CHARSET_ARABIC 178
  146. #define wxSTC_CHARSET_VIETNAMESE 163
  147. #define wxSTC_CHARSET_THAI 222
  148. #define wxSTC_CHARSET_8859_15 1000
  149. #define wxSTC_CASE_MIXED 0
  150. #define wxSTC_CASE_UPPER 1
  151. #define wxSTC_CASE_LOWER 2
  152. #define wxSTC_FONT_SIZE_MULTIPLIER 100
  153. #define wxSTC_WEIGHT_NORMAL 400
  154. #define wxSTC_WEIGHT_SEMIBOLD 600
  155. #define wxSTC_WEIGHT_BOLD 700
  156. /// Indicator style enumeration and some constants
  157. #define wxSTC_INDIC_PLAIN 0
  158. #define wxSTC_INDIC_SQUIGGLE 1
  159. #define wxSTC_INDIC_TT 2
  160. #define wxSTC_INDIC_DIAGONAL 3
  161. #define wxSTC_INDIC_STRIKE 4
  162. #define wxSTC_INDIC_HIDDEN 5
  163. #define wxSTC_INDIC_BOX 6
  164. #define wxSTC_INDIC_ROUNDBOX 7
  165. #define wxSTC_INDIC_STRAIGHTBOX 8
  166. #define wxSTC_INDIC_DASH 9
  167. #define wxSTC_INDIC_DOTS 10
  168. #define wxSTC_INDIC_SQUIGGLELOW 11
  169. #define wxSTC_INDIC_DOTBOX 12
  170. #define wxSTC_INDIC_MAX 31
  171. #define wxSTC_INDIC_CONTAINER 8
  172. #define wxSTC_INDIC0_MASK 0x20
  173. #define wxSTC_INDIC1_MASK 0x40
  174. #define wxSTC_INDIC2_MASK 0x80
  175. #define wxSTC_INDICS_MASK 0xE0
  176. #define wxSTC_IV_NONE 0
  177. #define wxSTC_IV_REAL 1
  178. #define wxSTC_IV_LOOKFORWARD 2
  179. #define wxSTC_IV_LOOKBOTH 3
  180. /// PrintColourMode - use same colours as screen.
  181. #define wxSTC_PRINT_NORMAL 0
  182. /// PrintColourMode - invert the light value of each style for printing.
  183. #define wxSTC_PRINT_INVERTLIGHT 1
  184. /// PrintColourMode - force black text on white background for printing.
  185. #define wxSTC_PRINT_BLACKONWHITE 2
  186. /// PrintColourMode - text stays coloured, but all background is forced to be white for printing.
  187. #define wxSTC_PRINT_COLOURONWHITE 3
  188. /// PrintColourMode - only the default-background is forced to be white for printing.
  189. #define wxSTC_PRINT_COLOURONWHITEDEFAULTBG 4
  190. #define wxSTC_FIND_WHOLEWORD 2
  191. #define wxSTC_FIND_MATCHCASE 4
  192. #define wxSTC_FIND_WORDSTART 0x00100000
  193. #define wxSTC_FIND_REGEXP 0x00200000
  194. #define wxSTC_FIND_POSIX 0x00400000
  195. #define wxSTC_FOLDLEVELBASE 0x400
  196. #define wxSTC_FOLDLEVELWHITEFLAG 0x1000
  197. #define wxSTC_FOLDLEVELHEADERFLAG 0x2000
  198. #define wxSTC_FOLDLEVELNUMBERMASK 0x0FFF
  199. #define wxSTC_FOLDFLAG_LINEBEFORE_EXPANDED 0x0002
  200. #define wxSTC_FOLDFLAG_LINEBEFORE_CONTRACTED 0x0004
  201. #define wxSTC_FOLDFLAG_LINEAFTER_EXPANDED 0x0008
  202. #define wxSTC_FOLDFLAG_LINEAFTER_CONTRACTED 0x0010
  203. #define wxSTC_FOLDFLAG_LEVELNUMBERS 0x0040
  204. #define wxSTC_TIME_FOREVER 10000000
  205. #define wxSTC_WRAP_NONE 0
  206. #define wxSTC_WRAP_WORD 1
  207. #define wxSTC_WRAP_CHAR 2
  208. #define wxSTC_WRAPVISUALFLAG_NONE 0x0000
  209. #define wxSTC_WRAPVISUALFLAG_END 0x0001
  210. #define wxSTC_WRAPVISUALFLAG_START 0x0002
  211. #define wxSTC_WRAPVISUALFLAG_MARGIN 0x0004
  212. #define wxSTC_WRAPVISUALFLAGLOC_DEFAULT 0x0000
  213. #define wxSTC_WRAPVISUALFLAGLOC_END_BY_TEXT 0x0001
  214. #define wxSTC_WRAPVISUALFLAGLOC_START_BY_TEXT 0x0002
  215. #define wxSTC_WRAPINDENT_FIXED 0
  216. #define wxSTC_WRAPINDENT_SAME 1
  217. #define wxSTC_WRAPINDENT_INDENT 2
  218. #define wxSTC_CACHE_NONE 0
  219. #define wxSTC_CACHE_CARET 1
  220. #define wxSTC_CACHE_PAGE 2
  221. #define wxSTC_CACHE_DOCUMENT 3
  222. /// Control font anti-aliasing.
  223. #define wxSTC_EFF_QUALITY_MASK 0xF
  224. #define wxSTC_EFF_QUALITY_DEFAULT 0
  225. #define wxSTC_EFF_QUALITY_NON_ANTIALIASED 1
  226. #define wxSTC_EFF_QUALITY_ANTIALIASED 2
  227. #define wxSTC_EFF_QUALITY_LCD_OPTIMIZED 3
  228. #define wxSTC_MULTIPASTE_ONCE 0
  229. #define wxSTC_MULTIPASTE_EACH 1
  230. #define wxSTC_EDGE_NONE 0
  231. #define wxSTC_EDGE_LINE 1
  232. #define wxSTC_EDGE_BACKGROUND 2
  233. #define wxSTC_STATUS_OK 0
  234. #define wxSTC_STATUS_FAILURE 1
  235. #define wxSTC_STATUS_BADALLOC 2
  236. #define wxSTC_CURSORNORMAL -1
  237. #define wxSTC_CURSORARROW 2
  238. #define wxSTC_CURSORWAIT 4
  239. #define wxSTC_CURSORREVERSEARROW 7
  240. /// Constants for use with SetVisiblePolicy, similar to SetCaretPolicy.
  241. #define wxSTC_VISIBLE_SLOP 0x01
  242. #define wxSTC_VISIBLE_STRICT 0x04
  243. /// Caret policy, used by SetXCaretPolicy and SetYCaretPolicy.
  244. /// If CARET_SLOP is set, we can define a slop value: caretSlop.
  245. /// This value defines an unwanted zone (UZ) where the caret is... unwanted.
  246. /// This zone is defined as a number of pixels near the vertical margins,
  247. /// and as a number of lines near the horizontal margins.
  248. /// By keeping the caret away from the edges, it is seen within its context,
  249. /// so it is likely that the identifier that the caret is on can be completely seen,
  250. /// and that the current line is seen with some of the lines following it which are
  251. /// often dependent on that line.
  252. #define wxSTC_CARET_SLOP 0x01
  253. /// If CARET_STRICT is set, the policy is enforced... strictly.
  254. /// The caret is centred on the display if slop is not set,
  255. /// and cannot go in the UZ if slop is set.
  256. #define wxSTC_CARET_STRICT 0x04
  257. /// If CARET_JUMPS is set, the display is moved more energetically
  258. /// so the caret can move in the same direction longer before the policy is applied again.
  259. #define wxSTC_CARET_JUMPS 0x10
  260. /// If CARET_EVEN is not set, instead of having symmetrical UZs,
  261. /// the left and bottom UZs are extended up to right and top UZs respectively.
  262. /// This way, we favour the displaying of useful information: the begining of lines,
  263. /// where most code reside, and the lines after the caret, eg. the body of a function.
  264. #define wxSTC_CARET_EVEN 0x08
  265. #define wxSTC_SEL_STREAM 0
  266. #define wxSTC_SEL_RECTANGLE 1
  267. #define wxSTC_SEL_LINES 2
  268. #define wxSTC_SEL_THIN 3
  269. #define wxSTC_CASEINSENSITIVEBEHAVIOUR_RESPECTCASE 0
  270. #define wxSTC_CASEINSENSITIVEBEHAVIOUR_IGNORECASE 1
  271. #define wxSTC_CARETSTICKY_OFF 0
  272. #define wxSTC_CARETSTICKY_ON 1
  273. #define wxSTC_CARETSTICKY_WHITESPACE 2
  274. #define wxSTC_ALPHA_TRANSPARENT 0
  275. #define wxSTC_ALPHA_OPAQUE 255
  276. #define wxSTC_ALPHA_NOALPHA 256
  277. #define wxSTC_CARETSTYLE_INVISIBLE 0
  278. #define wxSTC_CARETSTYLE_LINE 1
  279. #define wxSTC_CARETSTYLE_BLOCK 2
  280. #define wxSTC_MARGINOPTION_NONE 0
  281. #define wxSTC_MARGINOPTION_SUBLINESELECT 1
  282. #define wxSTC_ANNOTATION_HIDDEN 0
  283. #define wxSTC_ANNOTATION_STANDARD 1
  284. #define wxSTC_ANNOTATION_BOXED 2
  285. #define wxSTC_UNDO_MAY_COALESCE 1
  286. #define wxSTC_SCVS_NONE 0
  287. #define wxSTC_SCVS_RECTANGULARSELECTION 1
  288. #define wxSTC_SCVS_USERACCESSIBLE 2
  289. #define wxSTC_TECHNOLOGY_DEFAULT 0
  290. #define wxSTC_TECHNOLOGY_DIRECTWRITE 1
  291. /// Maximum value of keywordSet parameter of SetKeyWords.
  292. #define wxSTC_KEYWORDSET_MAX 8
  293. #define wxSTC_TYPE_BOOLEAN 0
  294. #define wxSTC_TYPE_INTEGER 1
  295. #define wxSTC_TYPE_STRING 2
  296. /// Notifications
  297. /// Type of modification and the action which caused the modification.
  298. /// These are defined as a bit mask to make it easy to specify which notifications are wanted.
  299. /// One bit is set from each of SC_MOD_* and SC_PERFORMED_*.
  300. #define wxSTC_MOD_INSERTTEXT 0x1
  301. #define wxSTC_MOD_DELETETEXT 0x2
  302. #define wxSTC_MOD_CHANGESTYLE 0x4
  303. #define wxSTC_MOD_CHANGEFOLD 0x8
  304. #define wxSTC_PERFORMED_USER 0x10
  305. #define wxSTC_PERFORMED_UNDO 0x20
  306. #define wxSTC_PERFORMED_REDO 0x40
  307. #define wxSTC_MULTISTEPUNDOREDO 0x80
  308. #define wxSTC_LASTSTEPINUNDOREDO 0x100
  309. #define wxSTC_MOD_CHANGEMARKER 0x200
  310. #define wxSTC_MOD_BEFOREINSERT 0x400
  311. #define wxSTC_MOD_BEFOREDELETE 0x800
  312. #define wxSTC_MULTILINEUNDOREDO 0x1000
  313. #define wxSTC_STARTACTION 0x2000
  314. #define wxSTC_MOD_CHANGEINDICATOR 0x4000
  315. #define wxSTC_MOD_CHANGELINESTATE 0x8000
  316. #define wxSTC_MOD_CHANGEMARGIN 0x10000
  317. #define wxSTC_MOD_CHANGEANNOTATION 0x20000
  318. #define wxSTC_MOD_CONTAINER 0x40000
  319. #define wxSTC_MOD_LEXERSTATE 0x80000
  320. #define wxSTC_MODEVENTMASKALL 0xFFFFF
  321. #define wxSTC_UPDATE_CONTENT 0x1
  322. #define wxSTC_UPDATE_SELECTION 0x2
  323. #define wxSTC_UPDATE_V_SCROLL 0x4
  324. #define wxSTC_UPDATE_H_SCROLL 0x8
  325. /// Symbolic key codes and modifier flags.
  326. /// ASCII and other printable characters below 256.
  327. /// Extended keys above 300.
  328. #define wxSTC_KEY_DOWN 300
  329. #define wxSTC_KEY_UP 301
  330. #define wxSTC_KEY_LEFT 302
  331. #define wxSTC_KEY_RIGHT 303
  332. #define wxSTC_KEY_HOME 304
  333. #define wxSTC_KEY_END 305
  334. #define wxSTC_KEY_PRIOR 306
  335. #define wxSTC_KEY_NEXT 307
  336. #define wxSTC_KEY_DELETE 308
  337. #define wxSTC_KEY_INSERT 309
  338. #define wxSTC_KEY_ESCAPE 7
  339. #define wxSTC_KEY_BACK 8
  340. #define wxSTC_KEY_TAB 9
  341. #define wxSTC_KEY_RETURN 13
  342. #define wxSTC_KEY_ADD 310
  343. #define wxSTC_KEY_SUBTRACT 311
  344. #define wxSTC_KEY_DIVIDE 312
  345. #define wxSTC_KEY_WIN 313
  346. #define wxSTC_KEY_RWIN 314
  347. #define wxSTC_KEY_MENU 315
  348. #define wxSTC_SCMOD_NORM 0
  349. #define wxSTC_SCMOD_SHIFT 1
  350. #define wxSTC_SCMOD_CTRL 2
  351. #define wxSTC_SCMOD_ALT 4
  352. #define wxSTC_SCMOD_SUPER 8
  353. #define wxSTC_SCMOD_META 16
  354. /// For SciLexer.h
  355. #define wxSTC_LEX_CONTAINER 0
  356. #define wxSTC_LEX_NULL 1
  357. #define wxSTC_LEX_PYTHON 2
  358. #define wxSTC_LEX_CPP 3
  359. #define wxSTC_LEX_HTML 4
  360. #define wxSTC_LEX_XML 5
  361. #define wxSTC_LEX_PERL 6
  362. #define wxSTC_LEX_SQL 7
  363. #define wxSTC_LEX_VB 8
  364. #define wxSTC_LEX_PROPERTIES 9
  365. #define wxSTC_LEX_ERRORLIST 10
  366. #define wxSTC_LEX_MAKEFILE 11
  367. #define wxSTC_LEX_BATCH 12
  368. #define wxSTC_LEX_XCODE 13
  369. #define wxSTC_LEX_LATEX 14
  370. #define wxSTC_LEX_LUA 15
  371. #define wxSTC_LEX_DIFF 16
  372. #define wxSTC_LEX_CONF 17
  373. #define wxSTC_LEX_PASCAL 18
  374. #define wxSTC_LEX_AVE 19
  375. #define wxSTC_LEX_ADA 20
  376. #define wxSTC_LEX_LISP 21
  377. #define wxSTC_LEX_RUBY 22
  378. #define wxSTC_LEX_EIFFEL 23
  379. #define wxSTC_LEX_EIFFELKW 24
  380. #define wxSTC_LEX_TCL 25
  381. #define wxSTC_LEX_NNCRONTAB 26
  382. #define wxSTC_LEX_BULLANT 27
  383. #define wxSTC_LEX_VBSCRIPT 28
  384. #define wxSTC_LEX_BAAN 31
  385. #define wxSTC_LEX_MATLAB 32
  386. #define wxSTC_LEX_SCRIPTOL 33
  387. #define wxSTC_LEX_ASM 34
  388. #define wxSTC_LEX_CPPNOCASE 35
  389. #define wxSTC_LEX_FORTRAN 36
  390. #define wxSTC_LEX_F77 37
  391. #define wxSTC_LEX_CSS 38
  392. #define wxSTC_LEX_POV 39
  393. #define wxSTC_LEX_LOUT 40
  394. #define wxSTC_LEX_ESCRIPT 41
  395. #define wxSTC_LEX_PS 42
  396. #define wxSTC_LEX_NSIS 43
  397. #define wxSTC_LEX_MMIXAL 44
  398. #define wxSTC_LEX_CLW 45
  399. #define wxSTC_LEX_CLWNOCASE 46
  400. #define wxSTC_LEX_LOT 47
  401. #define wxSTC_LEX_YAML 48
  402. #define wxSTC_LEX_TEX 49
  403. #define wxSTC_LEX_METAPOST 50
  404. #define wxSTC_LEX_POWERBASIC 51
  405. #define wxSTC_LEX_FORTH 52
  406. #define wxSTC_LEX_ERLANG 53
  407. #define wxSTC_LEX_OCTAVE 54
  408. #define wxSTC_LEX_MSSQL 55
  409. #define wxSTC_LEX_VERILOG 56
  410. #define wxSTC_LEX_KIX 57
  411. #define wxSTC_LEX_GUI4CLI 58
  412. #define wxSTC_LEX_SPECMAN 59
  413. #define wxSTC_LEX_AU3 60
  414. #define wxSTC_LEX_APDL 61
  415. #define wxSTC_LEX_BASH 62
  416. #define wxSTC_LEX_ASN1 63
  417. #define wxSTC_LEX_VHDL 64
  418. #define wxSTC_LEX_CAML 65
  419. #define wxSTC_LEX_BLITZBASIC 66
  420. #define wxSTC_LEX_PUREBASIC 67
  421. #define wxSTC_LEX_HASKELL 68
  422. #define wxSTC_LEX_PHPSCRIPT 69
  423. #define wxSTC_LEX_TADS3 70
  424. #define wxSTC_LEX_REBOL 71
  425. #define wxSTC_LEX_SMALLTALK 72
  426. #define wxSTC_LEX_FLAGSHIP 73
  427. #define wxSTC_LEX_CSOUND 74
  428. #define wxSTC_LEX_FREEBASIC 75
  429. #define wxSTC_LEX_INNOSETUP 76
  430. #define wxSTC_LEX_OPAL 77
  431. #define wxSTC_LEX_SPICE 78
  432. #define wxSTC_LEX_D 79
  433. #define wxSTC_LEX_CMAKE 80
  434. #define wxSTC_LEX_GAP 81
  435. #define wxSTC_LEX_PLM 82
  436. #define wxSTC_LEX_PROGRESS 83
  437. #define wxSTC_LEX_ABAQUS 84
  438. #define wxSTC_LEX_ASYMPTOTE 85
  439. #define wxSTC_LEX_R 86
  440. #define wxSTC_LEX_MAGIK 87
  441. #define wxSTC_LEX_POWERSHELL 88
  442. #define wxSTC_LEX_MYSQL 89
  443. #define wxSTC_LEX_PO 90
  444. #define wxSTC_LEX_TAL 91
  445. #define wxSTC_LEX_COBOL 92
  446. #define wxSTC_LEX_TACL 93
  447. #define wxSTC_LEX_SORCUS 94
  448. #define wxSTC_LEX_POWERPRO 95
  449. #define wxSTC_LEX_NIMROD 96
  450. #define wxSTC_LEX_SML 97
  451. #define wxSTC_LEX_MARKDOWN 98
  452. #define wxSTC_LEX_TXT2TAGS 99
  453. #define wxSTC_LEX_A68K 100
  454. #define wxSTC_LEX_MODULA 101
  455. #define wxSTC_LEX_COFFEESCRIPT 102
  456. #define wxSTC_LEX_TCMD 103
  457. #define wxSTC_LEX_AVS 104
  458. #define wxSTC_LEX_ECL 105
  459. #define wxSTC_LEX_OSCRIPT 106
  460. #define wxSTC_LEX_VISUALPROLOG 107
  461. /// When a lexer specifies its language as SCLEX_AUTOMATIC it receives a
  462. /// value assigned in sequence from SCLEX_AUTOMATIC+1.
  463. #define wxSTC_LEX_AUTOMATIC 1000
  464. /// Lexical states for SCLEX_PYTHON
  465. #define wxSTC_P_DEFAULT 0
  466. #define wxSTC_P_COMMENTLINE 1
  467. #define wxSTC_P_NUMBER 2
  468. #define wxSTC_P_STRING 3
  469. #define wxSTC_P_CHARACTER 4
  470. #define wxSTC_P_WORD 5
  471. #define wxSTC_P_TRIPLE 6
  472. #define wxSTC_P_TRIPLEDOUBLE 7
  473. #define wxSTC_P_CLASSNAME 8
  474. #define wxSTC_P_DEFNAME 9
  475. #define wxSTC_P_OPERATOR 10
  476. #define wxSTC_P_IDENTIFIER 11
  477. #define wxSTC_P_COMMENTBLOCK 12
  478. #define wxSTC_P_STRINGEOL 13
  479. #define wxSTC_P_WORD2 14
  480. #define wxSTC_P_DECORATOR 15
  481. /// Lexical states for SCLEX_CPP
  482. #define wxSTC_C_DEFAULT 0
  483. #define wxSTC_C_COMMENT 1
  484. #define wxSTC_C_COMMENTLINE 2
  485. #define wxSTC_C_COMMENTDOC 3
  486. #define wxSTC_C_NUMBER 4
  487. #define wxSTC_C_WORD 5
  488. #define wxSTC_C_STRING 6
  489. #define wxSTC_C_CHARACTER 7
  490. #define wxSTC_C_UUID 8
  491. #define wxSTC_C_PREPROCESSOR 9
  492. #define wxSTC_C_OPERATOR 10
  493. #define wxSTC_C_IDENTIFIER 11
  494. #define wxSTC_C_STRINGEOL 12
  495. #define wxSTC_C_VERBATIM 13
  496. #define wxSTC_C_REGEX 14
  497. #define wxSTC_C_COMMENTLINEDOC 15
  498. #define wxSTC_C_WORD2 16
  499. #define wxSTC_C_COMMENTDOCKEYWORD 17
  500. #define wxSTC_C_COMMENTDOCKEYWORDERROR 18
  501. #define wxSTC_C_GLOBALCLASS 19
  502. #define wxSTC_C_STRINGRAW 20
  503. #define wxSTC_C_TRIPLEVERBATIM 21
  504. #define wxSTC_C_HASHQUOTEDSTRING 22
  505. #define wxSTC_C_PREPROCESSORCOMMENT 23
  506. /// Lexical states for SCLEX_D
  507. #define wxSTC_D_DEFAULT 0
  508. #define wxSTC_D_COMMENT 1
  509. #define wxSTC_D_COMMENTLINE 2
  510. #define wxSTC_D_COMMENTDOC 3
  511. #define wxSTC_D_COMMENTNESTED 4
  512. #define wxSTC_D_NUMBER 5
  513. #define wxSTC_D_WORD 6
  514. #define wxSTC_D_WORD2 7
  515. #define wxSTC_D_WORD3 8
  516. #define wxSTC_D_TYPEDEF 9
  517. #define wxSTC_D_STRING 10
  518. #define wxSTC_D_STRINGEOL 11
  519. #define wxSTC_D_CHARACTER 12
  520. #define wxSTC_D_OPERATOR 13
  521. #define wxSTC_D_IDENTIFIER 14
  522. #define wxSTC_D_COMMENTLINEDOC 15
  523. #define wxSTC_D_COMMENTDOCKEYWORD 16
  524. #define wxSTC_D_COMMENTDOCKEYWORDERROR 17
  525. #define wxSTC_D_STRINGB 18
  526. #define wxSTC_D_STRINGR 19
  527. #define wxSTC_D_WORD5 20
  528. #define wxSTC_D_WORD6 21
  529. #define wxSTC_D_WORD7 22
  530. /// Lexical states for SCLEX_TCL
  531. #define wxSTC_TCL_DEFAULT 0
  532. #define wxSTC_TCL_COMMENT 1
  533. #define wxSTC_TCL_COMMENTLINE 2
  534. #define wxSTC_TCL_NUMBER 3
  535. #define wxSTC_TCL_WORD_IN_QUOTE 4
  536. #define wxSTC_TCL_IN_QUOTE 5
  537. #define wxSTC_TCL_OPERATOR 6
  538. #define wxSTC_TCL_IDENTIFIER 7
  539. #define wxSTC_TCL_SUBSTITUTION 8
  540. #define wxSTC_TCL_SUB_BRACE 9
  541. #define wxSTC_TCL_MODIFIER 10
  542. #define wxSTC_TCL_EXPAND 11
  543. #define wxSTC_TCL_WORD 12
  544. #define wxSTC_TCL_WORD2 13
  545. #define wxSTC_TCL_WORD3 14
  546. #define wxSTC_TCL_WORD4 15
  547. #define wxSTC_TCL_WORD5 16
  548. #define wxSTC_TCL_WORD6 17
  549. #define wxSTC_TCL_WORD7 18
  550. #define wxSTC_TCL_WORD8 19
  551. #define wxSTC_TCL_COMMENT_BOX 20
  552. #define wxSTC_TCL_BLOCK_COMMENT 21
  553. /// Lexical states for SCLEX_HTML, SCLEX_XML
  554. #define wxSTC_H_DEFAULT 0
  555. #define wxSTC_H_TAG 1
  556. #define wxSTC_H_TAGUNKNOWN 2
  557. #define wxSTC_H_ATTRIBUTE 3
  558. #define wxSTC_H_ATTRIBUTEUNKNOWN 4
  559. #define wxSTC_H_NUMBER 5
  560. #define wxSTC_H_DOUBLESTRING 6
  561. #define wxSTC_H_SINGLESTRING 7
  562. #define wxSTC_H_OTHER 8
  563. #define wxSTC_H_COMMENT 9
  564. #define wxSTC_H_ENTITY 10
  565. /// XML and ASP
  566. #define wxSTC_H_TAGEND 11
  567. #define wxSTC_H_XMLSTART 12
  568. #define wxSTC_H_XMLEND 13
  569. #define wxSTC_H_SCRIPT 14
  570. #define wxSTC_H_ASP 15
  571. #define wxSTC_H_ASPAT 16
  572. #define wxSTC_H_CDATA 17
  573. #define wxSTC_H_QUESTION 18
  574. /// More HTML
  575. #define wxSTC_H_VALUE 19
  576. /// X-Code
  577. #define wxSTC_H_XCCOMMENT 20
  578. /// SGML
  579. #define wxSTC_H_SGML_DEFAULT 21
  580. #define wxSTC_H_SGML_COMMAND 22
  581. #define wxSTC_H_SGML_1ST_PARAM 23
  582. #define wxSTC_H_SGML_DOUBLESTRING 24
  583. #define wxSTC_H_SGML_SIMPLESTRING 25
  584. #define wxSTC_H_SGML_ERROR 26
  585. #define wxSTC_H_SGML_SPECIAL 27
  586. #define wxSTC_H_SGML_ENTITY 28
  587. #define wxSTC_H_SGML_COMMENT 29
  588. #define wxSTC_H_SGML_1ST_PARAM_COMMENT 30
  589. #define wxSTC_H_SGML_BLOCK_DEFAULT 31
  590. /// Embedded Javascript
  591. #define wxSTC_HJ_START 40
  592. #define wxSTC_HJ_DEFAULT 41
  593. #define wxSTC_HJ_COMMENT 42
  594. #define wxSTC_HJ_COMMENTLINE 43
  595. #define wxSTC_HJ_COMMENTDOC 44
  596. #define wxSTC_HJ_NUMBER 45
  597. #define wxSTC_HJ_WORD 46
  598. #define wxSTC_HJ_KEYWORD 47
  599. #define wxSTC_HJ_DOUBLESTRING 48
  600. #define wxSTC_HJ_SINGLESTRING 49
  601. #define wxSTC_HJ_SYMBOLS 50
  602. #define wxSTC_HJ_STRINGEOL 51
  603. #define wxSTC_HJ_REGEX 52
  604. /// ASP Javascript
  605. #define wxSTC_HJA_START 55
  606. #define wxSTC_HJA_DEFAULT 56
  607. #define wxSTC_HJA_COMMENT 57
  608. #define wxSTC_HJA_COMMENTLINE 58
  609. #define wxSTC_HJA_COMMENTDOC 59
  610. #define wxSTC_HJA_NUMBER 60
  611. #define wxSTC_HJA_WORD 61
  612. #define wxSTC_HJA_KEYWORD 62
  613. #define wxSTC_HJA_DOUBLESTRING 63
  614. #define wxSTC_HJA_SINGLESTRING 64
  615. #define wxSTC_HJA_SYMBOLS 65
  616. #define wxSTC_HJA_STRINGEOL 66
  617. #define wxSTC_HJA_REGEX 67
  618. /// Embedded VBScript
  619. #define wxSTC_HB_START 70
  620. #define wxSTC_HB_DEFAULT 71
  621. #define wxSTC_HB_COMMENTLINE 72
  622. #define wxSTC_HB_NUMBER 73
  623. #define wxSTC_HB_WORD 74
  624. #define wxSTC_HB_STRING 75
  625. #define wxSTC_HB_IDENTIFIER 76
  626. #define wxSTC_HB_STRINGEOL 77
  627. /// ASP VBScript
  628. #define wxSTC_HBA_START 80
  629. #define wxSTC_HBA_DEFAULT 81
  630. #define wxSTC_HBA_COMMENTLINE 82
  631. #define wxSTC_HBA_NUMBER 83
  632. #define wxSTC_HBA_WORD 84
  633. #define wxSTC_HBA_STRING 85
  634. #define wxSTC_HBA_IDENTIFIER 86
  635. #define wxSTC_HBA_STRINGEOL 87
  636. /// Embedded Python
  637. #define wxSTC_HP_START 90
  638. #define wxSTC_HP_DEFAULT 91
  639. #define wxSTC_HP_COMMENTLINE 92
  640. #define wxSTC_HP_NUMBER 93
  641. #define wxSTC_HP_STRING 94
  642. #define wxSTC_HP_CHARACTER 95
  643. #define wxSTC_HP_WORD 96
  644. #define wxSTC_HP_TRIPLE 97
  645. #define wxSTC_HP_TRIPLEDOUBLE 98
  646. #define wxSTC_HP_CLASSNAME 99
  647. #define wxSTC_HP_DEFNAME 100
  648. #define wxSTC_HP_OPERATOR 101
  649. #define wxSTC_HP_IDENTIFIER 102
  650. /// PHP
  651. #define wxSTC_HPHP_COMPLEX_VARIABLE 104
  652. /// ASP Python
  653. #define wxSTC_HPA_START 105
  654. #define wxSTC_HPA_DEFAULT 106
  655. #define wxSTC_HPA_COMMENTLINE 107
  656. #define wxSTC_HPA_NUMBER 108
  657. #define wxSTC_HPA_STRING 109
  658. #define wxSTC_HPA_CHARACTER 110
  659. #define wxSTC_HPA_WORD 111
  660. #define wxSTC_HPA_TRIPLE 112
  661. #define wxSTC_HPA_TRIPLEDOUBLE 113
  662. #define wxSTC_HPA_CLASSNAME 114
  663. #define wxSTC_HPA_DEFNAME 115
  664. #define wxSTC_HPA_OPERATOR 116
  665. #define wxSTC_HPA_IDENTIFIER 117
  666. /// PHP
  667. #define wxSTC_HPHP_DEFAULT 118
  668. #define wxSTC_HPHP_HSTRING 119
  669. #define wxSTC_HPHP_SIMPLESTRING 120
  670. #define wxSTC_HPHP_WORD 121
  671. #define wxSTC_HPHP_NUMBER 122
  672. #define wxSTC_HPHP_VARIABLE 123
  673. #define wxSTC_HPHP_COMMENT 124
  674. #define wxSTC_HPHP_COMMENTLINE 125
  675. #define wxSTC_HPHP_HSTRING_VARIABLE 126
  676. #define wxSTC_HPHP_OPERATOR 127
  677. /// Lexical states for SCLEX_PERL
  678. #define wxSTC_PL_DEFAULT 0
  679. #define wxSTC_PL_ERROR 1
  680. #define wxSTC_PL_COMMENTLINE 2
  681. #define wxSTC_PL_POD 3
  682. #define wxSTC_PL_NUMBER 4
  683. #define wxSTC_PL_WORD 5
  684. #define wxSTC_PL_STRING 6
  685. #define wxSTC_PL_CHARACTER 7
  686. #define wxSTC_PL_PUNCTUATION 8
  687. #define wxSTC_PL_PREPROCESSOR 9
  688. #define wxSTC_PL_OPERATOR 10
  689. #define wxSTC_PL_IDENTIFIER 11
  690. #define wxSTC_PL_SCALAR 12
  691. #define wxSTC_PL_ARRAY 13
  692. #define wxSTC_PL_HASH 14
  693. #define wxSTC_PL_SYMBOLTABLE 15
  694. #define wxSTC_PL_VARIABLE_INDEXER 16
  695. #define wxSTC_PL_REGEX 17
  696. #define wxSTC_PL_REGSUBST 18
  697. #define wxSTC_PL_LONGQUOTE 19
  698. #define wxSTC_PL_BACKTICKS 20
  699. #define wxSTC_PL_DATASECTION 21
  700. #define wxSTC_PL_HERE_DELIM 22
  701. #define wxSTC_PL_HERE_Q 23
  702. #define wxSTC_PL_HERE_QQ 24
  703. #define wxSTC_PL_HERE_QX 25
  704. #define wxSTC_PL_STRING_Q 26
  705. #define wxSTC_PL_STRING_QQ 27
  706. #define wxSTC_PL_STRING_QX 28
  707. #define wxSTC_PL_STRING_QR 29
  708. #define wxSTC_PL_STRING_QW 30
  709. #define wxSTC_PL_POD_VERB 31
  710. #define wxSTC_PL_SUB_PROTOTYPE 40
  711. #define wxSTC_PL_FORMAT_IDENT 41
  712. #define wxSTC_PL_FORMAT 42
  713. #define wxSTC_PL_STRING_VAR 43
  714. #define wxSTC_PL_XLAT 44
  715. #define wxSTC_PL_REGEX_VAR 54
  716. #define wxSTC_PL_REGSUBST_VAR 55
  717. #define wxSTC_PL_BACKTICKS_VAR 57
  718. #define wxSTC_PL_HERE_QQ_VAR 61
  719. #define wxSTC_PL_HERE_QX_VAR 62
  720. #define wxSTC_PL_STRING_QQ_VAR 64
  721. #define wxSTC_PL_STRING_QX_VAR 65
  722. #define wxSTC_PL_STRING_QR_VAR 66
  723. /// Lexical states for SCLEX_RUBY
  724. #define wxSTC_RB_DEFAULT 0
  725. #define wxSTC_RB_ERROR 1
  726. #define wxSTC_RB_COMMENTLINE 2
  727. #define wxSTC_RB_POD 3
  728. #define wxSTC_RB_NUMBER 4
  729. #define wxSTC_RB_WORD 5
  730. #define wxSTC_RB_STRING 6
  731. #define wxSTC_RB_CHARACTER 7
  732. #define wxSTC_RB_CLASSNAME 8
  733. #define wxSTC_RB_DEFNAME 9
  734. #define wxSTC_RB_OPERATOR 10
  735. #define wxSTC_RB_IDENTIFIER 11
  736. #define wxSTC_RB_REGEX 12
  737. #define wxSTC_RB_GLOBAL 13
  738. #define wxSTC_RB_SYMBOL 14
  739. #define wxSTC_RB_MODULE_NAME 15
  740. #define wxSTC_RB_INSTANCE_VAR 16
  741. #define wxSTC_RB_CLASS_VAR 17
  742. #define wxSTC_RB_BACKTICKS 18
  743. #define wxSTC_RB_DATASECTION 19
  744. #define wxSTC_RB_HERE_DELIM 20
  745. #define wxSTC_RB_HERE_Q 21
  746. #define wxSTC_RB_HERE_QQ 22
  747. #define wxSTC_RB_HERE_QX 23
  748. #define wxSTC_RB_STRING_Q 24
  749. #define wxSTC_RB_STRING_QQ 25
  750. #define wxSTC_RB_STRING_QX 26
  751. #define wxSTC_RB_STRING_QR 27
  752. #define wxSTC_RB_STRING_QW 28
  753. #define wxSTC_RB_WORD_DEMOTED 29
  754. #define wxSTC_RB_STDIN 30
  755. #define wxSTC_RB_STDOUT 31
  756. #define wxSTC_RB_STDERR 40
  757. #define wxSTC_RB_UPPER_BOUND 41
  758. /// Lexical states for SCLEX_VB, SCLEX_VBSCRIPT, SCLEX_POWERBASIC
  759. #define wxSTC_B_DEFAULT 0
  760. #define wxSTC_B_COMMENT 1
  761. #define wxSTC_B_NUMBER 2
  762. #define wxSTC_B_KEYWORD 3
  763. #define wxSTC_B_STRING 4
  764. #define wxSTC_B_PREPROCESSOR 5
  765. #define wxSTC_B_OPERATOR 6
  766. #define wxSTC_B_IDENTIFIER 7
  767. #define wxSTC_B_DATE 8
  768. #define wxSTC_B_STRINGEOL 9
  769. #define wxSTC_B_KEYWORD2 10
  770. #define wxSTC_B_KEYWORD3 11
  771. #define wxSTC_B_KEYWORD4 12
  772. #define wxSTC_B_CONSTANT 13
  773. #define wxSTC_B_ASM 14
  774. #define wxSTC_B_LABEL 15
  775. #define wxSTC_B_ERROR 16
  776. #define wxSTC_B_HEXNUMBER 17
  777. #define wxSTC_B_BINNUMBER 18
  778. /// Lexical states for SCLEX_PROPERTIES
  779. #define wxSTC_PROPS_DEFAULT 0
  780. #define wxSTC_PROPS_COMMENT 1
  781. #define wxSTC_PROPS_SECTION 2
  782. #define wxSTC_PROPS_ASSIGNMENT 3
  783. #define wxSTC_PROPS_DEFVAL 4
  784. #define wxSTC_PROPS_KEY 5
  785. /// Lexical states for SCLEX_LATEX
  786. #define wxSTC_L_DEFAULT 0
  787. #define wxSTC_L_COMMAND 1
  788. #define wxSTC_L_TAG 2
  789. #define wxSTC_L_MATH 3
  790. #define wxSTC_L_COMMENT 4
  791. #define wxSTC_L_TAG2 5
  792. #define wxSTC_L_MATH2 6
  793. #define wxSTC_L_COMMENT2 7
  794. #define wxSTC_L_VERBATIM 8
  795. #define wxSTC_L_SHORTCMD 9
  796. #define wxSTC_L_SPECIAL 10
  797. #define wxSTC_L_CMDOPT 11
  798. #define wxSTC_L_ERROR 12
  799. /// Lexical states for SCLEX_LUA
  800. #define wxSTC_LUA_DEFAULT 0
  801. #define wxSTC_LUA_COMMENT 1
  802. #define wxSTC_LUA_COMMENTLINE 2
  803. #define wxSTC_LUA_COMMENTDOC 3
  804. #define wxSTC_LUA_NUMBER 4
  805. #define wxSTC_LUA_WORD 5
  806. #define wxSTC_LUA_STRING 6
  807. #define wxSTC_LUA_CHARACTER 7
  808. #define wxSTC_LUA_LITERALSTRING 8
  809. #define wxSTC_LUA_PREPROCESSOR 9
  810. #define wxSTC_LUA_OPERATOR 10
  811. #define wxSTC_LUA_IDENTIFIER 11
  812. #define wxSTC_LUA_STRINGEOL 12
  813. #define wxSTC_LUA_WORD2 13
  814. #define wxSTC_LUA_WORD3 14
  815. #define wxSTC_LUA_WORD4 15
  816. #define wxSTC_LUA_WORD5 16
  817. #define wxSTC_LUA_WORD6 17
  818. #define wxSTC_LUA_WORD7 18
  819. #define wxSTC_LUA_WORD8 19
  820. #define wxSTC_LUA_LABEL 20
  821. /// Lexical states for SCLEX_ERRORLIST
  822. #define wxSTC_ERR_DEFAULT 0
  823. #define wxSTC_ERR_PYTHON 1
  824. #define wxSTC_ERR_GCC 2
  825. #define wxSTC_ERR_MS 3
  826. #define wxSTC_ERR_CMD 4
  827. #define wxSTC_ERR_BORLAND 5
  828. #define wxSTC_ERR_PERL 6
  829. #define wxSTC_ERR_NET 7
  830. #define wxSTC_ERR_LUA 8
  831. #define wxSTC_ERR_CTAG 9
  832. #define wxSTC_ERR_DIFF_CHANGED 10
  833. #define wxSTC_ERR_DIFF_ADDITION 11
  834. #define wxSTC_ERR_DIFF_DELETION 12
  835. #define wxSTC_ERR_DIFF_MESSAGE 13
  836. #define wxSTC_ERR_PHP 14
  837. #define wxSTC_ERR_ELF 15
  838. #define wxSTC_ERR_IFC 16
  839. #define wxSTC_ERR_IFORT 17
  840. #define wxSTC_ERR_ABSF 18
  841. #define wxSTC_ERR_TIDY 19
  842. #define wxSTC_ERR_JAVA_STACK 20
  843. #define wxSTC_ERR_VALUE 21
  844. /// Lexical states for SCLEX_BATCH
  845. #define wxSTC_BAT_DEFAULT 0
  846. #define wxSTC_BAT_COMMENT 1
  847. #define wxSTC_BAT_WORD 2
  848. #define wxSTC_BAT_LABEL 3
  849. #define wxSTC_BAT_HIDE 4
  850. #define wxSTC_BAT_COMMAND 5
  851. #define wxSTC_BAT_IDENTIFIER 6
  852. #define wxSTC_BAT_OPERATOR 7
  853. /// Lexical states for SCLEX_TCMD
  854. #define wxSTC_TCMD_DEFAULT 0
  855. #define wxSTC_TCMD_COMMENT 1
  856. #define wxSTC_TCMD_WORD 2
  857. #define wxSTC_TCMD_LABEL 3
  858. #define wxSTC_TCMD_HIDE 4
  859. #define wxSTC_TCMD_COMMAND 5
  860. #define wxSTC_TCMD_IDENTIFIER 6
  861. #define wxSTC_TCMD_OPERATOR 7
  862. #define wxSTC_TCMD_ENVIRONMENT 8
  863. #define wxSTC_TCMD_EXPANSION 9
  864. #define wxSTC_TCMD_CLABEL 10
  865. /// Lexical states for SCLEX_MAKEFILE
  866. #define wxSTC_MAKE_DEFAULT 0
  867. #define wxSTC_MAKE_COMMENT 1
  868. #define wxSTC_MAKE_PREPROCESSOR 2
  869. #define wxSTC_MAKE_IDENTIFIER 3
  870. #define wxSTC_MAKE_OPERATOR 4
  871. #define wxSTC_MAKE_TARGET 5
  872. #define wxSTC_MAKE_IDEOL 9
  873. /// Lexical states for SCLEX_DIFF
  874. #define wxSTC_DIFF_DEFAULT 0
  875. #define wxSTC_DIFF_COMMENT 1
  876. #define wxSTC_DIFF_COMMAND 2
  877. #define wxSTC_DIFF_HEADER 3
  878. #define wxSTC_DIFF_POSITION 4
  879. #define wxSTC_DIFF_DELETED 5
  880. #define wxSTC_DIFF_ADDED 6
  881. #define wxSTC_DIFF_CHANGED 7
  882. /// Lexical states for SCLEX_CONF (Apache Configuration Files Lexer)
  883. #define wxSTC_CONF_DEFAULT 0
  884. #define wxSTC_CONF_COMMENT 1
  885. #define wxSTC_CONF_NUMBER 2
  886. #define wxSTC_CONF_IDENTIFIER 3
  887. #define wxSTC_CONF_EXTENSION 4
  888. #define wxSTC_CONF_PARAMETER 5
  889. #define wxSTC_CONF_STRING 6
  890. #define wxSTC_CONF_OPERATOR 7
  891. #define wxSTC_CONF_IP 8
  892. #define wxSTC_CONF_DIRECTIVE 9
  893. /// Lexical states for SCLEX_AVE, Avenue
  894. #define wxSTC_AVE_DEFAULT 0
  895. #define wxSTC_AVE_COMMENT 1
  896. #define wxSTC_AVE_NUMBER 2
  897. #define wxSTC_AVE_WORD 3
  898. #define wxSTC_AVE_STRING 6
  899. #define wxSTC_AVE_ENUM 7
  900. #define wxSTC_AVE_STRINGEOL 8
  901. #define wxSTC_AVE_IDENTIFIER 9
  902. #define wxSTC_AVE_OPERATOR 10
  903. #define wxSTC_AVE_WORD1 11
  904. #define wxSTC_AVE_WORD2 12
  905. #define wxSTC_AVE_WORD3 13
  906. #define wxSTC_AVE_WORD4 14
  907. #define wxSTC_AVE_WORD5 15
  908. #define wxSTC_AVE_WORD6 16
  909. /// Lexical states for SCLEX_ADA
  910. #define wxSTC_ADA_DEFAULT 0
  911. #define wxSTC_ADA_WORD 1
  912. #define wxSTC_ADA_IDENTIFIER 2
  913. #define wxSTC_ADA_NUMBER 3
  914. #define wxSTC_ADA_DELIMITER 4
  915. #define wxSTC_ADA_CHARACTER 5
  916. #define wxSTC_ADA_CHARACTEREOL 6
  917. #define wxSTC_ADA_STRING 7
  918. #define wxSTC_ADA_STRINGEOL 8
  919. #define wxSTC_ADA_LABEL 9
  920. #define wxSTC_ADA_COMMENTLINE 10
  921. #define wxSTC_ADA_ILLEGAL 11
  922. /// Lexical states for SCLEX_BAAN
  923. #define wxSTC_BAAN_DEFAULT 0
  924. #define wxSTC_BAAN_COMMENT 1
  925. #define wxSTC_BAAN_COMMENTDOC 2
  926. #define wxSTC_BAAN_NUMBER 3
  927. #define wxSTC_BAAN_WORD 4
  928. #define wxSTC_BAAN_STRING 5
  929. #define wxSTC_BAAN_PREPROCESSOR 6
  930. #define wxSTC_BAAN_OPERATOR 7
  931. #define wxSTC_BAAN_IDENTIFIER 8
  932. #define wxSTC_BAAN_STRINGEOL 9
  933. #define wxSTC_BAAN_WORD2 10
  934. /// Lexical states for SCLEX_LISP
  935. #define wxSTC_LISP_DEFAULT 0
  936. #define wxSTC_LISP_COMMENT 1
  937. #define wxSTC_LISP_NUMBER 2
  938. #define wxSTC_LISP_KEYWORD 3
  939. #define wxSTC_LISP_KEYWORD_KW 4
  940. #define wxSTC_LISP_SYMBOL 5
  941. #define wxSTC_LISP_STRING 6
  942. #define wxSTC_LISP_STRINGEOL 8
  943. #define wxSTC_LISP_IDENTIFIER 9
  944. #define wxSTC_LISP_OPERATOR 10
  945. #define wxSTC_LISP_SPECIAL 11
  946. #define wxSTC_LISP_MULTI_COMMENT 12
  947. /// Lexical states for SCLEX_EIFFEL and SCLEX_EIFFELKW
  948. #define wxSTC_EIFFEL_DEFAULT 0
  949. #define wxSTC_EIFFEL_COMMENTLINE 1
  950. #define wxSTC_EIFFEL_NUMBER 2
  951. #define wxSTC_EIFFEL_WORD 3
  952. #define wxSTC_EIFFEL_STRING 4
  953. #define wxSTC_EIFFEL_CHARACTER 5
  954. #define wxSTC_EIFFEL_OPERATOR 6
  955. #define wxSTC_EIFFEL_IDENTIFIER 7
  956. #define wxSTC_EIFFEL_STRINGEOL 8
  957. /// Lexical states for SCLEX_NNCRONTAB (nnCron crontab Lexer)
  958. #define wxSTC_NNCRONTAB_DEFAULT 0
  959. #define wxSTC_NNCRONTAB_COMMENT 1
  960. #define wxSTC_NNCRONTAB_TASK 2
  961. #define wxSTC_NNCRONTAB_SECTION 3
  962. #define wxSTC_NNCRONTAB_KEYWORD 4
  963. #define wxSTC_NNCRONTAB_MODIFIER 5
  964. #define wxSTC_NNCRONTAB_ASTERISK 6
  965. #define wxSTC_NNCRONTAB_NUMBER 7
  966. #define wxSTC_NNCRONTAB_STRING 8
  967. #define wxSTC_NNCRONTAB_ENVIRONMENT 9
  968. #define wxSTC_NNCRONTAB_IDENTIFIER 10
  969. /// Lexical states for SCLEX_FORTH (Forth Lexer)
  970. #define wxSTC_FORTH_DEFAULT 0
  971. #define wxSTC_FORTH_COMMENT 1
  972. #define wxSTC_FORTH_COMMENT_ML 2
  973. #define wxSTC_FORTH_IDENTIFIER 3
  974. #define wxSTC_FORTH_CONTROL 4
  975. #define wxSTC_FORTH_KEYWORD 5
  976. #define wxSTC_FORTH_DEFWORD 6
  977. #define wxSTC_FORTH_PREWORD1 7
  978. #define wxSTC_FORTH_PREWORD2 8
  979. #define wxSTC_FORTH_NUMBER 9
  980. #define wxSTC_FORTH_STRING 10
  981. #define wxSTC_FORTH_LOCALE 11
  982. /// Lexical states for SCLEX_MATLAB
  983. #define wxSTC_MATLAB_DEFAULT 0
  984. #define wxSTC_MATLAB_COMMENT 1
  985. #define wxSTC_MATLAB_COMMAND 2
  986. #define wxSTC_MATLAB_NUMBER 3
  987. #define wxSTC_MATLAB_KEYWORD 4
  988. /// single quoted string
  989. #define wxSTC_MATLAB_STRING 5
  990. #define wxSTC_MATLAB_OPERATOR 6
  991. #define wxSTC_MATLAB_IDENTIFIER 7
  992. #define wxSTC_MATLAB_DOUBLEQUOTESTRING 8
  993. /// Lexical states for SCLEX_SCRIPTOL
  994. #define wxSTC_SCRIPTOL_DEFAULT 0
  995. #define wxSTC_SCRIPTOL_WHITE 1
  996. #define wxSTC_SCRIPTOL_COMMENTLINE 2
  997. #define wxSTC_SCRIPTOL_PERSISTENT 3
  998. #define wxSTC_SCRIPTOL_CSTYLE 4
  999. #define wxSTC_SCRIPTOL_COMMENTBLOCK 5
  1000. #define wxSTC_SCRIPTOL_NUMBER 6
  1001. #define wxSTC_SCRIPTOL_STRING 7
  1002. #define wxSTC_SCRIPTOL_CHARACTER 8
  1003. #define wxSTC_SCRIPTOL_STRINGEOL 9
  1004. #define wxSTC_SCRIPTOL_KEYWORD 10
  1005. #define wxSTC_SCRIPTOL_OPERATOR 11
  1006. #define wxSTC_SCRIPTOL_IDENTIFIER 12
  1007. #define wxSTC_SCRIPTOL_TRIPLE 13
  1008. #define wxSTC_SCRIPTOL_CLASSNAME 14
  1009. #define wxSTC_SCRIPTOL_PREPROCESSOR 15
  1010. /// Lexical states for SCLEX_ASM
  1011. #define wxSTC_ASM_DEFAULT 0
  1012. #define wxSTC_ASM_COMMENT 1
  1013. #define wxSTC_ASM_NUMBER 2
  1014. #define wxSTC_ASM_STRING 3
  1015. #define wxSTC_ASM_OPERATOR 4
  1016. #define wxSTC_ASM_IDENTIFIER 5
  1017. #define wxSTC_ASM_CPUINSTRUCTION 6
  1018. #define wxSTC_ASM_MATHINSTRUCTION 7
  1019. #define wxSTC_ASM_REGISTER 8
  1020. #define wxSTC_ASM_DIRECTIVE 9
  1021. #define wxSTC_ASM_DIRECTIVEOPERAND 10
  1022. #define wxSTC_ASM_COMMENTBLOCK 11
  1023. #define wxSTC_ASM_CHARACTER 12
  1024. #define wxSTC_ASM_STRINGEOL 13
  1025. #define wxSTC_ASM_EXTINSTRUCTION 14
  1026. #define wxSTC_ASM_COMMENTDIRECTIVE 15
  1027. /// Lexical states for SCLEX_FORTRAN
  1028. #define wxSTC_F_DEFAULT 0
  1029. #define wxSTC_F_COMMENT 1
  1030. #define wxSTC_F_NUMBER 2
  1031. #define wxSTC_F_STRING1 3
  1032. #define wxSTC_F_STRING2 4
  1033. #define wxSTC_F_STRINGEOL 5
  1034. #define wxSTC_F_OPERATOR 6
  1035. #define wxSTC_F_IDENTIFIER 7
  1036. #define wxSTC_F_WORD 8
  1037. #define wxSTC_F_WORD2 9
  1038. #define wxSTC_F_WORD3 10
  1039. #define wxSTC_F_PREPROCESSOR 11
  1040. #define wxSTC_F_OPERATOR2 12
  1041. #define wxSTC_F_LABEL 13
  1042. #define wxSTC_F_CONTINUATION 14
  1043. /// Lexical states for SCLEX_CSS
  1044. #define wxSTC_CSS_DEFAULT 0
  1045. #define wxSTC_CSS_TAG 1
  1046. #define wxSTC_CSS_CLASS 2
  1047. #define wxSTC_CSS_PSEUDOCLASS 3
  1048. #define wxSTC_CSS_UNKNOWN_PSEUDOCLASS 4
  1049. #define wxSTC_CSS_OPERATOR 5
  1050. #define wxSTC_CSS_IDENTIFIER 6
  1051. #define wxSTC_CSS_UNKNOWN_IDENTIFIER 7
  1052. #define wxSTC_CSS_VALUE 8
  1053. #define wxSTC_CSS_COMMENT 9
  1054. #define wxSTC_CSS_ID 10
  1055. #define wxSTC_CSS_IMPORTANT 11
  1056. #define wxSTC_CSS_DIRECTIVE 12
  1057. #define wxSTC_CSS_DOUBLESTRING 13
  1058. #define wxSTC_CSS_SINGLESTRING 14
  1059. #define wxSTC_CSS_IDENTIFIER2 15
  1060. #define wxSTC_CSS_ATTRIBUTE 16
  1061. #define wxSTC_CSS_IDENTIFIER3 17
  1062. #define wxSTC_CSS_PSEUDOELEMENT 18
  1063. #define wxSTC_CSS_EXTENDED_IDENTIFIER 19
  1064. #define wxSTC_CSS_EXTENDED_PSEUDOCLASS 20
  1065. #define wxSTC_CSS_EXTENDED_PSEUDOELEMENT 21
  1066. #define wxSTC_CSS_MEDIA 22
  1067. #define wxSTC_CSS_VARIABLE 23
  1068. /// Lexical states for SCLEX_POV
  1069. #define wxSTC_POV_DEFAULT 0
  1070. #define wxSTC_POV_COMMENT 1
  1071. #define wxSTC_POV_COMMENTLINE 2
  1072. #define wxSTC_POV_NUMBER 3
  1073. #define wxSTC_POV_OPERATOR 4
  1074. #define wxSTC_POV_IDENTIFIER 5
  1075. #define wxSTC_POV_STRING 6
  1076. #define wxSTC_POV_STRINGEOL 7
  1077. #define wxSTC_POV_DIRECTIVE 8
  1078. #define wxSTC_POV_BADDIRECTIVE 9
  1079. #define wxSTC_POV_WORD2 10
  1080. #define wxSTC_POV_WORD3 11
  1081. #define wxSTC_POV_WORD4 12
  1082. #define wxSTC_POV_WORD5 13
  1083. #define wxSTC_POV_WORD6 14
  1084. #define wxSTC_POV_WORD7 15
  1085. #define wxSTC_POV_WORD8 16
  1086. /// Lexical states for SCLEX_LOUT
  1087. #define wxSTC_LOUT_DEFAULT 0
  1088. #define wxSTC_LOUT_COMMENT 1
  1089. #define wxSTC_LOUT_NUMBER 2
  1090. #define wxSTC_LOUT_WORD 3
  1091. #define wxSTC_LOUT_WORD2 4
  1092. #define wxSTC_LOUT_WORD3 5
  1093. #define wxSTC_LOUT_WORD4 6
  1094. #define wxSTC_LOUT_STRING 7
  1095. #define wxSTC_LOUT_OPERATOR 8
  1096. #define wxSTC_LOUT_IDENTIFIER 9
  1097. #define wxSTC_LOUT_STRINGEOL 10
  1098. /// Lexical states for SCLEX_ESCRIPT
  1099. #define wxSTC_ESCRIPT_DEFAULT 0
  1100. #define wxSTC_ESCRIPT_COMMENT 1
  1101. #define wxSTC_ESCRIPT_COMMENTLINE 2
  1102. #define wxSTC_ESCRIPT_COMMENTDOC 3
  1103. #define wxSTC_ESCRIPT_NUMBER 4
  1104. #define wxSTC_ESCRIPT_WORD 5
  1105. #define wxSTC_ESCRIPT_STRING 6
  1106. #define wxSTC_ESCRIPT_OPERATOR 7
  1107. #define wxSTC_ESCRIPT_IDENTIFIER 8
  1108. #define wxSTC_ESCRIPT_BRACE 9
  1109. #define wxSTC_ESCRIPT_WORD2 10
  1110. #define wxSTC_ESCRIPT_WORD3 11
  1111. /// Lexical states for SCLEX_PS
  1112. #define wxSTC_PS_DEFAULT 0
  1113. #define wxSTC_PS_COMMENT 1
  1114. #define wxSTC_PS_DSC_COMMENT 2
  1115. #define wxSTC_PS_DSC_VALUE 3
  1116. #define wxSTC_PS_NUMBER 4
  1117. #define wxSTC_PS_NAME 5
  1118. #define wxSTC_PS_KEYWORD 6
  1119. #define wxSTC_PS_LITERAL 7
  1120. #define wxSTC_PS_IMMEVAL 8
  1121. #define wxSTC_PS_PAREN_ARRAY 9
  1122. #define wxSTC_PS_PAREN_DICT 10
  1123. #define wxSTC_PS_PAREN_PROC 11
  1124. #define wxSTC_PS_TEXT 12
  1125. #define wxSTC_PS_HEXSTRING 13
  1126. #define wxSTC_PS_BASE85STRING 14
  1127. #define wxSTC_PS_BADSTRINGCHAR 15
  1128. /// Lexical states for SCLEX_NSIS
  1129. #define wxSTC_NSIS_DEFAULT 0
  1130. #define wxSTC_NSIS_COMMENT 1
  1131. #define wxSTC_NSIS_STRINGDQ 2
  1132. #define wxSTC_NSIS_STRINGLQ 3
  1133. #define wxSTC_NSIS_STRINGRQ 4
  1134. #define wxSTC_NSIS_FUNCTION 5
  1135. #define wxSTC_NSIS_VARIABLE 6
  1136. #define wxSTC_NSIS_LABEL 7
  1137. #define wxSTC_NSIS_USERDEFINED 8
  1138. #define wxSTC_NSIS_SECTIONDEF 9
  1139. #define wxSTC_NSIS_SUBSECTIONDEF 10
  1140. #define wxSTC_NSIS_IFDEFINEDEF 11
  1141. #define wxSTC_NSIS_MACRODEF 12
  1142. #define wxSTC_NSIS_STRINGVAR 13
  1143. #define wxSTC_NSIS_NUMBER 14
  1144. #define wxSTC_NSIS_SECTIONGROUP 15
  1145. #define wxSTC_NSIS_PAGEEX 16
  1146. #define wxSTC_NSIS_FUNCTIONDEF 17
  1147. #define wxSTC_NSIS_COMMENTBOX 18
  1148. /// Lexical states for SCLEX_MMIXAL
  1149. #define wxSTC_MMIXAL_LEADWS 0
  1150. #define wxSTC_MMIXAL_COMMENT 1
  1151. #define wxSTC_MMIXAL_LABEL 2
  1152. #define wxSTC_MMIXAL_OPCODE 3
  1153. #define wxSTC_MMIXAL_OPCODE_PRE 4
  1154. #define wxSTC_MMIXAL_OPCODE_VALID 5
  1155. #define wxSTC_MMIXAL_OPCODE_UNKNOWN 6
  1156. #define wxSTC_MMIXAL_OPCODE_POST 7
  1157. #define wxSTC_MMIXAL_OPERANDS 8
  1158. #define wxSTC_MMIXAL_NUMBER 9
  1159. #define wxSTC_MMIXAL_REF 10
  1160. #define wxSTC_MMIXAL_CHAR 11
  1161. #define wxSTC_MMIXAL_STRING 12
  1162. #define wxSTC_MMIXAL_REGISTER 13
  1163. #define wxSTC_MMIXAL_HEX 14
  1164. #define wxSTC_MMIXAL_OPERATOR 15
  1165. #define wxSTC_MMIXAL_SYMBOL 16
  1166. #define wxSTC_MMIXAL_INCLUDE 17
  1167. /// Lexical states for SCLEX_CLW
  1168. #define wxSTC_CLW_DEFAULT 0
  1169. #define wxSTC_CLW_LABEL 1
  1170. #define wxSTC_CLW_COMMENT 2
  1171. #define wxSTC_CLW_STRING 3
  1172. #define wxSTC_CLW_USER_IDENTIFIER 4
  1173. #define wxSTC_CLW_INTEGER_CONSTANT 5
  1174. #define wxSTC_CLW_REAL_CONSTANT 6
  1175. #define wxSTC_CLW_PICTURE_STRING 7
  1176. #define wxSTC_CLW_KEYWORD 8
  1177. #define wxSTC_CLW_COMPILER_DIRECTIVE 9
  1178. #define wxSTC_CLW_RUNTIME_EXPRESSIONS 10
  1179. #define wxSTC_CLW_BUILTIN_PROCEDURES_FUNCTION 11
  1180. #define wxSTC_CLW_STRUCTURE_DATA_TYPE 12
  1181. #define wxSTC_CLW_ATTRIBUTE 13
  1182. #define wxSTC_CLW_STANDARD_EQUATE 14
  1183. #define wxSTC_CLW_ERROR 15
  1184. #define wxSTC_CLW_DEPRECATED 16
  1185. /// Lexical states for SCLEX_LOT
  1186. #define wxSTC_LOT_DEFAULT 0
  1187. #define wxSTC_LOT_HEADER 1
  1188. #define wxSTC_LOT_BREAK 2
  1189. #define wxSTC_LOT_SET 3
  1190. #define wxSTC_LOT_PASS 4
  1191. #define wxSTC_LOT_FAIL 5
  1192. #define wxSTC_LOT_ABORT 6
  1193. /// Lexical states for SCLEX_YAML
  1194. #define wxSTC_YAML_DEFAULT 0
  1195. #define wxSTC_YAML_COMMENT 1
  1196. #define wxSTC_YAML_IDENTIFIER 2
  1197. #define wxSTC_YAML_KEYWORD 3
  1198. #define wxSTC_YAML_NUMBER 4
  1199. #define wxSTC_YAML_REFERENCE 5
  1200. #define wxSTC_YAML_DOCUMENT 6
  1201. #define wxSTC_YAML_TEXT 7
  1202. #define wxSTC_YAML_ERROR 8
  1203. #define wxSTC_YAML_OPERATOR 9
  1204. /// Lexical states for SCLEX_TEX
  1205. #define wxSTC_TEX_DEFAULT 0
  1206. #define wxSTC_TEX_SPECIAL 1
  1207. #define wxSTC_TEX_GROUP 2
  1208. #define wxSTC_TEX_SYMBOL 3
  1209. #define wxSTC_TEX_COMMAND 4
  1210. #define wxSTC_TEX_TEXT 5
  1211. #define wxSTC_METAPOST_DEFAULT 0
  1212. #define wxSTC_METAPOST_SPECIAL 1
  1213. #define wxSTC_METAPOST_GROUP 2
  1214. #define wxSTC_METAPOST_SYMBOL 3
  1215. #define wxSTC_METAPOST_COMMAND 4
  1216. #define wxSTC_METAPOST_TEXT 5
  1217. #define wxSTC_METAPOST_EXTRA 6
  1218. /// Lexical states for SCLEX_ERLANG
  1219. #define wxSTC_ERLANG_DEFAULT 0
  1220. #define wxSTC_ERLANG_COMMENT 1
  1221. #define wxSTC_ERLANG_VARIABLE 2
  1222. #define wxSTC_ERLANG_NUMBER 3
  1223. #define wxSTC_ERLANG_KEYWORD 4
  1224. #define wxSTC_ERLANG_STRING 5
  1225. #define wxSTC_ERLANG_OPERATOR 6
  1226. #define wxSTC_ERLANG_ATOM 7
  1227. #define wxSTC_ERLANG_FUNCTION_NAME 8
  1228. #define wxSTC_ERLANG_CHARACTER 9
  1229. #define wxSTC_ERLANG_MACRO 10
  1230. #define wxSTC_ERLANG_RECORD 11
  1231. #define wxSTC_ERLANG_PREPROC 12
  1232. #define wxSTC_ERLANG_NODE_NAME 13
  1233. #define wxSTC_ERLANG_COMMENT_FUNCTION 14
  1234. #define wxSTC_ERLANG_COMMENT_MODULE 15
  1235. #define wxSTC_ERLANG_COMMENT_DOC 16
  1236. #define wxSTC_ERLANG_COMMENT_DOC_MACRO 17
  1237. #define wxSTC_ERLANG_ATOM_QUOTED 18
  1238. #define wxSTC_ERLANG_MACRO_QUOTED 19
  1239. #define wxSTC_ERLANG_RECORD_QUOTED 20
  1240. #define wxSTC_ERLANG_NODE_NAME_QUOTED 21
  1241. #define wxSTC_ERLANG_BIFS 22
  1242. #define wxSTC_ERLANG_MODULES 23
  1243. #define wxSTC_ERLANG_MODULES_ATT 24
  1244. #define wxSTC_ERLANG_UNKNOWN 31
  1245. /// Lexical states for SCLEX_OCTAVE are identical to MatLab
  1246. /// Lexical states for SCLEX_MSSQL
  1247. #define wxSTC_MSSQL_DEFAULT 0
  1248. #define wxSTC_MSSQL_COMMENT 1
  1249. #define wxSTC_MSSQL_LINE_COMMENT 2
  1250. #define wxSTC_MSSQL_NUMBER 3
  1251. #define wxSTC_MSSQL_STRING 4
  1252. #define wxSTC_MSSQL_OPERATOR 5
  1253. #define wxSTC_MSSQL_IDENTIFIER 6
  1254. #define wxSTC_MSSQL_VARIABLE 7
  1255. #define wxSTC_MSSQL_COLUMN_NAME 8
  1256. #define wxSTC_MSSQL_STATEMENT 9
  1257. #define wxSTC_MSSQL_DATATYPE 10
  1258. #define wxSTC_MSSQL_SYSTABLE 11
  1259. #define wxSTC_MSSQL_GLOBAL_VARIABLE 12
  1260. #define wxSTC_MSSQL_FUNCTION 13
  1261. #define wxSTC_MSSQL_STORED_PROCEDURE 14
  1262. #define wxSTC_MSSQL_DEFAULT_PREF_DATATYPE 15
  1263. #define wxSTC_MSSQL_COLUMN_NAME_2 16
  1264. /// Lexical states for SCLEX_VERILOG
  1265. #define wxSTC_V_DEFAULT 0
  1266. #define wxSTC_V_COMMENT 1
  1267. #define wxSTC_V_COMMENTLINE 2
  1268. #define wxSTC_V_COMMENTLINEBANG 3
  1269. #define wxSTC_V_NUMBER 4
  1270. #define wxSTC_V_WORD 5
  1271. #define wxSTC_V_STRING 6
  1272. #define wxSTC_V_WORD2 7
  1273. #define wxSTC_V_WORD3 8
  1274. #define wxSTC_V_PREPROCESSOR 9
  1275. #define wxSTC_V_OPERATOR 10
  1276. #define wxSTC_V_IDENTIFIER 11
  1277. #define wxSTC_V_STRINGEOL 12
  1278. #define wxSTC_V_USER 19
  1279. /// Lexical states for SCLEX_KIX
  1280. #define wxSTC_KIX_DEFAULT 0
  1281. #define wxSTC_KIX_COMMENT 1
  1282. #define wxSTC_KIX_STRING1 2
  1283. #define wxSTC_KIX_STRING2 3
  1284. #define wxSTC_KIX_NUMBER 4
  1285. #define wxSTC_KIX_VAR 5
  1286. #define wxSTC_KIX_MACRO 6
  1287. #define wxSTC_KIX_KEYWORD 7
  1288. #define wxSTC_KIX_FUNCTIONS 8
  1289. #define wxSTC_KIX_OPERATOR 9
  1290. #define wxSTC_KIX_IDENTIFIER 31
  1291. /// Lexical states for SCLEX_GUI4CLI
  1292. #define wxSTC_GC_DEFAULT 0
  1293. #define wxSTC_GC_COMMENTLINE 1
  1294. #define wxSTC_GC_COMMENTBLOCK 2
  1295. #define wxSTC_GC_GLOBAL 3
  1296. #define wxSTC_GC_EVENT 4
  1297. #define wxSTC_GC_ATTRIBUTE 5
  1298. #define wxSTC_GC_CONTROL 6
  1299. #define wxSTC_GC_COMMAND 7
  1300. #define wxSTC_GC_STRING 8
  1301. #define wxSTC_GC_OPERATOR 9
  1302. /// Lexical states for SCLEX_SPECMAN
  1303. #define wxSTC_SN_DEFAULT 0
  1304. #define wxSTC_SN_CODE 1
  1305. #define wxSTC_SN_COMMENTLINE 2
  1306. #define wxSTC_SN_COMMENTLINEBANG 3
  1307. #define wxSTC_SN_NUMBER 4
  1308. #define wxSTC_SN_WORD 5
  1309. #define wxSTC_SN_STRING 6
  1310. #define wxSTC_SN_WORD2 7
  1311. #define wxSTC_SN_WORD3 8
  1312. #define wxSTC_SN_PREPROCESSOR 9
  1313. #define wxSTC_SN_OPERATOR 10
  1314. #define wxSTC_SN_IDENTIFIER 11
  1315. #define wxSTC_SN_STRINGEOL 12
  1316. #define wxSTC_SN_REGEXTAG 13
  1317. #define wxSTC_SN_SIGNAL 14
  1318. #define wxSTC_SN_USER 19
  1319. /// Lexical states for SCLEX_AU3
  1320. #define wxSTC_AU3_DEFAULT 0
  1321. #define wxSTC_AU3_COMMENT 1
  1322. #define wxSTC_AU3_COMMENTBLOCK 2
  1323. #define wxSTC_AU3_NUMBER 3
  1324. #define wxSTC_AU3_FUNCTION 4
  1325. #define wxSTC_AU3_KEYWORD 5
  1326. #define wxSTC_AU3_MACRO 6
  1327. #define wxSTC_AU3_STRING 7
  1328. #define wxSTC_AU3_OPERATOR 8
  1329. #define wxSTC_AU3_VARIABLE 9
  1330. #define wxSTC_AU3_SENT 10
  1331. #define wxSTC_AU3_PREPROCESSOR 11
  1332. #define wxSTC_AU3_SPECIAL 12
  1333. #define wxSTC_AU3_EXPAND 13
  1334. #define wxSTC_AU3_COMOBJ 14
  1335. #define wxSTC_AU3_UDF 15
  1336. /// Lexical states for SCLEX_APDL
  1337. #define wxSTC_APDL_DEFAULT 0
  1338. #define wxSTC_APDL_COMMENT 1
  1339. #define wxSTC_APDL_COMMENTBLOCK 2
  1340. #define wxSTC_APDL_NUMBER 3
  1341. #define wxSTC_APDL_STRING 4
  1342. #define wxSTC_APDL_OPERATOR 5
  1343. #define wxSTC_APDL_WORD 6
  1344. #define wxSTC_APDL_PROCESSOR 7
  1345. #define wxSTC_APDL_COMMAND 8
  1346. #define wxSTC_APDL_SLASHCOMMAND 9
  1347. #define wxSTC_APDL_STARCOMMAND 10
  1348. #define wxSTC_APDL_ARGUMENT 11
  1349. #define wxSTC_APDL_FUNCTION 12
  1350. /// Lexical states for SCLEX_BASH
  1351. #define wxSTC_SH_DEFAULT 0
  1352. #define wxSTC_SH_ERROR 1
  1353. #define wxSTC_SH_COMMENTLINE 2
  1354. #define wxSTC_SH_NUMBER 3
  1355. #define wxSTC_SH_WORD 4
  1356. #define wxSTC_SH_STRING 5
  1357. #define wxSTC_SH_CHARACTER 6
  1358. #define wxSTC_SH_OPERATOR 7
  1359. #define wxSTC_SH_IDENTIFIER 8
  1360. #define wxSTC_SH_SCALAR 9
  1361. #define wxSTC_SH_PARAM 10
  1362. #define wxSTC_SH_BACKTICKS 11
  1363. #define wxSTC_SH_HERE_DELIM 12
  1364. #define wxSTC_SH_HERE_Q 13
  1365. /// Lexical states for SCLEX_ASN1
  1366. #define wxSTC_ASN1_DEFAULT 0
  1367. #define wxSTC_ASN1_COMMENT 1
  1368. #define wxSTC_ASN1_IDENTIFIER 2
  1369. #define wxSTC_ASN1_STRING 3
  1370. #define wxSTC_ASN1_OID 4
  1371. #define wxSTC_ASN1_SCALAR 5
  1372. #define wxSTC_ASN1_KEYWORD 6
  1373. #define wxSTC_ASN1_ATTRIBUTE 7
  1374. #define wxSTC_ASN1_DESCRIPTOR 8
  1375. #define wxSTC_ASN1_TYPE 9
  1376. #define wxSTC_ASN1_OPERATOR 10
  1377. /// Lexical states for SCLEX_VHDL
  1378. #define wxSTC_VHDL_DEFAULT 0
  1379. #define wxSTC_VHDL_COMMENT 1
  1380. #define wxSTC_VHDL_COMMENTLINEBANG 2
  1381. #define wxSTC_VHDL_NUMBER 3
  1382. #define wxSTC_VHDL_STRING 4
  1383. #define wxSTC_VHDL_OPERATOR 5
  1384. #define wxSTC_VHDL_IDENTIFIER 6
  1385. #define wxSTC_VHDL_STRINGEOL 7
  1386. #define wxSTC_VHDL_KEYWORD 8
  1387. #define wxSTC_VHDL_STDOPERATOR 9
  1388. #define wxSTC_VHDL_ATTRIBUTE 10
  1389. #define wxSTC_VHDL_STDFUNCTION 11
  1390. #define wxSTC_VHDL_STDPACKAGE 12
  1391. #define wxSTC_VHDL_STDTYPE 13
  1392. #define wxSTC_VHDL_USERWORD 14
  1393. /// Lexical states for SCLEX_CAML
  1394. #define wxSTC_CAML_DEFAULT 0
  1395. #define wxSTC_CAML_IDENTIFIER 1
  1396. #define wxSTC_CAML_TAGNAME 2
  1397. #define wxSTC_CAML_KEYWORD 3
  1398. #define wxSTC_CAML_KEYWORD2 4
  1399. #define wxSTC_CAML_KEYWORD3 5
  1400. #define wxSTC_CAML_LINENUM 6
  1401. #define wxSTC_CAML_OPERATOR 7
  1402. #define wxSTC_CAML_NUMBER 8
  1403. #define wxSTC_CAML_CHAR 9
  1404. #define wxSTC_CAML_WHITE 10
  1405. #define wxSTC_CAML_STRING 11
  1406. #define wxSTC_CAML_COMMENT 12
  1407. #define wxSTC_CAML_COMMENT1 13
  1408. #define wxSTC_CAML_COMMENT2 14
  1409. #define wxSTC_CAML_COMMENT3 15
  1410. /// Lexical states for SCLEX_HASKELL
  1411. #define wxSTC_HA_DEFAULT 0
  1412. #define wxSTC_HA_IDENTIFIER 1
  1413. #define wxSTC_HA_KEYWORD 2
  1414. #define wxSTC_HA_NUMBER 3
  1415. #define wxSTC_HA_STRING 4
  1416. #define wxSTC_HA_CHARACTER 5
  1417. #define wxSTC_HA_CLASS 6
  1418. #define wxSTC_HA_MODULE 7
  1419. #define wxSTC_HA_CAPITAL 8
  1420. #define wxSTC_HA_DATA 9
  1421. #define wxSTC_HA_IMPORT 10
  1422. #define wxSTC_HA_OPERATOR 11
  1423. #define wxSTC_HA_INSTANCE 12
  1424. #define wxSTC_HA_COMMENTLINE 13
  1425. #define wxSTC_HA_COMMENTBLOCK 14
  1426. #define wxSTC_HA_COMMENTBLOCK2 15
  1427. #define wxSTC_HA_COMMENTBLOCK3 16
  1428. /// Lexical states of SCLEX_TADS3
  1429. #define wxSTC_T3_DEFAULT 0
  1430. #define wxSTC_T3_X_DEFAULT 1
  1431. #define wxSTC_T3_PREPROCESSOR 2
  1432. #define wxSTC_T3_BLOCK_COMMENT 3
  1433. #define wxSTC_T3_LINE_COMMENT 4
  1434. #define wxSTC_T3_OPERATOR 5
  1435. #define wxSTC_T3_KEYWORD 6
  1436. #define wxSTC_T3_NUMBER 7
  1437. #define wxSTC_T3_IDENTIFIER 8
  1438. #define wxSTC_T3_S_STRING 9
  1439. #define wxSTC_T3_D_STRING 10
  1440. #define wxSTC_T3_X_STRING 11
  1441. #define wxSTC_T3_LIB_DIRECTIVE 12
  1442. #define wxSTC_T3_MSG_PARAM 13
  1443. #define wxSTC_T3_HTML_TAG 14
  1444. #define wxSTC_T3_HTML_DEFAULT 15
  1445. #define wxSTC_T3_HTML_STRING 16
  1446. #define wxSTC_T3_USER1 17
  1447. #define wxSTC_T3_USER2 18
  1448. #define wxSTC_T3_USER3 19
  1449. #define wxSTC_T3_BRACE 20
  1450. /// Lexical states for SCLEX_REBOL
  1451. #define wxSTC_REBOL_DEFAULT 0
  1452. #define wxSTC_REBOL_COMMENTLINE 1
  1453. #define wxSTC_REBOL_COMMENTBLOCK 2
  1454. #define wxSTC_REBOL_PREFACE 3
  1455. #define wxSTC_REBOL_OPERATOR 4
  1456. #define wxSTC_REBOL_CHARACTER 5
  1457. #define wxSTC_REBOL_QUOTEDSTRING 6
  1458. #define wxSTC_REBOL_BRACEDSTRING 7
  1459. #define wxSTC_REBOL_NUMBER 8
  1460. #define wxSTC_REBOL_PAIR 9
  1461. #define wxSTC_REBOL_TUPLE 10
  1462. #define wxSTC_REBOL_BINARY 11
  1463. #define wxSTC_REBOL_MONEY 12
  1464. #define wxSTC_REBOL_ISSUE 13
  1465. #define wxSTC_REBOL_TAG 14
  1466. #define wxSTC_REBOL_FILE 15
  1467. #define wxSTC_REBOL_EMAIL 16
  1468. #define wxSTC_REBOL_URL 17
  1469. #define wxSTC_REBOL_DATE 18
  1470. #define wxSTC_REBOL_TIME 19
  1471. #define wxSTC_REBOL_IDENTIFIER 20
  1472. #define wxSTC_REBOL_WORD 21
  1473. #define wxSTC_REBOL_WORD2 22
  1474. #define wxSTC_REBOL_WORD3 23
  1475. #define wxSTC_REBOL_WORD4 24
  1476. #define wxSTC_REBOL_WORD5 25
  1477. #define wxSTC_REBOL_WORD6 26
  1478. #define wxSTC_REBOL_WORD7 27
  1479. #define wxSTC_REBOL_WORD8 28
  1480. /// Lexical states for SCLEX_SQL
  1481. #define wxSTC_SQL_DEFAULT 0
  1482. #define wxSTC_SQL_COMMENT 1
  1483. #define wxSTC_SQL_COMMENTLINE 2
  1484. #define wxSTC_SQL_COMMENTDOC 3
  1485. #define wxSTC_SQL_NUMBER 4
  1486. #define wxSTC_SQL_WORD 5
  1487. #define wxSTC_SQL_STRING 6
  1488. #define wxSTC_SQL_CHARACTER 7
  1489. #define wxSTC_SQL_SQLPLUS 8
  1490. #define wxSTC_SQL_SQLPLUS_PROMPT 9
  1491. #define wxSTC_SQL_OPERATOR 10
  1492. #define wxSTC_SQL_IDENTIFIER 11
  1493. #define wxSTC_SQL_SQLPLUS_COMMENT 13
  1494. #define wxSTC_SQL_COMMENTLINEDOC 15
  1495. #define wxSTC_SQL_WORD2 16
  1496. #define wxSTC_SQL_COMMENTDOCKEYWORD 17
  1497. #define wxSTC_SQL_COMMENTDOCKEYWORDERROR 18
  1498. #define wxSTC_SQL_USER1 19
  1499. #define wxSTC_SQL_USER2 20
  1500. #define wxSTC_SQL_USER3 21
  1501. #define wxSTC_SQL_USER4 22
  1502. #define wxSTC_SQL_QUOTEDIDENTIFIER 23
  1503. /// Lexical states for SCLEX_SMALLTALK
  1504. #define wxSTC_ST_DEFAULT 0
  1505. #define wxSTC_ST_STRING 1
  1506. #define wxSTC_ST_NUMBER 2
  1507. #define wxSTC_ST_COMMENT 3
  1508. #define wxSTC_ST_SYMBOL 4
  1509. #define wxSTC_ST_BINARY 5
  1510. #define wxSTC_ST_BOOL 6
  1511. #define wxSTC_ST_SELF 7
  1512. #define wxSTC_ST_SUPER 8
  1513. #define wxSTC_ST_NIL 9
  1514. #define wxSTC_ST_GLOBAL 10
  1515. #define wxSTC_ST_RETURN 11
  1516. #define wxSTC_ST_SPECIAL 12
  1517. #define wxSTC_ST_KWSEND 13
  1518. #define wxSTC_ST_ASSIGN 14
  1519. #define wxSTC_ST_CHARACTER 15
  1520. #define wxSTC_ST_SPEC_SEL 16
  1521. /// Lexical states for SCLEX_FLAGSHIP (clipper)
  1522. #define wxSTC_FS_DEFAULT 0
  1523. #define wxSTC_FS_COMMENT 1
  1524. #define wxSTC_FS_COMMENTLINE 2
  1525. #define wxSTC_FS_COMMENTDOC 3
  1526. #define wxSTC_FS_COMMENTLINEDOC 4
  1527. #define wxSTC_FS_COMMENTDOCKEYWORD 5
  1528. #define wxSTC_FS_COMMENTDOCKEYWORDERROR 6
  1529. #define wxSTC_FS_KEYWORD 7
  1530. #define wxSTC_FS_KEYWORD2 8
  1531. #define wxSTC_FS_KEYWORD3 9
  1532. #define wxSTC_FS_KEYWORD4 10
  1533. #define wxSTC_FS_NUMBER 11
  1534. #define wxSTC_FS_STRING 12
  1535. #define wxSTC_FS_PREPROCESSOR 13
  1536. #define wxSTC_FS_OPERATOR 14
  1537. #define wxSTC_FS_IDENTIFIER 15
  1538. #define wxSTC_FS_DATE 16
  1539. #define wxSTC_FS_STRINGEOL 17
  1540. #define wxSTC_FS_CONSTANT 18
  1541. #define wxSTC_FS_WORDOPERATOR 19
  1542. #define wxSTC_FS_DISABLEDCODE 20
  1543. #define wxSTC_FS_DEFAULT_C 21
  1544. #define wxSTC_FS_COMMENTDOC_C 22
  1545. #define wxSTC_FS_COMMENTLINEDOC_C 23
  1546. #define wxSTC_FS_KEYWORD_C 24
  1547. #define wxSTC_FS_KEYWORD2_C 25
  1548. #define wxSTC_FS_NUMBER_C 26
  1549. #define wxSTC_FS_STRING_C 27
  1550. #define wxSTC_FS_PREPROCESSOR_C 28
  1551. #define wxSTC_FS_OPERATOR_C 29
  1552. #define wxSTC_FS_IDENTIFIER_C 30
  1553. #define wxSTC_FS_STRINGEOL_C 31
  1554. /// Lexical states for SCLEX_CSOUND
  1555. #define wxSTC_CSOUND_DEFAULT 0
  1556. #define wxSTC_CSOUND_COMMENT 1
  1557. #define wxSTC_CSOUND_NUMBER 2
  1558. #define wxSTC_CSOUND_OPERATOR 3
  1559. #define wxSTC_CSOUND_INSTR 4
  1560. #define wxSTC_CSOUND_IDENTIFIER 5
  1561. #define wxSTC_CSOUND_OPCODE 6
  1562. #define wxSTC_CSOUND_HEADERSTMT 7
  1563. #define wxSTC_CSOUND_USERKEYWORD 8
  1564. #define wxSTC_CSOUND_COMMENTBLOCK 9
  1565. #define wxSTC_CSOUND_PARAM 10
  1566. #define wxSTC_CSOUND_ARATE_VAR 11
  1567. #define wxSTC_CSOUND_KRATE_VAR 12
  1568. #define wxSTC_CSOUND_IRATE_VAR 13
  1569. #define wxSTC_CSOUND_GLOBAL_VAR 14
  1570. #define wxSTC_CSOUND_STRINGEOL 15
  1571. /// Lexical states for SCLEX_INNOSETUP
  1572. #define wxSTC_INNO_DEFAULT 0
  1573. #define wxSTC_INNO_COMMENT 1
  1574. #define wxSTC_INNO_KEYWORD 2
  1575. #define wxSTC_INNO_PARAMETER 3
  1576. #define wxSTC_INNO_SECTION 4
  1577. #define wxSTC_INNO_PREPROC 5
  1578. #define wxSTC_INNO_INLINE_EXPANSION 6
  1579. #define wxSTC_INNO_COMMENT_PASCAL 7
  1580. #define wxSTC_INNO_KEYWORD_PASCAL 8
  1581. #define wxSTC_INNO_KEYWORD_USER 9
  1582. #define wxSTC_INNO_STRING_DOUBLE 10
  1583. #define wxSTC_INNO_STRING_SINGLE 11
  1584. #define wxSTC_INNO_IDENTIFIER 12
  1585. /// Lexical states for SCLEX_OPAL
  1586. #define wxSTC_OPAL_SPACE 0
  1587. #define wxSTC_OPAL_COMMENT_BLOCK 1
  1588. #define wxSTC_OPAL_COMMENT_LINE 2
  1589. #define wxSTC_OPAL_INTEGER 3
  1590. #define wxSTC_OPAL_KEYWORD 4
  1591. #define wxSTC_OPAL_SORT 5
  1592. #define wxSTC_OPAL_STRING 6
  1593. #define wxSTC_OPAL_PAR 7
  1594. #define wxSTC_OPAL_BOOL_CONST 8
  1595. #define wxSTC_OPAL_DEFAULT 32
  1596. /// Lexical states for SCLEX_SPICE
  1597. #define wxSTC_SPICE_DEFAULT 0
  1598. #define wxSTC_SPICE_IDENTIFIER 1
  1599. #define wxSTC_SPICE_KEYWORD 2
  1600. #define wxSTC_SPICE_KEYWORD2 3
  1601. #define wxSTC_SPICE_KEYWORD3 4
  1602. #define wxSTC_SPICE_NUMBER 5
  1603. #define wxSTC_SPICE_DELIMITER 6
  1604. #define wxSTC_SPICE_VALUE 7
  1605. #define wxSTC_SPICE_COMMENTLINE 8
  1606. /// Lexical states for SCLEX_CMAKE
  1607. #define wxSTC_CMAKE_DEFAULT 0
  1608. #define wxSTC_CMAKE_COMMENT 1
  1609. #define wxSTC_CMAKE_STRINGDQ 2
  1610. #define wxSTC_CMAKE_STRINGLQ 3
  1611. #define wxSTC_CMAKE_STRINGRQ 4
  1612. #define wxSTC_CMAKE_COMMANDS 5
  1613. #define wxSTC_CMAKE_PARAMETERS 6
  1614. #define wxSTC_CMAKE_VARIABLE 7
  1615. #define wxSTC_CMAKE_USERDEFINED 8
  1616. #define wxSTC_CMAKE_WHILEDEF 9
  1617. #define wxSTC_CMAKE_FOREACHDEF 10
  1618. #define wxSTC_CMAKE_IFDEFINEDEF 11
  1619. #define wxSTC_CMAKE_MACRODEF 12
  1620. #define wxSTC_CMAKE_STRINGVAR 13
  1621. #define wxSTC_CMAKE_NUMBER 14
  1622. /// Lexical states for SCLEX_GAP
  1623. #define wxSTC_GAP_DEFAULT 0
  1624. #define wxSTC_GAP_IDENTIFIER 1
  1625. #define wxSTC_GAP_KEYWORD 2
  1626. #define wxSTC_GAP_KEYWORD2 3
  1627. #define wxSTC_GAP_KEYWORD3 4
  1628. #define wxSTC_GAP_KEYWORD4 5
  1629. #define wxSTC_GAP_STRING 6
  1630. #define wxSTC_GAP_CHAR 7
  1631. #define wxSTC_GAP_OPERATOR 8
  1632. #define wxSTC_GAP_COMMENT 9
  1633. #define wxSTC_GAP_NUMBER 10
  1634. #define wxSTC_GAP_STRINGEOL 11
  1635. /// Lexical state for SCLEX_PLM
  1636. #define wxSTC_PLM_DEFAULT 0
  1637. #define wxSTC_PLM_COMMENT 1
  1638. #define wxSTC_PLM_STRING 2
  1639. #define wxSTC_PLM_NUMBER 3
  1640. #define wxSTC_PLM_IDENTIFIER 4
  1641. #define wxSTC_PLM_OPERATOR 5
  1642. #define wxSTC_PLM_CONTROL 6
  1643. #define wxSTC_PLM_KEYWORD 7
  1644. /// Lexical state for SCLEX_PROGRESS
  1645. #define wxSTC_4GL_DEFAULT 0
  1646. #define wxSTC_4GL_NUMBER 1
  1647. #define wxSTC_4GL_WORD 2
  1648. #define wxSTC_4GL_STRING 3
  1649. #define wxSTC_4GL_CHARACTER 4
  1650. #define wxSTC_4GL_PREPROCESSOR 5
  1651. #define wxSTC_4GL_OPERATOR 6
  1652. #define wxSTC_4GL_IDENTIFIER 7
  1653. #define wxSTC_4GL_BLOCK 8
  1654. #define wxSTC_4GL_END 9
  1655. #define wxSTC_4GL_COMMENT1 10
  1656. #define wxSTC_4GL_COMMENT2 11
  1657. #define wxSTC_4GL_COMMENT3 12
  1658. #define wxSTC_4GL_COMMENT4 13
  1659. #define wxSTC_4GL_COMMENT5 14
  1660. #define wxSTC_4GL_COMMENT6 15
  1661. #define wxSTC_4GL_DEFAULT_ 16
  1662. #define wxSTC_4GL_NUMBER_ 17
  1663. #define wxSTC_4GL_WORD_ 18
  1664. #define wxSTC_4GL_STRING_ 19
  1665. #define wxSTC_4GL_CHARACTER_ 20
  1666. #define wxSTC_4GL_PREPROCESSOR_ 21
  1667. #define wxSTC_4GL_OPERATOR_ 22
  1668. #define wxSTC_4GL_IDENTIFIER_ 23
  1669. #define wxSTC_4GL_BLOCK_ 24
  1670. #define wxSTC_4GL_END_ 25
  1671. #define wxSTC_4GL_COMMENT1_ 26
  1672. #define wxSTC_4GL_COMMENT2_ 27
  1673. #define wxSTC_4GL_COMMENT3_ 28
  1674. #define wxSTC_4GL_COMMENT4_ 29
  1675. #define wxSTC_4GL_COMMENT5_ 30
  1676. #define wxSTC_4GL_COMMENT6_ 31
  1677. /// Lexical states for SCLEX_ABAQUS
  1678. #define wxSTC_ABAQUS_DEFAULT 0
  1679. #define wxSTC_ABAQUS_COMMENT 1
  1680. #define wxSTC_ABAQUS_COMMENTBLOCK 2
  1681. #define wxSTC_ABAQUS_NUMBER 3
  1682. #define wxSTC_ABAQUS_STRING 4
  1683. #define wxSTC_ABAQUS_OPERATOR 5
  1684. #define wxSTC_ABAQUS_WORD 6
  1685. #define wxSTC_ABAQUS_PROCESSOR 7
  1686. #define wxSTC_ABAQUS_COMMAND 8
  1687. #define wxSTC_ABAQUS_SLASHCOMMAND 9
  1688. #define wxSTC_ABAQUS_STARCOMMAND 10
  1689. #define wxSTC_ABAQUS_ARGUMENT 11
  1690. #define wxSTC_ABAQUS_FUNCTION 12
  1691. /// Lexical states for SCLEX_ASYMPTOTE
  1692. #define wxSTC_ASY_DEFAULT 0
  1693. #define wxSTC_ASY_COMMENT 1
  1694. #define wxSTC_ASY_COMMENTLINE 2
  1695. #define wxSTC_ASY_NUMBER 3
  1696. #define wxSTC_ASY_WORD 4
  1697. #define wxSTC_ASY_STRING 5
  1698. #define wxSTC_ASY_CHARACTER 6
  1699. #define wxSTC_ASY_OPERATOR 7
  1700. #define wxSTC_ASY_IDENTIFIER 8
  1701. #define wxSTC_ASY_STRINGEOL 9
  1702. #define wxSTC_ASY_COMMENTLINEDOC 10
  1703. #define wxSTC_ASY_WORD2 11
  1704. /// Lexical states for SCLEX_R
  1705. #define wxSTC_R_DEFAULT 0
  1706. #define wxSTC_R_COMMENT 1
  1707. #define wxSTC_R_KWORD 2
  1708. #define wxSTC_R_BASEKWORD 3
  1709. #define wxSTC_R_OTHERKWORD 4
  1710. #define wxSTC_R_NUMBER 5
  1711. #define wxSTC_R_STRING 6
  1712. #define wxSTC_R_STRING2 7
  1713. #define wxSTC_R_OPERATOR 8
  1714. #define wxSTC_R_IDENTIFIER 9
  1715. #define wxSTC_R_INFIX 10
  1716. #define wxSTC_R_INFIXEOL 11
  1717. /// Lexical state for SCLEX_MAGIKSF
  1718. #define wxSTC_MAGIK_DEFAULT 0
  1719. #define wxSTC_MAGIK_COMMENT 1
  1720. #define wxSTC_MAGIK_HYPER_COMMENT 16
  1721. #define wxSTC_MAGIK_STRING 2
  1722. #define wxSTC_MAGIK_CHARACTER 3
  1723. #define wxSTC_MAGIK_NUMBER 4
  1724. #define wxSTC_MAGIK_IDENTIFIER 5
  1725. #define wxSTC_MAGIK_OPERATOR 6
  1726. #define wxSTC_MAGIK_FLOW 7
  1727. #define wxSTC_MAGIK_CONTAINER 8
  1728. #define wxSTC_MAGIK_BRACKET_BLOCK 9
  1729. #define wxSTC_MAGIK_BRACE_BLOCK 10
  1730. #define wxSTC_MAGIK_SQBRACKET_BLOCK 11
  1731. #define wxSTC_MAGIK_UNKNOWN_KEYWORD 12
  1732. #define wxSTC_MAGIK_KEYWORD 13
  1733. #define wxSTC_MAGIK_PRAGMA 14
  1734. #define wxSTC_MAGIK_SYMBOL 15
  1735. /// Lexical state for SCLEX_POWERSHELL
  1736. #define wxSTC_POWERSHELL_DEFAULT 0
  1737. #define wxSTC_POWERSHELL_COMMENT 1
  1738. #define wxSTC_POWERSHELL_STRING 2
  1739. #define wxSTC_POWERSHELL_CHARACTER 3
  1740. #define wxSTC_POWERSHELL_NUMBER 4
  1741. #define wxSTC_POWERSHELL_VARIABLE 5
  1742. #define wxSTC_POWERSHELL_OPERATOR 6
  1743. #define wxSTC_POWERSHELL_IDENTIFIER 7
  1744. #define wxSTC_POWERSHELL_KEYWORD 8
  1745. #define wxSTC_POWERSHELL_CMDLET 9
  1746. #define wxSTC_POWERSHELL_ALIAS 10
  1747. #define wxSTC_POWERSHELL_FUNCTION 11
  1748. #define wxSTC_POWERSHELL_USER1 12
  1749. #define wxSTC_POWERSHELL_COMMENTSTREAM 13
  1750. /// Lexical state for SCLEX_MYSQL
  1751. #define wxSTC_MYSQL_DEFAULT 0
  1752. #define wxSTC_MYSQL_COMMENT 1
  1753. #define wxSTC_MYSQL_COMMENTLINE 2
  1754. #define wxSTC_MYSQL_VARIABLE 3
  1755. #define wxSTC_MYSQL_SYSTEMVARIABLE 4
  1756. #define wxSTC_MYSQL_KNOWNSYSTEMVARIABLE 5
  1757. #define wxSTC_MYSQL_NUMBER 6
  1758. #define wxSTC_MYSQL_MAJORKEYWORD 7
  1759. #define wxSTC_MYSQL_KEYWORD 8
  1760. #define wxSTC_MYSQL_DATABASEOBJECT 9
  1761. #define wxSTC_MYSQL_PROCEDUREKEYWORD 10
  1762. #define wxSTC_MYSQL_STRING 11
  1763. #define wxSTC_MYSQL_SQSTRING 12
  1764. #define wxSTC_MYSQL_DQSTRING 13
  1765. #define wxSTC_MYSQL_OPERATOR 14
  1766. #define wxSTC_MYSQL_FUNCTION 15
  1767. #define wxSTC_MYSQL_IDENTIFIER 16
  1768. #define wxSTC_MYSQL_QUOTEDIDENTIFIER 17
  1769. #define wxSTC_MYSQL_USER1 18
  1770. #define wxSTC_MYSQL_USER2 19
  1771. #define wxSTC_MYSQL_USER3 20
  1772. #define wxSTC_MYSQL_HIDDENCOMMAND 21
  1773. /// Lexical state for SCLEX_PO
  1774. #define wxSTC_PO_DEFAULT 0
  1775. #define wxSTC_PO_COMMENT 1
  1776. #define wxSTC_PO_MSGID 2
  1777. #define wxSTC_PO_MSGID_TEXT 3
  1778. #define wxSTC_PO_MSGSTR 4
  1779. #define wxSTC_PO_MSGSTR_TEXT 5
  1780. #define wxSTC_PO_MSGCTXT 6
  1781. #define wxSTC_PO_MSGCTXT_TEXT 7
  1782. #define wxSTC_PO_FUZZY 8
  1783. /// Lexical states for SCLEX_PASCAL
  1784. #define wxSTC_PAS_DEFAULT 0
  1785. #define wxSTC_PAS_IDENTIFIER 1
  1786. #define wxSTC_PAS_COMMENT 2
  1787. #define wxSTC_PAS_COMMENT2 3
  1788. #define wxSTC_PAS_COMMENTLINE 4
  1789. #define wxSTC_PAS_PREPROCESSOR 5
  1790. #define wxSTC_PAS_PREPROCESSOR2 6
  1791. #define wxSTC_PAS_NUMBER 7
  1792. #define wxSTC_PAS_HEXNUMBER 8
  1793. #define wxSTC_PAS_WORD 9
  1794. #define wxSTC_PAS_STRING 10
  1795. #define wxSTC_PAS_STRINGEOL 11
  1796. #define wxSTC_PAS_CHARACTER 12
  1797. #define wxSTC_PAS_OPERATOR 13
  1798. #define wxSTC_PAS_ASM 14
  1799. /// Lexical state for SCLEX_SORCUS
  1800. #define wxSTC_SORCUS_DEFAULT 0
  1801. #define wxSTC_SORCUS_COMMAND 1
  1802. #define wxSTC_SORCUS_PARAMETER 2
  1803. #define wxSTC_SORCUS_COMMENTLINE 3
  1804. #define wxSTC_SORCUS_STRING 4
  1805. #define wxSTC_SORCUS_STRINGEOL 5
  1806. #define wxSTC_SORCUS_IDENTIFIER 6
  1807. #define wxSTC_SORCUS_OPERATOR 7
  1808. #define wxSTC_SORCUS_NUMBER 8
  1809. #define wxSTC_SORCUS_CONSTANT 9
  1810. /// Lexical state for SCLEX_POWERPRO
  1811. #define wxSTC_POWERPRO_DEFAULT 0
  1812. #define wxSTC_POWERPRO_COMMENTBLOCK 1
  1813. #define wxSTC_POWERPRO_COMMENTLINE 2
  1814. #define wxSTC_POWERPRO_NUMBER 3
  1815. #define wxSTC_POWERPRO_WORD 4
  1816. #define wxSTC_POWERPRO_WORD2 5
  1817. #define wxSTC_POWERPRO_WORD3 6
  1818. #define wxSTC_POWERPRO_WORD4 7
  1819. #define wxSTC_POWERPRO_DOUBLEQUOTEDSTRING 8
  1820. #define wxSTC_POWERPRO_SINGLEQUOTEDSTRING 9
  1821. #define wxSTC_POWERPRO_LINECONTINUE 10
  1822. #define wxSTC_POWERPRO_OPERATOR 11
  1823. #define wxSTC_POWERPRO_IDENTIFIER 12
  1824. #define wxSTC_POWERPRO_STRINGEOL 13
  1825. #define wxSTC_POWERPRO_VERBATIM 14
  1826. #define wxSTC_POWERPRO_ALTQUOTE 15
  1827. #define wxSTC_POWERPRO_FUNCTION 16
  1828. /// Lexical states for SCLEX_SML
  1829. #define wxSTC_SML_DEFAULT 0
  1830. #define wxSTC_SML_IDENTIFIER 1
  1831. #define wxSTC_SML_TAGNAME 2
  1832. #define wxSTC_SML_KEYWORD 3
  1833. #define wxSTC_SML_KEYWORD2 4
  1834. #define wxSTC_SML_KEYWORD3 5
  1835. #define wxSTC_SML_LINENUM 6
  1836. #define wxSTC_SML_OPERATOR 7
  1837. #define wxSTC_SML_NUMBER 8
  1838. #define wxSTC_SML_CHAR 9
  1839. #define wxSTC_SML_STRING 11
  1840. #define wxSTC_SML_COMMENT 12
  1841. #define wxSTC_SML_COMMENT1 13
  1842. #define wxSTC_SML_COMMENT2 14
  1843. #define wxSTC_SML_COMMENT3 15
  1844. /// Lexical state for SCLEX_MARKDOWN
  1845. #define wxSTC_MARKDOWN_DEFAULT 0
  1846. #define wxSTC_MARKDOWN_LINE_BEGIN 1
  1847. #define wxSTC_MARKDOWN_STRONG1 2
  1848. #define wxSTC_MARKDOWN_STRONG2 3
  1849. #define wxSTC_MARKDOWN_EM1 4
  1850. #define wxSTC_MARKDOWN_EM2 5
  1851. #define wxSTC_MARKDOWN_HEADER1 6
  1852. #define wxSTC_MARKDOWN_HEADER2 7
  1853. #define wxSTC_MARKDOWN_HEADER3 8
  1854. #define wxSTC_MARKDOWN_HEADER4 9
  1855. #define wxSTC_MARKDOWN_HEADER5 10
  1856. #define wxSTC_MARKDOWN_HEADER6 11
  1857. #define wxSTC_MARKDOWN_PRECHAR 12
  1858. #define wxSTC_MARKDOWN_ULIST_ITEM 13
  1859. #define wxSTC_MARKDOWN_OLIST_ITEM 14
  1860. #define wxSTC_MARKDOWN_BLOCKQUOTE 15
  1861. #define wxSTC_MARKDOWN_STRIKEOUT 16
  1862. #define wxSTC_MARKDOWN_HRULE 17
  1863. #define wxSTC_MARKDOWN_LINK 18
  1864. #define wxSTC_MARKDOWN_CODE 19
  1865. #define wxSTC_MARKDOWN_CODE2 20
  1866. #define wxSTC_MARKDOWN_CODEBK 21
  1867. /// Lexical state for SCLEX_TXT2TAGS
  1868. #define wxSTC_TXT2TAGS_DEFAULT 0
  1869. #define wxSTC_TXT2TAGS_LINE_BEGIN 1
  1870. #define wxSTC_TXT2TAGS_STRONG1 2
  1871. #define wxSTC_TXT2TAGS_STRONG2 3
  1872. #define wxSTC_TXT2TAGS_EM1 4
  1873. #define wxSTC_TXT2TAGS_EM2 5
  1874. #define wxSTC_TXT2TAGS_HEADER1 6
  1875. #define wxSTC_TXT2TAGS_HEADER2 7
  1876. #define wxSTC_TXT2TAGS_HEADER3 8
  1877. #define wxSTC_TXT2TAGS_HEADER4 9
  1878. #define wxSTC_TXT2TAGS_HEADER5 10
  1879. #define wxSTC_TXT2TAGS_HEADER6 11
  1880. #define wxSTC_TXT2TAGS_PRECHAR 12
  1881. #define wxSTC_TXT2TAGS_ULIST_ITEM 13
  1882. #define wxSTC_TXT2TAGS_OLIST_ITEM 14
  1883. #define wxSTC_TXT2TAGS_BLOCKQUOTE 15
  1884. #define wxSTC_TXT2TAGS_STRIKEOUT 16
  1885. #define wxSTC_TXT2TAGS_HRULE 17
  1886. #define wxSTC_TXT2TAGS_LINK 18
  1887. #define wxSTC_TXT2TAGS_CODE 19
  1888. #define wxSTC_TXT2TAGS_CODE2 20
  1889. #define wxSTC_TXT2TAGS_CODEBK 21
  1890. #define wxSTC_TXT2TAGS_COMMENT 22
  1891. #define wxSTC_TXT2TAGS_OPTION 23
  1892. #define wxSTC_TXT2TAGS_PREPROC 24
  1893. #define wxSTC_TXT2TAGS_POSTPROC 25
  1894. /// Lexical states for SCLEX_A68K
  1895. #define wxSTC_A68K_DEFAULT 0
  1896. #define wxSTC_A68K_COMMENT 1
  1897. #define wxSTC_A68K_NUMBER_DEC 2
  1898. #define wxSTC_A68K_NUMBER_BIN 3
  1899. #define wxSTC_A68K_NUMBER_HEX 4
  1900. #define wxSTC_A68K_STRING1 5
  1901. #define wxSTC_A68K_OPERATOR 6
  1902. #define wxSTC_A68K_CPUINSTRUCTION 7
  1903. #define wxSTC_A68K_EXTINSTRUCTION 8
  1904. #define wxSTC_A68K_REGISTER 9
  1905. #define wxSTC_A68K_DIRECTIVE 10
  1906. #define wxSTC_A68K_MACRO_ARG 11
  1907. #define wxSTC_A68K_LABEL 12
  1908. #define wxSTC_A68K_STRING2 13
  1909. #define wxSTC_A68K_IDENTIFIER 14
  1910. #define wxSTC_A68K_MACRO_DECLARATION 15
  1911. #define wxSTC_A68K_COMMENT_WORD 16
  1912. #define wxSTC_A68K_COMMENT_SPECIAL 17
  1913. #define wxSTC_A68K_COMMENT_DOXYGEN 18
  1914. /// Lexical states for SCLEX_MODULA
  1915. #define wxSTC_MODULA_DEFAULT 0
  1916. #define wxSTC_MODULA_COMMENT 1
  1917. #define wxSTC_MODULA_DOXYCOMM 2
  1918. #define wxSTC_MODULA_DOXYKEY 3
  1919. #define wxSTC_MODULA_KEYWORD 4
  1920. #define wxSTC_MODULA_RESERVED 5
  1921. #define wxSTC_MODULA_NUMBER 6
  1922. #define wxSTC_MODULA_BASENUM 7
  1923. #define wxSTC_MODULA_FLOAT 8
  1924. #define wxSTC_MODULA_STRING 9
  1925. #define wxSTC_MODULA_STRSPEC 10
  1926. #define wxSTC_MODULA_CHAR 11
  1927. #define wxSTC_MODULA_CHARSPEC 12
  1928. #define wxSTC_MODULA_PROC 13
  1929. #define wxSTC_MODULA_PRAGMA 14
  1930. #define wxSTC_MODULA_PRGKEY 15
  1931. #define wxSTC_MODULA_OPERATOR 16
  1932. #define wxSTC_MODULA_BADSTR 17
  1933. /// Lexical states for SCLEX_COFFEESCRIPT
  1934. #define wxSTC_COFFEESCRIPT_DEFAULT 0
  1935. #define wxSTC_COFFEESCRIPT_COMMENT 1
  1936. #define wxSTC_COFFEESCRIPT_COMMENTLINE 2
  1937. #define wxSTC_COFFEESCRIPT_COMMENTDOC 3
  1938. #define wxSTC_COFFEESCRIPT_NUMBER 4
  1939. #define wxSTC_COFFEESCRIPT_WORD 5
  1940. #define wxSTC_COFFEESCRIPT_STRING 6
  1941. #define wxSTC_COFFEESCRIPT_CHARACTER 7
  1942. #define wxSTC_COFFEESCRIPT_UUID 8
  1943. #define wxSTC_COFFEESCRIPT_PREPROCESSOR 9
  1944. #define wxSTC_COFFEESCRIPT_OPERATOR 10
  1945. #define wxSTC_COFFEESCRIPT_IDENTIFIER 11
  1946. #define wxSTC_COFFEESCRIPT_STRINGEOL 12
  1947. #define wxSTC_COFFEESCRIPT_VERBATIM 13
  1948. #define wxSTC_COFFEESCRIPT_REGEX 14
  1949. #define wxSTC_COFFEESCRIPT_COMMENTLINEDOC 15
  1950. #define wxSTC_COFFEESCRIPT_WORD2 16
  1951. #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORD 17
  1952. #define wxSTC_COFFEESCRIPT_COMMENTDOCKEYWORDERROR 18
  1953. #define wxSTC_COFFEESCRIPT_GLOBALCLASS 19
  1954. #define wxSTC_COFFEESCRIPT_STRINGRAW 20
  1955. #define wxSTC_COFFEESCRIPT_TRIPLEVERBATIM 21
  1956. #define wxSTC_COFFEESCRIPT_HASHQUOTEDSTRING 22
  1957. #define wxSTC_COFFEESCRIPT_COMMENTBLOCK 22
  1958. #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX 23
  1959. #define wxSTC_COFFEESCRIPT_VERBOSE_REGEX_COMMENT 24
  1960. /// Lexical states for SCLEX_AVS
  1961. #define wxSTC_AVS_DEFAULT 0
  1962. #define wxSTC_AVS_COMMENTBLOCK 1
  1963. #define wxSTC_AVS_COMMENTBLOCKN 2
  1964. #define wxSTC_AVS_COMMENTLINE 3
  1965. #define wxSTC_AVS_NUMBER 4
  1966. #define wxSTC_AVS_OPERATOR 5
  1967. #define wxSTC_AVS_IDENTIFIER 6
  1968. #define wxSTC_AVS_STRING 7
  1969. #define wxSTC_AVS_TRIPLESTRING 8
  1970. #define wxSTC_AVS_KEYWORD 9
  1971. #define wxSTC_AVS_FILTER 10
  1972. #define wxSTC_AVS_PLUGIN 11
  1973. #define wxSTC_AVS_FUNCTION 12
  1974. #define wxSTC_AVS_CLIPPROP 13
  1975. #define wxSTC_AVS_USERDFN 14
  1976. /// Lexical states for SCLEX_ECL
  1977. #define wxSTC_ECL_DEFAULT 0
  1978. #define wxSTC_ECL_COMMENT 1
  1979. #define wxSTC_ECL_COMMENTLINE 2
  1980. #define wxSTC_ECL_NUMBER 3
  1981. #define wxSTC_ECL_STRING 4
  1982. #define wxSTC_ECL_WORD0 5
  1983. #define wxSTC_ECL_OPERATOR 6
  1984. #define wxSTC_ECL_CHARACTER 7
  1985. #define wxSTC_ECL_UUID 8
  1986. #define wxSTC_ECL_PREPROCESSOR 9
  1987. #define wxSTC_ECL_UNKNOWN 10
  1988. #define wxSTC_ECL_IDENTIFIER 11
  1989. #define wxSTC_ECL_STRINGEOL 12
  1990. #define wxSTC_ECL_VERBATIM 13
  1991. #define wxSTC_ECL_REGEX 14
  1992. #define wxSTC_ECL_COMMENTLINEDOC 15
  1993. #define wxSTC_ECL_WORD1 16
  1994. #define wxSTC_ECL_COMMENTDOCKEYWORD 17
  1995. #define wxSTC_ECL_COMMENTDOCKEYWORDERROR 18
  1996. #define wxSTC_ECL_WORD2 19
  1997. #define wxSTC_ECL_WORD3 20
  1998. #define wxSTC_ECL_WORD4 21
  1999. #define wxSTC_ECL_WORD5 22
  2000. #define wxSTC_ECL_COMMENTDOC 23
  2001. #define wxSTC_ECL_ADDED 24
  2002. #define wxSTC_ECL_DELETED 25
  2003. #define wxSTC_ECL_CHANGED 26
  2004. #define wxSTC_ECL_MOVED 27
  2005. /// Lexical states for SCLEX_OSCRIPT
  2006. #define wxSTC_OSCRIPT_DEFAULT 0
  2007. #define wxSTC_OSCRIPT_LINE_COMMENT 1
  2008. #define wxSTC_OSCRIPT_BLOCK_COMMENT 2
  2009. #define wxSTC_OSCRIPT_DOC_COMMENT 3
  2010. #define wxSTC_OSCRIPT_PREPROCESSOR 4
  2011. #define wxSTC_OSCRIPT_NUMBER 5
  2012. #define wxSTC_OSCRIPT_SINGLEQUOTE_STRING 6
  2013. #define wxSTC_OSCRIPT_DOUBLEQUOTE_STRING 7
  2014. #define wxSTC_OSCRIPT_CONSTANT 8
  2015. #define wxSTC_OSCRIPT_IDENTIFIER 9
  2016. #define wxSTC_OSCRIPT_GLOBAL 10
  2017. #define wxSTC_OSCRIPT_KEYWORD 11
  2018. #define wxSTC_OSCRIPT_OPERATOR 12
  2019. #define wxSTC_OSCRIPT_LABEL 13
  2020. #define wxSTC_OSCRIPT_TYPE 14
  2021. #define wxSTC_OSCRIPT_FUNCTION 15
  2022. #define wxSTC_OSCRIPT_OBJECT 16
  2023. #define wxSTC_OSCRIPT_PROPERTY 17
  2024. #define wxSTC_OSCRIPT_METHOD 18
  2025. /// Lexical states for SCLEX_VISUALPROLOG
  2026. #define wxSTC_VISUALPROLOG_DEFAULT 0
  2027. #define wxSTC_VISUALPROLOG_KEY_MAJOR 1
  2028. #define wxSTC_VISUALPROLOG_KEY_MINOR 2
  2029. #define wxSTC_VISUALPROLOG_KEY_DIRECTIVE 3
  2030. #define wxSTC_VISUALPROLOG_COMMENT_BLOCK 4
  2031. #define wxSTC_VISUALPROLOG_COMMENT_LINE 5
  2032. #define wxSTC_VISUALPROLOG_COMMENT_KEY 6
  2033. #define wxSTC_VISUALPROLOG_COMMENT_KEY_ERROR 7
  2034. #define wxSTC_VISUALPROLOG_IDENTIFIER 8
  2035. #define wxSTC_VISUALPROLOG_VARIABLE 9
  2036. #define wxSTC_VISUALPROLOG_ANONYMOUS 10
  2037. #define wxSTC_VISUALPROLOG_NUMBER 11
  2038. #define wxSTC_VISUALPROLOG_OPERATOR 12
  2039. #define wxSTC_VISUALPROLOG_CHARACTER 13
  2040. #define wxSTC_VISUALPROLOG_CHARACTER_TOO_MANY 14
  2041. #define wxSTC_VISUALPROLOG_CHARACTER_ESCAPE_ERROR 15
  2042. #define wxSTC_VISUALPROLOG_STRING 16
  2043. #define wxSTC_VISUALPROLOG_STRING_ESCAPE 17
  2044. #define wxSTC_VISUALPROLOG_STRING_ESCAPE_ERROR 18
  2045. #define wxSTC_VISUALPROLOG_STRING_EOL_OPEN 19
  2046. #define wxSTC_VISUALPROLOG_STRING_VERBATIM 20
  2047. #define wxSTC_VISUALPROLOG_STRING_VERBATIM_SPECIAL 21
  2048. #define wxSTC_VISUALPROLOG_STRING_VERBATIM_EOL 22
  2049. //}}}
  2050. //----------------------------------------------------------------------
  2051. //----------------------------------------------------------------------
  2052. // Commands that can be bound to keystrokes section {{{
  2053. /// Redoes the next action on the undo history.
  2054. #define wxSTC_CMD_REDO 2011
  2055. /// Select all the text in the document.
  2056. #define wxSTC_CMD_SELECTALL 2013
  2057. /// Undo one action in the undo history.
  2058. #define wxSTC_CMD_UNDO 2176
  2059. /// Cut the selection to the clipboard.
  2060. #define wxSTC_CMD_CUT 2177
  2061. /// Copy the selection to the clipboard.
  2062. #define wxSTC_CMD_COPY 2178
  2063. /// Paste the contents of the clipboard into the document replacing the selection.
  2064. #define wxSTC_CMD_PASTE 2179
  2065. /// Clear the selection.
  2066. #define wxSTC_CMD_CLEAR 2180
  2067. /// Move caret down one line.
  2068. #define wxSTC_CMD_LINEDOWN 2300
  2069. /// Move caret down one line extending selection to new caret position.
  2070. #define wxSTC_CMD_LINEDOWNEXTEND 2301
  2071. /// Move caret up one line.
  2072. #define wxSTC_CMD_LINEUP 2302
  2073. /// Move caret up one line extending selection to new caret position.
  2074. #define wxSTC_CMD_LINEUPEXTEND 2303
  2075. /// Move caret left one character.
  2076. #define wxSTC_CMD_CHARLEFT 2304
  2077. /// Move caret left one character extending selection to new caret position.
  2078. #define wxSTC_CMD_CHARLEFTEXTEND 2305
  2079. /// Move caret right one character.
  2080. #define wxSTC_CMD_CHARRIGHT 2306
  2081. /// Move caret right one character extending selection to new caret position.
  2082. #define wxSTC_CMD_CHARRIGHTEXTEND 2307
  2083. /// Move caret left one word.
  2084. #define wxSTC_CMD_WORDLEFT 2308
  2085. /// Move caret left one word extending selection to new caret position.
  2086. #define wxSTC_CMD_WORDLEFTEXTEND 2309
  2087. /// Move caret right one word.
  2088. #define wxSTC_CMD_WORDRIGHT 2310
  2089. /// Move caret right one word extending selection to new caret position.
  2090. #define wxSTC_CMD_WORDRIGHTEXTEND 2311
  2091. /// Move caret to first position on line.
  2092. #define wxSTC_CMD_HOME 2312
  2093. /// Move caret to first position on line extending selection to new caret position.
  2094. #define wxSTC_CMD_HOMEEXTEND 2313
  2095. /// Move caret to last position on line.
  2096. #define wxSTC_CMD_LINEEND 2314
  2097. /// Move caret to last position on line extending selection to new caret position.
  2098. #define wxSTC_CMD_LINEENDEXTEND 2315
  2099. /// Move caret to first position in document.
  2100. #define wxSTC_CMD_DOCUMENTSTART 2316
  2101. /// Move caret to first position in document extending selection to new caret position.
  2102. #define wxSTC_CMD_DOCUMENTSTARTEXTEND 2317
  2103. /// Move caret to last position in document.
  2104. #define wxSTC_CMD_DOCUMENTEND 2318
  2105. /// Move caret to last position in document extending selection to new caret position.
  2106. #define wxSTC_CMD_DOCUMENTENDEXTEND 2319
  2107. /// Move caret one page up.
  2108. #define wxSTC_CMD_PAGEUP 2320
  2109. /// Move caret one page up extending selection to new caret position.
  2110. #define wxSTC_CMD_PAGEUPEXTEND 2321
  2111. /// Move caret one page down.
  2112. #define wxSTC_CMD_PAGEDOWN 2322
  2113. /// Move caret one page down extending selection to new caret position.
  2114. #define wxSTC_CMD_PAGEDOWNEXTEND 2323
  2115. /// Switch from insert to overtype mode or the reverse.
  2116. #define wxSTC_CMD_EDITTOGGLEOVERTYPE 2324
  2117. /// Cancel any modes such as call tip or auto-completion list display.
  2118. #define wxSTC_CMD_CANCEL 2325
  2119. /// Delete the selection or if no selection, the character before the caret.
  2120. #define wxSTC_CMD_DELETEBACK 2326
  2121. /// If selection is empty or all on one line replace the selection with a tab character.
  2122. /// If more than one line selected, indent the lines.
  2123. #define wxSTC_CMD_TAB 2327
  2124. /// Dedent the selected lines.
  2125. #define wxSTC_CMD_BACKTAB 2328
  2126. /// Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
  2127. #define wxSTC_CMD_NEWLINE 2329
  2128. /// Insert a Form Feed character.
  2129. #define wxSTC_CMD_FORMFEED 2330
  2130. /// Move caret to before first visible character on line.
  2131. /// If already there move to first character on line.
  2132. #define wxSTC_CMD_VCHOME 2331
  2133. /// Like VCHome but extending selection to new caret position.
  2134. #define wxSTC_CMD_VCHOMEEXTEND 2332
  2135. /// Magnify the displayed text by increasing the sizes by 1 point.
  2136. #define wxSTC_CMD_ZOOMIN 2333
  2137. /// Make the displayed text smaller by decreasing the sizes by 1 point.
  2138. #define wxSTC_CMD_ZOOMOUT 2334
  2139. /// Delete the word to the left of the caret.
  2140. #define wxSTC_CMD_DELWORDLEFT 2335
  2141. /// Delete the word to the right of the caret.
  2142. #define wxSTC_CMD_DELWORDRIGHT 2336
  2143. /// Delete the word to the right of the caret, but not the trailing non-word characters.
  2144. #define wxSTC_CMD_DELWORDRIGHTEND 2518
  2145. /// Cut the line containing the caret.
  2146. #define wxSTC_CMD_LINECUT 2337
  2147. /// Delete the line containing the caret.
  2148. #define wxSTC_CMD_LINEDELETE 2338
  2149. /// Switch the current line with the previous.
  2150. #define wxSTC_CMD_LINETRANSPOSE 2339
  2151. /// Duplicate the current line.
  2152. #define wxSTC_CMD_LINEDUPLICATE 2404
  2153. /// Transform the selection to lower case.
  2154. #define wxSTC_CMD_LOWERCASE 2340
  2155. /// Transform the selection to upper case.
  2156. #define wxSTC_CMD_UPPERCASE 2341
  2157. /// Scroll the document down, keeping the caret visible.
  2158. #define wxSTC_CMD_LINESCROLLDOWN 2342
  2159. /// Scroll the document up, keeping the caret visible.
  2160. #define wxSTC_CMD_LINESCROLLUP 2343
  2161. /// Delete the selection or if no selection, the character before the caret.
  2162. /// Will not delete the character before at the start of a line.
  2163. #define wxSTC_CMD_DELETEBACKNOTLINE 2344
  2164. /// Move caret to first position on display line.
  2165. #define wxSTC_CMD_HOMEDISPLAY 2345
  2166. /// Move caret to first position on display line extending selection to
  2167. /// new caret position.
  2168. #define wxSTC_CMD_HOMEDISPLAYEXTEND 2346
  2169. /// Move caret to last position on display line.
  2170. #define wxSTC_CMD_LINEENDDISPLAY 2347
  2171. /// Move caret to last position on display line extending selection to new
  2172. /// caret position.
  2173. #define wxSTC_CMD_LINEENDDISPLAYEXTEND 2348
  2174. /// These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  2175. /// except they behave differently when word-wrap is enabled:
  2176. /// They go first to the start / end of the display line, like (Home|LineEnd)Display
  2177. /// The difference is that, the cursor is already at the point, it goes on to the start
  2178. /// or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  2179. #define wxSTC_CMD_HOMEWRAP 2349
  2180. #define wxSTC_CMD_HOMEWRAPEXTEND 2450
  2181. #define wxSTC_CMD_LINEENDWRAP 2451
  2182. #define wxSTC_CMD_LINEENDWRAPEXTEND 2452
  2183. #define wxSTC_CMD_VCHOMEWRAP 2453
  2184. #define wxSTC_CMD_VCHOMEWRAPEXTEND 2454
  2185. /// Copy the line containing the caret.
  2186. #define wxSTC_CMD_LINECOPY 2455
  2187. /// Move to the previous change in capitalisation.
  2188. #define wxSTC_CMD_WORDPARTLEFT 2390
  2189. /// Move to the previous change in capitalisation extending selection
  2190. /// to new caret position.
  2191. #define wxSTC_CMD_WORDPARTLEFTEXTEND 2391
  2192. /// Move to the change next in capitalisation.
  2193. #define wxSTC_CMD_WORDPARTRIGHT 2392
  2194. /// Move to the next change in capitalisation extending selection
  2195. /// to new caret position.
  2196. #define wxSTC_CMD_WORDPARTRIGHTEXTEND 2393
  2197. /// Delete back from the current position to the start of the line.
  2198. #define wxSTC_CMD_DELLINELEFT 2395
  2199. /// Delete forwards from the current position to the end of the line.
  2200. #define wxSTC_CMD_DELLINERIGHT 2396
  2201. /// Move caret between paragraphs (delimited by empty lines).
  2202. #define wxSTC_CMD_PARADOWN 2413
  2203. #define wxSTC_CMD_PARADOWNEXTEND 2414
  2204. #define wxSTC_CMD_PARAUP 2415
  2205. #define wxSTC_CMD_PARAUPEXTEND 2416
  2206. /// Move caret down one line, extending rectangular selection to new caret position.
  2207. #define wxSTC_CMD_LINEDOWNRECTEXTEND 2426
  2208. /// Move caret up one line, extending rectangular selection to new caret position.
  2209. #define wxSTC_CMD_LINEUPRECTEXTEND 2427
  2210. /// Move caret left one character, extending rectangular selection to new caret position.
  2211. #define wxSTC_CMD_CHARLEFTRECTEXTEND 2428
  2212. /// Move caret right one character, extending rectangular selection to new caret position.
  2213. #define wxSTC_CMD_CHARRIGHTRECTEXTEND 2429
  2214. /// Move caret to first position on line, extending rectangular selection to new caret position.
  2215. #define wxSTC_CMD_HOMERECTEXTEND 2430
  2216. /// Move caret to before first visible character on line.
  2217. /// If already there move to first character on line.
  2218. /// In either case, extend rectangular selection to new caret position.
  2219. #define wxSTC_CMD_VCHOMERECTEXTEND 2431
  2220. /// Move caret to last position on line, extending rectangular selection to new caret position.
  2221. #define wxSTC_CMD_LINEENDRECTEXTEND 2432
  2222. /// Move caret one page up, extending rectangular selection to new caret position.
  2223. #define wxSTC_CMD_PAGEUPRECTEXTEND 2433
  2224. /// Move caret one page down, extending rectangular selection to new caret position.
  2225. #define wxSTC_CMD_PAGEDOWNRECTEXTEND 2434
  2226. /// Move caret to top of page, or one page up if already at top of page.
  2227. #define wxSTC_CMD_STUTTEREDPAGEUP 2435
  2228. /// Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
  2229. #define wxSTC_CMD_STUTTEREDPAGEUPEXTEND 2436
  2230. /// Move caret to bottom of page, or one page down if already at bottom of page.
  2231. #define wxSTC_CMD_STUTTEREDPAGEDOWN 2437
  2232. /// Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
  2233. #define wxSTC_CMD_STUTTEREDPAGEDOWNEXTEND 2438
  2234. /// Move caret left one word, position cursor at end of word.
  2235. #define wxSTC_CMD_WORDLEFTEND 2439
  2236. /// Move caret left one word, position cursor at end of word, extending selection to new caret position.
  2237. #define wxSTC_CMD_WORDLEFTENDEXTEND 2440
  2238. /// Move caret right one word, position cursor at end of word.
  2239. #define wxSTC_CMD_WORDRIGHTEND 2441
  2240. /// Move caret right one word, position cursor at end of word, extending selection to new caret position.
  2241. #define wxSTC_CMD_WORDRIGHTENDEXTEND 2442
  2242. /// Centre current line in window.
  2243. #define wxSTC_CMD_VERTICALCENTRECARET 2619
  2244. /// Move the selected lines up one line, shifting the line above after the selection
  2245. #define wxSTC_CMD_MOVESELECTEDLINESUP 2620
  2246. /// Move the selected lines down one line, shifting the line below before the selection
  2247. #define wxSTC_CMD_MOVESELECTEDLINESDOWN 2621
  2248. /// Scroll to start of document.
  2249. #define wxSTC_CMD_SCROLLTOSTART 2628
  2250. /// Scroll to end of document.
  2251. #define wxSTC_CMD_SCROLLTOEND 2629
  2252. //}}}
  2253. //----------------------------------------------------------------------
  2254. class ScintillaWX; // forward declare
  2255. class WordList;
  2256. struct SCNotification;
  2257. #ifndef SWIG
  2258. extern WXDLLIMPEXP_DATA_STC(const char) wxSTCNameStr[];
  2259. class WXDLLIMPEXP_FWD_STC wxStyledTextCtrl;
  2260. class WXDLLIMPEXP_FWD_STC wxStyledTextEvent;
  2261. #endif
  2262. //----------------------------------------------------------------------
  2263. class WXDLLIMPEXP_STC wxStyledTextCtrl : public wxControl,
  2264. #if wxUSE_TEXTCTRL
  2265. public wxTextCtrlIface
  2266. #else // !wxUSE_TEXTCTRL
  2267. public wxTextEntryBase
  2268. #endif // wxUSE_TEXTCTRL/!wxUSE_TEXTCTRL
  2269. {
  2270. public:
  2271. #ifdef SWIG
  2272. %pythonAppend wxStyledTextCtrl "self._setOORInfo(self)"
  2273. %pythonAppend wxStyledTextCtrl() ""
  2274. wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
  2275. const wxPoint& pos = wxDefaultPosition,
  2276. const wxSize& size = wxDefaultSize, long style = 0,
  2277. const wxString& name = wxPySTCNameStr);
  2278. %RenameCtor(PreStyledTextCtrl, wxStyledTextCtrl());
  2279. #else
  2280. wxStyledTextCtrl(wxWindow *parent, wxWindowID id=wxID_ANY,
  2281. const wxPoint& pos = wxDefaultPosition,
  2282. const wxSize& size = wxDefaultSize, long style = 0,
  2283. const wxString& name = wxSTCNameStr);
  2284. wxStyledTextCtrl() { m_swx = NULL; }
  2285. ~wxStyledTextCtrl();
  2286. #endif
  2287. bool Create(wxWindow *parent, wxWindowID id=wxID_ANY,
  2288. const wxPoint& pos = wxDefaultPosition,
  2289. const wxSize& size = wxDefaultSize, long style = 0,
  2290. const wxString& name = wxSTCNameStr);
  2291. //----------------------------------------------------------------------
  2292. // Generated method declaration section {{{
  2293. // Add text to the document at current position.
  2294. void AddText(const wxString& text);
  2295. // Add array of cells to document.
  2296. void AddStyledText(const wxMemoryBuffer& data);
  2297. // Insert string at a position.
  2298. void InsertText(int pos, const wxString& text);
  2299. // Delete all text in the document.
  2300. void ClearAll();
  2301. // Delete a range of text in the document.
  2302. void DeleteRange(int pos, int deleteLength);
  2303. // Set all style bytes to 0, remove all folding information.
  2304. void ClearDocumentStyle();
  2305. // Returns the number of bytes in the document.
  2306. int GetLength() const;
  2307. // Returns the character byte at the position.
  2308. int GetCharAt(int pos) const;
  2309. // Returns the position of the caret.
  2310. int GetCurrentPos() const;
  2311. // Returns the position of the opposite end of the selection to the caret.
  2312. int GetAnchor() const;
  2313. // Returns the style byte at the position.
  2314. int GetStyleAt(int pos) const;
  2315. // Redoes the next action on the undo history.
  2316. void Redo();
  2317. // Choose between collecting actions into the undo
  2318. // history and discarding them.
  2319. void SetUndoCollection(bool collectUndo);
  2320. // Select all the text in the document.
  2321. void SelectAll();
  2322. // Remember the current position in the undo history as the position
  2323. // at which the document was saved.
  2324. void SetSavePoint();
  2325. // Retrieve a buffer of cells.
  2326. wxMemoryBuffer GetStyledText(int startPos, int endPos);
  2327. // Are there any redoable actions in the undo history?
  2328. bool CanRedo() const;
  2329. // Retrieve the line number at which a particular marker is located.
  2330. int MarkerLineFromHandle(int handle);
  2331. // Delete a marker.
  2332. void MarkerDeleteHandle(int handle);
  2333. // Is undo history being collected?
  2334. bool GetUndoCollection() const;
  2335. // Are white space characters currently visible?
  2336. // Returns one of SCWS_* constants.
  2337. int GetViewWhiteSpace() const;
  2338. // Make white space characters invisible, always visible or visible outside indentation.
  2339. void SetViewWhiteSpace(int viewWS);
  2340. // Find the position from a point within the window.
  2341. int PositionFromPoint(wxPoint pt) const;
  2342. // Find the position from a point within the window but return
  2343. // INVALID_POSITION if not close to text.
  2344. int PositionFromPointClose(int x, int y);
  2345. // Set caret to start of a line and ensure it is visible.
  2346. void GotoLine(int line);
  2347. // Set caret to a position and ensure it is visible.
  2348. void GotoPos(int pos);
  2349. // Set the selection anchor to a position. The anchor is the opposite
  2350. // end of the selection from the caret.
  2351. void SetAnchor(int posAnchor);
  2352. // Retrieve the text of the line containing the caret.
  2353. // Returns the index of the caret on the line.
  2354. #ifdef SWIG
  2355. wxString GetCurLine(int* OUTPUT);
  2356. #else
  2357. wxString GetCurLine(int* linePos=NULL);
  2358. #endif
  2359. // Retrieve the position of the last correctly styled character.
  2360. int GetEndStyled() const;
  2361. // Convert all line endings in the document to one mode.
  2362. void ConvertEOLs(int eolMode);
  2363. // Retrieve the current end of line mode - one of CRLF, CR, or LF.
  2364. int GetEOLMode() const;
  2365. // Set the current end of line mode.
  2366. void SetEOLMode(int eolMode);
  2367. // Set the current styling position to pos and the styling mask to mask.
  2368. // The styling mask can be used to protect some bits in each styling byte from modification.
  2369. void StartStyling(int pos, int mask);
  2370. // Change style from current styling position for length characters to a style
  2371. // and move the current styling position to after this newly styled segment.
  2372. void SetStyling(int length, int style);
  2373. // Is drawing done first into a buffer or direct to the screen?
  2374. bool GetBufferedDraw() const;
  2375. // If drawing is buffered then each line of text is drawn into a bitmap buffer
  2376. // before drawing it to the screen to avoid flicker.
  2377. void SetBufferedDraw(bool buffered);
  2378. // Change the visible size of a tab to be a multiple of the width of a space character.
  2379. void SetTabWidth(int tabWidth);
  2380. // Retrieve the visible size of a tab.
  2381. int GetTabWidth() const;
  2382. // Set the code page used to interpret the bytes of the document as characters.
  2383. void SetCodePage(int codePage);
  2384. // Set the symbol used for a particular marker number,
  2385. // and optionally the fore and background colours.
  2386. void MarkerDefine(int markerNumber, int markerSymbol,
  2387. const wxColour& foreground = wxNullColour,
  2388. const wxColour& background = wxNullColour);
  2389. // Set the foreground colour used for a particular marker number.
  2390. void MarkerSetForeground(int markerNumber, const wxColour& fore);
  2391. // Set the background colour used for a particular marker number.
  2392. void MarkerSetBackground(int markerNumber, const wxColour& back);
  2393. // Set the background colour used for a particular marker number when its folding block is selected.
  2394. void MarkerSetBackgroundSelected(int markerNumber, const wxColour& back);
  2395. // Enable/disable highlight for current folding bloc (smallest one that contains the caret)
  2396. void MarkerEnableHighlight(bool enabled);
  2397. // Add a marker to a line, returning an ID which can be used to find or delete the marker.
  2398. int MarkerAdd(int line, int markerNumber);
  2399. // Delete a marker from a line.
  2400. void MarkerDelete(int line, int markerNumber);
  2401. // Delete all markers with a particular number from all lines.
  2402. void MarkerDeleteAll(int markerNumber);
  2403. // Get a bit mask of all the markers set on a line.
  2404. int MarkerGet(int line);
  2405. // Find the next line at or after lineStart that includes a marker in mask.
  2406. // Return -1 when no more lines.
  2407. int MarkerNext(int lineStart, int markerMask);
  2408. // Find the previous line before lineStart that includes a marker in mask.
  2409. int MarkerPrevious(int lineStart, int markerMask);
  2410. // Define a marker from a bitmap
  2411. void MarkerDefineBitmap(int markerNumber, const wxBitmap& bmp);
  2412. // Add a set of markers to a line.
  2413. void MarkerAddSet(int line, int set);
  2414. // Set the alpha used for a marker that is drawn in the text area, not the margin.
  2415. void MarkerSetAlpha(int markerNumber, int alpha);
  2416. // Set a margin to be either numeric or symbolic.
  2417. void SetMarginType(int margin, int marginType);
  2418. // Retrieve the type of a margin.
  2419. int GetMarginType(int margin) const;
  2420. // Set the width of a margin to a width expressed in pixels.
  2421. void SetMarginWidth(int margin, int pixelWidth);
  2422. // Retrieve the width of a margin in pixels.
  2423. int GetMarginWidth(int margin) const;
  2424. // Set a mask that determines which markers are displayed in a margin.
  2425. void SetMarginMask(int margin, int mask);
  2426. // Retrieve the marker mask of a margin.
  2427. int GetMarginMask(int margin) const;
  2428. // Make a margin sensitive or insensitive to mouse clicks.
  2429. void SetMarginSensitive(int margin, bool sensitive);
  2430. // Retrieve the mouse click sensitivity of a margin.
  2431. bool GetMarginSensitive(int margin) const;
  2432. // Set the cursor shown when the mouse is inside a margin.
  2433. void SetMarginCursor(int margin, int cursor);
  2434. // Retrieve the cursor shown in a margin.
  2435. int GetMarginCursor(int margin) const;
  2436. // Clear all the styles and make equivalent to the global default style.
  2437. void StyleClearAll();
  2438. // Set the foreground colour of a style.
  2439. void StyleSetForeground(int style, const wxColour& fore);
  2440. // Set the background colour of a style.
  2441. void StyleSetBackground(int style, const wxColour& back);
  2442. // Set a style to be bold or not.
  2443. void StyleSetBold(int style, bool bold);
  2444. // Set a style to be italic or not.
  2445. void StyleSetItalic(int style, bool italic);
  2446. // Set the size of characters of a style.
  2447. void StyleSetSize(int style, int sizePoints);
  2448. // Set the font of a style.
  2449. void StyleSetFaceName(int style, const wxString& fontName);
  2450. // Set a style to have its end of line filled or not.
  2451. void StyleSetEOLFilled(int style, bool filled);
  2452. // Reset the default style to its state at startup
  2453. void StyleResetDefault();
  2454. // Set a style to be underlined or not.
  2455. void StyleSetUnderline(int style, bool underline);
  2456. // Get the foreground colour of a style.
  2457. wxColour StyleGetForeground(int style) const;
  2458. // Get the background colour of a style.
  2459. wxColour StyleGetBackground(int style) const;
  2460. // Get is a style bold or not.
  2461. bool StyleGetBold(int style) const;
  2462. // Get is a style italic or not.
  2463. bool StyleGetItalic(int style) const;
  2464. // Get the size of characters of a style.
  2465. int StyleGetSize(int style) const;
  2466. // Get the font facename of a style
  2467. wxString StyleGetFaceName(int style);
  2468. // Get is a style to have its end of line filled or not.
  2469. bool StyleGetEOLFilled(int style) const;
  2470. // Get is a style underlined or not.
  2471. bool StyleGetUnderline(int style) const;
  2472. // Get is a style mixed case, or to force upper or lower case.
  2473. int StyleGetCase(int style) const;
  2474. // Get the character set of the font in a style.
  2475. int StyleGetCharacterSet(int style) const;
  2476. // Get is a style visible or not.
  2477. bool StyleGetVisible(int style) const;
  2478. // Get is a style changeable or not (read only).
  2479. // Experimental feature, currently buggy.
  2480. bool StyleGetChangeable(int style) const;
  2481. // Get is a style a hotspot or not.
  2482. bool StyleGetHotSpot(int style) const;
  2483. // Set a style to be mixed case, or to force upper or lower case.
  2484. void StyleSetCase(int style, int caseForce);
  2485. // Set the size of characters of a style. Size is in points multiplied by 100.
  2486. void StyleSetSizeFractional(int style, int caseForce);
  2487. // Get the size of characters of a style in points multiplied by 100
  2488. int StyleGetSizeFractional(int style) const;
  2489. // Set the weight of characters of a style.
  2490. void StyleSetWeight(int style, int weight);
  2491. // Get the weight of characters of a style.
  2492. int StyleGetWeight(int style) const;
  2493. // Set a style to be a hotspot or not.
  2494. void StyleSetHotSpot(int style, bool hotspot);
  2495. // Set the foreground colour of the main and additional selections and whether to use this setting.
  2496. void SetSelForeground(bool useSetting, const wxColour& fore);
  2497. // Set the background colour of the main and additional selections and whether to use this setting.
  2498. void SetSelBackground(bool useSetting, const wxColour& back);
  2499. // Get the alpha of the selection.
  2500. int GetSelAlpha() const;
  2501. // Set the alpha of the selection.
  2502. void SetSelAlpha(int alpha);
  2503. // Is the selection end of line filled?
  2504. bool GetSelEOLFilled() const;
  2505. // Set the selection to have its end of line filled or not.
  2506. void SetSelEOLFilled(bool filled);
  2507. // Set the foreground colour of the caret.
  2508. void SetCaretForeground(const wxColour& fore);
  2509. // When key+modifier combination km is pressed perform msg.
  2510. void CmdKeyAssign(int key, int modifiers, int cmd);
  2511. // When key+modifier combination km is pressed do nothing.
  2512. void CmdKeyClear(int key, int modifiers);
  2513. // Drop all key mappings.
  2514. void CmdKeyClearAll();
  2515. // Set the styles for a segment of the document.
  2516. void SetStyleBytes(int length, char* styleBytes);
  2517. // Set a style to be visible or not.
  2518. void StyleSetVisible(int style, bool visible);
  2519. // Get the time in milliseconds that the caret is on and off.
  2520. int GetCaretPeriod() const;
  2521. // Get the time in milliseconds that the caret is on and off. 0 = steady on.
  2522. void SetCaretPeriod(int periodMilliseconds);
  2523. // Set the set of characters making up words for when moving or selecting by word.
  2524. // First sets defaults like SetCharsDefault.
  2525. void SetWordChars(const wxString& characters);
  2526. // Get the set of characters making up words for when moving or selecting by word.
  2527. wxString GetWordChars() const;
  2528. // Start a sequence of actions that is undone and redone as a unit.
  2529. // May be nested.
  2530. void BeginUndoAction();
  2531. // End a sequence of actions that is undone and redone as a unit.
  2532. void EndUndoAction();
  2533. // Set an indicator to plain, squiggle or TT.
  2534. void IndicatorSetStyle(int indic, int style);
  2535. // Retrieve the style of an indicator.
  2536. int IndicatorGetStyle(int indic) const;
  2537. // Set the foreground colour of an indicator.
  2538. void IndicatorSetForeground(int indic, const wxColour& fore);
  2539. // Retrieve the foreground colour of an indicator.
  2540. wxColour IndicatorGetForeground(int indic) const;
  2541. // Set an indicator to draw under text or over(default).
  2542. void IndicatorSetUnder(int indic, bool under);
  2543. // Retrieve whether indicator drawn under or over text.
  2544. bool IndicatorGetUnder(int indic) const;
  2545. // Set the foreground colour of all whitespace and whether to use this setting.
  2546. void SetWhitespaceForeground(bool useSetting, const wxColour& fore);
  2547. // Set the background colour of all whitespace and whether to use this setting.
  2548. void SetWhitespaceBackground(bool useSetting, const wxColour& back);
  2549. // Set the size of the dots used to mark space characters.
  2550. void SetWhitespaceSize(int size);
  2551. // Get the size of the dots used to mark space characters.
  2552. int GetWhitespaceSize() const;
  2553. // Divide each styling byte into lexical class bits (default: 5) and indicator
  2554. // bits (default: 3). If a lexer requires more than 32 lexical states, then this
  2555. // is used to expand the possible states.
  2556. void SetStyleBits(int bits);
  2557. // Retrieve number of bits in style bytes used to hold the lexical state.
  2558. int GetStyleBits() const;
  2559. // Used to hold extra styling information for each line.
  2560. void SetLineState(int line, int state);
  2561. // Retrieve the extra styling information for a line.
  2562. int GetLineState(int line) const;
  2563. // Retrieve the last line number that has line state.
  2564. int GetMaxLineState() const;
  2565. // Is the background of the line containing the caret in a different colour?
  2566. bool GetCaretLineVisible() const;
  2567. // Display the background of the line containing the caret in a different colour.
  2568. void SetCaretLineVisible(bool show);
  2569. // Get the colour of the background of the line containing the caret.
  2570. wxColour GetCaretLineBackground() const;
  2571. // Set the colour of the background of the line containing the caret.
  2572. void SetCaretLineBackground(const wxColour& back);
  2573. // Set a style to be changeable or not (read only).
  2574. // Experimental feature, currently buggy.
  2575. void StyleSetChangeable(int style, bool changeable);
  2576. // Display a auto-completion list.
  2577. // The lenEntered parameter indicates how many characters before
  2578. // the caret should be used to provide context.
  2579. void AutoCompShow(int lenEntered, const wxString& itemList);
  2580. // Remove the auto-completion list from the screen.
  2581. void AutoCompCancel();
  2582. // Is there an auto-completion list visible?
  2583. bool AutoCompActive();
  2584. // Retrieve the position of the caret when the auto-completion list was displayed.
  2585. int AutoCompPosStart();
  2586. // User has selected an item so remove the list and insert the selection.
  2587. void AutoCompComplete();
  2588. // Define a set of character that when typed cancel the auto-completion list.
  2589. void AutoCompStops(const wxString& characterSet);
  2590. // Change the separator character in the string setting up an auto-completion list.
  2591. // Default is space but can be changed if items contain space.
  2592. void AutoCompSetSeparator(int separatorCharacter);
  2593. // Retrieve the auto-completion list separator character.
  2594. int AutoCompGetSeparator() const;
  2595. // Select the item in the auto-completion list that starts with a string.
  2596. void AutoCompSelect(const wxString& text);
  2597. // Should the auto-completion list be cancelled if the user backspaces to a
  2598. // position before where the box was created.
  2599. void AutoCompSetCancelAtStart(bool cancel);
  2600. // Retrieve whether auto-completion cancelled by backspacing before start.
  2601. bool AutoCompGetCancelAtStart() const;
  2602. // Define a set of characters that when typed will cause the autocompletion to
  2603. // choose the selected item.
  2604. void AutoCompSetFillUps(const wxString& characterSet);
  2605. // Should a single item auto-completion list automatically choose the item.
  2606. void AutoCompSetChooseSingle(bool chooseSingle);
  2607. // Retrieve whether a single item auto-completion list automatically choose the item.
  2608. bool AutoCompGetChooseSingle() const;
  2609. // Set whether case is significant when performing auto-completion searches.
  2610. void AutoCompSetIgnoreCase(bool ignoreCase);
  2611. // Retrieve state of ignore case flag.
  2612. bool AutoCompGetIgnoreCase() const;
  2613. // Display a list of strings and send notification when user chooses one.
  2614. void UserListShow(int listType, const wxString& itemList);
  2615. // Set whether or not autocompletion is hidden automatically when nothing matches.
  2616. void AutoCompSetAutoHide(bool autoHide);
  2617. // Retrieve whether or not autocompletion is hidden automatically when nothing matches.
  2618. bool AutoCompGetAutoHide() const;
  2619. // Set whether or not autocompletion deletes any word characters
  2620. // after the inserted text upon completion.
  2621. void AutoCompSetDropRestOfWord(bool dropRestOfWord);
  2622. // Retrieve whether or not autocompletion deletes any word characters
  2623. // after the inserted text upon completion.
  2624. bool AutoCompGetDropRestOfWord() const;
  2625. // Register an image for use in autocompletion lists.
  2626. void RegisterImage(int type, const wxBitmap& bmp);
  2627. // Clear all the registered images.
  2628. void ClearRegisteredImages();
  2629. // Retrieve the auto-completion list type-separator character.
  2630. int AutoCompGetTypeSeparator() const;
  2631. // Change the type-separator character in the string setting up an auto-completion list.
  2632. // Default is '?' but can be changed if items contain '?'.
  2633. void AutoCompSetTypeSeparator(int separatorCharacter);
  2634. // Set the maximum width, in characters, of auto-completion and user lists.
  2635. // Set to 0 to autosize to fit longest item, which is the default.
  2636. void AutoCompSetMaxWidth(int characterCount);
  2637. // Get the maximum width, in characters, of auto-completion and user lists.
  2638. int AutoCompGetMaxWidth() const;
  2639. // Set the maximum height, in rows, of auto-completion and user lists.
  2640. // The default is 5 rows.
  2641. void AutoCompSetMaxHeight(int rowCount);
  2642. // Set the maximum height, in rows, of auto-completion and user lists.
  2643. int AutoCompGetMaxHeight() const;
  2644. // Set the number of spaces used for one level of indentation.
  2645. void SetIndent(int indentSize);
  2646. // Retrieve indentation size.
  2647. int GetIndent() const;
  2648. // Indentation will only use space characters if useTabs is false, otherwise
  2649. // it will use a combination of tabs and spaces.
  2650. void SetUseTabs(bool useTabs);
  2651. // Retrieve whether tabs will be used in indentation.
  2652. bool GetUseTabs() const;
  2653. // Change the indentation of a line to a number of columns.
  2654. void SetLineIndentation(int line, int indentSize);
  2655. // Retrieve the number of columns that a line is indented.
  2656. int GetLineIndentation(int line) const;
  2657. // Retrieve the position before the first non indentation character on a line.
  2658. int GetLineIndentPosition(int line) const;
  2659. // Retrieve the column number of a position, taking tab width into account.
  2660. int GetColumn(int pos) const;
  2661. // Count characters between two positions.
  2662. int CountCharacters(int startPos, int endPos);
  2663. // Show or hide the horizontal scroll bar.
  2664. void SetUseHorizontalScrollBar(bool show);
  2665. // Is the horizontal scroll bar visible?
  2666. bool GetUseHorizontalScrollBar() const;
  2667. // Show or hide indentation guides.
  2668. void SetIndentationGuides(int indentView);
  2669. // Are the indentation guides visible?
  2670. int GetIndentationGuides() const;
  2671. // Set the highlighted indentation guide column.
  2672. // 0 = no highlighted guide.
  2673. void SetHighlightGuide(int column);
  2674. // Get the highlighted indentation guide column.
  2675. int GetHighlightGuide() const;
  2676. // Get the position after the last visible characters on a line.
  2677. int GetLineEndPosition(int line) const;
  2678. // Get the code page used to interpret the bytes of the document as characters.
  2679. int GetCodePage() const;
  2680. // Get the foreground colour of the caret.
  2681. wxColour GetCaretForeground() const;
  2682. // In read-only mode?
  2683. bool GetReadOnly() const;
  2684. // Sets the position of the caret.
  2685. void SetCurrentPos(int pos);
  2686. // Sets the position that starts the selection - this becomes the anchor.
  2687. void SetSelectionStart(int pos);
  2688. // Returns the position at the start of the selection.
  2689. int GetSelectionStart() const;
  2690. // Sets the position that ends the selection - this becomes the currentPosition.
  2691. void SetSelectionEnd(int pos);
  2692. // Returns the position at the end of the selection.
  2693. int GetSelectionEnd() const;
  2694. // Set caret to a position, while removing any existing selection.
  2695. void SetEmptySelection(int pos);
  2696. // Sets the print magnification added to the point size of each style for printing.
  2697. void SetPrintMagnification(int magnification);
  2698. // Returns the print magnification.
  2699. int GetPrintMagnification() const;
  2700. // Modify colours when printing for clearer printed text.
  2701. void SetPrintColourMode(int mode);
  2702. // Returns the print colour mode.
  2703. int GetPrintColourMode() const;
  2704. // Find some text in the document.
  2705. int FindText(int minPos, int maxPos, const wxString& text, int flags=0);
  2706. // On Windows, will draw the document into a display context such as a printer.
  2707. int FormatRange(bool doDraw,
  2708. int startPos,
  2709. int endPos,
  2710. wxDC* draw,
  2711. wxDC* target,
  2712. wxRect renderRect,
  2713. wxRect pageRect);
  2714. // Retrieve the display line at the top of the display.
  2715. int GetFirstVisibleLine() const;
  2716. // Retrieve the contents of a line.
  2717. wxString GetLine(int line) const;
  2718. // Returns the number of lines in the document. There is always at least one.
  2719. int GetLineCount() const;
  2720. // Sets the size in pixels of the left margin.
  2721. void SetMarginLeft(int pixelWidth);
  2722. // Returns the size in pixels of the left margin.
  2723. int GetMarginLeft() const;
  2724. // Sets the size in pixels of the right margin.
  2725. void SetMarginRight(int pixelWidth);
  2726. // Returns the size in pixels of the right margin.
  2727. int GetMarginRight() const;
  2728. // Is the document different from when it was last saved?
  2729. bool GetModify() const;
  2730. // Retrieve the selected text.
  2731. wxString GetSelectedText();
  2732. // Retrieve a range of text.
  2733. wxString GetTextRange(int startPos, int endPos);
  2734. // Draw the selection in normal style or with selection highlighted.
  2735. void HideSelection(bool normal);
  2736. // Retrieve the line containing a position.
  2737. int LineFromPosition(int pos) const;
  2738. // Retrieve the position at the start of a line.
  2739. int PositionFromLine(int line) const;
  2740. // Scroll horizontally and vertically.
  2741. void LineScroll(int columns, int lines);
  2742. // Ensure the caret is visible.
  2743. void EnsureCaretVisible();
  2744. // Replace the selected text with the argument text.
  2745. void ReplaceSelection(const wxString& text);
  2746. // Set to read only or read write.
  2747. void SetReadOnly(bool readOnly);
  2748. // Will a paste succeed?
  2749. bool CanPaste() const;
  2750. // Are there any undoable actions in the undo history?
  2751. bool CanUndo() const;
  2752. // Delete the undo history.
  2753. void EmptyUndoBuffer();
  2754. // Undo one action in the undo history.
  2755. void Undo();
  2756. // Cut the selection to the clipboard.
  2757. void Cut();
  2758. // Copy the selection to the clipboard.
  2759. void Copy();
  2760. // Paste the contents of the clipboard into the document replacing the selection.
  2761. void Paste();
  2762. // Clear the selection.
  2763. void Clear();
  2764. // Replace the contents of the document with the argument text.
  2765. void SetText(const wxString& text);
  2766. // Retrieve all the text in the document.
  2767. wxString GetText() const;
  2768. // Retrieve the number of characters in the document.
  2769. int GetTextLength() const;
  2770. // Set to overtype (true) or insert mode.
  2771. void SetOvertype(bool overtype);
  2772. // Returns true if overtype mode is active otherwise false is returned.
  2773. bool GetOvertype() const;
  2774. // Set the width of the insert mode caret.
  2775. void SetCaretWidth(int pixelWidth);
  2776. // Returns the width of the insert mode caret.
  2777. int GetCaretWidth() const;
  2778. // Sets the position that starts the target which is used for updating the
  2779. // document without affecting the scroll position.
  2780. void SetTargetStart(int pos);
  2781. // Get the position that starts the target.
  2782. int GetTargetStart() const;
  2783. // Sets the position that ends the target which is used for updating the
  2784. // document without affecting the scroll position.
  2785. void SetTargetEnd(int pos);
  2786. // Get the position that ends the target.
  2787. int GetTargetEnd() const;
  2788. // Replace the target text with the argument text.
  2789. // Text is counted so it can contain NULs.
  2790. // Returns the length of the replacement text.
  2791. int ReplaceTarget(const wxString& text);
  2792. // Replace the target text with the argument text after \\d processing.
  2793. // Text is counted so it can contain NULs.
  2794. // Looks for \\d where d is between 1 and 9 and replaces these with the strings
  2795. // matched in the last search operation which were surrounded by \( and \).
  2796. // Returns the length of the replacement text including any change
  2797. // caused by processing the \\d patterns.
  2798. int ReplaceTargetRE(const wxString& text);
  2799. // Search for a counted string in the target and set the target to the found
  2800. // range. Text is counted so it can contain NULs.
  2801. // Returns length of range or -1 for failure in which case target is not moved.
  2802. int SearchInTarget(const wxString& text);
  2803. // Set the search flags used by SearchInTarget.
  2804. void SetSearchFlags(int flags);
  2805. // Get the search flags used by SearchInTarget.
  2806. int GetSearchFlags() const;
  2807. // Show a call tip containing a definition near position pos.
  2808. void CallTipShow(int pos, const wxString& definition);
  2809. // Remove the call tip from the screen.
  2810. void CallTipCancel();
  2811. // Is there an active call tip?
  2812. bool CallTipActive();
  2813. // Retrieve the position where the caret was before displaying the call tip.
  2814. int CallTipPosAtStart();
  2815. // Highlight a segment of the definition.
  2816. void CallTipSetHighlight(int start, int end);
  2817. // Set the background colour for the call tip.
  2818. void CallTipSetBackground(const wxColour& back);
  2819. // Set the foreground colour for the call tip.
  2820. void CallTipSetForeground(const wxColour& fore);
  2821. // Set the foreground colour for the highlighted part of the call tip.
  2822. void CallTipSetForegroundHighlight(const wxColour& fore);
  2823. // Enable use of STYLE_CALLTIP and set call tip tab size in pixels.
  2824. void CallTipUseStyle(int tabSize);
  2825. // Set position of calltip, above or below text.
  2826. void CallTipSetPosition(bool above);
  2827. // Find the display line of a document line taking hidden lines into account.
  2828. int VisibleFromDocLine(int line);
  2829. // Find the document line of a display line taking hidden lines into account.
  2830. int DocLineFromVisible(int lineDisplay);
  2831. // The number of display lines needed to wrap a document line
  2832. int WrapCount(int line);
  2833. // Set the fold level of a line.
  2834. // This encodes an integer level along with flags indicating whether the
  2835. // line is a header and whether it is effectively white space.
  2836. void SetFoldLevel(int line, int level);
  2837. // Retrieve the fold level of a line.
  2838. int GetFoldLevel(int line) const;
  2839. // Find the last child line of a header line.
  2840. int GetLastChild(int line, int level) const;
  2841. // Find the parent line of a child line.
  2842. int GetFoldParent(int line) const;
  2843. // Make a range of lines visible.
  2844. void ShowLines(int lineStart, int lineEnd);
  2845. // Make a range of lines invisible.
  2846. void HideLines(int lineStart, int lineEnd);
  2847. // Is a line visible?
  2848. bool GetLineVisible(int line) const;
  2849. // Are all lines visible?
  2850. bool GetAllLinesVisible() const;
  2851. // Show the children of a header line.
  2852. void SetFoldExpanded(int line, bool expanded);
  2853. // Is a header line expanded?
  2854. bool GetFoldExpanded(int line) const;
  2855. // Switch a header line between expanded and contracted.
  2856. void ToggleFold(int line);
  2857. // Ensure a particular line is visible by expanding any header line hiding it.
  2858. void EnsureVisible(int line);
  2859. // Set some style options for folding.
  2860. void SetFoldFlags(int flags);
  2861. // Ensure a particular line is visible by expanding any header line hiding it.
  2862. // Use the currently set visibility policy to determine which range to display.
  2863. void EnsureVisibleEnforcePolicy(int line);
  2864. // Sets whether a tab pressed when caret is within indentation indents.
  2865. void SetTabIndents(bool tabIndents);
  2866. // Does a tab pressed when caret is within indentation indent?
  2867. bool GetTabIndents() const;
  2868. // Sets whether a backspace pressed when caret is within indentation unindents.
  2869. void SetBackSpaceUnIndents(bool bsUnIndents);
  2870. // Does a backspace pressed when caret is within indentation unindent?
  2871. bool GetBackSpaceUnIndents() const;
  2872. // Sets the time the mouse must sit still to generate a mouse dwell event.
  2873. void SetMouseDwellTime(int periodMilliseconds);
  2874. // Retrieve the time the mouse must sit still to generate a mouse dwell event.
  2875. int GetMouseDwellTime() const;
  2876. // Get position of start of word.
  2877. int WordStartPosition(int pos, bool onlyWordCharacters);
  2878. // Get position of end of word.
  2879. int WordEndPosition(int pos, bool onlyWordCharacters);
  2880. // Sets whether text is word wrapped.
  2881. void SetWrapMode(int mode);
  2882. // Retrieve whether text is word wrapped.
  2883. int GetWrapMode() const;
  2884. // Set the display mode of visual flags for wrapped lines.
  2885. void SetWrapVisualFlags(int wrapVisualFlags);
  2886. // Retrive the display mode of visual flags for wrapped lines.
  2887. int GetWrapVisualFlags() const;
  2888. // Set the location of visual flags for wrapped lines.
  2889. void SetWrapVisualFlagsLocation(int wrapVisualFlagsLocation);
  2890. // Retrive the location of visual flags for wrapped lines.
  2891. int GetWrapVisualFlagsLocation() const;
  2892. // Set the start indent for wrapped lines.
  2893. void SetWrapStartIndent(int indent);
  2894. // Retrive the start indent for wrapped lines.
  2895. int GetWrapStartIndent() const;
  2896. // Sets how wrapped sublines are placed. Default is fixed.
  2897. void SetWrapIndentMode(int mode);
  2898. // Retrieve how wrapped sublines are placed. Default is fixed.
  2899. int GetWrapIndentMode() const;
  2900. // Sets the degree of caching of layout information.
  2901. void SetLayoutCache(int mode);
  2902. // Retrieve the degree of caching of layout information.
  2903. int GetLayoutCache() const;
  2904. // Sets the document width assumed for scrolling.
  2905. void SetScrollWidth(int pixelWidth);
  2906. // Retrieve the document width assumed for scrolling.
  2907. int GetScrollWidth() const;
  2908. // Sets whether the maximum width line displayed is used to set scroll width.
  2909. void SetScrollWidthTracking(bool tracking);
  2910. // Retrieve whether the scroll width tracks wide lines.
  2911. bool GetScrollWidthTracking() const;
  2912. // Measure the pixel width of some text in a particular style.
  2913. // NUL terminated text argument.
  2914. // Does not handle tab or control characters.
  2915. int TextWidth(int style, const wxString& text);
  2916. // Sets the scroll range so that maximum scroll position has
  2917. // the last line at the bottom of the view (default).
  2918. // Setting this to false allows scrolling one page below the last line.
  2919. void SetEndAtLastLine(bool endAtLastLine);
  2920. // Retrieve whether the maximum scroll position has the last
  2921. // line at the bottom of the view.
  2922. bool GetEndAtLastLine() const;
  2923. // Retrieve the height of a particular line of text in pixels.
  2924. int TextHeight(int line);
  2925. // Show or hide the vertical scroll bar.
  2926. void SetUseVerticalScrollBar(bool show);
  2927. // Is the vertical scroll bar visible?
  2928. bool GetUseVerticalScrollBar() const;
  2929. // Append a string to the end of the document without changing the selection.
  2930. void AppendText(const wxString& text);
  2931. // Is drawing done in two phases with backgrounds drawn before foregrounds?
  2932. bool GetTwoPhaseDraw() const;
  2933. // In twoPhaseDraw mode, drawing is performed in two phases, first the background
  2934. // and then the foreground. This avoids chopping off characters that overlap the next run.
  2935. void SetTwoPhaseDraw(bool twoPhase);
  2936. // Scroll so that a display line is at the top of the display.
  2937. void SetFirstVisibleLine(int lineDisplay);
  2938. // Change the effect of pasting when there are multiple selections.
  2939. void SetMultiPaste(int multiPaste);
  2940. // Retrieve the effect of pasting when there are multiple selections.
  2941. int GetMultiPaste() const;
  2942. // Retrieve the value of a tag from a regular expression search.
  2943. wxString GetTag(int tagNumber) const;
  2944. // Make the target range start and end be the same as the selection range start and end.
  2945. void TargetFromSelection();
  2946. // Join the lines in the target.
  2947. void LinesJoin();
  2948. // Split the lines in the target into lines that are less wide than pixelWidth
  2949. // where possible.
  2950. void LinesSplit(int pixelWidth);
  2951. // Set the colours used as a chequerboard pattern in the fold margin
  2952. void SetFoldMarginColour(bool useSetting, const wxColour& back);
  2953. void SetFoldMarginHiColour(bool useSetting, const wxColour& fore);
  2954. // Move caret down one line.
  2955. void LineDown();
  2956. // Move caret down one line extending selection to new caret position.
  2957. void LineDownExtend();
  2958. // Move caret up one line.
  2959. void LineUp();
  2960. // Move caret up one line extending selection to new caret position.
  2961. void LineUpExtend();
  2962. // Move caret left one character.
  2963. void CharLeft();
  2964. // Move caret left one character extending selection to new caret position.
  2965. void CharLeftExtend();
  2966. // Move caret right one character.
  2967. void CharRight();
  2968. // Move caret right one character extending selection to new caret position.
  2969. void CharRightExtend();
  2970. // Move caret left one word.
  2971. void WordLeft();
  2972. // Move caret left one word extending selection to new caret position.
  2973. void WordLeftExtend();
  2974. // Move caret right one word.
  2975. void WordRight();
  2976. // Move caret right one word extending selection to new caret position.
  2977. void WordRightExtend();
  2978. // Move caret to first position on line.
  2979. void Home();
  2980. // Move caret to first position on line extending selection to new caret position.
  2981. void HomeExtend();
  2982. // Move caret to last position on line.
  2983. void LineEnd();
  2984. // Move caret to last position on line extending selection to new caret position.
  2985. void LineEndExtend();
  2986. // Move caret to first position in document.
  2987. void DocumentStart();
  2988. // Move caret to first position in document extending selection to new caret position.
  2989. void DocumentStartExtend();
  2990. // Move caret to last position in document.
  2991. void DocumentEnd();
  2992. // Move caret to last position in document extending selection to new caret position.
  2993. void DocumentEndExtend();
  2994. // Move caret one page up.
  2995. void PageUp();
  2996. // Move caret one page up extending selection to new caret position.
  2997. void PageUpExtend();
  2998. // Move caret one page down.
  2999. void PageDown();
  3000. // Move caret one page down extending selection to new caret position.
  3001. void PageDownExtend();
  3002. // Switch from insert to overtype mode or the reverse.
  3003. void EditToggleOvertype();
  3004. // Cancel any modes such as call tip or auto-completion list display.
  3005. void Cancel();
  3006. // Delete the selection or if no selection, the character before the caret.
  3007. void DeleteBack();
  3008. // If selection is empty or all on one line replace the selection with a tab character.
  3009. // If more than one line selected, indent the lines.
  3010. void Tab();
  3011. // Dedent the selected lines.
  3012. void BackTab();
  3013. // Insert a new line, may use a CRLF, CR or LF depending on EOL mode.
  3014. void NewLine();
  3015. // Insert a Form Feed character.
  3016. void FormFeed();
  3017. // Move caret to before first visible character on line.
  3018. // If already there move to first character on line.
  3019. void VCHome();
  3020. // Like VCHome but extending selection to new caret position.
  3021. void VCHomeExtend();
  3022. // Magnify the displayed text by increasing the sizes by 1 point.
  3023. void ZoomIn();
  3024. // Make the displayed text smaller by decreasing the sizes by 1 point.
  3025. void ZoomOut();
  3026. // Delete the word to the left of the caret.
  3027. void DelWordLeft();
  3028. // Delete the word to the right of the caret.
  3029. void DelWordRight();
  3030. // Delete the word to the right of the caret, but not the trailing non-word characters.
  3031. void DelWordRightEnd();
  3032. // Cut the line containing the caret.
  3033. void LineCut();
  3034. // Delete the line containing the caret.
  3035. void LineDelete();
  3036. // Switch the current line with the previous.
  3037. void LineTranspose();
  3038. // Duplicate the current line.
  3039. void LineDuplicate();
  3040. // Transform the selection to lower case.
  3041. void LowerCase();
  3042. // Transform the selection to upper case.
  3043. void UpperCase();
  3044. // Scroll the document down, keeping the caret visible.
  3045. void LineScrollDown();
  3046. // Scroll the document up, keeping the caret visible.
  3047. void LineScrollUp();
  3048. // Delete the selection or if no selection, the character before the caret.
  3049. // Will not delete the character before at the start of a line.
  3050. void DeleteBackNotLine();
  3051. // Move caret to first position on display line.
  3052. void HomeDisplay();
  3053. // Move caret to first position on display line extending selection to
  3054. // new caret position.
  3055. void HomeDisplayExtend();
  3056. // Move caret to last position on display line.
  3057. void LineEndDisplay();
  3058. // Move caret to last position on display line extending selection to new
  3059. // caret position.
  3060. void LineEndDisplayExtend();
  3061. // These are like their namesakes Home(Extend)?, LineEnd(Extend)?, VCHome(Extend)?
  3062. // except they behave differently when word-wrap is enabled:
  3063. // They go first to the start / end of the display line, like (Home|LineEnd)Display
  3064. // The difference is that, the cursor is already at the point, it goes on to the start
  3065. // or end of the document line, as appropriate for (Home|LineEnd|VCHome)(Extend)?.
  3066. void HomeWrap();
  3067. void HomeWrapExtend();
  3068. void LineEndWrap();
  3069. void LineEndWrapExtend();
  3070. void VCHomeWrap();
  3071. void VCHomeWrapExtend();
  3072. // Copy the line containing the caret.
  3073. void LineCopy();
  3074. // Move the caret inside current view if it's not there already.
  3075. void MoveCaretInsideView();
  3076. // How many characters are on a line, including end of line characters?
  3077. int LineLength(int line) const;
  3078. // Highlight the characters at two positions.
  3079. void BraceHighlight(int pos1, int pos2);
  3080. // Use specified indicator to highlight matching braces instead of changing their style.
  3081. void BraceHighlightIndicator(bool useBraceHighlightIndicator, int indicator);
  3082. // Highlight the character at a position indicating there is no matching brace.
  3083. void BraceBadLight(int pos);
  3084. // Use specified indicator to highlight non matching brace instead of changing its style.
  3085. void BraceBadLightIndicator(bool useBraceBadLightIndicator, int indicator);
  3086. // Find the position of a matching brace or INVALID_POSITION if no match.
  3087. int BraceMatch(int pos);
  3088. // Are the end of line characters visible?
  3089. bool GetViewEOL() const;
  3090. // Make the end of line characters visible or invisible.
  3091. void SetViewEOL(bool visible);
  3092. // Retrieve a pointer to the document object.
  3093. void* GetDocPointer();
  3094. // Change the document object used.
  3095. void SetDocPointer(void* docPointer);
  3096. // Set which document modification events are sent to the container.
  3097. void SetModEventMask(int mask);
  3098. // Retrieve the column number which text should be kept within.
  3099. int GetEdgeColumn() const;
  3100. // Set the column number of the edge.
  3101. // If text goes past the edge then it is highlighted.
  3102. void SetEdgeColumn(int column);
  3103. // Retrieve the edge highlight mode.
  3104. int GetEdgeMode() const;
  3105. // The edge may be displayed by a line (EDGE_LINE) or by highlighting text that
  3106. // goes beyond it (EDGE_BACKGROUND) or not displayed at all (EDGE_NONE).
  3107. void SetEdgeMode(int mode);
  3108. // Retrieve the colour used in edge indication.
  3109. wxColour GetEdgeColour() const;
  3110. // Change the colour used in edge indication.
  3111. void SetEdgeColour(const wxColour& edgeColour);
  3112. // Sets the current caret position to be the search anchor.
  3113. void SearchAnchor();
  3114. // Find some text starting at the search anchor.
  3115. // Does not ensure the selection is visible.
  3116. int SearchNext(int flags, const wxString& text);
  3117. // Find some text starting at the search anchor and moving backwards.
  3118. // Does not ensure the selection is visible.
  3119. int SearchPrev(int flags, const wxString& text);
  3120. // Retrieves the number of lines completely visible.
  3121. int LinesOnScreen() const;
  3122. // Set whether a pop up menu is displayed automatically when the user presses
  3123. // the wrong mouse button.
  3124. void UsePopUp(bool allowPopUp);
  3125. // Is the selection rectangular? The alternative is the more common stream selection.
  3126. bool SelectionIsRectangle() const;
  3127. // Set the zoom level. This number of points is added to the size of all fonts.
  3128. // It may be positive to magnify or negative to reduce.
  3129. void SetZoom(int zoom);
  3130. // Retrieve the zoom level.
  3131. int GetZoom() const;
  3132. // Create a new document object.
  3133. // Starts with reference count of 1 and not selected into editor.
  3134. void* CreateDocument();
  3135. // Extend life of document.
  3136. void AddRefDocument(void* docPointer);
  3137. // Release a reference to the document, deleting document if it fades to black.
  3138. void ReleaseDocument(void* docPointer);
  3139. // Get which document modification events are sent to the container.
  3140. int GetModEventMask() const;
  3141. // Change internal focus flag.
  3142. void SetSTCFocus(bool focus);
  3143. // Get internal focus flag.
  3144. bool GetSTCFocus() const;
  3145. // Change error status - 0 = OK.
  3146. void SetStatus(int statusCode);
  3147. // Get error status.
  3148. int GetStatus() const;
  3149. // Set whether the mouse is captured when its button is pressed.
  3150. void SetMouseDownCaptures(bool captures);
  3151. // Get whether mouse gets captured.
  3152. bool GetMouseDownCaptures() const;
  3153. // Sets the cursor to one of the SC_CURSOR* values.
  3154. void SetSTCCursor(int cursorType);
  3155. // Get cursor type.
  3156. int GetSTCCursor() const;
  3157. // Change the way control characters are displayed:
  3158. // If symbol is < 32, keep the drawn way, else, use the given character.
  3159. void SetControlCharSymbol(int symbol);
  3160. // Get the way control characters are displayed.
  3161. int GetControlCharSymbol() const;
  3162. // Move to the previous change in capitalisation.
  3163. void WordPartLeft();
  3164. // Move to the previous change in capitalisation extending selection
  3165. // to new caret position.
  3166. void WordPartLeftExtend();
  3167. // Move to the change next in capitalisation.
  3168. void WordPartRight();
  3169. // Move to the next change in capitalisation extending selection
  3170. // to new caret position.
  3171. void WordPartRightExtend();
  3172. // Set the way the display area is determined when a particular line
  3173. // is to be moved to by Find, FindNext, GotoLine, etc.
  3174. void SetVisiblePolicy(int visiblePolicy, int visibleSlop);
  3175. // Delete back from the current position to the start of the line.
  3176. void DelLineLeft();
  3177. // Delete forwards from the current position to the end of the line.
  3178. void DelLineRight();
  3179. // Get and Set the xOffset (ie, horizontal scroll position).
  3180. void SetXOffset(int newOffset);
  3181. int GetXOffset() const;
  3182. // Set the last x chosen value to be the caret x position.
  3183. void ChooseCaretX();
  3184. // Set the way the caret is kept visible when going sideways.
  3185. // The exclusion zone is given in pixels.
  3186. void SetXCaretPolicy(int caretPolicy, int caretSlop);
  3187. // Set the way the line the caret is on is kept visible.
  3188. // The exclusion zone is given in lines.
  3189. void SetYCaretPolicy(int caretPolicy, int caretSlop);
  3190. // Set printing to line wrapped (SC_WRAP_WORD) or not line wrapped (SC_WRAP_NONE).
  3191. void SetPrintWrapMode(int mode);
  3192. // Is printing line wrapped?
  3193. int GetPrintWrapMode() const;
  3194. // Set a fore colour for active hotspots.
  3195. void SetHotspotActiveForeground(bool useSetting, const wxColour& fore);
  3196. // Get the fore colour for active hotspots.
  3197. wxColour GetHotspotActiveForeground() const;
  3198. // Set a back colour for active hotspots.
  3199. void SetHotspotActiveBackground(bool useSetting, const wxColour& back);
  3200. // Get the back colour for active hotspots.
  3201. wxColour GetHotspotActiveBackground() const;
  3202. // Enable / Disable underlining active hotspots.
  3203. void SetHotspotActiveUnderline(bool underline);
  3204. // Get whether underlining for active hotspots.
  3205. bool GetHotspotActiveUnderline() const;
  3206. // Limit hotspots to single line so hotspots on two lines don't merge.
  3207. void SetHotspotSingleLine(bool singleLine);
  3208. // Get the HotspotSingleLine property
  3209. bool GetHotspotSingleLine() const;
  3210. // Move caret between paragraphs (delimited by empty lines).
  3211. void ParaDown();
  3212. void ParaDownExtend();
  3213. void ParaUp();
  3214. void ParaUpExtend();
  3215. // Given a valid document position, return the previous position taking code
  3216. // page into account. Returns 0 if passed 0.
  3217. int PositionBefore(int pos);
  3218. // Given a valid document position, return the next position taking code
  3219. // page into account. Maximum value returned is the last position in the document.
  3220. int PositionAfter(int pos);
  3221. // Copy a range of text to the clipboard. Positions are clipped into the document.
  3222. void CopyRange(int start, int end);
  3223. // Copy argument text to the clipboard.
  3224. void CopyText(int length, const wxString& text);
  3225. // Set the selection mode to stream (SC_SEL_STREAM) or rectangular (SC_SEL_RECTANGLE/SC_SEL_THIN) or
  3226. // by lines (SC_SEL_LINES).
  3227. void SetSelectionMode(int mode);
  3228. // Get the mode of the current selection.
  3229. int GetSelectionMode() const;
  3230. // Retrieve the position of the start of the selection at the given line (INVALID_POSITION if no selection on this line).
  3231. int GetLineSelStartPosition(int line);
  3232. // Retrieve the position of the end of the selection at the given line (INVALID_POSITION if no selection on this line).
  3233. int GetLineSelEndPosition(int line);
  3234. // Move caret down one line, extending rectangular selection to new caret position.
  3235. void LineDownRectExtend();
  3236. // Move caret up one line, extending rectangular selection to new caret position.
  3237. void LineUpRectExtend();
  3238. // Move caret left one character, extending rectangular selection to new caret position.
  3239. void CharLeftRectExtend();
  3240. // Move caret right one character, extending rectangular selection to new caret position.
  3241. void CharRightRectExtend();
  3242. // Move caret to first position on line, extending rectangular selection to new caret position.
  3243. void HomeRectExtend();
  3244. // Move caret to before first visible character on line.
  3245. // If already there move to first character on line.
  3246. // In either case, extend rectangular selection to new caret position.
  3247. void VCHomeRectExtend();
  3248. // Move caret to last position on line, extending rectangular selection to new caret position.
  3249. void LineEndRectExtend();
  3250. // Move caret one page up, extending rectangular selection to new caret position.
  3251. void PageUpRectExtend();
  3252. // Move caret one page down, extending rectangular selection to new caret position.
  3253. void PageDownRectExtend();
  3254. // Move caret to top of page, or one page up if already at top of page.
  3255. void StutteredPageUp();
  3256. // Move caret to top of page, or one page up if already at top of page, extending selection to new caret position.
  3257. void StutteredPageUpExtend();
  3258. // Move caret to bottom of page, or one page down if already at bottom of page.
  3259. void StutteredPageDown();
  3260. // Move caret to bottom of page, or one page down if already at bottom of page, extending selection to new caret position.
  3261. void StutteredPageDownExtend();
  3262. // Move caret left one word, position cursor at end of word.
  3263. void WordLeftEnd();
  3264. // Move caret left one word, position cursor at end of word, extending selection to new caret position.
  3265. void WordLeftEndExtend();
  3266. // Move caret right one word, position cursor at end of word.
  3267. void WordRightEnd();
  3268. // Move caret right one word, position cursor at end of word, extending selection to new caret position.
  3269. void WordRightEndExtend();
  3270. // Set the set of characters making up whitespace for when moving or selecting by word.
  3271. // Should be called after SetWordChars.
  3272. void SetWhitespaceChars(const wxString& characters);
  3273. // Get the set of characters making up whitespace for when moving or selecting by word.
  3274. wxString GetWhitespaceChars() const;
  3275. // Set the set of characters making up punctuation characters
  3276. // Should be called after SetWordChars.
  3277. void SetPunctuationChars(const wxString& characters);
  3278. // Get the set of characters making up punctuation characters
  3279. wxString GetPunctuationChars() const;
  3280. // Reset the set of characters for whitespace and word characters to the defaults.
  3281. void SetCharsDefault();
  3282. // Get currently selected item position in the auto-completion list
  3283. int AutoCompGetCurrent() const;
  3284. // Set auto-completion case insensitive behaviour to either prefer case-sensitive matches or have no preference.
  3285. void AutoCompSetCaseInsensitiveBehaviour(int behaviour);
  3286. // Get auto-completion case insensitive behaviour.
  3287. int AutoCompGetCaseInsensitiveBehaviour() const;
  3288. // Enlarge the document to a particular size of text bytes.
  3289. void Allocate(int bytes);
  3290. // Find the position of a column on a line taking into account tabs and
  3291. // multi-byte characters. If beyond end of line, return line end position.
  3292. int FindColumn(int line, int column);
  3293. // Can the caret preferred x position only be changed by explicit movement commands?
  3294. int GetCaretSticky() const;
  3295. // Stop the caret preferred x position changing when the user types.
  3296. void SetCaretSticky(int useCaretStickyBehaviour);
  3297. // Switch between sticky and non-sticky: meant to be bound to a key.
  3298. void ToggleCaretSticky();
  3299. // Enable/Disable convert-on-paste for line endings
  3300. void SetPasteConvertEndings(bool convert);
  3301. // Get convert-on-paste setting
  3302. bool GetPasteConvertEndings() const;
  3303. // Duplicate the selection. If selection empty duplicate the line containing the caret.
  3304. void SelectionDuplicate();
  3305. // Set background alpha of the caret line.
  3306. void SetCaretLineBackAlpha(int alpha);
  3307. // Get the background alpha of the caret line.
  3308. int GetCaretLineBackAlpha() const;
  3309. // Set the style of the caret to be drawn.
  3310. void SetCaretStyle(int caretStyle);
  3311. // Returns the current style of the caret.
  3312. int GetCaretStyle() const;
  3313. // Set the indicator used for IndicatorFillRange and IndicatorClearRange
  3314. void SetIndicatorCurrent(int indicator);
  3315. // Get the current indicator
  3316. int GetIndicatorCurrent() const;
  3317. // Set the value used for IndicatorFillRange
  3318. void SetIndicatorValue(int value);
  3319. // Get the current indicator value
  3320. int GetIndicatorValue() const;
  3321. // Turn a indicator on over a range.
  3322. void IndicatorFillRange(int position, int fillLength);
  3323. // Turn a indicator off over a range.
  3324. void IndicatorClearRange(int position, int clearLength);
  3325. // Are any indicators present at position?
  3326. int IndicatorAllOnFor(int position);
  3327. // What value does a particular indicator have at at a position?
  3328. int IndicatorValueAt(int indicator, int position);
  3329. // Where does a particular indicator start?
  3330. int IndicatorStart(int indicator, int position);
  3331. // Where does a particular indicator end?
  3332. int IndicatorEnd(int indicator, int position);
  3333. // Set number of entries in position cache
  3334. void SetPositionCacheSize(int size);
  3335. // How many entries are allocated to the position cache?
  3336. int GetPositionCacheSize() const;
  3337. // Copy the selection, if selection empty copy the line with the caret
  3338. void CopyAllowLine();
  3339. // Compact the document buffer and return a read-only pointer to the
  3340. // characters in the document.
  3341. const char* GetCharacterPointer() const;
  3342. // Return a read-only pointer to a range of characters in the document.
  3343. // May move the gap so that the range is contiguous, but will only move up
  3344. // to rangeLength bytes.
  3345. const char* GetRangePointer(int position, int rangeLength) const;
  3346. // Return a position which, to avoid performance costs, should not be within
  3347. // the range of a call to GetRangePointer.
  3348. int GetGapPosition() const;
  3349. // Always interpret keyboard input as Unicode
  3350. void SetKeysUnicode(bool keysUnicode);
  3351. // Are keys always interpreted as Unicode?
  3352. bool GetKeysUnicode() const;
  3353. // Set the alpha fill colour of the given indicator.
  3354. void IndicatorSetAlpha(int indicator, int alpha);
  3355. // Get the alpha fill colour of the given indicator.
  3356. int IndicatorGetAlpha(int indicator) const;
  3357. // Set the alpha outline colour of the given indicator.
  3358. void IndicatorSetOutlineAlpha(int indicator, int alpha);
  3359. // Get the alpha outline colour of the given indicator.
  3360. int IndicatorGetOutlineAlpha(int indicator) const;
  3361. // Set extra ascent for each line
  3362. void SetExtraAscent(int extraAscent);
  3363. // Get extra ascent for each line
  3364. int GetExtraAscent() const;
  3365. // Set extra descent for each line
  3366. void SetExtraDescent(int extraDescent);
  3367. // Get extra descent for each line
  3368. int GetExtraDescent() const;
  3369. // Which symbol was defined for markerNumber with MarkerDefine
  3370. int GetMarkerSymbolDefined(int markerNumber);
  3371. // Set the text in the text margin for a line
  3372. void MarginSetText(int line, const wxString& text);
  3373. // Get the text in the text margin for a line
  3374. wxString MarginGetText(int line) const;
  3375. // Set the style number for the text margin for a line
  3376. void MarginSetStyle(int line, int style);
  3377. // Get the style number for the text margin for a line
  3378. int MarginGetStyle(int line) const;
  3379. // Set the style in the text margin for a line
  3380. void MarginSetStyles(int line, const wxString& styles);
  3381. // Get the styles in the text margin for a line
  3382. wxString MarginGetStyles(int line) const;
  3383. // Clear the margin text on all lines
  3384. void MarginTextClearAll();
  3385. // Get the start of the range of style numbers used for margin text
  3386. void MarginSetStyleOffset(int style);
  3387. // Get the start of the range of style numbers used for margin text
  3388. int MarginGetStyleOffset() const;
  3389. // Set the margin options.
  3390. void SetMarginOptions(int marginOptions);
  3391. // Get the margin options.
  3392. int GetMarginOptions() const;
  3393. // Set the annotation text for a line
  3394. void AnnotationSetText(int line, const wxString& text);
  3395. // Get the annotation text for a line
  3396. wxString AnnotationGetText(int line) const;
  3397. // Set the style number for the annotations for a line
  3398. void AnnotationSetStyle(int line, int style);
  3399. // Get the style number for the annotations for a line
  3400. int AnnotationGetStyle(int line) const;
  3401. // Set the annotation styles for a line
  3402. void AnnotationSetStyles(int line, const wxString& styles);
  3403. // Get the annotation styles for a line
  3404. wxString AnnotationGetStyles(int line) const;
  3405. // Get the number of annotation lines for a line
  3406. int AnnotationGetLines(int line) const;
  3407. // Clear the annotations from all lines
  3408. void AnnotationClearAll();
  3409. // Set the visibility for the annotations for a view
  3410. void AnnotationSetVisible(int visible);
  3411. // Get the visibility for the annotations for a view
  3412. int AnnotationGetVisible() const;
  3413. // Get the start of the range of style numbers used for annotations
  3414. void AnnotationSetStyleOffset(int style);
  3415. // Get the start of the range of style numbers used for annotations
  3416. int AnnotationGetStyleOffset() const;
  3417. // Add a container action to the undo stack
  3418. void AddUndoAction(int token, int flags);
  3419. // Find the position of a character from a point within the window.
  3420. int CharPositionFromPoint(int x, int y);
  3421. // Find the position of a character from a point within the window.
  3422. // Return INVALID_POSITION if not close to text.
  3423. int CharPositionFromPointClose(int x, int y);
  3424. // Set whether multiple selections can be made
  3425. void SetMultipleSelection(bool multipleSelection);
  3426. // Whether multiple selections can be made
  3427. bool GetMultipleSelection() const;
  3428. // Set whether typing can be performed into multiple selections
  3429. void SetAdditionalSelectionTyping(bool additionalSelectionTyping);
  3430. // Whether typing can be performed into multiple selections
  3431. bool GetAdditionalSelectionTyping() const;
  3432. // Set whether additional carets will blink
  3433. void SetAdditionalCaretsBlink(bool additionalCaretsBlink);
  3434. // Whether additional carets will blink
  3435. bool GetAdditionalCaretsBlink() const;
  3436. // Set whether additional carets are visible
  3437. void SetAdditionalCaretsVisible(bool additionalCaretsBlink);
  3438. // Whether additional carets are visible
  3439. bool GetAdditionalCaretsVisible() const;
  3440. // How many selections are there?
  3441. int GetSelections() const;
  3442. // Clear selections to a single empty stream selection
  3443. void ClearSelections();
  3444. // Add a selection
  3445. int AddSelection(int caret, int anchor);
  3446. // Set the main selection
  3447. void SetMainSelection(int selection);
  3448. // Which selection is the main selection
  3449. int GetMainSelection() const;
  3450. void SetSelectionNCaret(int selection, int pos);
  3451. int GetSelectionNCaret(int selection) const;
  3452. void SetSelectionNAnchor(int selection, int posAnchor);
  3453. int GetSelectionNAnchor(int selection) const;
  3454. void SetSelectionNCaretVirtualSpace(int selection, int space);
  3455. int GetSelectionNCaretVirtualSpace(int selection) const;
  3456. void SetSelectionNAnchorVirtualSpace(int selection, int space);
  3457. int GetSelectionNAnchorVirtualSpace(int selection) const;
  3458. // Sets the position that starts the selection - this becomes the anchor.
  3459. void SetSelectionNStart(int selection, int pos);
  3460. // Returns the position at the start of the selection.
  3461. int GetSelectionNStart(int selection) const;
  3462. // Sets the position that ends the selection - this becomes the currentPosition.
  3463. void SetSelectionNEnd(int selection, int pos);
  3464. // Returns the position at the end of the selection.
  3465. int GetSelectionNEnd(int selection) const;
  3466. void SetRectangularSelectionCaret(int pos);
  3467. int GetRectangularSelectionCaret() const;
  3468. void SetRectangularSelectionAnchor(int posAnchor);
  3469. int GetRectangularSelectionAnchor() const;
  3470. void SetRectangularSelectionCaretVirtualSpace(int space);
  3471. int GetRectangularSelectionCaretVirtualSpace() const;
  3472. void SetRectangularSelectionAnchorVirtualSpace(int space);
  3473. int GetRectangularSelectionAnchorVirtualSpace() const;
  3474. void SetVirtualSpaceOptions(int virtualSpaceOptions);
  3475. int GetVirtualSpaceOptions() const;
  3476. // On GTK+, allow selecting the modifier key to use for mouse-based
  3477. // rectangular selection. Often the window manager requires Alt+Mouse Drag
  3478. // for moving windows.
  3479. // Valid values are SCMOD_CTRL(default), SCMOD_ALT, or SCMOD_SUPER.
  3480. void SetRectangularSelectionModifier(int modifier);
  3481. // Get the modifier key used for rectangular selection.
  3482. int GetRectangularSelectionModifier() const;
  3483. // Set the foreground colour of additional selections.
  3484. // Must have previously called SetSelFore with non-zero first argument for this to have an effect.
  3485. void SetAdditionalSelForeground(const wxColour& fore);
  3486. // Set the background colour of additional selections.
  3487. // Must have previously called SetSelBack with non-zero first argument for this to have an effect.
  3488. void SetAdditionalSelBackground(const wxColour& back);
  3489. // Set the alpha of the selection.
  3490. void SetAdditionalSelAlpha(int alpha);
  3491. // Get the alpha of the selection.
  3492. int GetAdditionalSelAlpha() const;
  3493. // Set the foreground colour of additional carets.
  3494. void SetAdditionalCaretForeground(const wxColour& fore);
  3495. // Get the foreground colour of additional carets.
  3496. wxColour GetAdditionalCaretForeground() const;
  3497. // Set the main selection to the next selection.
  3498. void RotateSelection();
  3499. // Swap that caret and anchor of the main selection.
  3500. void SwapMainAnchorCaret();
  3501. // Indicate that the internal state of a lexer has changed over a range and therefore
  3502. // there may be a need to redraw.
  3503. int ChangeLexerState(int start, int end);
  3504. // Find the next line at or after lineStart that is a contracted fold header line.
  3505. // Return -1 when no more lines.
  3506. int ContractedFoldNext(int lineStart);
  3507. // Centre current line in window.
  3508. void VerticalCentreCaret();
  3509. // Move the selected lines up one line, shifting the line above after the selection
  3510. void MoveSelectedLinesUp();
  3511. // Move the selected lines down one line, shifting the line below before the selection
  3512. void MoveSelectedLinesDown();
  3513. // Set the identifier reported as idFrom in notification messages.
  3514. void SetIdentifier(int identifier);
  3515. // Get the identifier.
  3516. int GetIdentifier() const;
  3517. // Set the width for future RGBA image data.
  3518. void RGBAImageSetWidth(int width);
  3519. // Set the height for future RGBA image data.
  3520. void RGBAImageSetHeight(int height);
  3521. // Define a marker from RGBA data.
  3522. // It has the width and height from RGBAImageSetWidth/Height
  3523. void MarkerDefineRGBAImage(int markerNumber, const unsigned char* pixels);
  3524. // Register an RGBA image for use in autocompletion lists.
  3525. // It has the width and height from RGBAImageSetWidth/Height
  3526. void RegisterRGBAImage(int type, const unsigned char* pixels);
  3527. // Scroll to start of document.
  3528. void ScrollToStart();
  3529. // Scroll to end of document.
  3530. void ScrollToEnd();
  3531. // Set the technology used.
  3532. void SetTechnology(int technology);
  3533. // Get the tech.
  3534. int GetTechnology() const;
  3535. // Create an ILoader*.
  3536. void* CreateLoader(int bytes) const;
  3537. // Start notifying the container of all key presses and commands.
  3538. void StartRecord();
  3539. // Stop notifying the container of all key presses and commands.
  3540. void StopRecord();
  3541. // Set the lexing language of the document.
  3542. void SetLexer(int lexer);
  3543. // Retrieve the lexing language of the document.
  3544. int GetLexer() const;
  3545. // Colourise a segment of the document using the current lexing language.
  3546. void Colourise(int start, int end);
  3547. // Set up a value that may be used by a lexer for some optional feature.
  3548. void SetProperty(const wxString& key, const wxString& value);
  3549. // Set up the key words used by the lexer.
  3550. void SetKeyWords(int keywordSet, const wxString& keyWords);
  3551. // Set the lexing language of the document based on string name.
  3552. void SetLexerLanguage(const wxString& language);
  3553. // Retrieve a 'property' value previously set with SetProperty.
  3554. wxString GetProperty(const wxString& key);
  3555. // Retrieve a 'property' value previously set with SetProperty,
  3556. // with '$()' variable replacement on returned buffer.
  3557. wxString GetPropertyExpanded(const wxString& key);
  3558. // Retrieve a 'property' value previously set with SetProperty,
  3559. // interpreted as an int AFTER any '$()' variable replacement.
  3560. int GetPropertyInt(const wxString& key) const;
  3561. // Retrieve the number of bits the current lexer needs for styling.
  3562. int GetStyleBitsNeeded() const;
  3563. // For private communication between an application and a known lexer.
  3564. void* PrivateLexerCall(int operation, void* pointer);
  3565. // Retrieve a '\n' separated list of properties understood by the current lexer.
  3566. wxString PropertyNames() const;
  3567. // Retrieve the type of a property.
  3568. int PropertyType(const wxString& name);
  3569. // Describe a property.
  3570. wxString DescribeProperty(const wxString& name) const;
  3571. // Retrieve a '\n' separated list of descriptions of the keyword sets understood by the current lexer.
  3572. wxString DescribeKeyWordSets() const;
  3573. //}}}
  3574. //----------------------------------------------------------------------
  3575. // Manually declared methods
  3576. // Returns the line number of the line with the caret.
  3577. int GetCurrentLine();
  3578. // Extract style settings from a spec-string which is composed of one or
  3579. // more of the following comma separated elements:
  3580. //
  3581. // bold turns on bold
  3582. // italic turns on italics
  3583. // fore:[name or #RRGGBB] sets the foreground colour
  3584. // back:[name or #RRGGBB] sets the background colour
  3585. // face:[facename] sets the font face name to use
  3586. // size:[num] sets the font size in points
  3587. // eol turns on eol filling
  3588. // underline turns on underlining
  3589. //
  3590. void StyleSetSpec(int styleNum, const wxString& spec);
  3591. // Get the font of a style.
  3592. wxFont StyleGetFont(int style);
  3593. // Set style size, face, bold, italic, and underline attributes from
  3594. // a wxFont's attributes.
  3595. void StyleSetFont(int styleNum, wxFont& font);
  3596. // Set all font style attributes at once.
  3597. void StyleSetFontAttr(int styleNum, int size,
  3598. const wxString& faceName,
  3599. bool bold, bool italic,
  3600. bool underline,
  3601. wxFontEncoding encoding=wxFONTENCODING_DEFAULT);
  3602. // Set the character set of the font in a style. Converts the Scintilla
  3603. // character set values to a wxFontEncoding.
  3604. void StyleSetCharacterSet(int style, int characterSet);
  3605. // Set the font encoding to be used by a style.
  3606. void StyleSetFontEncoding(int style, wxFontEncoding encoding);
  3607. // Perform one of the operations defined by the wxSTC_CMD_* constants.
  3608. void CmdKeyExecute(int cmd);
  3609. // Set the left and right margin in the edit area, measured in pixels.
  3610. void SetMargins(int left, int right);
  3611. // Retrieve the point in the window where a position is displayed.
  3612. wxPoint PointFromPosition(int pos);
  3613. // Scroll enough to make the given line visible
  3614. void ScrollToLine(int line);
  3615. // Scroll enough to make the given column visible
  3616. void ScrollToColumn(int column);
  3617. // Send a message to Scintilla
  3618. //
  3619. // NB: this method is not really const as it can modify the control but it
  3620. // has to be declared as such as it's called from both const and
  3621. // non-const methods and we can't distinguish between the two
  3622. wxIntPtr SendMsg(int msg, wxUIntPtr wp=0, wxIntPtr lp=0) const;
  3623. // Set the vertical scrollbar to use instead of the ont that's built-in.
  3624. void SetVScrollBar(wxScrollBar* bar);
  3625. // Set the horizontal scrollbar to use instead of the ont that's built-in.
  3626. void SetHScrollBar(wxScrollBar* bar);
  3627. // Can be used to prevent the EVT_CHAR handler from adding the char
  3628. bool GetLastKeydownProcessed() { return m_lastKeyDownConsumed; }
  3629. void SetLastKeydownProcessed(bool val) { m_lastKeyDownConsumed = val; }
  3630. // if we derive from wxTextAreaBase it already provides these methods
  3631. #if !wxUSE_TEXTCTRL
  3632. // Write the contents of the editor to filename
  3633. bool SaveFile(const wxString& filename);
  3634. // Load the contents of filename into the editor
  3635. bool LoadFile(const wxString& filename);
  3636. #endif // !wxUSE_TEXTCTRL
  3637. #ifdef STC_USE_DND
  3638. // Allow for simulating a DnD DragOver
  3639. wxDragResult DoDragOver(wxCoord x, wxCoord y, wxDragResult def);
  3640. // Allow for simulating a DnD DropText
  3641. bool DoDropText(long x, long y, const wxString& data);
  3642. #endif
  3643. // Specify whether anti-aliased fonts should be used. Will have no effect
  3644. // on some platforms, but on some (wxMac for example) can greatly improve
  3645. // performance.
  3646. void SetUseAntiAliasing(bool useAA);
  3647. // Returns the current UseAntiAliasing setting.
  3648. bool GetUseAntiAliasing();
  3649. // Clear annotations from the given line.
  3650. void AnnotationClearLine(int line);
  3651. // The following methods are nearly equivalent to their similarly named
  3652. // cousins above. The difference is that these methods bypass wxString
  3653. // and always use a char* even if used in a unicode build of wxWidgets.
  3654. // In that case the character data will be utf-8 encoded since that is
  3655. // what is used internally by Scintilla in unicode builds.
  3656. // Add text to the document at current position.
  3657. void AddTextRaw(const char* text, int length=-1);
  3658. // Insert string at a position.
  3659. void InsertTextRaw(int pos, const char* text);
  3660. // Retrieve the text of the line containing the caret.
  3661. // Returns the index of the caret on the line.
  3662. #ifdef SWIG
  3663. wxCharBuffer GetCurLineRaw(int* OUTPUT);
  3664. #else
  3665. wxCharBuffer GetCurLineRaw(int* linePos=NULL);
  3666. #endif
  3667. // Retrieve the contents of a line.
  3668. wxCharBuffer GetLineRaw(int line);
  3669. // Retrieve the selected text.
  3670. wxCharBuffer GetSelectedTextRaw();
  3671. // Retrieve a range of text.
  3672. wxCharBuffer GetTextRangeRaw(int startPos, int endPos);
  3673. // Replace the contents of the document with the argument text.
  3674. void SetTextRaw(const char* text);
  3675. // Retrieve all the text in the document.
  3676. wxCharBuffer GetTextRaw();
  3677. // Append a string to the end of the document without changing the selection.
  3678. void AppendTextRaw(const char* text, int length=-1);
  3679. #ifdef SWIG
  3680. %pythoncode "_stc_utf8_methods.py"
  3681. #endif
  3682. // implement wxTextEntryBase pure virtual methods
  3683. // ----------------------------------------------
  3684. virtual void WriteText(const wxString& text)
  3685. {
  3686. ReplaceSelection(text);
  3687. }
  3688. virtual void Remove(long from, long to)
  3689. {
  3690. Replace(from, to, "");
  3691. }
  3692. virtual void Replace(long from, long to, const wxString& text)
  3693. {
  3694. SetTargetStart((int)from);
  3695. SetTargetEnd((int)to);
  3696. ReplaceTarget(text);
  3697. }
  3698. /*
  3699. These functions are already declared in the generated section.
  3700. virtual void Copy();
  3701. virtual void Cut();
  3702. virtual void Paste();
  3703. virtual void Undo();
  3704. virtual void Redo();
  3705. virtual bool CanUndo() const;
  3706. virtual bool CanRedo() const;
  3707. */
  3708. virtual void SetInsertionPoint(long pos)
  3709. {
  3710. SetCurrentPos(int(pos == -1 ? GetLastPosition() : pos));
  3711. }
  3712. virtual long GetInsertionPoint() const { return GetCurrentPos(); }
  3713. virtual long GetLastPosition() const { return GetTextLength(); }
  3714. virtual void SetSelection(long from, long to)
  3715. {
  3716. if ( from == -1 && to == -1 )
  3717. {
  3718. SelectAll();
  3719. }
  3720. else
  3721. {
  3722. SetSelectionStart((int)from);
  3723. SetSelectionEnd((int)to);
  3724. }
  3725. }
  3726. virtual void SelectNone()
  3727. {
  3728. ClearSelections();
  3729. }
  3730. #ifdef SWIG
  3731. void GetSelection(long* OUTPUT, long* OUTPUT) const;
  3732. #else
  3733. virtual void GetSelection(long *from, long *to) const
  3734. {
  3735. if ( from )
  3736. *from = GetSelectionStart();
  3737. if ( to )
  3738. *to = GetSelectionEnd();
  3739. }
  3740. // kept for compatibility only
  3741. void GetSelection(int *from, int *to)
  3742. {
  3743. long f, t;
  3744. GetSelection(&f, &t);
  3745. if ( from )
  3746. *from = (int)f;
  3747. if ( to )
  3748. *to = (int)t;
  3749. }
  3750. #endif
  3751. virtual bool IsEditable() const { return !GetReadOnly(); }
  3752. virtual void SetEditable(bool editable) { SetReadOnly(!editable); }
  3753. // implement wxTextAreaBase pure virtual methods
  3754. // ---------------------------------------------
  3755. virtual int GetLineLength(long lineNo) const { return static_cast<int>(GetLineText(lineNo).length()); }
  3756. virtual wxString GetLineText(long lineNo) const
  3757. {
  3758. wxString text = GetLine(static_cast<int>(lineNo));
  3759. size_t lastNewLine = text.find_last_not_of(wxS("\r\n"));
  3760. if ( lastNewLine != wxString::npos )
  3761. text.erase(lastNewLine + 1); // remove trailing cr+lf
  3762. else
  3763. text.clear();
  3764. return text;
  3765. }
  3766. virtual int GetNumberOfLines() const { return GetLineCount(); }
  3767. virtual bool IsModified() const { return GetModify(); }
  3768. virtual void MarkDirty() { wxFAIL_MSG("not implemented"); }
  3769. virtual void DiscardEdits() { SetSavePoint(); }
  3770. virtual bool SetStyle(long WXUNUSED(start), long WXUNUSED(end),
  3771. const wxTextAttr& WXUNUSED(style))
  3772. {
  3773. wxFAIL_MSG("not implemented");
  3774. return false;
  3775. }
  3776. virtual bool GetStyle(long WXUNUSED(position), wxTextAttr& WXUNUSED(style))
  3777. {
  3778. wxFAIL_MSG("not implemented");
  3779. return false;
  3780. }
  3781. virtual bool SetDefaultStyle(const wxTextAttr& WXUNUSED(style))
  3782. {
  3783. wxFAIL_MSG("not implemented");
  3784. return false;
  3785. }
  3786. virtual long XYToPosition(long x, long y) const
  3787. {
  3788. long pos = PositionFromLine((int)y);
  3789. pos += x;
  3790. return pos;
  3791. }
  3792. virtual bool PositionToXY(long pos, long *x, long *y) const
  3793. {
  3794. int l = LineFromPosition((int)pos);
  3795. if ( l == -1 )
  3796. return false;
  3797. if ( x )
  3798. *x = pos - PositionFromLine(l);
  3799. if ( y )
  3800. *y = l;
  3801. return true;
  3802. }
  3803. virtual void ShowPosition(long pos) { GotoPos((int)pos); }
  3804. // FIXME-VC6: can't use wxWindow here because of "error C2603: illegal
  3805. // access declaration: 'wxWindow' is not a direct base of
  3806. // 'wxStyledTextCtrl'" with VC6
  3807. using wxControl::HitTest;
  3808. virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt, long *pos) const
  3809. {
  3810. const long l = PositionFromPoint(pt);
  3811. if ( l == -1 )
  3812. return wxTE_HT_BELOW; // we don't really know where it was
  3813. if ( pos )
  3814. *pos = l;
  3815. return wxTE_HT_ON_TEXT;
  3816. }
  3817. // just unhide it
  3818. virtual wxTextCtrlHitTestResult HitTest(const wxPoint& pt,
  3819. wxTextCoord *col,
  3820. wxTextCoord *row) const
  3821. {
  3822. return wxTextAreaBase::HitTest(pt, col, row);
  3823. }
  3824. static wxVersionInfo GetLibraryVersionInfo();
  3825. protected:
  3826. virtual void DoSetValue(const wxString& value, int flags);
  3827. virtual wxString DoGetValue() const { return GetText(); }
  3828. virtual wxWindow *GetEditableWindow() { return this; }
  3829. #ifndef SWIG
  3830. virtual bool DoLoadFile(const wxString& file, int fileType);
  3831. virtual bool DoSaveFile(const wxString& file, int fileType);
  3832. // Event handlers
  3833. void OnPaint(wxPaintEvent& evt);
  3834. void OnScrollWin(wxScrollWinEvent& evt);
  3835. void OnScroll(wxScrollEvent& evt);
  3836. void OnSize(wxSizeEvent& evt);
  3837. void OnMouseLeftDown(wxMouseEvent& evt);
  3838. void OnMouseMove(wxMouseEvent& evt);
  3839. void OnMouseLeftUp(wxMouseEvent& evt);
  3840. void OnMouseRightUp(wxMouseEvent& evt);
  3841. void OnMouseMiddleUp(wxMouseEvent& evt);
  3842. void OnContextMenu(wxContextMenuEvent& evt);
  3843. void OnMouseWheel(wxMouseEvent& evt);
  3844. void OnChar(wxKeyEvent& evt);
  3845. void OnKeyDown(wxKeyEvent& evt);
  3846. void OnLoseFocus(wxFocusEvent& evt);
  3847. void OnGainFocus(wxFocusEvent& evt);
  3848. void OnSysColourChanged(wxSysColourChangedEvent& evt);
  3849. void OnEraseBackground(wxEraseEvent& evt);
  3850. void OnMenu(wxCommandEvent& evt);
  3851. void OnListBox(wxCommandEvent& evt);
  3852. void OnIdle(wxIdleEvent& evt);
  3853. virtual wxSize DoGetBestSize() const;
  3854. // Turn notifications from Scintilla into events
  3855. void NotifyChange();
  3856. void NotifyParent(SCNotification* scn);
  3857. private:
  3858. DECLARE_EVENT_TABLE()
  3859. DECLARE_DYNAMIC_CLASS(wxStyledTextCtrl)
  3860. protected:
  3861. ScintillaWX* m_swx;
  3862. wxStopWatch m_stopWatch;
  3863. wxScrollBar* m_vScrollBar;
  3864. wxScrollBar* m_hScrollBar;
  3865. bool m_lastKeyDownConsumed;
  3866. friend class ScintillaWX;
  3867. friend class Platform;
  3868. #endif // !SWIG
  3869. };
  3870. //----------------------------------------------------------------------
  3871. class WXDLLIMPEXP_STC wxStyledTextEvent : public wxCommandEvent {
  3872. public:
  3873. wxStyledTextEvent(wxEventType commandType=0, int id=0);
  3874. #ifndef SWIG
  3875. wxStyledTextEvent(const wxStyledTextEvent& event);
  3876. #endif
  3877. ~wxStyledTextEvent() {}
  3878. void SetPosition(int pos) { m_position = pos; }
  3879. void SetKey(int k) { m_key = k; }
  3880. void SetModifiers(int m) { m_modifiers = m; }
  3881. void SetModificationType(int t) { m_modificationType = t; }
  3882. void SetText(const wxString& t) { m_text = t; }
  3883. void SetLength(int len) { m_length = len; }
  3884. void SetLinesAdded(int num) { m_linesAdded = num; }
  3885. void SetLine(int val) { m_line = val; }
  3886. void SetFoldLevelNow(int val) { m_foldLevelNow = val; }
  3887. void SetFoldLevelPrev(int val) { m_foldLevelPrev = val; }
  3888. void SetMargin(int val) { m_margin = val; }
  3889. void SetMessage(int val) { m_message = val; }
  3890. void SetWParam(int val) { m_wParam = val; }
  3891. void SetLParam(int val) { m_lParam = val; }
  3892. void SetListType(int val) { m_listType = val; }
  3893. void SetX(int val) { m_x = val; }
  3894. void SetY(int val) { m_y = val; }
  3895. void SetToken(int val) { m_token = val; }
  3896. void SetAnnotationLinesAdded(int val) { m_annotationLinesAdded = val; }
  3897. void SetUpdated(int val) { m_updated = val; }
  3898. #ifdef STC_USE_DND
  3899. void SetDragText(const wxString& val) { m_dragText = val; }
  3900. void SetDragFlags(int flags) { m_dragFlags = flags; }
  3901. void SetDragResult(wxDragResult val) { m_dragResult = val; }
  3902. // This method is kept mainly for backwards compatibility, use
  3903. // SetDragFlags() in the new code.
  3904. void SetDragAllowMove(bool allow)
  3905. {
  3906. if ( allow )
  3907. m_dragFlags |= wxDrag_AllowMove;
  3908. else
  3909. m_dragFlags &= ~(wxDrag_AllowMove | wxDrag_DefaultMove);
  3910. }
  3911. #endif
  3912. int GetPosition() const { return m_position; }
  3913. int GetKey() const { return m_key; }
  3914. int GetModifiers() const { return m_modifiers; }
  3915. int GetModificationType() const { return m_modificationType; }
  3916. wxString GetText() const { return m_text; }
  3917. int GetLength() const { return m_length; }
  3918. int GetLinesAdded() const { return m_linesAdded; }
  3919. int GetLine() const { return m_line; }
  3920. int GetFoldLevelNow() const { return m_foldLevelNow; }
  3921. int GetFoldLevelPrev() const { return m_foldLevelPrev; }
  3922. int GetMargin() const { return m_margin; }
  3923. int GetMessage() const { return m_message; }
  3924. int GetWParam() const { return m_wParam; }
  3925. int GetLParam() const { return m_lParam; }
  3926. int GetListType() const { return m_listType; }
  3927. int GetX() const { return m_x; }
  3928. int GetY() const { return m_y; }
  3929. int GetToken() const { return m_token; }
  3930. int GetAnnotationsLinesAdded() const { return m_annotationLinesAdded; }
  3931. int GetUpdated() const { return m_updated; }
  3932. #ifdef STC_USE_DND
  3933. wxString GetDragText() { return m_dragText; }
  3934. int GetDragFlags() { return m_dragFlags; }
  3935. wxDragResult GetDragResult() { return m_dragResult; }
  3936. bool GetDragAllowMove() { return (GetDragFlags() & wxDrag_AllowMove) != 0; }
  3937. #endif
  3938. bool GetShift() const;
  3939. bool GetControl() const;
  3940. bool GetAlt() const;
  3941. virtual wxEvent* Clone() const { return new wxStyledTextEvent(*this); }
  3942. #ifndef SWIG
  3943. private:
  3944. DECLARE_DYNAMIC_CLASS(wxStyledTextEvent)
  3945. int m_position;
  3946. int m_key;
  3947. int m_modifiers;
  3948. int m_modificationType; // wxEVT_STC_MODIFIED
  3949. wxString m_text;
  3950. int m_length;
  3951. int m_linesAdded;
  3952. int m_line;
  3953. int m_foldLevelNow;
  3954. int m_foldLevelPrev;
  3955. int m_margin; // wxEVT_STC_MARGINCLICK
  3956. int m_message; // wxEVT_STC_MACRORECORD
  3957. int m_wParam;
  3958. int m_lParam;
  3959. int m_listType;
  3960. int m_x;
  3961. int m_y;
  3962. int m_token; // wxEVT_STC__MODIFIED with SC_MOD_CONTAINER
  3963. int m_annotationLinesAdded; // wxEVT_STC_MODIFIED with SC_MOD_CHANGEANNOTATION
  3964. int m_updated; // wxEVT_STC_UPDATEUI
  3965. #if wxUSE_DRAG_AND_DROP
  3966. wxString m_dragText; // wxEVT_STC_START_DRAG, wxEVT_STC_DO_DROP
  3967. int m_dragFlags; // wxEVT_STC_START_DRAG
  3968. wxDragResult m_dragResult; // wxEVT_STC_DRAG_OVER,wxEVT_STC_DO_DROP
  3969. #endif
  3970. #endif
  3971. };
  3972. #ifndef SWIG
  3973. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHANGE, wxStyledTextEvent );
  3974. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_STYLENEEDED, wxStyledTextEvent );
  3975. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CHARADDED, wxStyledTextEvent );
  3976. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTREACHED, wxStyledTextEvent );
  3977. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_SAVEPOINTLEFT, wxStyledTextEvent );
  3978. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ROMODIFYATTEMPT, wxStyledTextEvent );
  3979. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_KEY, wxStyledTextEvent );
  3980. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DOUBLECLICK, wxStyledTextEvent );
  3981. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_UPDATEUI, wxStyledTextEvent );
  3982. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MODIFIED, wxStyledTextEvent );
  3983. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MACRORECORD, wxStyledTextEvent );
  3984. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_MARGINCLICK, wxStyledTextEvent );
  3985. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_NEEDSHOWN, wxStyledTextEvent );
  3986. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_PAINTED, wxStyledTextEvent );
  3987. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_USERLISTSELECTION, wxStyledTextEvent );
  3988. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_URIDROPPED, wxStyledTextEvent );
  3989. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLSTART, wxStyledTextEvent );
  3990. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DWELLEND, wxStyledTextEvent );
  3991. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_START_DRAG, wxStyledTextEvent );
  3992. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DRAG_OVER, wxStyledTextEvent );
  3993. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_DO_DROP, wxStyledTextEvent );
  3994. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_ZOOM, wxStyledTextEvent );
  3995. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_CLICK, wxStyledTextEvent );
  3996. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_DCLICK, wxStyledTextEvent );
  3997. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_CALLTIP_CLICK, wxStyledTextEvent );
  3998. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_SELECTION, wxStyledTextEvent );
  3999. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_CLICK, wxStyledTextEvent );
  4000. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_INDICATOR_RELEASE, wxStyledTextEvent );
  4001. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_CANCELLED, wxStyledTextEvent );
  4002. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_AUTOCOMP_CHAR_DELETED, wxStyledTextEvent );
  4003. wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_STC, wxEVT_STC_HOTSPOT_RELEASE_CLICK, wxStyledTextEvent );
  4004. #else
  4005. enum {
  4006. wxEVT_STC_CHANGE,
  4007. wxEVT_STC_STYLENEEDED,
  4008. wxEVT_STC_CHARADDED,
  4009. wxEVT_STC_SAVEPOINTREACHED,
  4010. wxEVT_STC_SAVEPOINTLEFT,
  4011. wxEVT_STC_ROMODIFYATTEMPT,
  4012. wxEVT_STC_KEY,
  4013. wxEVT_STC_DOUBLECLICK,
  4014. wxEVT_STC_UPDATEUI,
  4015. wxEVT_STC_MODIFIED,
  4016. wxEVT_STC_MACRORECORD,
  4017. wxEVT_STC_MARGINCLICK,
  4018. wxEVT_STC_NEEDSHOWN,
  4019. wxEVT_STC_PAINTED,
  4020. wxEVT_STC_USERLISTSELECTION,
  4021. wxEVT_STC_URIDROPPED,
  4022. wxEVT_STC_DWELLSTART,
  4023. wxEVT_STC_DWELLEND,
  4024. wxEVT_STC_START_DRAG,
  4025. wxEVT_STC_DRAG_OVER,
  4026. wxEVT_STC_DO_DROP,
  4027. wxEVT_STC_ZOOM,
  4028. wxEVT_STC_HOTSPOT_CLICK,
  4029. wxEVT_STC_HOTSPOT_DCLICK,
  4030. wxEVT_STC_CALLTIP_CLICK,
  4031. wxEVT_STC_AUTOCOMP_SELECTION,
  4032. wxEVT_STC_INDICATOR_CLICK,
  4033. wxEVT_STC_INDICATOR_RELEASE,
  4034. wxEVT_STC_AUTOCOMP_CANCELLED,
  4035. wxEVT_STC_AUTOCOMP_CHAR_DELETED,
  4036. wxEVT_STC_HOTSPOT_RELEASE_CLICK
  4037. };
  4038. #endif
  4039. #ifndef SWIG
  4040. typedef void (wxEvtHandler::*wxStyledTextEventFunction)(wxStyledTextEvent&);
  4041. #define wxStyledTextEventHandler( func ) \
  4042. wxEVENT_HANDLER_CAST( wxStyledTextEventFunction, func )
  4043. #define EVT_STC_CHANGE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHANGE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4044. #define EVT_STC_STYLENEEDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_STYLENEEDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4045. #define EVT_STC_CHARADDED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CHARADDED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4046. #define EVT_STC_SAVEPOINTREACHED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTREACHED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4047. #define EVT_STC_SAVEPOINTLEFT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_SAVEPOINTLEFT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4048. #define EVT_STC_ROMODIFYATTEMPT(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ROMODIFYATTEMPT, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4049. #define EVT_STC_KEY(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_KEY, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4050. #define EVT_STC_DOUBLECLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DOUBLECLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4051. #define EVT_STC_UPDATEUI(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_UPDATEUI, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4052. #define EVT_STC_MODIFIED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MODIFIED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4053. #define EVT_STC_MACRORECORD(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MACRORECORD, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4054. #define EVT_STC_MARGINCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_MARGINCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4055. #define EVT_STC_NEEDSHOWN(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_NEEDSHOWN, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4056. #define EVT_STC_PAINTED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_PAINTED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4057. #define EVT_STC_USERLISTSELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_USERLISTSELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4058. #define EVT_STC_URIDROPPED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_URIDROPPED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4059. #define EVT_STC_DWELLSTART(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLSTART, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4060. #define EVT_STC_DWELLEND(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DWELLEND, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4061. #define EVT_STC_START_DRAG(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_START_DRAG, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4062. #define EVT_STC_DRAG_OVER(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DRAG_OVER, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4063. #define EVT_STC_DO_DROP(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_DO_DROP, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4064. #define EVT_STC_ZOOM(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_ZOOM, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4065. #define EVT_STC_HOTSPOT_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4066. #define EVT_STC_HOTSPOT_DCLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_DCLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4067. #define EVT_STC_CALLTIP_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_CALLTIP_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4068. #define EVT_STC_AUTOCOMP_SELECTION(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_SELECTION, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4069. #define EVT_STC_INDICATOR_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4070. #define EVT_STC_INDICATOR_RELEASE(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_INDICATOR_RELEASE, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4071. #define EVT_STC_AUTOCOMP_CANCELLED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CANCELLED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4072. #define EVT_STC_AUTOCOMP_CHAR_DELETED(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_AUTOCOMP_CHAR_DELETED, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4073. #define EVT_STC_HOTSPOT_RELEASE_CLICK(id, fn) wxDECLARE_EVENT_TABLE_ENTRY( wxEVT_STC_HOTSPOT_RELEASE_CLICK, id, wxID_ANY, wxStyledTextEventHandler( fn ), (wxObject *) NULL ),
  4074. #endif
  4075. #endif // wxUSE_STC
  4076. #endif // _WX_STC_STC_H_