12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047 |
-
- using System;
- using System.Runtime.InteropServices;
- namespace Kbg.NppPluginNET.PluginInfrastructure
- {
-
-
-
-
-
- [StructLayout(LayoutKind.Sequential)]
- public struct ScNotificationHeader
- {
-
-
-
- public IntPtr hwndFrom;
-
-
-
- public IntPtr IdFrom;
-
-
-
- public uint Code;
- }
- [StructLayout(LayoutKind.Sequential)]
- public struct ScNotification
- {
- public ScNotificationHeader Header;
- private int position;
- public int character;
- public int Mmodifiers;
- public int ModificationType;
- public IntPtr TextPointer;
- public int Length;
- public int LinesAdded;
- public int Message;
- public IntPtr wParam;
- public IntPtr lParam;
-
-
-
- public int LineNumber;
- public int FoldLevelNow;
- public int FoldLevelPrev;
- public int Margin;
- public int ListType;
- public int X;
- public int Y;
- public int Token;
- public int AnnotationLinesAdded;
- public int Updated;
- public int ListCompletionMethod;
-
-
-
- public Position Position { get { return new Position(position); } }
-
-
-
-
- public char Character { get { return (char) character; } }
- }
- [Flags]
- public enum SciMsg : uint
- {
-
- INVALID_POSITION = 0xFFFFFFFF,
- SCI_START = 2000,
- SCI_OPTIONAL_START = 3000,
- SCI_LEXER_START = 4000,
-
- SCI_ADDTEXT = 2001,
-
- SCI_ADDSTYLEDTEXT = 2002,
-
- SCI_INSERTTEXT = 2003,
-
- SCI_CHANGEINSERTION = 2672,
-
- SCI_CLEARALL = 2004,
-
- SCI_DELETERANGE = 2645,
-
- SCI_CLEARDOCUMENTSTYLE = 2005,
-
- SCI_GETLENGTH = 2006,
-
- SCI_GETCHARAT = 2007,
-
- SCI_GETCURRENTPOS = 2008,
-
- SCI_GETANCHOR = 2009,
-
- SCI_GETSTYLEAT = 2010,
-
- SCI_REDO = 2011,
-
-
- SCI_SETUNDOCOLLECTION = 2012,
-
- SCI_SELECTALL = 2013,
-
-
- SCI_SETSAVEPOINT = 2014,
-
-
- SCI_GETSTYLEDTEXT = 2015,
-
- SCI_CANREDO = 2016,
-
- SCI_MARKERLINEFROMHANDLE = 2017,
-
- SCI_MARKERDELETEHANDLE = 2018,
-
- SCI_GETUNDOCOLLECTION = 2019,
- SCWS_INVISIBLE = 0,
- SCWS_VISIBLEALWAYS = 1,
- SCWS_VISIBLEAFTERINDENT = 2,
-
-
- SCI_GETVIEWWS = 2020,
-
- SCI_SETVIEWWS = 2021,
-
- SCI_POSITIONFROMPOINT = 2022,
-
-
- SCI_POSITIONFROMPOINTCLOSE = 2023,
-
- SCI_GOTOLINE = 2024,
-
- SCI_GOTOPOS = 2025,
-
-
- SCI_SETANCHOR = 2026,
-
-
-
- SCI_GETCURLINE = 2027,
-
- SCI_GETENDSTYLED = 2028,
- SC_EOL_CRLF = 0,
- SC_EOL_CR = 1,
- SC_EOL_LF = 2,
-
- SCI_CONVERTEOLS = 2029,
-
- SCI_GETEOLMODE = 2030,
-
- SCI_SETEOLMODE = 2031,
-
-
- SCI_STARTSTYLING = 2032,
-
-
- SCI_SETSTYLING = 2033,
-
- SCI_GETBUFFEREDDRAW = 2034,
-
-
- SCI_SETBUFFEREDDRAW = 2035,
-
- SCI_SETTABWIDTH = 2036,
-
- SCI_GETTABWIDTH = 2121,
-
- SCI_CLEARTABSTOPS = 2675,
-
- SCI_ADDTABSTOP = 2676,
-
- SCI_GETNEXTTABSTOP = 2677,
- SC_CP_UTF8 = 65001,
-
-
- SCI_SETCODEPAGE = 2037,
- SC_IME_WINDOWED = 0,
- SC_IME_INLINE = 1,
-
- SCI_GETIMEINTERACTION = 2678,
-
- SCI_SETIMEINTERACTION = 2679,
- MARKER_MAX = 31,
- SC_MARK_CIRCLE = 0,
- SC_MARK_ROUNDRECT = 1,
- SC_MARK_ARROW = 2,
- SC_MARK_SMALLRECT = 3,
- SC_MARK_SHORTARROW = 4,
- SC_MARK_EMPTY = 5,
- SC_MARK_ARROWDOWN = 6,
- SC_MARK_MINUS = 7,
- SC_MARK_PLUS = 8,
- SC_MARK_VLINE = 9,
- SC_MARK_LCORNER = 10,
- SC_MARK_TCORNER = 11,
- SC_MARK_BOXPLUS = 12,
- SC_MARK_BOXPLUSCONNECTED = 13,
- SC_MARK_BOXMINUS = 14,
- SC_MARK_BOXMINUSCONNECTED = 15,
- SC_MARK_LCORNERCURVE = 16,
- SC_MARK_TCORNERCURVE = 17,
- SC_MARK_CIRCLEPLUS = 18,
- SC_MARK_CIRCLEPLUSCONNECTED = 19,
- SC_MARK_CIRCLEMINUS = 20,
- SC_MARK_CIRCLEMINUSCONNECTED = 21,
- SC_MARK_BACKGROUND = 22,
- SC_MARK_DOTDOTDOT = 23,
- SC_MARK_ARROWS = 24,
- SC_MARK_PIXMAP = 25,
- SC_MARK_FULLRECT = 26,
- SC_MARK_LEFTRECT = 27,
- SC_MARK_AVAILABLE = 28,
- SC_MARK_UNDERLINE = 29,
- SC_MARK_RGBAIMAGE = 30,
- SC_MARK_BOOKMARK = 31,
- SC_MARK_CHARACTER = 10000,
- SC_MARKNUM_FOLDEREND = 25,
- SC_MARKNUM_FOLDEROPENMID = 26,
- SC_MARKNUM_FOLDERMIDTAIL = 27,
- SC_MARKNUM_FOLDERTAIL = 28,
- SC_MARKNUM_FOLDERSUB = 29,
- SC_MARKNUM_FOLDER = 30,
- SC_MARKNUM_FOLDEROPEN = 31,
- SC_MASK_FOLDERS = 0xFE000000,
-
- SCI_MARKERDEFINE = 2040,
-
- SCI_MARKERSETFORE = 2041,
-
- SCI_MARKERSETBACK = 2042,
-
- SCI_MARKERSETBACKSELECTED = 2292,
-
- SCI_MARKERENABLEHIGHLIGHT = 2293,
-
- SCI_MARKERADD = 2043,
-
- SCI_MARKERDELETE = 2044,
-
- SCI_MARKERDELETEALL = 2045,
-
- SCI_MARKERGET = 2046,
-
-
- SCI_MARKERNEXT = 2047,
-
- SCI_MARKERPREVIOUS = 2048,
-
- SCI_MARKERDEFINEPIXMAP = 2049,
-
- SCI_MARKERADDSET = 2466,
-
- SCI_MARKERSETALPHA = 2476,
- SC_MAX_MARGIN = 4,
- SC_MARGIN_SYMBOL = 0,
- SC_MARGIN_NUMBER = 1,
- SC_MARGIN_BACK = 2,
- SC_MARGIN_FORE = 3,
- SC_MARGIN_TEXT = 4,
- SC_MARGIN_RTEXT = 5,
-
- SCI_SETMARGINTYPEN = 2240,
-
- SCI_GETMARGINTYPEN = 2241,
-
- SCI_SETMARGINWIDTHN = 2242,
-
- SCI_GETMARGINWIDTHN = 2243,
-
- SCI_SETMARGINMASKN = 2244,
-
- SCI_GETMARGINMASKN = 2245,
-
- SCI_SETMARGINSENSITIVEN = 2246,
-
- SCI_GETMARGINSENSITIVEN = 2247,
-
- SCI_SETMARGINCURSORN = 2248,
-
- SCI_GETMARGINCURSORN = 2249,
- STYLE_DEFAULT = 32,
- STYLE_LINENUMBER = 33,
- STYLE_BRACELIGHT = 34,
- STYLE_BRACEBAD = 35,
- STYLE_CONTROLCHAR = 36,
- STYLE_INDENTGUIDE = 37,
- STYLE_CALLTIP = 38,
- STYLE_LASTPREDEFINED = 39,
- STYLE_MAX = 255,
- SC_CHARSET_ANSI = 0,
- SC_CHARSET_DEFAULT = 1,
- SC_CHARSET_BALTIC = 186,
- SC_CHARSET_CHINESEBIG5 = 136,
- SC_CHARSET_EASTEUROPE = 238,
- SC_CHARSET_GB2312 = 134,
- SC_CHARSET_GREEK = 161,
- SC_CHARSET_HANGUL = 129,
- SC_CHARSET_MAC = 77,
- SC_CHARSET_OEM = 255,
- SC_CHARSET_RUSSIAN = 204,
- SC_CHARSET_CYRILLIC = 1251,
- SC_CHARSET_SHIFTJIS = 128,
- SC_CHARSET_SYMBOL = 2,
- SC_CHARSET_TURKISH = 162,
- SC_CHARSET_JOHAB = 130,
- SC_CHARSET_HEBREW = 177,
- SC_CHARSET_ARABIC = 178,
- SC_CHARSET_VIETNAMESE = 163,
- SC_CHARSET_THAI = 222,
- SC_CHARSET_8859_15 = 1000,
-
- SCI_STYLECLEARALL = 2050,
-
- SCI_STYLESETFORE = 2051,
-
- SCI_STYLESETBACK = 2052,
-
- SCI_STYLESETBOLD = 2053,
-
- SCI_STYLESETITALIC = 2054,
-
- SCI_STYLESETSIZE = 2055,
-
- SCI_STYLESETFONT = 2056,
-
- SCI_STYLESETEOLFILLED = 2057,
-
- SCI_STYLERESETDEFAULT = 2058,
-
- SCI_STYLESETUNDERLINE = 2059,
- SC_CASE_MIXED = 0,
- SC_CASE_UPPER = 1,
- SC_CASE_LOWER = 2,
-
- SCI_STYLEGETFORE = 2481,
-
- SCI_STYLEGETBACK = 2482,
-
- SCI_STYLEGETBOLD = 2483,
-
- SCI_STYLEGETITALIC = 2484,
-
- SCI_STYLEGETSIZE = 2485,
-
-
-
- SCI_STYLEGETFONT = 2486,
-
- SCI_STYLEGETEOLFILLED = 2487,
-
- SCI_STYLEGETUNDERLINE = 2488,
-
- SCI_STYLEGETCASE = 2489,
-
- SCI_STYLEGETCHARACTERSET = 2490,
-
- SCI_STYLEGETVISIBLE = 2491,
-
-
- SCI_STYLEGETCHANGEABLE = 2492,
-
- SCI_STYLEGETHOTSPOT = 2493,
-
- SCI_STYLESETCASE = 2060,
- SC_FONT_SIZE_MULTIPLIER = 100,
-
- SCI_STYLESETSIZEFRACTIONAL = 2061,
-
- SCI_STYLEGETSIZEFRACTIONAL = 2062,
- SC_WEIGHT_NORMAL = 400,
- SC_WEIGHT_SEMIBOLD = 600,
- SC_WEIGHT_BOLD = 700,
-
- SCI_STYLESETWEIGHT = 2063,
-
- SCI_STYLEGETWEIGHT = 2064,
-
- SCI_STYLESETCHARACTERSET = 2066,
-
- SCI_STYLESETHOTSPOT = 2409,
-
- SCI_SETSELFORE = 2067,
-
- SCI_SETSELBACK = 2068,
-
- SCI_GETSELALPHA = 2477,
-
- SCI_SETSELALPHA = 2478,
-
- SCI_GETSELEOLFILLED = 2479,
-
- SCI_SETSELEOLFILLED = 2480,
-
- SCI_SETCARETFORE = 2069,
-
- SCI_ASSIGNCMDKEY = 2070,
-
- SCI_CLEARCMDKEY = 2071,
-
- SCI_CLEARALLCMDKEYS = 2072,
-
- SCI_SETSTYLINGEX = 2073,
-
- SCI_STYLESETVISIBLE = 2074,
-
- SCI_GETCARETPERIOD = 2075,
-
- SCI_SETCARETPERIOD = 2076,
-
-
- SCI_SETWORDCHARS = 2077,
-
-
- SCI_GETWORDCHARS = 2646,
-
-
- SCI_BEGINUNDOACTION = 2078,
-
- SCI_ENDUNDOACTION = 2079,
- INDIC_PLAIN = 0,
- INDIC_SQUIGGLE = 1,
- INDIC_TT = 2,
- INDIC_DIAGONAL = 3,
- INDIC_STRIKE = 4,
- INDIC_HIDDEN = 5,
- INDIC_BOX = 6,
- INDIC_ROUNDBOX = 7,
- INDIC_STRAIGHTBOX = 8,
- INDIC_DASH = 9,
- INDIC_DOTS = 10,
- INDIC_SQUIGGLELOW = 11,
- INDIC_DOTBOX = 12,
- INDIC_SQUIGGLEPIXMAP = 13,
- INDIC_COMPOSITIONTHICK = 14,
- INDIC_COMPOSITIONTHIN = 15,
- INDIC_FULLBOX = 16,
- INDIC_TEXTFORE = 17,
- INDIC_IME = 32,
- INDIC_IME_MAX = 35,
- INDIC_MAX = 35,
- INDIC_CONTAINER = 8,
- INDIC0_MASK = 0x20,
- INDIC1_MASK = 0x40,
- INDIC2_MASK = 0x80,
- INDICS_MASK = 0xE0,
-
- SCI_INDICSETSTYLE = 2080,
-
- SCI_INDICGETSTYLE = 2081,
-
- SCI_INDICSETFORE = 2082,
-
- SCI_INDICGETFORE = 2083,
-
- SCI_INDICSETUNDER = 2510,
-
- SCI_INDICGETUNDER = 2511,
-
- SCI_INDICSETHOVERSTYLE = 2680,
-
- SCI_INDICGETHOVERSTYLE = 2681,
-
- SCI_INDICSETHOVERFORE = 2682,
-
- SCI_INDICGETHOVERFORE = 2683,
- SC_INDICVALUEBIT = 0x1000000,
- SC_INDICVALUEMASK = 0xFFFFFF,
- SC_INDICFLAG_VALUEFORE = 1,
-
- SCI_INDICSETFLAGS = 2684,
-
- SCI_INDICGETFLAGS = 2685,
-
- SCI_SETWHITESPACEFORE = 2084,
-
- SCI_SETWHITESPACEBACK = 2085,
-
- SCI_SETWHITESPACESIZE = 2086,
-
- SCI_GETWHITESPACESIZE = 2087,
-
-
-
- SCI_SETSTYLEBITS = 2090,
-
- SCI_GETSTYLEBITS = 2091,
-
- SCI_SETLINESTATE = 2092,
-
- SCI_GETLINESTATE = 2093,
-
- SCI_GETMAXLINESTATE = 2094,
-
- SCI_GETCARETLINEVISIBLE = 2095,
-
- SCI_SETCARETLINEVISIBLE = 2096,
-
- SCI_GETCARETLINEBACK = 2097,
-
- SCI_SETCARETLINEBACK = 2098,
-
-
- SCI_STYLESETCHANGEABLE = 2099,
-
-
-
- SCI_AUTOCSHOW = 2100,
-
- SCI_AUTOCCANCEL = 2101,
-
- SCI_AUTOCACTIVE = 2102,
-
- SCI_AUTOCPOSSTART = 2103,
-
- SCI_AUTOCCOMPLETE = 2104,
-
- SCI_AUTOCSTOPS = 2105,
-
-
- SCI_AUTOCSETSEPARATOR = 2106,
-
- SCI_AUTOCGETSEPARATOR = 2107,
-
- SCI_AUTOCSELECT = 2108,
-
-
- SCI_AUTOCSETCANCELATSTART = 2110,
-
- SCI_AUTOCGETCANCELATSTART = 2111,
-
-
- SCI_AUTOCSETFILLUPS = 2112,
-
- SCI_AUTOCSETCHOOSESINGLE = 2113,
-
- SCI_AUTOCGETCHOOSESINGLE = 2114,
-
- SCI_AUTOCSETIGNORECASE = 2115,
-
- SCI_AUTOCGETIGNORECASE = 2116,
-
- SCI_USERLISTSHOW = 2117,
-
- SCI_AUTOCSETAUTOHIDE = 2118,
-
- SCI_AUTOCGETAUTOHIDE = 2119,
-
-
- SCI_AUTOCSETDROPRESTOFWORD = 2270,
-
-
- SCI_AUTOCGETDROPRESTOFWORD = 2271,
-
- SCI_REGISTERIMAGE = 2405,
-
- SCI_CLEARREGISTEREDIMAGES = 2408,
-
- SCI_AUTOCGETTYPESEPARATOR = 2285,
-
-
- SCI_AUTOCSETTYPESEPARATOR = 2286,
-
-
- SCI_AUTOCSETMAXWIDTH = 2208,
-
- SCI_AUTOCGETMAXWIDTH = 2209,
-
-
- SCI_AUTOCSETMAXHEIGHT = 2210,
-
- SCI_AUTOCGETMAXHEIGHT = 2211,
-
- SCI_SETINDENT = 2122,
-
- SCI_GETINDENT = 2123,
-
-
- SCI_SETUSETABS = 2124,
-
- SCI_GETUSETABS = 2125,
-
- SCI_SETLINEINDENTATION = 2126,
-
- SCI_GETLINEINDENTATION = 2127,
-
- SCI_GETLINEINDENTPOSITION = 2128,
-
- SCI_GETCOLUMN = 2129,
-
- SCI_COUNTCHARACTERS = 2633,
-
- SCI_SETHSCROLLBAR = 2130,
-
- SCI_GETHSCROLLBAR = 2131,
- SC_IV_NONE = 0,
- SC_IV_REAL = 1,
- SC_IV_LOOKFORWARD = 2,
- SC_IV_LOOKBOTH = 3,
-
- SCI_SETINDENTATIONGUIDES = 2132,
-
- SCI_GETINDENTATIONGUIDES = 2133,
-
-
- SCI_SETHIGHLIGHTGUIDE = 2134,
-
- SCI_GETHIGHLIGHTGUIDE = 2135,
-
- SCI_GETLINEENDPOSITION = 2136,
-
- SCI_GETCODEPAGE = 2137,
-
- SCI_GETCARETFORE = 2138,
-
- SCI_GETREADONLY = 2140,
-
- SCI_SETCURRENTPOS = 2141,
-
- SCI_SETSELECTIONSTART = 2142,
-
- SCI_GETSELECTIONSTART = 2143,
-
- SCI_SETSELECTIONEND = 2144,
-
- SCI_GETSELECTIONEND = 2145,
-
- SCI_SETEMPTYSELECTION = 2556,
-
- SCI_SETPRINTMAGNIFICATION = 2146,
-
- SCI_GETPRINTMAGNIFICATION = 2147,
- SC_PRINT_NORMAL = 0,
- SC_PRINT_INVERTLIGHT = 1,
- SC_PRINT_BLACKONWHITE = 2,
- SC_PRINT_COLOURONWHITE = 3,
- SC_PRINT_COLOURONWHITEDEFAULTBG = 4,
-
- SCI_SETPRINTCOLOURMODE = 2148,
-
- SCI_GETPRINTCOLOURMODE = 2149,
- SCFIND_WHOLEWORD = 0x2,
- SCFIND_MATCHCASE = 0x4,
- SCFIND_WORDSTART = 0x00100000,
- SCFIND_REGEXP = 0x00200000,
- SCFIND_POSIX = 0x00400000,
- SCFIND_CXX11REGEX = 0x00800000,
-
- SCI_FINDTEXT = 2150,
-
- SCI_FORMATRANGE = 2151,
-
- SCI_GETFIRSTVISIBLELINE = 2152,
-
-
- SCI_GETLINE = 2153,
-
- SCI_GETLINECOUNT = 2154,
-
- SCI_SETMARGINLEFT = 2155,
-
- SCI_GETMARGINLEFT = 2156,
-
- SCI_SETMARGINRIGHT = 2157,
-
- SCI_GETMARGINRIGHT = 2158,
-
- SCI_GETMODIFY = 2159,
-
- SCI_SETSEL = 2160,
-
-
-
- SCI_GETSELTEXT = 2161,
-
-
- SCI_GETTEXTRANGE = 2162,
-
- SCI_HIDESELECTION = 2163,
-
- SCI_POINTXFROMPOSITION = 2164,
-
- SCI_POINTYFROMPOSITION = 2165,
-
- SCI_LINEFROMPOSITION = 2166,
-
- SCI_POSITIONFROMLINE = 2167,
-
- SCI_LINESCROLL = 2168,
-
- SCI_SCROLLCARET = 2169,
-
-
-
- SCI_SCROLLRANGE = 2569,
-
- SCI_REPLACESEL = 2170,
-
- SCI_SETREADONLY = 2171,
-
- SCI_NULL = 2172,
-
- SCI_CANPASTE = 2173,
-
- SCI_CANUNDO = 2174,
-
- SCI_EMPTYUNDOBUFFER = 2175,
-
- SCI_UNDO = 2176,
-
- SCI_CUT = 2177,
-
- SCI_COPY = 2178,
-
- SCI_PASTE = 2179,
-
- SCI_CLEAR = 2180,
-
- SCI_SETTEXT = 2181,
-
-
-
- SCI_GETTEXT = 2182,
-
- SCI_GETTEXTLENGTH = 2183,
-
- SCI_GETDIRECTFUNCTION = 2184,
-
-
- SCI_GETDIRECTPOINTER = 2185,
-
- SCI_SETOVERTYPE = 2186,
-
- SCI_GETOVERTYPE = 2187,
-
- SCI_SETCARETWIDTH = 2188,
-
- SCI_GETCARETWIDTH = 2189,
-
-
- SCI_SETTARGETSTART = 2190,
-
- SCI_GETTARGETSTART = 2191,
-
-
- SCI_SETTARGETEND = 2192,
-
- SCI_GETTARGETEND = 2193,
-
- SCI_SETTARGETRANGE = 2686,
-
- SCI_GETTARGETTEXT = 2687,
-
-
-
- SCI_REPLACETARGET = 2194,
-
-
-
-
-
-
- SCI_REPLACETARGETRE = 2195,
-
-
-
- SCI_SEARCHINTARGET = 2197,
-
- SCI_SETSEARCHFLAGS = 2198,
-
- SCI_GETSEARCHFLAGS = 2199,
-
- SCI_CALLTIPSHOW = 2200,
-
- SCI_CALLTIPCANCEL = 2201,
-
- SCI_CALLTIPACTIVE = 2202,
-
- SCI_CALLTIPPOSSTART = 2203,
-
- SCI_CALLTIPSETPOSSTART = 2214,
-
- SCI_CALLTIPSETHLT = 2204,
-
- SCI_CALLTIPSETBACK = 2205,
-
- SCI_CALLTIPSETFORE = 2206,
-
- SCI_CALLTIPSETFOREHLT = 2207,
-
- SCI_CALLTIPUSESTYLE = 2212,
-
- SCI_CALLTIPSETPOSITION = 2213,
-
- SCI_VISIBLEFROMDOCLINE = 2220,
-
- SCI_DOCLINEFROMVISIBLE = 2221,
-
- SCI_WRAPCOUNT = 2235,
- SC_FOLDLEVELBASE = 0x400,
- SC_FOLDLEVELWHITEFLAG = 0x1000,
- SC_FOLDLEVELHEADERFLAG = 0x2000,
- SC_FOLDLEVELNUMBERMASK = 0x0FFF,
-
-
-
- SCI_SETFOLDLEVEL = 2222,
-
- SCI_GETFOLDLEVEL = 2223,
-
- SCI_GETLASTCHILD = 2224,
-
- SCI_GETFOLDPARENT = 2225,
-
- SCI_SHOWLINES = 2226,
-
- SCI_HIDELINES = 2227,
-
- SCI_GETLINEVISIBLE = 2228,
-
- SCI_GETALLLINESVISIBLE = 2236,
-
- SCI_SETFOLDEXPANDED = 2229,
-
- SCI_GETFOLDEXPANDED = 2230,
-
- SCI_TOGGLEFOLD = 2231,
- SC_FOLDACTION_CONTRACT = 0,
- SC_FOLDACTION_EXPAND = 1,
- SC_FOLDACTION_TOGGLE = 2,
-
- SCI_FOLDLINE = 2237,
-
- SCI_FOLDCHILDREN = 2238,
-
- SCI_EXPANDCHILDREN = 2239,
-
- SCI_FOLDALL = 2662,
-
- SCI_ENSUREVISIBLE = 2232,
- SC_AUTOMATICFOLD_SHOW = 0x0001,
- SC_AUTOMATICFOLD_CLICK = 0x0002,
- SC_AUTOMATICFOLD_CHANGE = 0x0004,
-
- SCI_SETAUTOMATICFOLD = 2663,
-
- SCI_GETAUTOMATICFOLD = 2664,
- SC_FOLDFLAG_LINEBEFORE_EXPANDED = 0x0002,
- SC_FOLDFLAG_LINEBEFORE_CONTRACTED = 0x0004,
- SC_FOLDFLAG_LINEAFTER_EXPANDED = 0x0008,
- SC_FOLDFLAG_LINEAFTER_CONTRACTED = 0x0010,
- SC_FOLDFLAG_LEVELNUMBERS = 0x0040,
- SC_FOLDFLAG_LINESTATE = 0x0080,
-
- SCI_SETFOLDFLAGS = 2233,
-
-
- SCI_ENSUREVISIBLEENFORCEPOLICY = 2234,
-
- SCI_SETTABINDENTS = 2260,
-
- SCI_GETTABINDENTS = 2261,
-
- SCI_SETBACKSPACEUNINDENTS = 2262,
-
- SCI_GETBACKSPACEUNINDENTS = 2263,
- SC_TIME_FOREVER = 10000000,
-
- SCI_SETMOUSEDWELLTIME = 2264,
-
- SCI_GETMOUSEDWELLTIME = 2265,
-
- SCI_WORDSTARTPOSITION = 2266,
-
- SCI_WORDENDPOSITION = 2267,
- SC_WRAP_NONE = 0,
- SC_WRAP_WORD = 1,
- SC_WRAP_CHAR = 2,
- SC_WRAP_WHITESPACE = 3,
-
- SCI_SETWRAPMODE = 2268,
-
- SCI_GETWRAPMODE = 2269,
- SC_WRAPVISUALFLAG_NONE = 0x0000,
- SC_WRAPVISUALFLAG_END = 0x0001,
- SC_WRAPVISUALFLAG_START = 0x0002,
- SC_WRAPVISUALFLAG_MARGIN = 0x0004,
-
- SCI_SETWRAPVISUALFLAGS = 2460,
-
- SCI_GETWRAPVISUALFLAGS = 2461,
- SC_WRAPVISUALFLAGLOC_DEFAULT = 0x0000,
- SC_WRAPVISUALFLAGLOC_END_BY_TEXT = 0x0001,
- SC_WRAPVISUALFLAGLOC_START_BY_TEXT = 0x0002,
-
- SCI_SETWRAPVISUALFLAGSLOCATION = 2462,
-
- SCI_GETWRAPVISUALFLAGSLOCATION = 2463,
-
- SCI_SETWRAPSTARTINDENT = 2464,
-
- SCI_GETWRAPSTARTINDENT = 2465,
- SC_WRAPINDENT_FIXED = 0,
- SC_WRAPINDENT_SAME = 1,
- SC_WRAPINDENT_INDENT = 2,
-
- SCI_SETWRAPINDENTMODE = 2472,
-
- SCI_GETWRAPINDENTMODE = 2473,
- SC_CACHE_NONE = 0,
- SC_CACHE_CARET = 1,
- SC_CACHE_PAGE = 2,
- SC_CACHE_DOCUMENT = 3,
-
- SCI_SETLAYOUTCACHE = 2272,
-
- SCI_GETLAYOUTCACHE = 2273,
-
- SCI_SETSCROLLWIDTH = 2274,
-
- SCI_GETSCROLLWIDTH = 2275,
-
- SCI_SETSCROLLWIDTHTRACKING = 2516,
-
- SCI_GETSCROLLWIDTHTRACKING = 2517,
-
-
-
- SCI_TEXTWIDTH = 2276,
-
-
-
- SCI_SETENDATLASTLINE = 2277,
-
-
- SCI_GETENDATLASTLINE = 2278,
-
- SCI_TEXTHEIGHT = 2279,
-
- SCI_SETVSCROLLBAR = 2280,
-
- SCI_GETVSCROLLBAR = 2281,
-
- SCI_APPENDTEXT = 2282,
-
- SCI_GETTWOPHASEDRAW = 2283,
-
-
- SCI_SETTWOPHASEDRAW = 2284,
- SC_PHASES_ONE = 0,
- SC_PHASES_TWO = 1,
- SC_PHASES_MULTIPLE = 2,
-
- SCI_GETPHASESDRAW = 2673,
-
-
-
-
- SCI_SETPHASESDRAW = 2674,
- SC_EFF_QUALITY_MASK = 0xF,
- SC_EFF_QUALITY_DEFAULT = 0,
- SC_EFF_QUALITY_NON_ANTIALIASED = 1,
- SC_EFF_QUALITY_ANTIALIASED = 2,
- SC_EFF_QUALITY_LCD_OPTIMIZED = 3,
-
- SCI_SETFONTQUALITY = 2611,
-
- SCI_GETFONTQUALITY = 2612,
-
- SCI_SETFIRSTVISIBLELINE = 2613,
- SC_MULTIPASTE_ONCE = 0,
- SC_MULTIPASTE_EACH = 1,
-
- SCI_SETMULTIPASTE = 2614,
-
- SCI_GETMULTIPASTE = 2615,
-
-
- SCI_GETTAG = 2616,
-
- SCI_TARGETFROMSELECTION = 2287,
-
- SCI_LINESJOIN = 2288,
-
-
- SCI_LINESSPLIT = 2289,
-
- SCI_SETFOLDMARGINCOLOUR = 2290,
-
- SCI_SETFOLDMARGINHICOLOUR = 2291,
-
- SCI_LINEDOWN = 2300,
-
- SCI_LINEDOWNEXTEND = 2301,
-
- SCI_LINEUP = 2302,
-
- SCI_LINEUPEXTEND = 2303,
-
- SCI_CHARLEFT = 2304,
-
- SCI_CHARLEFTEXTEND = 2305,
-
- SCI_CHARRIGHT = 2306,
-
- SCI_CHARRIGHTEXTEND = 2307,
-
- SCI_WORDLEFT = 2308,
-
- SCI_WORDLEFTEXTEND = 2309,
-
- SCI_WORDRIGHT = 2310,
-
- SCI_WORDRIGHTEXTEND = 2311,
-
- SCI_HOME = 2312,
-
- SCI_HOMEEXTEND = 2313,
-
- SCI_LINEEND = 2314,
-
- SCI_LINEENDEXTEND = 2315,
-
- SCI_DOCUMENTSTART = 2316,
-
- SCI_DOCUMENTSTARTEXTEND = 2317,
-
- SCI_DOCUMENTEND = 2318,
-
- SCI_DOCUMENTENDEXTEND = 2319,
-
- SCI_PAGEUP = 2320,
-
- SCI_PAGEUPEXTEND = 2321,
-
- SCI_PAGEDOWN = 2322,
-
- SCI_PAGEDOWNEXTEND = 2323,
-
- SCI_EDITTOGGLEOVERTYPE = 2324,
-
- SCI_CANCEL = 2325,
-
- SCI_DELETEBACK = 2326,
-
-
- SCI_TAB = 2327,
-
- SCI_BACKTAB = 2328,
-
- SCI_NEWLINE = 2329,
-
- SCI_FORMFEED = 2330,
-
-
- SCI_VCHOME = 2331,
-
- SCI_VCHOMEEXTEND = 2332,
-
- SCI_ZOOMIN = 2333,
-
- SCI_ZOOMOUT = 2334,
-
- SCI_DELWORDLEFT = 2335,
-
- SCI_DELWORDRIGHT = 2336,
-
- SCI_DELWORDRIGHTEND = 2518,
-
- SCI_LINECUT = 2337,
-
- SCI_LINEDELETE = 2338,
-
- SCI_LINETRANSPOSE = 2339,
-
- SCI_LINEDUPLICATE = 2404,
-
- SCI_LOWERCASE = 2340,
-
- SCI_UPPERCASE = 2341,
-
- SCI_LINESCROLLDOWN = 2342,
-
- SCI_LINESCROLLUP = 2343,
-
-
- SCI_DELETEBACKNOTLINE = 2344,
-
- SCI_HOMEDISPLAY = 2345,
-
-
- SCI_HOMEDISPLAYEXTEND = 2346,
-
- SCI_LINEENDDISPLAY = 2347,
-
-
- SCI_LINEENDDISPLAYEXTEND = 2348,
-
-
-
-
-
- SCI_HOMEWRAP = 2349,
-
-
-
-
-
- SCI_HOMEWRAPEXTEND = 2450,
-
-
-
-
-
- SCI_LINEENDWRAP = 2451,
-
-
-
-
-
- SCI_LINEENDWRAPEXTEND = 2452,
-
-
-
-
-
- SCI_VCHOMEWRAP = 2453,
-
-
-
-
-
- SCI_VCHOMEWRAPEXTEND = 2454,
-
- SCI_LINECOPY = 2455,
-
- SCI_MOVECARETINSIDEVIEW = 2401,
-
- SCI_LINELENGTH = 2350,
-
- SCI_BRACEHIGHLIGHT = 2351,
-
- SCI_BRACEHIGHLIGHTINDICATOR = 2498,
-
- SCI_BRACEBADLIGHT = 2352,
-
- SCI_BRACEBADLIGHTINDICATOR = 2499,
-
- SCI_BRACEMATCH = 2353,
-
- SCI_GETVIEWEOL = 2355,
-
- SCI_SETVIEWEOL = 2356,
-
- SCI_GETDOCPOINTER = 2357,
-
- SCI_SETDOCPOINTER = 2358,
-
- SCI_SETMODEVENTMASK = 2359,
- EDGE_NONE = 0,
- EDGE_LINE = 1,
- EDGE_BACKGROUND = 2,
-
- SCI_GETEDGECOLUMN = 2360,
-
-
- SCI_SETEDGECOLUMN = 2361,
-
- SCI_GETEDGEMODE = 2362,
-
-
- SCI_SETEDGEMODE = 2363,
-
- SCI_GETEDGECOLOUR = 2364,
-
- SCI_SETEDGECOLOUR = 2365,
-
- SCI_SEARCHANCHOR = 2366,
-
-
- SCI_SEARCHNEXT = 2367,
-
-
- SCI_SEARCHPREV = 2368,
-
- SCI_LINESONSCREEN = 2370,
-
-
- SCI_USEPOPUP = 2371,
-
- SCI_SELECTIONISRECTANGLE = 2372,
-
-
- SCI_SETZOOM = 2373,
-
- SCI_GETZOOM = 2374,
-
-
- SCI_CREATEDOCUMENT = 2375,
-
- SCI_ADDREFDOCUMENT = 2376,
-
- SCI_RELEASEDOCUMENT = 2377,
-
- SCI_GETMODEVENTMASK = 2378,
-
- SCI_SETFOCUS = 2380,
-
- SCI_GETFOCUS = 2381,
- SC_STATUS_OK = 0,
- SC_STATUS_FAILURE = 1,
- SC_STATUS_BADALLOC = 2,
- SC_STATUS_WARN_START = 1000,
- SC_STATUS_WARN_REGEX = 1001,
-
- SCI_SETSTATUS = 2382,
-
- SCI_GETSTATUS = 2383,
-
- SCI_SETMOUSEDOWNCAPTURES = 2384,
-
- SCI_GETMOUSEDOWNCAPTURES = 2385,
- SC_CURSORNORMAL = 0xFFFFFFFF,
- SC_CURSORARROW = 2,
- SC_CURSORWAIT = 4,
- SC_CURSORREVERSEARROW = 7,
-
- SCI_SETCURSOR = 2386,
-
- SCI_GETCURSOR = 2387,
-
-
- SCI_RELEASEALLEXTENDEDSTYLES = 2552,
-
- SCI_ALLOCATEEXTENDEDSTYLES = 2553,
- UNDO_MAY_COALESCE = 1,
-
- SCI_ADDUNDOACTION = 2560,
-
- SCI_CHARPOSITIONFROMPOINT = 2561,
-
-
- SCI_CHARPOSITIONFROMPOINTCLOSE = 2562,
-
- SCI_SETMOUSESELECTIONRECTANGULARSWITCH = 2668,
-
- SCI_GETMOUSESELECTIONRECTANGULARSWITCH = 2669,
-
- SCI_SETMULTIPLESELECTION = 2563,
-
- SCI_GETMULTIPLESELECTION = 2564,
-
- SCI_SETADDITIONALSELECTIONTYPING = 2565,
-
- SCI_GETADDITIONALSELECTIONTYPING = 2566,
-
- SCI_SETADDITIONALCARETSBLINK = 2567,
-
- SCI_GETADDITIONALCARETSBLINK = 2568,
-
- SCI_SETADDITIONALCARETSVISIBLE = 2608,
-
- SCI_GETADDITIONALCARETSVISIBLE = 2609,
-
- SCI_GETSELECTIONS = 2570,
-
- SCI_GETSELECTIONEMPTY = 2650,
-
- SCI_CLEARSELECTIONS = 2571,
-
- SCI_SETSELECTION = 2572,
-
- SCI_ADDSELECTION = 2573,
-
- SCI_DROPSELECTIONN = 2671,
-
- SCI_SETMAINSELECTION = 2574,
-
- SCI_GETMAINSELECTION = 2575,
-
- SCI_SETSELECTIONNCARET = 2576,
-
- SCI_GETSELECTIONNCARET = 2577,
-
- SCI_SETSELECTIONNANCHOR = 2578,
-
- SCI_GETSELECTIONNANCHOR = 2579,
-
- SCI_SETSELECTIONNCARETVIRTUALSPACE = 2580,
-
- SCI_GETSELECTIONNCARETVIRTUALSPACE = 2581,
-
- SCI_SETSELECTIONNANCHORVIRTUALSPACE = 2582,
-
- SCI_GETSELECTIONNANCHORVIRTUALSPACE = 2583,
-
- SCI_SETSELECTIONNSTART = 2584,
-
- SCI_GETSELECTIONNSTART = 2585,
-
- SCI_SETSELECTIONNEND = 2586,
-
- SCI_GETSELECTIONNEND = 2587,
-
- SCI_SETRECTANGULARSELECTIONCARET = 2588,
-
- SCI_GETRECTANGULARSELECTIONCARET = 2589,
-
- SCI_SETRECTANGULARSELECTIONANCHOR = 2590,
-
- SCI_GETRECTANGULARSELECTIONANCHOR = 2591,
-
- SCI_SETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2592,
-
- SCI_GETRECTANGULARSELECTIONCARETVIRTUALSPACE = 2593,
-
- SCI_SETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2594,
-
- SCI_GETRECTANGULARSELECTIONANCHORVIRTUALSPACE = 2595,
- SCVS_NONE = 0,
- SCVS_RECTANGULARSELECTION = 1,
- SCVS_USERACCESSIBLE = 2,
-
- SCI_SETVIRTUALSPACEOPTIONS = 2596,
-
- SCI_GETVIRTUALSPACEOPTIONS = 2597,
-
-
-
-
- SCI_SETRECTANGULARSELECTIONMODIFIER = 2598,
-
- SCI_GETRECTANGULARSELECTIONMODIFIER = 2599,
-
-
- SCI_SETADDITIONALSELFORE = 2600,
-
-
- SCI_SETADDITIONALSELBACK = 2601,
-
- SCI_SETADDITIONALSELALPHA = 2602,
-
- SCI_GETADDITIONALSELALPHA = 2603,
-
- SCI_SETADDITIONALCARETFORE = 2604,
-
- SCI_GETADDITIONALCARETFORE = 2605,
-
- SCI_ROTATESELECTION = 2606,
-
- SCI_SWAPMAINANCHORCARET = 2607,
-
-
- SCI_CHANGELEXERSTATE = 2617,
-
-
- SCI_CONTRACTEDFOLDNEXT = 2618,
-
- SCI_VERTICALCENTRECARET = 2619,
-
- SCI_MOVESELECTEDLINESUP = 2620,
-
- SCI_MOVESELECTEDLINESDOWN = 2621,
-
- SCI_SETIDENTIFIER = 2622,
-
- SCI_GETIDENTIFIER = 2623,
-
- SCI_RGBAIMAGESETWIDTH = 2624,
-
- SCI_RGBAIMAGESETHEIGHT = 2625,
-
- SCI_RGBAIMAGESETSCALE = 2651,
-
-
- SCI_MARKERDEFINERGBAIMAGE = 2626,
-
-
- SCI_REGISTERRGBAIMAGE = 2627,
-
- SCI_SCROLLTOSTART = 2628,
-
- SCI_SCROLLTOEND = 2629,
- SC_TECHNOLOGY_DEFAULT = 0,
- SC_TECHNOLOGY_DIRECTWRITE = 1,
- SC_TECHNOLOGY_DIRECTWRITERETAIN = 2,
- SC_TECHNOLOGY_DIRECTWRITEDC = 3,
-
- SCI_SETTECHNOLOGY = 2630,
-
- SCI_GETTECHNOLOGY = 2631,
-
- SCI_CREATELOADER = 2632,
-
- SCI_FINDINDICATORSHOW = 2640,
-
- SCI_FINDINDICATORFLASH = 2641,
-
- SCI_FINDINDICATORHIDE = 2642,
-
-
- SCI_VCHOMEDISPLAY = 2652,
-
- SCI_VCHOMEDISPLAYEXTEND = 2653,
-
- SCI_GETCARETLINEVISIBLEALWAYS = 2654,
-
- SCI_SETCARETLINEVISIBLEALWAYS = 2655,
- SC_LINE_END_TYPE_DEFAULT = 0,
- SC_LINE_END_TYPE_UNICODE = 1,
-
- SCI_SETLINEENDTYPESALLOWED = 2656,
-
- SCI_GETLINEENDTYPESALLOWED = 2657,
-
- SCI_GETLINEENDTYPESACTIVE = 2658,
-
- SCI_SETREPRESENTATION = 2665,
-
-
- SCI_GETREPRESENTATION = 2666,
-
- SCI_CLEARREPRESENTATION = 2667,
-
- SCI_STARTRECORD = 3001,
-
- SCI_STOPRECORD = 3002,
-
- SCI_SETLEXER = 4001,
-
- SCI_GETLEXER = 4002,
-
- SCI_COLOURISE = 4003,
-
- SCI_SETPROPERTY = 4004,
- KEYWORDSET_MAX = 8,
-
- SCI_SETKEYWORDS = 4005,
-
- SCI_SETLEXERLANGUAGE = 4006,
-
- SCI_LOADLEXERLIBRARY = 4007,
-
-
- SCI_GETPROPERTY = 4008,
-
-
-
- SCI_GETPROPERTYEXPANDED = 4009,
-
-
- SCI_GETPROPERTYINT = 4010,
-
- SCI_GETSTYLEBITSNEEDED = 4011,
-
-
-
- SCI_GETLEXERLANGUAGE = 4012,
-
- SCI_PRIVATELEXERCALL = 4013,
-
-
- SCI_PROPERTYNAMES = 4014,
- SC_TYPE_BOOLEAN = 0,
- SC_TYPE_INTEGER = 1,
- SC_TYPE_STRING = 2,
-
- SCI_PROPERTYTYPE = 4015,
-
-
- SCI_DESCRIBEPROPERTY = 4016,
-
-
- SCI_DESCRIBEKEYWORDSETS = 4017,
-
-
- SCI_GETLINEENDTYPESSUPPORTED = 4018,
-
- SCI_ALLOCATESUBSTYLES = 4020,
-
- SCI_GETSUBSTYLESSTART = 4021,
-
- SCI_GETSUBSTYLESLENGTH = 4022,
-
- SCI_GETSTYLEFROMSUBSTYLE = 4027,
-
- SCI_GETPRIMARYSTYLEFROMSTYLE = 4028,
-
- SCI_FREESUBSTYLES = 4023,
-
- SCI_SETIDENTIFIERS = 4024,
-
-
- SCI_DISTANCETOSECONDARYSTYLES = 4025,
-
-
- SCI_GETSUBSTYLEBASES = 4026,
- SC_MOD_INSERTTEXT = 0x1,
- SC_MOD_DELETETEXT = 0x2,
- SC_MOD_CHANGESTYLE = 0x4,
- SC_MOD_CHANGEFOLD = 0x8,
- SC_PERFORMED_USER = 0x10,
- SC_PERFORMED_UNDO = 0x20,
- SC_PERFORMED_REDO = 0x40,
- SC_MULTISTEPUNDOREDO = 0x80,
- SC_LASTSTEPINUNDOREDO = 0x100,
- SC_MOD_CHANGEMARKER = 0x200,
- SC_MOD_BEFOREINSERT = 0x400,
- SC_MOD_BEFOREDELETE = 0x800,
- SC_MULTILINEUNDOREDO = 0x1000,
- SC_STARTACTION = 0x2000,
- SC_MOD_CHANGEINDICATOR = 0x4000,
- SC_MOD_CHANGELINESTATE = 0x8000,
- SC_MOD_CHANGEMARGIN = 0x10000,
- SC_MOD_CHANGEANNOTATION = 0x20000,
- SC_MOD_CONTAINER = 0x40000,
- SC_MOD_LEXERSTATE = 0x80000,
- SC_MOD_INSERTCHECK = 0x100000,
- SC_MOD_CHANGETABSTOPS = 0x200000,
- SC_MODEVENTMASKALL = 0x3FFFFF,
- SC_UPDATE_CONTENT = 0x1,
- SC_UPDATE_SELECTION = 0x2,
- SC_UPDATE_V_SCROLL = 0x4,
- SC_UPDATE_H_SCROLL = 0x8,
- SCEN_CHANGE = 768,
- SCEN_SETFOCUS = 512,
- SCEN_KILLFOCUS = 256,
- SCK_DOWN = 300,
- SCK_UP = 301,
- SCK_LEFT = 302,
- SCK_RIGHT = 303,
- SCK_HOME = 304,
- SCK_END = 305,
- SCK_PRIOR = 306,
- SCK_NEXT = 307,
- SCK_DELETE = 308,
- SCK_INSERT = 309,
- SCK_ESCAPE = 7,
- SCK_BACK = 8,
- SCK_TAB = 9,
- SCK_RETURN = 13,
- SCK_ADD = 310,
- SCK_SUBTRACT = 311,
- SCK_DIVIDE = 312,
- SCK_WIN = 313,
- SCK_RWIN = 314,
- SCK_MENU = 315,
- SCMOD_NORM = 0,
- SCMOD_SHIFT = 1,
- SCMOD_CTRL = 2,
- SCMOD_ALT = 4,
- SCMOD_SUPER = 8,
- SCMOD_META = 16,
-
- SCN_STYLENEEDED = 2000,
-
- SCN_CHARADDED = 2001,
-
- SCN_SAVEPOINTREACHED = 2002,
-
- SCN_SAVEPOINTLEFT = 2003,
-
- SCN_MODIFYATTEMPTRO = 2004,
-
- SCN_KEY = 2005,
-
- SCN_DOUBLECLICK = 2006,
-
- SCN_UPDATEUI = 2007,
-
- SCN_MODIFIED = 2008,
-
- SCN_MACRORECORD = 2009,
-
- SCN_MARGINCLICK = 2010,
-
- SCN_NEEDSHOWN = 2011,
-
- SCN_PAINTED = 2013,
-
- SCN_USERLISTSELECTION = 2014,
-
- SCN_URIDROPPED = 2015,
-
- SCN_DWELLSTART = 2016,
-
- SCN_DWELLEND = 2017,
-
- SCN_ZOOM = 2018,
-
- SCN_HOTSPOTCLICK = 2019,
-
- SCN_HOTSPOTDOUBLECLICK = 2020,
-
- SCN_CALLTIPCLICK = 2021,
-
- SCN_AUTOCSELECTION = 2022,
-
- SCN_INDICATORCLICK = 2023,
-
- SCN_INDICATORRELEASE = 2024,
-
- SCN_AUTOCCANCELLED = 2025,
-
- SCN_AUTOCCHARDELETED = 2026,
-
- SCN_HOTSPOTRELEASECLICK = 2027,
-
- SCN_FOCUSIN = 2028,
-
- SCN_FOCUSOUT = 2029,
- SC_CP_DBCS = 1,
-
-
- SCI_GETUSEPALETTE = 2139,
-
-
- SCI_SETUSEPALETTE = 2039,
-
-
- SCI_SETKEYSUNICODE = 2521,
-
- SCI_GETKEYSUNICODE = 2522,
-
- SC_SEARCHRESULT_LINEBUFFERMAXLENGTH = 1024
- }
- public class TextToFind : IDisposable
- {
- Sci_TextToFind _sciTextToFind;
- IntPtr _ptrSciTextToFind;
- bool _disposed = false;
-
-
-
-
-
- public TextToFind(CharacterRange chrRange, string searchText)
- {
- _sciTextToFind.chrg = chrRange;
- _sciTextToFind.lpstrText = Marshal.StringToHGlobalAnsi(searchText);
- }
-
-
-
-
-
-
- public TextToFind(int cpmin, int cpmax, string searchText)
- {
- _sciTextToFind.chrg.cpMin = cpmin;
- _sciTextToFind.chrg.cpMax = cpmax;
- _sciTextToFind.lpstrText = Marshal.StringToHGlobalAnsi(searchText);
- }
- [StructLayout(LayoutKind.Sequential)]
- struct Sci_TextToFind
- {
- public CharacterRange chrg;
- public IntPtr lpstrText;
- public CharacterRange chrgText;
- }
- public IntPtr NativePointer { get { _initNativeStruct(); return _ptrSciTextToFind; } }
- public string lpstrText { set { _freeNativeString(); _sciTextToFind.lpstrText = Marshal.StringToHGlobalAnsi(value); } }
- public CharacterRange chrg { get { _readNativeStruct(); return _sciTextToFind.chrg; } set { _sciTextToFind.chrg = value; _initNativeStruct(); } }
- public CharacterRange chrgText { get { _readNativeStruct(); return _sciTextToFind.chrgText; } }
- void _initNativeStruct()
- {
- if (_ptrSciTextToFind == IntPtr.Zero)
- _ptrSciTextToFind = Marshal.AllocHGlobal(Marshal.SizeOf(_sciTextToFind));
- Marshal.StructureToPtr(_sciTextToFind, _ptrSciTextToFind, false);
- }
- void _readNativeStruct()
- {
- if (_ptrSciTextToFind != IntPtr.Zero)
- _sciTextToFind = (Sci_TextToFind)Marshal.PtrToStructure(_ptrSciTextToFind, typeof(Sci_TextToFind));
- }
- void _freeNativeString()
- {
- if (_sciTextToFind.lpstrText != IntPtr.Zero) Marshal.FreeHGlobal(_sciTextToFind.lpstrText);
- }
- public void Dispose()
- {
- if (!_disposed)
- {
- _freeNativeString();
- if (_ptrSciTextToFind != IntPtr.Zero) Marshal.FreeHGlobal(_ptrSciTextToFind);
- _disposed = true;
- }
- }
- ~TextToFind()
- {
- Dispose();
- }
- }
- }
|