stc.h 158 KB

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