classes.xml 288 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <package name="fcl">
  4. <module name="classes">
  5. <short>Basic classes for FCL </short>
  6. <descr>
  7. <p>This documentation describes the FPC <file>classes</file> unit.
  8. The <file>Classes</file> unit contains basic classes for the Free Component
  9. Library (FCL):
  10. </p>
  11. <ul>
  12. <li> a <link id="TList"/> class for maintaining lists of pointers, </li>
  13. <li> <link id='TStringList'/> for lists of strings, </li>
  14. <li> <link id='TCollection'/> to manage collections of objects </li>
  15. <li> <link id="TStream"/> classes to support streaming.</li>
  16. </ul>
  17. <p>
  18. Furthermore it introduces methods for object persistence, and classes
  19. that understand an owner-owned relationship, with automatic memory
  20. management.
  21. </p>
  22. </descr>
  23. <element name="TRTLCriticalSection">
  24. <short>A class for managing multiple threads</short>
  25. <descr>This class is not yet implemented.</descr>
  26. </element>
  27. <element name="HRSRC">
  28. <short>Type to manage resources</short>
  29. <descr>This type is provided for Delphi compatibilty, it is used for resource
  30. streams.
  31. </descr>
  32. </element>
  33. <element name="PStringItem">
  34. <short>
  35. Pointer to a <link id="TStringItem"/> record.
  36. </short>
  37. </element>
  38. <element name="TStringItem">
  39. <short>
  40. The <var>TStringItem</var> is used to store the string and object items in a
  41. <link id="TStringList"/> string list instance. It should never be used
  42. directly.
  43. </short>
  44. <seealso>
  45. <link id="TStringList"/>
  46. </seealso>
  47. </element>
  48. <element name="TStringItem.FString">
  49. <short>
  50. Contains the string.
  51. </short>
  52. </element>
  53. <element name="TStringItem.FObject">
  54. <short>
  55. Contains the object, if any.
  56. </short>
  57. </element>
  58. <element name="THandle">
  59. <short>Type to manage streams.</short>
  60. <descr>This type is used as the handle for <link
  61. id='THandleStream'>THandleStream</link> stream descendents</descr>
  62. </element>
  63. <element name="TComponentName">
  64. <short>Special type for component names.</short>
  65. <descr>Names of components are of type <var>TComponentName</var>. By
  66. specifying a different type, the Object inspector can handle this property
  67. differently than a standard string property.
  68. </descr>
  69. </element>
  70. <element name="IUnknown">
  71. <short><var>IUnknown</var> Interface</short>
  72. <descr>IUknown is not yet implemented since interfaces are not yet supported
  73. by FPC.
  74. </descr>
  75. </element>
  76. <element name="TGUID">
  77. <short>Special type for GUID's.</short>
  78. <descr>FPC doesn't support GUID yet.
  79. </descr>
  80. </element>
  81. <element name="HMODULE">
  82. <short>Special type for handling modules.</short>
  83. <descr>
  84. FPC doesn't support modules yet, so this is a dummy type.
  85. </descr>
  86. </element>
  87. <element name="TPoint">
  88. <short>Special type to handle a fake <link id='TComponent'/>
  89. position</short>
  90. <descr>
  91. <p>This record describes a coordinate. It is used to handle the <link
  92. id='TComponent.Top'>Top</link> and <link id='TComponent.Left'>Left</link>
  93. properties of <link id='TComponent'/>.
  94. </p>
  95. <p>
  96. <var>X</var> represents the X-Coordinate of the point described by the record.
  97. <var>Y</var> represents the Y-Coordinate of the point described by the record.
  98. </p>
  99. </descr>
  100. </element>
  101. <element name="TSmallPoint">
  102. <short>Type to describe point in a small plane.</short>
  103. <descr>Same as <link id='TPoint'/>, only the X and Y ranges are limited to
  104. 2-byte integers instead of 4-byte integers.
  105. </descr>
  106. </element>
  107. <element name="TRect">
  108. <short>Descibes a rectangle</short>
  109. <descr>
  110. <var>TRect</var> describes a rectangle in space with its upper-left (in
  111. (<var>Top</var>,<var>Left></var>)) and lower-right (in (<var>Bottom</var>
  112. ,<var>Right</var>)) corners.
  113. </descr>
  114. </element>
  115. <element name="MaxListSize">
  116. <short>
  117. Maximum number of elemens in list.
  118. </short>
  119. <descr>
  120. This constant sets the maximum number of elements in a <link id='TList'/>.
  121. </descr>
  122. </element>
  123. <element name="scShift">
  124. <short>
  125. Indicates Shift key in a keyboard shortcut.
  126. </short>
  127. </element>
  128. <element name="scCtrl">
  129. <short>
  130. indicates CTRL key in a keyboard shortcut.
  131. </short>
  132. </element>
  133. <element name="scAlt">
  134. <short>
  135. Indicates ALT key in a keyboard shortcut.
  136. </short>
  137. </element>
  138. <element name="scNone">
  139. <short>
  140. Indicates no special key is presed in a keyboard shortcut.
  141. </short>
  142. </element>
  143. <element name="soFromBeginning">
  144. <short>
  145. <link id='TStream.Seek'>Seek</link> starts relative to the stream origin.
  146. </short>
  147. </element>
  148. <element name="soFromCurrent">
  149. <short>
  150. <link id='TStream.Seek'>Seek</link> starts relative to the current position in
  151. the stream.
  152. </short>
  153. </element>
  154. <element name="soFromEnd">
  155. <short>
  156. <link id='TStream.Seek'>Seek</link> starts relative to the stream end.
  157. </short>
  158. </element>
  159. <element name="fmCreate">
  160. <short>
  161. <link id='TFileStream.Create'/> creates a new file if needed.
  162. </short>
  163. </element>
  164. <element name="fmOpenRead">
  165. <short>
  166. <link id='TFileStream.Create'/> opens a file with read-only access.
  167. </short>
  168. </element>
  169. <element name="fmOpenWrite">
  170. <short>
  171. <link id='TFileStream.Create'/> opens a file with write-only access.
  172. </short>
  173. </element>
  174. <element name="fmOpenReadWrite">
  175. <short>
  176. <link id='TFileStream.Create'/> opens a file with read-write access.
  177. </short>
  178. </element>
  179. <element name="toEof">
  180. <short>
  181. Token returned by <link id='TParser.Token'/>, meaning the end of the input stream was reached.
  182. </short>
  183. </element>
  184. <element name="toEof">
  185. <short>
  186. Value returned by <link id='TParser.Token'/> when the end of the input stream was reached.
  187. </short>
  188. </element>
  189. <element name="toSymbol">
  190. <short>
  191. Value returned by <link id='TParser.Token'/> when a symbol was found in the input stream.
  192. </short>
  193. </element>
  194. <element name="toString">
  195. <short>
  196. Value returned by <link id='TParser.Token'/> when a string was found in the
  197. input stream.
  198. </short>
  199. </element>
  200. <element name="toInteger">
  201. <short>
  202. Value returned by <link id='TParser.Token'/> when an integer was found in the
  203. input stream.
  204. </short>
  205. </element>
  206. <element name="toFloat">
  207. <short>
  208. Value returned by <link id='TParser.Token'/> when a floating point value was found in the
  209. input stream.
  210. </short>
  211. </element>
  212. <element name="FilerSignature">
  213. <short>
  214. Constant that is found at the start of a binary stream containing a
  215. streamed component.
  216. </short>
  217. </element>
  218. <element name="TAlignment">
  219. <short>Type to specify text alignment in controls that display text.</short>
  220. <descr>
  221. <p>
  222. The <var>TAlignment</var> type is used to specify the alignment of
  223. the text in controls that display a text.
  224. </p>
  225. </descr>
  226. </element>
  227. <element name="TAlignment.taLeftJustify">
  228. <short>Text is displayed aligned to the left
  229. </short>
  230. </element>
  231. <element name="TAlignment.taCenter">
  232. <short>Text is displayed centered.
  233. </short>
  234. </element>
  235. <element name="TAlignment.taRightJustify">
  236. <short>Text is displayed aligned to the right.
  237. </short>
  238. </element>
  239. <element name="TShiftState">
  240. <short>
  241. Indicates what special keys were pressed in combination with a normal key
  242. </short>
  243. <descr>
  244. <p>
  245. This type is used when describing a shortcut key or when describing what
  246. special keys are pressed on a keyboard when a key event is generated.
  247. </p>
  248. <p>
  249. The set contains the special keys that can be used in combination with a
  250. 'normal' key.
  251. </p>
  252. </descr>
  253. </element>
  254. <element name="TShiftState.ssShift">
  255. <short>Either left or right shift key</short>
  256. </element>
  257. <element name="TShiftState.ssAlt">
  258. <short>Either left or right ALT key</short>
  259. </element>
  260. <element name="TShiftState.ssCTRL">
  261. <short>Either left or right CTRL key</short>
  262. </element>
  263. <element name="TShiftState.ssLeft">
  264. <short>Either left or right shift key</short>
  265. </element>
  266. <element name="TShiftState.ssRight">
  267. <short></short>
  268. </element>
  269. <element name="TShiftState.ssMiddle">
  270. <short></short>
  271. </element>
  272. <element name="TShiftState.ssDouble">
  273. <short></short>
  274. </element>
  275. <element name="TShiftState.ssMeta">
  276. <short>The META key</short>
  277. </element>
  278. <element name="TShiftState.ssSuper">
  279. <short></short>
  280. </element>
  281. <element name="TShiftState.ssHyper">
  282. <short></short>
  283. </element>
  284. <element name="TShiftState.ssAltGr">
  285. <short>The AltGr (right Alt) key</short>
  286. </element>
  287. <element name="TShiftState.ssCaps">
  288. <short>The CapsLock key</short>
  289. </element>
  290. <element name="TShiftState.ssNum">
  291. <short>The NumLock key</short>
  292. </element>
  293. <element name="TShiftState.ssScroll">
  294. <short>The ScrollLock key</short>
  295. </element>
  296. <element name="TNotifyEvent">
  297. <short>
  298. Standard event handler type.
  299. </short>
  300. <descr>
  301. Most event handlers are implemented as a property of type
  302. <var>TNotifyEvent</var>. When this is set to a certain method of a class,
  303. when the event occurs, the method will be called, and the class that generated
  304. the event will pass itself along as the <var>Sender</var> argument.
  305. </descr>
  306. <seealso>
  307. <link id="THelpEvent"/>
  308. <link id="TGetStrProc"/>
  309. </seealso>
  310. </element>
  311. <element name="THelpEvent">
  312. <short>
  313. Special event for display of online help.
  314. </short>
  315. <descr>
  316. This event is used for display of online help.
  317. </descr>
  318. <seealso>
  319. <link id="TNotifyEvent"/>
  320. <link id="TGetStrProc"/>
  321. </seealso>
  322. </element>
  323. <element name="TGetStrProc">
  324. <short>
  325. Event for retrieving string values.
  326. </short>
  327. <descr>
  328. This event is used as a callback to retrieve string values. It is used,
  329. among other things, to pass along string properties in property editors.
  330. </descr>
  331. <seealso>
  332. <link id="THelpEvent"/>
  333. <link id="TNotifyEvent"/>
  334. </seealso>
  335. </element>
  336. <element name="EStreamError">
  337. <short>
  338. Exception raised when an error occurs during read or write operations on a
  339. stream.
  340. </short>
  341. <descr>
  342. <p>
  343. An <var>EStreamError</var> is raised when an error occurs during reading
  344. from or writng to a stream: Possible causes are
  345. </p>
  346. <ol>
  347. <li>Not enough data is available in the stream.</li>
  348. <li>Trying to seek beyond the beginning or end of the stream.</li>
  349. <li>Trying to set the capacity of a memory stream and no memory is
  350. available.</li>
  351. <li>Trying to write to a resource stream.</li>
  352. </ol>
  353. </descr>
  354. <seealso>
  355. <link id="EFCreateError"/>
  356. </seealso>
  357. </element>
  358. <element name="EFCreateError">
  359. <short>
  360. Exception raised when an error occurred during creation of a <link id="TFileStream"/>
  361. stream.
  362. </short>
  363. <descr>
  364. When the operating system reports an error during creation of a new file in
  365. the <link id="TFileStream.Create">Filestream Constructor</link>, a
  366. <var>EFCreateError</var> is raised.
  367. </descr>
  368. <seealso>
  369. <link id="EStreamError"/>
  370. <link id="EFOpenError"/>
  371. </seealso>
  372. </element>
  373. <element name="EFOpenError">
  374. <short>
  375. Exception raised when an error occurred during creation of a <link id="TFileStream"/>
  376. </short>
  377. <descr>
  378. When the operating system reports an error during the opening of a file in
  379. the <link id="TFileStream.Create">Filestream Constructor</link>, a
  380. <var>EFOpenError</var> is raised.
  381. </descr>
  382. <seealso>
  383. <link id="EStreamError"/>
  384. <link id="EFCreateError"/>
  385. </seealso>
  386. </element>
  387. <element name="EFilerError">
  388. <short>
  389. Exception raised by the component streaming system if an error occurs.
  390. </short>
  391. <descr>
  392. This class serves as an ancestor class for exceptions that are raised
  393. when an error occurs during component streaming.
  394. A <var>EFilerError</var> exception is raised when a class is registered
  395. twice.
  396. </descr>
  397. <seealso>
  398. <link id="EStreamError"/>
  399. <link id="EReadError"/>
  400. </seealso>
  401. </element>
  402. <element name="EReadError">
  403. <short>
  404. Exception raised if an error occurs while reading from a stream.
  405. </short>
  406. <descr>
  407. <p>If an error occurs when reading from a stream, a <var>EReadError</var>
  408. exception is raised. Possible causes for this are:</p>
  409. <ol>
  410. <li> Not enough data is available when reading from a stream</li>
  411. <li> The stream containing a component's data contains invalid data.
  412. this will occurr only when reading a component from a stream.</li>
  413. </ol>
  414. </descr>
  415. <seealso>
  416. <link id="EFilerError"/>
  417. <link id="EWriteError"/>
  418. </seealso>
  419. </element>
  420. <element name="EWriteError">
  421. <short>
  422. Exception raised when an error occurs during writing to a stream.
  423. </short>
  424. <descr>
  425. <p>If an error occurs when writing to a stream, a <var>EWriteError</var>
  426. exception is raised. Possible causes for this are:
  427. </p>
  428. <ol>
  429. <li> The stream doesn't allow writing.</li>
  430. <li> An error occurred when writing a property to a stream.</li>
  431. </ol>
  432. </descr>
  433. <seealso>
  434. <link id="EFilerError"/>
  435. <link id="EReadError"/>
  436. </seealso>
  437. </element>
  438. <element name="EClassNotFound">
  439. <short>
  440. Exception raised when an unknown class is referenced in a streamed
  441. component.
  442. </short>
  443. <descr>
  444. When the streaming system needs to create a component, it looks for the
  445. class pointer (VMT) in the list of registered classes by its name. If this
  446. name is not found, then an <var>EClassNotFound</var> is raised.
  447. </descr>
  448. <seealso>
  449. <link id="EFilerError"/>
  450. </seealso>
  451. </element>
  452. <element name="EMethodNotFound">
  453. <short>
  454. This exception is no longer used.
  455. </short>
  456. <descr>
  457. This exception is no longer used in the streaming system. This error is
  458. replaced by a <link id="EReadError"/>.
  459. </descr>
  460. <seealso>
  461. <link id="EFilerError"/>
  462. <link id="EReadError"/>
  463. </seealso>
  464. </element>
  465. <element name="EInvalidImage">
  466. <short>
  467. Exception raised when the resource header needed for streaming of a
  468. component is invalid.
  469. </short>
  470. <descr>
  471. This exception is not used by Free Pascal but is provided for Delphi
  472. compatibility.
  473. </descr>
  474. </element>
  475. <element name="EResNotFound">
  476. <short>
  477. Exception raised when a resource, needed to initialize a component, is not found.
  478. </short>
  479. <descr>
  480. This exception is not used by Free Pascal but is provided for Delphi
  481. compatibility.
  482. </descr>
  483. </element>
  484. <element name="EListError">
  485. <short>
  486. Exception raised when an error occurs in lists handling.
  487. </short>
  488. <descr>
  489. <p>
  490. If an error occurs in one of the <link id='TList'/> or <link id='TStrings'/>
  491. methods, then a <var>EListError</var> exception is raised. This can occur in
  492. one of the following cases:
  493. </p>
  494. <ol>
  495. <li>There is not enough memory to expand the list.</li>
  496. <li>The list tried to grow beyond its maximal capacity.</li>
  497. <li>An attempt was made to reduce the capacity of the list below the
  498. current element count.</li>
  499. <li>An attempt was made to set the list count to a negative value.</li>
  500. <li>A non-existent element of the list was referenced. (i.e. the list index
  501. was out of bounds)</li>
  502. <li>An attempt was made to move an item to a position outside the list's
  503. bounds.</li>
  504. </ol>
  505. </descr>
  506. <seealso>
  507. <link id="TList"/>,
  508. <link id="TStrings"/>
  509. </seealso>
  510. </element>
  511. <element name="EBitsError">
  512. <short>
  513. Exception raised when an error occurs in a method of <link id="TBits"/>.
  514. </short>
  515. <descr>
  516. When an index of a bit in a <link id="TBits"/> is out of the valid range
  517. (<var>0</var> to <var>Count-1</var>) then a <var>EBitsError</var> exception
  518. is raised.
  519. </descr>
  520. </element>
  521. <element name="EStringListError">
  522. <short>
  523. Exception raised when an error occurs in a method of <link id="TStrings"/>.
  524. </short>
  525. <descr>
  526. <p>
  527. When an error occurs in one of the methods of <link id="TStrings"/> then
  528. an <var>EStringListError</var> is raised. This can have one of the following
  529. causes:
  530. </p>
  531. <ol>
  532. <li>There is not enough memory to expand the list.</li>
  533. <li>The list tried to grow beyond its maximal capacity.</li>
  534. <li>A non-existent element of the list was referenced. (i.e. the list index
  535. was out of bounds)</li>
  536. <li>An attempt was made to add a duplicate entry to a <link
  537. id="TStringList"/> when <link id="TStringList.AllowDuplicates"/> is
  538. <var>False</var>.</li>
  539. </ol>
  540. </descr>
  541. <seealso>
  542. <link id="TStrings"/>
  543. <link id="TStringList"/>
  544. </seealso>
  545. </element>
  546. <element name="EComponentError">
  547. <short>
  548. Exception raised when an error occurs in the component registration
  549. routines.
  550. </short>
  551. <descr>
  552. <p>
  553. When an error occurs during the registration of a component, or when naming
  554. a component, then a <var>EComponentError</var> is raised. Possible causes
  555. are:
  556. </p>
  557. <ol>
  558. <li>An name with an illegal character was assigned to a component.</li>
  559. <li>A component with the same name and owner already exists.</li>
  560. <li>The component registration system isn't set up properly.</li>
  561. </ol>
  562. </descr>
  563. <seealso>
  564. <link id="TComponent"/>
  565. <link id="TComponent.Name"/>
  566. </seealso>
  567. </element>
  568. <element name="EParserError">
  569. <short>
  570. Exception raised when an error occurs during the parsing of streams.
  571. </short>
  572. <descr>
  573. When an error occurs during the parsing of a stream, an <var>EParserError</var>
  574. is raised. Usually this indicates that an invalid token was found on the
  575. input stream, or the token read from the stream wasn't the expected token.
  576. </descr>
  577. <seealso>
  578. <link id="TParser"/>
  579. </seealso>
  580. </element>
  581. <element name="EOutOfResources">
  582. <short>
  583. Exception raised when the system is out of resources.
  584. </short>
  585. <descr>
  586. This exception is not used in Free Pascal, it is defined for Delphi
  587. compatibiliy purposes only.
  588. </descr>
  589. </element>
  590. <element name="EInvalidOperation">
  591. <short>
  592. Exception raised when an invalid operation is performed. Obsolete.
  593. </short>
  594. <descr>
  595. This exception is not used in Free Pascal, it is defined for Delphi
  596. compatibiliy purposes only.
  597. </descr>
  598. </element>
  599. <!--
  600. **********************************************************************
  601. TList
  602. **********************************************************************
  603. -->
  604. <element name="TList">
  605. <short>Class to manage collections of pointers.</short>
  606. <descr>
  607. <p>
  608. <var>TList</var> is a class that can be used to manage collections of
  609. pointers. It introduces methods and properties to store the pointers, search
  610. in the list of pointers, sort them. It manages its memory by itself, no
  611. intervention for that is needed.
  612. </p>
  613. <p>
  614. To manage collections of strings, it is better to use a <link
  615. id="TStrings"/> descendent such as <link id="TStringList"/>. To manage
  616. general objects, a <link id="TCollection"/> class exists, from which a
  617. descendent can be made to manage collections of various kinds.
  618. </p>
  619. </descr>
  620. <seealso>
  621. <link id="TStrings"/>
  622. <link id="TCollection"/>
  623. </seealso>
  624. </element>
  625. <!-- To be documented later on maybe ?
  626. function Get(Index: Integer): Pointer;
  627. <element name="">
  628. <short>
  629. </short>
  630. <descr>
  631. </descr>
  632. </element>
  633. procedure Grow; virtual;
  634. <element name="">
  635. <short>
  636. </short>
  637. <descr>
  638. </descr>
  639. </element>
  640. procedure Put(Index: Integer; Item: Pointer);
  641. <element name="">
  642. <short>
  643. </short>
  644. <descr>
  645. </descr>
  646. </element>
  647. procedure SetCapacity(NewCapacity: Integer);
  648. <element name="">
  649. <short>
  650. </short>
  651. <descr>
  652. </descr>
  653. </element>
  654. procedure SetCount(NewCount: Integer);
  655. <element name="">
  656. <short>
  657. </short>
  658. <descr>
  659. </descr>
  660. </element>
  661. -->
  662. <element name="TList.Destroy">
  663. <short>
  664. Destroys the list and releases the memory used to store the list elements.
  665. </short>
  666. <descr>
  667. <var>Destroy</var> destroys the list and releases the memory used to store
  668. the list elements. The elements themselves are in no way touched, i.e. any
  669. meomory they point to must be explicitly released before calling the
  670. destructor.
  671. </descr>
  672. </element>
  673. <element name="TList.Add">
  674. <short>
  675. Adds a new pointer to the list.
  676. </short>
  677. <descr>
  678. <p>
  679. <var>Add</var> adds a new pointer to the list after the last pointer (i.e.
  680. at position <var>Count</var>, thus increasing the item count with 1.
  681. If the list is at full capacity, the capacity of the list is expanded,
  682. using the <link id="TList.Grow">Grow</link> method.
  683. </p>
  684. <p>
  685. To insert a pointer at a certain position in the list, use the <link
  686. id="TList.Insert">Insert</link> method instead.
  687. </p>
  688. </descr>
  689. <seealso>
  690. <link id="TList.Delete">Delete</link>
  691. <link id="TList.Grow">Grow</link>
  692. <link id="TList.Insert">Insert</link>
  693. </seealso>
  694. </element>
  695. <element name="TList.Clear">
  696. <short>
  697. Clears the pointer list.
  698. </short>
  699. <descr>
  700. <var>Clear</var> removes all pointers from the list, and sets the capacity to
  701. 0, thus freeing any memory allocated to maintain the list.
  702. </descr>
  703. <seealso>
  704. <link id="TList.Destroy">Destroy</link>
  705. </seealso>
  706. </element>
  707. <!-- procedure Delete(Index: Integer); -->
  708. <element name="TList.Delete">
  709. <short>
  710. Removes a pointer from the list.
  711. </short>
  712. <descr>
  713. <p><var>Delete</var> removes the pointer at position <var>Index</var> from the
  714. list, shifting all following pointers one position up (or to the left).
  715. </p>
  716. <p>
  717. The memory the pointer is pointing to is <i>not</i> deallocated.
  718. </p>
  719. </descr>
  720. </element>
  721. <element name="TList.Error">
  722. <short>
  723. Raises an <link id="EListError"/> exception.
  724. </short>
  725. <descr>
  726. <var>Error</var> raises an <link id="EListError"/> exception, with a message
  727. formatted with <var>Msg</var> and <var>Data</var>.
  728. </descr>
  729. </element>
  730. <!-- procedure Exchange(Index1, Index2: Integer); -->
  731. <element name="TList.Exchange">
  732. <short>
  733. Exchanges two pointers in the list.
  734. </short>
  735. <descr>
  736. <var>Exchange</var> exchanges the pointers at positions <var>Index1</var>
  737. and <var>Index2</var>. Both pointers must be withing the current range of
  738. the list, or an <link id="EListError"/> exception will be raised.
  739. </descr>
  740. </element>
  741. <element name="TList.Expand">
  742. <short>
  743. Increases the capacity of the list if needed.
  744. </short>
  745. <descr>
  746. <p>
  747. <var>Expand</var> increases the capacity of the list if the current element
  748. count matches the current list capacity.
  749. </p>
  750. <p>
  751. The capacity is increased according to the following algorithm:
  752. </p>
  753. <ol>
  754. <li>If the capacity is less than 3, the capacity is increased with 4.</li>
  755. <li>If the capacity is larger than 3 and less than 8, the capacity is increased with 8.</li>
  756. <li>If the capacity is larger than 8, the capacity is increased with 16.</li>
  757. </ol>
  758. <p>
  759. The return value is <var>Self</var>.
  760. </p>
  761. </descr>
  762. <seealso>
  763. <link id="TList.Capacity">Capacity</link>
  764. <!-- <link id="Tlist.SetCapacity"> -->
  765. </seealso>
  766. </element>
  767. <element name="TList.First">
  768. <short>
  769. Returns the first non-nil pointer in the list.
  770. </short>
  771. <descr>
  772. <p>
  773. <var>First</var> returns the value of the first non-nil pointer in the
  774. list.
  775. </p>
  776. <p> If there are no pointers in the list or all pointers equal
  777. <var>Nil</var>, then <var>Nil</var> is returned.
  778. </p>
  779. </descr>
  780. <seealso>
  781. <link id="TList.Last">Last</link>
  782. </seealso>
  783. </element>
  784. <!-- function IndexOf(Item: Pointer): Integer; -->
  785. <element name="TList.IndexOf">
  786. <short>
  787. Returns the index of a given pointer.
  788. </short>
  789. <descr>
  790. <p>
  791. <var>IndexOf</var> searches for the pointer <var>Item</var> in the list
  792. of pointers, and returns the index of the pointer, if found.
  793. </p>
  794. <p>
  795. If no pointer with the value <var>Item</var> was found, -1 is returned.
  796. </p>
  797. </descr>
  798. </element>
  799. <element name="TList.Insert">
  800. <short>
  801. Inserts a new pointer in the list at a given position.
  802. </short>
  803. <descr>
  804. <p>
  805. <var>Insert</var> inserts pointer <var>Item</var> at position
  806. <var>Index</var> in the list. All pointers starting from <var>Index</var>
  807. are shifted to the right.
  808. </p>
  809. <p>
  810. If <var>Index</var> is not a valid position, then a <link id="EListError"/>
  811. exception is raised.
  812. </p>
  813. </descr>
  814. <seealso>
  815. <link id="TList.Add">Add</link>
  816. <link id="Tlist.Delete">Delete</link>
  817. </seealso>
  818. </element>
  819. <element name="TList.Insert.Item">
  820. <short> Pointer to be inserted.</short>
  821. </element>
  822. <element name="TList.Insert.Index">
  823. <short> Position where to insert</short>
  824. </element>
  825. <!-- function Last: Pointer; -->
  826. <element name="TList.Last">
  827. <short>
  828. Returns the last non-nil pointer in the list.
  829. </short>
  830. <descr>
  831. <p>
  832. <var>Last</var> returns the value of the last non-nil pointer in the
  833. list.
  834. </p>
  835. <p> If there are no pointers in the list or all pointers equal
  836. <var>Nil</var>, then <var>Nil</var> is returned.
  837. </p>
  838. </descr>
  839. <seealso>
  840. <link id="TList.First">First</link>
  841. </seealso>
  842. </element>
  843. <!-- procedure Move(CurIndex, NewIndex: Integer); -->
  844. <element name="TList.Move">
  845. <short>
  846. Moves a pointer from one position in the list to another.
  847. </short>
  848. <descr>
  849. <p>
  850. <var>Move</var> moves the pointer at position <var>CurIndex</var>
  851. to position <var>NewIndex</var>. This is done by storing the value
  852. at position <var>CurIndex</var>, deleting the pointer at position
  853. <var>CurIndex</var>, and reinserting the value at position
  854. <var>NewIndex</var>
  855. </p>
  856. <p>
  857. If <var>CurIndex</var> or <var>Newindex</var> are not inside the valid
  858. range of indices, an <link id="EListError"/> exception is raised.
  859. </p>
  860. </descr>
  861. <seealso>
  862. <link id="TList.Exchange">Exchange</link>
  863. </seealso>
  864. </element>
  865. <!-- function Remove(Item: Pointer): Integer; -->
  866. <element name="TList.Remove">
  867. <short>
  868. Removes a value from the list.
  869. </short>
  870. <descr>
  871. <var>Remove</var> searches <var>Item</var> in the list, and, if it finds it,
  872. deletes the item from the list. Only the first occurrence of <var>Item</var>
  873. is removed.
  874. </descr>
  875. <seealso>
  876. <link id="TList.Delete">Delete</link>
  877. <link id="TList.IndexOf">IndexOf</link>
  878. <link id="Tlist.Insert">Insert</link>
  879. </seealso>
  880. </element>
  881. <!-- procedure Pack; -->
  882. <element name="TList.Pack">
  883. <short>
  884. Removes <var>Nil</var> pointers from the list and frees unused memory.
  885. </short>
  886. <descr>
  887. <var>Pack</var> removes all <var>nil</var> pointers from the list.
  888. The capacity of the list is then set to the number of pointers in the list.
  889. This method can be used to free unused memory if the list has grown to
  890. very large sizes and has a lot of unneeded nil pointers in it.
  891. </descr>
  892. <seealso>
  893. <link id="TList.Clear"/>
  894. </seealso>
  895. </element>
  896. <!-- procedure Sort(Compare: TListSortCompare); -->
  897. <element name="TList.Sort">
  898. <short>
  899. Sorts the pointers in the list.
  900. </short>
  901. <descr>
  902. <p>
  903. <var>Sort></var> sorts the pointers in the list. Two pointers are compared
  904. by passing them to the <var>Compare</var> function. The result of this
  905. function determines how the pointers will be sorted:
  906. </p>
  907. <ul>
  908. <li> If the result of this function is negative, the first pointer is
  909. assumed to be 'less' than the second and will be moved before the second
  910. in the list.</li>
  911. <li> If the function result is positive, the first pointer is assumed to
  912. be 'greater than' the second and will be moved after the second in the
  913. list.</li>
  914. <li> if the function result is zero, the pointers are assumed to be 'equal'
  915. and no moving will take place. </li>
  916. </ul>
  917. <p>
  918. The sort is done using a quicksort algorithm.
  919. </p>
  920. </descr>
  921. </element>
  922. <!-- property Capacity: Integer read FCapacity write SetCapacity; -->
  923. <element name="TList.Capacity">
  924. <short>
  925. Current capacity (i.e. number of pointers that can be stored) of the list.
  926. </short>
  927. <descr>
  928. <p><var>Capacity</var> contains the number of pointers the list can store
  929. before it starts to grow.
  930. </p>
  931. <p>
  932. If a new pointer is added to the list using <link id="TList.Add">add</link>
  933. or <link id="TList.Insert">insert</link>, and there is not enough memory to
  934. store the new pointer, then the list will try to allocate more memory to
  935. store the new pointer. Since this is a time consuming operation, it is
  936. important that this operation be performed as little as possible. If
  937. it is known how many pointers there will be before filling the list, it is
  938. a good idea to set the capacity first before filling. This ensures that the
  939. list doesn't need to grow, and will speed up filling the list.
  940. </p>
  941. </descr>
  942. <seealso>
  943. <link id="TList.SetCapacity">SetCapacity</link>
  944. <link id="TList.Count">Count</link>
  945. </seealso>
  946. </element>
  947. <!-- property Count: Integer read FCount write SetCount; -->
  948. <element name="Tlist.Count">
  949. <short>
  950. Current number of pointers in the list.
  951. </short>
  952. <descr>
  953. <var>Count</var> is the current number of (possibly <var>Nil</var>) pointers
  954. in the list. Since the list is zero-based, the index of the largest pointer
  955. is <var>Count-1</var>.
  956. </descr>
  957. <link id="TList.Capacity">Capacity</link>
  958. </element>
  959. <!-- property Items[Index: Integer]: Pointer read Get write Put; default; -->
  960. <element name="TList.Items">
  961. <short>
  962. Probides access to the pointers in the list.
  963. </short>
  964. <descr>
  965. <p><var>Items</var> is used to access the pointers in the list. It is the
  966. default property of the <var>TList</var> class, so it can be omitted.
  967. </p>
  968. <p>
  969. The list is zero-based, so Index must be in the range <var>0</var> to
  970. <var>Count-1</var>.
  971. </p>
  972. </descr>
  973. </element>
  974. <!-- property List: PPointerList read FList; -->
  975. <element name="TList.List">
  976. <short>
  977. Memory array where pointers are stored.
  978. </short>
  979. <descr>
  980. <var>List</var> points to the memory space where the pointers are stored.
  981. This can be used to quickly copy the list of pinters to another location.
  982. </descr>
  983. </element>
  984. <!--
  985. **********************************************************************
  986. ThreadList
  987. **********************************************************************
  988. -->
  989. <element name="TThreadList"> <!-- Class -->
  990. <short>Thread-safe list object (not yet implemented).</short>
  991. <descr>This class is not yet implemented in Free Pascal.</descr>
  992. <errors></errors>
  993. <seealso></seealso>
  994. </element>
  995. <element name="TThreadList.Create"> <!-- Constructor -->
  996. <short>Creates a new thread-safe list.</short>
  997. <descr>This class is not yet implemented in Free Pascal.</descr>
  998. <errors></errors>
  999. <seealso></seealso>
  1000. </element>
  1001. <element name="TThreadList.Destroy"> <!-- Destructor -->
  1002. <short>Destroys the list instance.</short>
  1003. <descr>This class is not yet implemented in Free Pascal.</descr>
  1004. <errors></errors>
  1005. <seealso></seealso>
  1006. </element>
  1007. <element name="TThreadList.Add"> <!-- Procedure -->
  1008. <short>Adds an element to the list.</short>
  1009. <descr>This class is not yet implemented in Free Pascal.</descr>
  1010. <errors></errors>
  1011. <seealso></seealso>
  1012. </element>
  1013. <element name="TThreadList.Clear"> <!-- Procedure -->
  1014. <short>Removes all emements from the list.</short>
  1015. <descr>This class is not yet implemented in Free Pascal.</descr>
  1016. <errors></errors>
  1017. <seealso></seealso>
  1018. </element>
  1019. <element name="TThreadList.LockList"> <!-- Function -->
  1020. <short>Locks the list for exclusive access.</short>
  1021. <descr>This class is not yet implemented in Free Pascal.</descr>
  1022. <errors></errors>
  1023. <seealso></seealso>
  1024. </element>
  1025. <element name="TThreadList.Remove"> <!-- Procedure -->
  1026. <short>Removes an item from the list.</short>
  1027. <descr>This class is not yet implemented in Free Pascal.</descr>
  1028. <errors></errors>
  1029. <seealso></seealso>
  1030. </element>
  1031. <element name="TThreadList.UnlockList"> <!-- Procedure -->
  1032. <short>Unlocks the list after it was locked.</short>
  1033. <descr>This class is not yet implemented in Free Pascal.</descr>
  1034. <errors></errors>
  1035. <seealso></seealso>
  1036. </element>
  1037. <!--
  1038. **********************************************************************
  1039. TBits helpers
  1040. **********************************************************************
  1041. -->
  1042. <element name="BITSHIFT"> <!-- Constant -->
  1043. <short>Used to calculate the size of a bits array</short>
  1044. <seealso>
  1045. <link id="TBits"/>
  1046. <link id="TBits.Size"/>
  1047. </seealso>
  1048. </element>
  1049. <element name="MASK"> <!-- Constant -->
  1050. <short>Bitmask with all bits on.</short>
  1051. <seealso>
  1052. <link id="TBits"/>
  1053. </seealso>
  1054. </element>
  1055. <element name="MaxBitRec"> <!-- Constant -->
  1056. <short>Maximum number of bit records in TBits.</short>
  1057. <seealso>
  1058. <link id="TBits"/>
  1059. </seealso>
  1060. </element>
  1061. <element name="MaxBitFlags"> <!-- Constant -->
  1062. <short>Maximum number of bits in TBits collection.</short>
  1063. <seealso>
  1064. <link id="TBits"/>
  1065. </seealso>
  1066. </element>
  1067. <element name="TBitArray"> <!-- Array type -->
  1068. <short>Array to store bits.</short>
  1069. <seealso>
  1070. <link id="TBits"/>
  1071. </seealso>
  1072. </element>
  1073. <!--
  1074. **********************************************************************
  1075. TBis
  1076. **********************************************************************
  1077. -->
  1078. <element name="TBits"> <!-- Class -->
  1079. <short>Class to store collections of bits (binary values that can be 0 or 1)</short>
  1080. <descr>
  1081. <p><var>TBits</var> can be used to store collections of bits in an indexed
  1082. array. This is especially useful for storing collections of booleans:
  1083. Normally the size of a boolean is the size of the smallest enumerated type,
  1084. i.e. 1 byte. Since a bit can take 2 values it can be used to store a boolean
  1085. as well. Since TBits can store 8 bits in a byte, it takes 8 times less space
  1086. to store an array of booleans in a TBits class then it would take to stoe
  1087. them in a conventional array.
  1088. </p>
  1089. <p><var>TBits</var> introduces methods to store and retrieve bit values,
  1090. apply masks, and search for bits.
  1091. </p>
  1092. </descr>
  1093. </element>
  1094. <element name="TBits.Create"> <!-- Constructor -->
  1095. <short>Creates a new bits collection.</short>
  1096. <descr>
  1097. <p>
  1098. <var>Create</var> creates a new bit collection with initial size <var>TheSize</var>.
  1099. The size of the collection can be changed later on.
  1100. </p>
  1101. <p>All bits are initially set to zero.</p>
  1102. </descr>
  1103. <seealso>
  1104. <link id="TBits.Destroy">Destroy</link>
  1105. </seealso>
  1106. </element>
  1107. <element name="TBits.Destroy"> <!-- Destructor -->
  1108. <short>Destroys a bit collection</short>
  1109. <descr>
  1110. <p>
  1111. <var>Destroy</var> destroys a previously created bit collection and
  1112. releases all memory used to store the bit collection.
  1113. </p>
  1114. <p>
  1115. <var>Destroy</var> should never be called directly, <var>Free</var>
  1116. should be used instead.
  1117. </p>
  1118. </descr>
  1119. <errors>
  1120. None.
  1121. </errors>
  1122. <seealso>
  1123. <link id="TBits.Create">Create</link>
  1124. </seealso>
  1125. </element>
  1126. <element name="TBits.getFSize"> <!-- Function -->
  1127. <short>Returns the number of records used to store the bits.</short>
  1128. <descr>
  1129. <var>GetFSize</var> returns the number of records used to store the current
  1130. number of bits.
  1131. </descr>
  1132. <errors>
  1133. None.
  1134. </errors>
  1135. <seealso>
  1136. <link id="TBits.Size">Size</link>
  1137. </seealso>
  1138. </element>
  1139. <element name="TBits.seton"> <!-- Procedure -->
  1140. <short>Turn a particular bit on.</short>
  1141. <descr>
  1142. <var>SetOn</var> turns on the bit at position <var>bit</var>, i.e. sets it
  1143. to 1.
  1144. If <var>bit</var> is at a position bigger than the current size, the collection
  1145. is expanded to the required size using <link id="TBits.grow">Grow</link>.
  1146. </descr>
  1147. <errors>
  1148. If <var>bit</var> is larger than the maximum allowed bits array size or
  1149. is negative, an <link id="EBitsError"/> exception is raised.
  1150. </errors>
  1151. <seealso>
  1152. <link id="TBits.Bits">Bits</link>
  1153. <link id="TBits.clear">Clear</link>
  1154. </seealso>
  1155. </element>
  1156. <element name="TBits.clear"> <!-- Procedure -->
  1157. <short>Clears a particular bit.</short>
  1158. <descr>
  1159. <var>Clear</var> clears the bit at position <var>bit</var>. If the array
  1160. If <var>bit</var> is at a position bigger than the current size, the collection
  1161. is expanded to the required size using <link id="TBits.grow">Grow</link>.
  1162. </descr>
  1163. <errors>
  1164. If <var>bit</var> is larger than the maximum allowed bits array size or
  1165. is negative, an <link id="EBitsError"/> exception is raised.
  1166. </errors>
  1167. <seealso>
  1168. <link id="TBits.Bits">Bits</link>
  1169. <link id="TBits.clear">seton</link>
  1170. </seealso>
  1171. </element>
  1172. <element name="TBits.clearall"> <!-- Procedure -->
  1173. <short>Clears all bits in the array.</short>
  1174. <descr>
  1175. <var>ClearAll</var> clears all bits in the array, i.e. sets them to zero. <var>
  1176. ClearAll</var> works faster than clearing all individual bits, since it
  1177. uses the packed nature of the bits.
  1178. </descr>
  1179. <errors>
  1180. None.
  1181. </errors>
  1182. <seealso>
  1183. <link id="TBits.Bits">Bits</link>
  1184. <link id="TBits.clear">clear</link>
  1185. </seealso>
  1186. </element>
  1187. <element name="TBits.andbits"> <!-- Procedure -->
  1188. <short>Performs an <var>and</var> operation on the bits.</short>
  1189. <descr>
  1190. <var>andbits</var> performs an <var>and</var> operation on the bits in
  1191. the array with the bits of array <var>BitSet</var>. If <var>BitSet</var>
  1192. contains less bits than the current array, then all bits which have no
  1193. counterpart in <var>BitSet</var> are cleared.
  1194. </descr>
  1195. <errors>
  1196. None.
  1197. </errors>
  1198. <seealso>
  1199. <link id="TBits.clearall">ClearAll</link>
  1200. <link id="TBits.orbits">OrBits</link>
  1201. <link id="TBits.xorbits">XOrBits</link>
  1202. <link id="TBits.notbits">NotBits</link>
  1203. </seealso>
  1204. </element>
  1205. <element name="TBits.orbits"> <!-- Procedure -->
  1206. <short>Performs an <var>or</var> operation on the bits.</short>
  1207. <descr>
  1208. <p>
  1209. <var>andbits</var> performs an <var>or</var> operation on the bits in
  1210. the array with the bits of array <var>BitSet</var>.
  1211. </p>
  1212. <p>
  1213. If <var>BitSet</var>
  1214. contains less bits than the current array, then all bits which have no
  1215. counterpart in <var>BitSet</var> are left untouched.
  1216. </p>
  1217. <p>
  1218. If the current array contains less bits than <var>BitSet</var> then it is
  1219. grown to the size of <var>BitSet</var> before the <var>or</var> operation is
  1220. performed.
  1221. </p>
  1222. </descr>
  1223. <errors>
  1224. None.
  1225. </errors>
  1226. <seealso>
  1227. <link id="TBits.clearall">ClearAll</link>
  1228. <link id="TBits.andbits">andBits</link>
  1229. <link id="TBits.xorbits">XOrBits</link>
  1230. <link id="TBits.notbits">NotBits</link>
  1231. </seealso>
  1232. </element>
  1233. <element name="TBits.xorbits"> <!-- Procedure -->
  1234. <short>Performs a <var>xor</var> operation on the bits.</short>
  1235. <descr>
  1236. <p><var>XorBits</var> performs a <var>xor</var> operation on the bits in
  1237. the array with the bits of array <var>BitSet</var>.
  1238. </p>
  1239. <p>If <var>BitSet</var>
  1240. contains less bits than the current array, then all bits which have no
  1241. counterpart in <var>BitSet</var> are left untouched.
  1242. </p>
  1243. <p>
  1244. If the current array contains less bits than <var>BitSet</var> then it is
  1245. grown to the size of <var>BitSet</var> before the <var>xor</var> operation is
  1246. performed.
  1247. </p>
  1248. </descr>
  1249. <errors>
  1250. None.
  1251. </errors>
  1252. <seealso>
  1253. <link id="TBits.clearall">ClearAll</link>
  1254. <link id="TBits.andbits">andBits</link>
  1255. <link id="TBits.orbits">OrBits</link>
  1256. <link id="TBits.notbits">NotBits</link>
  1257. </seealso>
  1258. </element>
  1259. <element name="TBits.notbits"> <!-- Procedure -->
  1260. <short>Performs a <var>not</var> operation on the bits.</short>
  1261. <descr>
  1262. <p><var>NotBits</var> performs a <var>not</var> operation on the bits in
  1263. the array with the bits of array <var>Bitset</var>.
  1264. </p>
  1265. <p>If <var>BitSet</var>
  1266. contains less bits than the current array, then all bits which have no
  1267. counterpart in <var>BitSet</var> are left untouched.
  1268. </p>
  1269. </descr>
  1270. <errors>
  1271. None.
  1272. </errors>
  1273. <seealso>
  1274. <link id="TBits.clearall">ClearAll</link>
  1275. <link id="TBits.andbits">andBits</link>
  1276. <link id="TBits.orbits">OrBits</link>
  1277. <link id="TBits.xorbits">XOrBits</link>
  1278. </seealso>
  1279. </element>
  1280. <element name="TBits.get"> <!-- Function -->
  1281. <short>Retrieve the value of a particular bit</short>
  1282. <descr>
  1283. <var>Get</var> returns <var>True</var> if the bit at position <var>bit</var>
  1284. is set, or <var>False</var> if it is not set.
  1285. </descr>
  1286. <errors>
  1287. If <var>bit</var> is not a valid bit index then an <link id="EBitsError"/>
  1288. exception is raised.
  1289. </errors>
  1290. <seealso>
  1291. <link id="TBits.Bits">Bits</link>
  1292. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1293. <link id="TBits.seton">seton</link>
  1294. </seealso>
  1295. </element>
  1296. <element name="TBits.grow"> <!-- Procedure -->
  1297. <short>Expands the bits array to the requested size.</short>
  1298. <descr>
  1299. <var>Grow</var> expands the bit array so it can at least contain
  1300. <var>nbit</var> bits. If <var>nbit</var> is less than the current size,
  1301. nothing happens.
  1302. </descr>
  1303. <errors>
  1304. If there is not enough memory to complete the operation, then an
  1305. <link id="EBitsError"/>is raised.
  1306. </errors>
  1307. <seealso>
  1308. <link id="TBits.Size">Size</link>
  1309. </seealso>
  1310. </element>
  1311. <element name="TBits.equals"> <!-- Function -->
  1312. <short>Determines whether the bits of 2 arrays are equal.</short>
  1313. <descr>
  1314. <p><var>equals</var> returns <var>True</var> if all the bits in <var>BitSet</var>
  1315. are the same as the ones in the current BitSet; if not, <var>False</var> is
  1316. returned.
  1317. </p>
  1318. <p>
  1319. If the sizes of the two BitSets are different, the arrays are still reported
  1320. equal when all the bits in the larger set, which are not present in the smaller
  1321. set, are zero.
  1322. </p>
  1323. </descr>
  1324. <errors>
  1325. None.
  1326. </errors>
  1327. <seealso>
  1328. <link id="TBits.clearall">ClearAll</link>
  1329. <link id="TBits.andbits">andBits</link>
  1330. <link id="TBits.orbits">OrBits</link>
  1331. <link id="TBits.xorbits">XOrBits</link>
  1332. </seealso>
  1333. </element>
  1334. <element name="TBits.SetIndex"> <!-- Procedure -->
  1335. <short>Sets the start position for <link
  1336. id="TBits.FindNextBit">FindNextBit</link> and <link
  1337. id="TBits.FindPrevBit">FindPrevBit</link></short>
  1338. <descr>
  1339. <p>
  1340. <var>SetIndex</var> sets the search start position for<link
  1341. id="TBits.FindNextBit">FindNextBit</link> and
  1342. <link id="TBits.FindPrevBit">FindPrevBit</link> to <var>Index</var>.
  1343. This means that these calls will start searching from position
  1344. <var>Index</var>.
  1345. </p>
  1346. <p>This mechanism provides an alternative to <link
  1347. id="TBits.FindFirstBit">FindFirstBit</link> which can also be used to
  1348. position for the <var>FindNextBit</var> and <var>FindPrevBit</var> calls.
  1349. </p>
  1350. </descr>
  1351. <errors>
  1352. None.
  1353. </errors>
  1354. <seealso>
  1355. <link id="TBits.FindNextBit">FindNextBit</link>
  1356. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1357. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1358. <link id="TBits.OpenBit">OpenBit</link>
  1359. </seealso>
  1360. </element>
  1361. <element name="TBits.FindFirstBit"> <!-- Function -->
  1362. <short>Find first bit with a particular value</short>
  1363. <descr>
  1364. <p>
  1365. <var>FindFirstBit</var> searches for the first bit with value
  1366. <var>State</var>. It returns the position of this bit, or <var>-1</var> if
  1367. no such bit was found.
  1368. </p>
  1369. <p>The search starts at position 0 in the array. If the first search
  1370. returned a positive result, the found position is saved, and the
  1371. <link id="TBits.FindNextBit">FindNextBit</link> and <link
  1372. id="TBits.FindPrevBit">FindPrevBit</link> will use this position to resume the
  1373. search. To start a search from a certain position, the start position can be
  1374. set with the <link id="TBits.SetIndex">SetIndex</link> instead.
  1375. </p>
  1376. </descr>
  1377. <errors>
  1378. None.
  1379. </errors>
  1380. <seealso>
  1381. <link id="TBits.FindNextBit">FindNextBit</link>
  1382. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1383. <link id="TBits.OpenBit">OpenBit</link>
  1384. <link id="TBits.SetIndex">SetIndex</link>
  1385. </seealso>
  1386. </element>
  1387. <element name="TBits.FindNextBit"> <!-- Function -->
  1388. <short>Searches the next bit with a particular value.</short>
  1389. <descr>
  1390. <p>
  1391. <var>FindNextBit</var> resumes a previously started search. It searches for
  1392. the next bit with the value specified in the <link
  1393. id="TBits.FindFirstBit">FindFirstBit</link>. The search is done towards the
  1394. end of the array and starts at the position last reported by one of the
  1395. <var>Find</var> calls or at the position set with <link id="TBits.SetIndex">
  1396. SetIndex</link>.
  1397. </p>
  1398. <p>
  1399. If another bit with the same value is found, its position
  1400. is returned. If no more bits with the same value are present in the array,
  1401. <var>-1</var> is returned.
  1402. </p>
  1403. </descr>
  1404. <errors>
  1405. None.
  1406. </errors>
  1407. <seealso>
  1408. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1409. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1410. <link id="TBits.OpenBit">OpenBit</link>
  1411. <link id="TBits.SetIndex">SetIndex</link>
  1412. </seealso>
  1413. </element>
  1414. <element name="TBits.FindPrevBit"> <!-- Function -->
  1415. <short>Searches the previous bit with a particular value.</short>
  1416. <descr>
  1417. <p>
  1418. <var>FindPrevBit</var> resumes a previously started search. It searches for
  1419. the previous bit with the value specified in the <link
  1420. id="TBits.FindFirstBit">FindFirstBit</link>. The search is done towards the
  1421. beginning of the array and starts at the position last reported by one of the
  1422. <var>Find</var> calls or at the position set with <link id="TBits.SetIndex">
  1423. SetIndex</link>.
  1424. </p>
  1425. <p>
  1426. If another bit with the same value is found, its position
  1427. is returned. If no more bits with the same value are present in the array,
  1428. <var>-1</var> is returned.
  1429. </p>
  1430. </descr>
  1431. <errors>
  1432. None.
  1433. </errors>
  1434. <seealso>
  1435. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1436. <link id="TBits.FindNextBit">FindNextBit</link>
  1437. <link id="TBits.OpenBit">OpenBit</link>
  1438. <link id="TBits.SetIndex">SetIndex</link>
  1439. </seealso>
  1440. </element>
  1441. <element name="TBits.OpenBit"> <!-- Function -->
  1442. <short>Returns the position of the first bit that is set to <var>False</var>.</short>
  1443. <descr>
  1444. <var>OpenBit</var> returns the position of the first bit whose value is
  1445. <var>0</var> (<var>False</var>), or <var>-1</var> if no open bit was found.
  1446. This call is equivalent to
  1447. <var>FindFirstBit(False)</var>, except that it doesn't set the position for
  1448. the next searches.
  1449. </descr>
  1450. <errors>
  1451. None.
  1452. </errors>
  1453. <seealso>
  1454. <link id="TBits.FindFirstBit">FindNextBit</link>
  1455. <link id="TBits.FindPrevBit">FindPrevBit</link>
  1456. <link id="TBits.FindFirstBit">FindFirstBit</link>
  1457. <link id="TBits.SetIndex">SetIndex</link>
  1458. </seealso>
  1459. </element>
  1460. <element name="TBits.Bits"> <!-- Property -->
  1461. <short>Access to all bits in the array.</short>
  1462. <descr>
  1463. <var>Bits</var> allows indexed access to all of the bits in the array. It
  1464. gives <var>True</var> if the bit is <var>1</var>, <var>False</var>
  1465. otherwise; Assigning to this property will set, respectively clear the bit.
  1466. </descr>
  1467. <errors>
  1468. If an index is specified which is out of the allowed range then an <link
  1469. id="EBitsError"/> exception is raised.
  1470. </errors>
  1471. <seealso>
  1472. <link id="TBits.Size">Size</link>
  1473. </seealso>
  1474. </element>
  1475. <element name="TBits.Size"> <!-- Property -->
  1476. <short>Current size of the array of bits.</short>
  1477. <descr>
  1478. <var>Size</var> is the current size of the bit array. Setting this property
  1479. will adjust the size; this is equivalent to calling <var>Grow(Value-1)</var>
  1480. </descr>
  1481. <errors>
  1482. If an invalid size (negative or too large) is specified, a <link
  1483. id="EBitsError"/> exception is raised.
  1484. </errors>
  1485. <seealso>
  1486. <link id="TBits.Bits">Bits</link>
  1487. </seealso>
  1488. </element>
  1489. <!--
  1490. *********************************************************************
  1491. TPersistent
  1492. *********************************************************************
  1493. -->
  1494. <element name="TPersistent"> <!-- Class -->
  1495. <short>Base class for streaming system and persistent properties.</short>
  1496. <descr>
  1497. <p><var>TPersistent</var> is the basic class for the streaming system. Since it
  1498. is compiled in the <var>{$M+}</var> state, the compiler generates RTTI
  1499. (Run-Time Type Information) for it and all classes that descend from it.
  1500. This information can be used to stream all properties of classes.
  1501. </p>
  1502. <p>
  1503. It also introduces functionality to assign the contents of 2 classes to
  1504. each other.
  1505. </p>
  1506. </descr>
  1507. <seealso>
  1508. <link id="TComponent"/>
  1509. </seealso>
  1510. </element>
  1511. <element name="TPersistent.AssignError"> <!-- Procedure -->
  1512. <short>Raises an <var>EConvertError</var> when an error occurs during
  1513. assignment.</short>
  1514. <descr>
  1515. <var>AssignError</var> raises an <var>EConvertError</var> exception with
  1516. the classnames of the <var>Source</var> and destination classes. It is used
  1517. when two incompatible classes are assigned to each other.
  1518. </descr>
  1519. <seealso>
  1520. <link id="TPersistent.Assign">Assign</link>
  1521. <link id="TPersistent.AssignTo">AssignTo</link>
  1522. </seealso>
  1523. </element>
  1524. <element name="TPersistent.AssignTo"> <!-- Procedure -->
  1525. <short>Generic assignment function.</short>
  1526. <descr>
  1527. <p>
  1528. <var>AssignTo</var> is the generic function to assign the class' contents to
  1529. another class. This method must be overridden by descendent classes to
  1530. actually assign the content of the source instance to the destination
  1531. instance.
  1532. </p>
  1533. <p>
  1534. The <link id="TPersistent"/> implementation of <var>Assignto</var> raises
  1535. an <var>EConvertError</var> exception. This is done for the following
  1536. reason: If the source class doesn't know how to assign itself to the
  1537. destination class (using <var>AssignTo</var>), the destination class may
  1538. know how get the data from the source class (using <link
  1539. id="TPersistent.Assign">Assign</link>). If all descendent methods are
  1540. implemented correctly, then if neither of the two classes knows how to
  1541. assign their contents to each other, execution will end up at <link
  1542. id="TPersistent.Assign"/>, which will simply execute
  1543. </p>
  1544. <code>
  1545. Dest.AssignTo(Self);
  1546. </code>
  1547. <p>
  1548. If neither of the classes knows how to assign to/from each other, then
  1549. execution will end up at the <var>TPersistent</var> implementation of
  1550. <var>AssignTo</var>, and an exception will be raised.
  1551. </p>
  1552. </descr>
  1553. <seealso>
  1554. <link id="TPersistent.Assign">Assign</link>
  1555. </seealso>
  1556. </element>
  1557. <element name="TPersistent.DefineProperties"> <!-- Procedure -->
  1558. <short>Declare non-published properties that need to be streamed.</short>
  1559. <descr>
  1560. <p>
  1561. <var>DefineProperties</var> must be overridden by descendent classes to
  1562. indicate to the streaming system which non-published properties must
  1563. also be streamed.
  1564. </p>
  1565. <p>
  1566. The streaming systems stores only published properties in the stream.
  1567. Sometimes it is necessary to store additional data in the stream, data
  1568. which is not published. This can be done by overriding the
  1569. <var>DefineProperties</var> method. The <var>Filer</var> object is the
  1570. class that is responsible for writing all properties to the stream.
  1571. </p>
  1572. <p>
  1573. To define new properties, two methods of the <link id="TFiler"/> class
  1574. should be used:
  1575. </p>
  1576. <ol>
  1577. <li><link id="TFiler.DefineProperty">DefineProperty</link>, to define a
  1578. property which can be represented as text.</li>
  1579. <li><link id="TFiler.DefineBinaryProperty">DefineProperty</link>, to define a
  1580. property which contains binary data.</li>
  1581. </ol>
  1582. <p>
  1583. On order for the streaming to work correctly, a call to the inherited
  1584. <var>DefineProperties</var> is also needed, so ancestor objects also
  1585. get the possibility to read or write their private data to the stream.
  1586. Failure to call the inherited method will result in component properties not
  1587. being streamed correctly.
  1588. </p>
  1589. </descr>
  1590. <seealso>
  1591. <link id="TFiler.DefineProperties"/>
  1592. <link id="TFiler"/>
  1593. </seealso>
  1594. </element>
  1595. <element name="TPersistent.GetOwner"> <!-- Function -->
  1596. <short>Returns the owner of the component.</short>
  1597. <descr>
  1598. <var>GetOwner</var> returns the owning component of the classes instane.
  1599. The <var>TPersistent</var> implementation of <var>GetOwner</var> returns
  1600. <var>Nil</var>. <link id="TComponent"/> overrides this method.
  1601. </descr>
  1602. <seealso>
  1603. <link id="TComponent"/>
  1604. </seealso>
  1605. </element>
  1606. <element name="TPersistent.Destroy"> <!-- Destructor -->
  1607. <short>Destroys the <var>TPersistent</var> instance. </short>
  1608. <descr>
  1609. <var>Destroy</var> disposes of the persistent object. This method should
  1610. never be called directly. Instead the <var>Free</var> method should be used.
  1611. </descr>
  1612. </element>
  1613. <element name="TPersistent.Assign"> <!-- Procedure -->
  1614. <short>Assign the contents of one class to another.</short>
  1615. <descr>
  1616. <p>
  1617. <var>Assign</var> copies the contents of <var>Source</var> to
  1618. <var>Self</var>, if the classes of the destination and source classes are
  1619. compatible.
  1620. </p>
  1621. <p>
  1622. The <var>TPersistent</var> implementation of <var>Assign</var> does nothing
  1623. but calling the <link id="TPersistent.AssignTo">AssignTo</link> method of
  1624. source. This means that if the destination class does not know how to assign
  1625. the contents of the source class, the source class instance is asked to assign
  1626. itself to the destination class. This means that it is necessary to
  1627. implement only one of the two methods so that two classes can be assiged to
  1628. one another.
  1629. </p>
  1630. <remark>
  1631. <p>
  1632. In general, a statement of the form
  1633. </p>
  1634. <code>
  1635. Destination:=Source;
  1636. </code>
  1637. <p>
  1638. (where <var>Destination</var> and <var>Source</var> are classes) does not
  1639. achieve the same as a statement of the form
  1640. </p>
  1641. <code>
  1642. Destination.Assign(Source);
  1643. </code>
  1644. <p>After the former statement, both <var>Source</var> and
  1645. <var>Destination</var> will point to the same object. The latter statemtent
  1646. will copy the <i>contents</i> of the <var>Source</var> class to the
  1647. <var>Destination</var> class.
  1648. </p>
  1649. </remark>
  1650. </descr>
  1651. <seealso>
  1652. <link id="TPersistent.AssignTo">AssignTo</link>
  1653. </seealso>
  1654. </element>
  1655. <element name="TPersistent.GetNamePath"> <!-- Function -->
  1656. <short>Returns a string that can be used to identify the class instance.</short>
  1657. <descr>
  1658. <p>
  1659. <var>GetNamePath</var> returns a string that can be used to identify the
  1660. class instance. This can be used to display a name for this instance in a
  1661. Object designer.
  1662. </p>
  1663. <p>
  1664. <var>GetNamePath</var> constructs a name by recursively prepending the
  1665. <var>Classname</var> of the <var>Owner</var> instance to the
  1666. <var>Classname</var> of this instance, separated by a dot.
  1667. </p>
  1668. </descr>
  1669. <seealso>
  1670. <link id="TPersistent.GetOwner"/>
  1671. </seealso>
  1672. </element>
  1673. <element name="TPersistentClass"> <!-- "class of" type -->
  1674. <short>Class reference type for <link id="TPersistent"/>.</short>
  1675. <descr>
  1676. <var>TPersistentClass</var> is the class reference type for the <link id="TPersistent"/> class.
  1677. </descr>
  1678. <seealso>
  1679. <link id="TPersistent"/>
  1680. </seealso>
  1681. </element>
  1682. <!--
  1683. *********************************************************************
  1684. TCollectionItem
  1685. *********************************************************************
  1686. -->
  1687. <element name="TCollectionItem"> <!-- Class -->
  1688. <short>Basic object that is managed by a <link id="TCollection"/> class.</short>
  1689. <descr>
  1690. <p><var>TCollectionItem</var> and <link id='TCollection'/> form a pair of base
  1691. classes that manage a collection of named objects. The
  1692. <var>TCollectionItem</var> is the named object that is managed, it
  1693. represents one item in the collection. An item in the collection is
  1694. represented by two properties: <link id="TCollectionItem.DisplayName"/>,
  1695. <link id="TCollection.Index"/> and <link id="TCollectionItem.ID"/>.
  1696. </p>
  1697. <p>A <var>TCollectionItem</var> object is never created directly. To manage
  1698. a set of named items, it is necessary to make a descendent of
  1699. <var>TCollectionItem</var> to which needed properties and methods are
  1700. added. This descendant can then be managed with a <link id="TCollection"/>
  1701. class. The managing collection will create and destroy it's items by itself,
  1702. it should therefore never be necessary to create <var>TCollectionItem</var>
  1703. descendents manually.
  1704. </p>
  1705. </descr>
  1706. <seealso>
  1707. <link id="TCollection"/>
  1708. </seealso>
  1709. </element>
  1710. <element name="TCollectionItem.Changed"> <!-- Procedure -->
  1711. <short>Method to notify the managing collection that the name or index of
  1712. this item has changed.
  1713. </short>
  1714. <descr>
  1715. This method is called when the <link id="TCollectionItem.DisplayName"/> is
  1716. set or when the <link id="TCollectionItem.Index"/> is changed.
  1717. </descr>
  1718. <seealso>
  1719. <link id="TCollectionItem.Id"/>
  1720. <link id="TCollectionItem.Index"/>
  1721. <link id="TCollection.Update"/>
  1722. </seealso>
  1723. </element>
  1724. <element name="TCollectionItem.GetNamePath"> <!-- Function -->
  1725. <short>Returns the namepath of this collection item.</short>
  1726. <descr>
  1727. <var>GetNamePath</var> overrides the <link id="TPersistent.GetNamePath"/>
  1728. method to return the name of the managing collection and appends its <link
  1729. id="TCollectionItem.Index"/> property.
  1730. </descr>
  1731. <seealso>
  1732. <link id="TCollectionItem.Collection"/>
  1733. <link id="TPersistent.GetNamePath"/>
  1734. <link id="TCollectionItem.Index"/>
  1735. </seealso>
  1736. </element>
  1737. <element name="TCollectionItem.GetOwner"> <!-- Function -->
  1738. <short>Returns the managing collection.</short>
  1739. <descr>
  1740. <var>TCollectionItem</var> overrides <link id="TPersistent.GetOwner"/> to
  1741. and returns the <link id="TCollectionItem.Collection"/> that manages it.
  1742. </descr>
  1743. <seealso>
  1744. <link id="TPersistent.GetOwner"/>
  1745. <link id="TCollectionItem.Collection"/>
  1746. </seealso>
  1747. </element>
  1748. <element name="TCollectionItem.GetDisplayName"> <!-- Function -->
  1749. <short>Returns the <link id="TCollectionItem.DisplayName"/> of the
  1750. collectionitem</short>
  1751. <descr>
  1752. <p>
  1753. <var>GetDisplayName</var> returns the value of the
  1754. <link id="TCollectionItem.DisplayName"/> property.
  1755. By default, this is the classname of the actual <var>TCollectionItem</var> descendant.
  1756. </p>
  1757. <p>
  1758. Descendants of <var>TCollectionItem</var> can and should override this
  1759. method to return a more meaningful value.
  1760. </p>
  1761. </descr>
  1762. <seealso>
  1763. <link id="TCollectionItem.DisplayName"/>
  1764. </seealso>
  1765. </element>
  1766. <element name="TCollectionItem.SetIndex"> <!-- Procedure -->
  1767. <short>Write method for the <link id="TCollectionItem.Index"/> property.</short>
  1768. <descr>
  1769. <var>SetIndex</var> implements the write handler for the <link
  1770. id="TCollectionItem.Index"/> property. It requests the managing collection to
  1771. move this item to the desired index <var>value</var>.
  1772. </descr>
  1773. <seealso>
  1774. <link id="TCollectionItem.Index"/>
  1775. </seealso>
  1776. </element>
  1777. <element name="TCollectionItem.SetDisplayName"> <!-- Procedure -->
  1778. <short>Write method for the <link id="TCollectionItem.DisplayName"/> property</short>
  1779. <descr>
  1780. <p><var>SetDisplayName</var> is the write method for the <link
  1781. id="TCollectionItem.DisplayName"/> property. It does nothing but notifying
  1782. the managing collection that the displayname has changed. It does NOT store
  1783. the actual <var>Value</var>.
  1784. </p>
  1785. <p>
  1786. Descendants of <var>TCollectionItem</var> should override this method to
  1787. store the actual displayname if this is required.
  1788. </p>
  1789. </descr>
  1790. <seealso>
  1791. <link id="TCollectionItem.DisplayName"/>
  1792. </seealso>
  1793. </element>
  1794. <element name="TCollectionItem.Create"> <!-- Constructor -->
  1795. <short>Creates a new instance of this collection item.</short>
  1796. <descr>
  1797. <var>Create</var> instantiates a new item in a <link id="TCollection"/>. It
  1798. is called by the <link id="TCollection.Add"/> function and should under
  1799. normal circumstances never be called directly.
  1800. called
  1801. </descr>
  1802. <seealso>
  1803. <link id="TCollectionItem.Destroy"/>
  1804. </seealso>
  1805. </element>
  1806. <element name="TCollectionItem.Destroy"> <!-- Destructor -->
  1807. <short>Destroyes this collection item.</short>
  1808. <descr>
  1809. <p><var>Destroy</var> removes the item from the managing collection
  1810. and Destroys the item instance.
  1811. </p>
  1812. <p>
  1813. This is the only way to remove items from a collection;
  1814. </p>
  1815. </descr>
  1816. <seealso>
  1817. <link id="TCollectionItem.Create"/>
  1818. </seealso>
  1819. </element>
  1820. <element name="TCollectionItem.Collection"> <!-- Property -->
  1821. <short>Pointer to the collection managing this item.</short>
  1822. <descr>
  1823. <var>Collection</var> points to the collection managing this item. This
  1824. property can be set to point to a new collection. If this is done, the old
  1825. collection will be notified that the item should no longer be managed, and
  1826. the new collection is notified that it should manage this item as well.
  1827. </descr>
  1828. <seealso>
  1829. <link id="TCollection"/>
  1830. </seealso>
  1831. </element>
  1832. <element name="TCollectionItem.ID"> <!-- Property -->
  1833. <short>Initial index of this item.</short>
  1834. <descr>
  1835. <p><var>ID</var> is the initial value of <link id="TCollectionItem.Index"/>;
  1836. it doesn't change after the index changes. It can be used to uniquely
  1837. identify the item. The <var>ID</var> property doesn't change as items are
  1838. added and removed from the collection.
  1839. </p>
  1840. <p>
  1841. While the <link id="TCollectionItem.Index"/> property forms a continuous
  1842. series, <var>ID</var> does not. If items are removed from the collection,
  1843. their <var>ID</var> is not used again, leaving gaps. Only when the
  1844. collection is initialiiy created, the <var>ID</var> and <var>Index</var>
  1845. properties will be equal.
  1846. </p>
  1847. </descr>
  1848. <seealso>
  1849. <link id="TCollection.Items"/>
  1850. <link id="TCollectionItem.Index"/>
  1851. </seealso>
  1852. </element>
  1853. <element name="TCollectionItem.Index"> <!-- Property -->
  1854. <short>Index of the item in its managing collection <link id="TCollection.Items"/> property.</short>
  1855. <descr>
  1856. <p>
  1857. <var>Index</var> is the current index of the item in its managing
  1858. collection's <link id="TCollection.Items"/> property. This property may
  1859. change as items are added and removed from the collection.
  1860. </p>
  1861. <p>The index of an item is zero-based, i.e. the first item has index zero.
  1862. The last item has index <var>Count-1</var> where <var>Count</var> is the
  1863. number of items in the collection.
  1864. </p>
  1865. <p>
  1866. The <var>Index</var> property of the items in a collection form a continuous
  1867. series ranging from <var>0</var> to <var>Count-1</var>. The <link
  1868. id="TCollectionItem.ID"/> property does not form a continuous series, but
  1869. can also be used to identify an item.
  1870. </p>
  1871. </descr>
  1872. <seealso>
  1873. <link id="TCollectionItem.ID"/>
  1874. <link id="TCollection.Items"/>
  1875. </seealso>
  1876. </element>
  1877. <element name="TCollectionItem.DisplayName"> <!-- Property -->
  1878. <short>Name of the item, displayed in the object inspector.</short>
  1879. <descr>
  1880. <p>
  1881. <var>DisplayName</var> contains the name of this item as shown in the object
  1882. inspector. For <var>TCollectionItem</var> this returns always the class name
  1883. of the managing collection, followed by the index of the item.
  1884. </p>
  1885. <p><var>TCollectionItem</var> does not implement any functionality to store
  1886. the <var>DisplayName</var> property. The property can be set, but this will
  1887. have no effect other than that the managing collection is notified of a
  1888. change. The actual displayname will remain unchanged. To store the
  1889. <var>DisplayName</var> property,<var>TCollectionItem</var> descendants
  1890. should override the <link id="TCollectionItem.SetDisplayName"/> and
  1891. <link id="TCollectionItem.GetDisplayName"/> to add storage functionality.
  1892. </p>
  1893. </descr>
  1894. <seealso>
  1895. <link id="TCollectionItem.Index"/>
  1896. <link id="TCollectionItem.ID"/>
  1897. <link id="TCollectionItem.GetDisplayName"/>
  1898. <link id="TCollectionItem.SetDisplayName"/>
  1899. </seealso>
  1900. </element>
  1901. <element name="TCollectionItemClass"> <!-- "class of" type -->
  1902. <short>Class reference for <link id="TCollectionItem"/>.</short>
  1903. <descr>
  1904. <var>TCollectionItemClass</var> is used by the
  1905. <link id="TCollection.ItemClass"/> property of <link id="TCollection"/> to
  1906. identify the descendent class of <link id="TCollectionItem"/> which should
  1907. be created and managed.
  1908. </descr>
  1909. <seealso>
  1910. <link id="TCollectionItem"/>
  1911. <link id="TCollection.ItemClass"/>
  1912. </seealso>
  1913. </element>
  1914. <!--
  1915. *********************************************************************
  1916. TCollection
  1917. *********************************************************************
  1918. -->
  1919. <element name="TCollection"> <!-- Class -->
  1920. <short>Base class to manage collections of named objects.</short>
  1921. <descr>
  1922. <p><var>TCollection</var> implements functionality to manage a collection
  1923. of named objects. Each of these objects needs to be a descendent of the
  1924. <link id="TCollectionItem"/> class. Exactly which type of object is managed
  1925. can be seen from the <link id="TCollection.ItemClass"/> property.
  1926. </p>
  1927. <p>
  1928. Normally, no <var>TCollection</var> is created directly. Instead, a
  1929. descendents of <var>TCollection</var> and <link id="TCollectionItem"/>
  1930. are created as a pair.
  1931. </p>
  1932. </descr>
  1933. <seealso>
  1934. <link id="TCollectionItem"/>
  1935. </seealso>
  1936. </element>
  1937. <element name="TCollection.GetAttrCount"> <!-- Function -->
  1938. <short>Returns the count of attributes associated with each item.</short>
  1939. <descr>
  1940. <p>
  1941. <var>GetAttrCount</var> returns 0 in the <var>TCollection</var>
  1942. implementation. It can be used to determine the number of attributes
  1943. associated with each collection item. Descendent objects should override
  1944. this method to return the number of attributes.
  1945. </p>
  1946. <p>This method is provided for compatibility with Delphi only and is not
  1947. used in Free Pascal.
  1948. </p>
  1949. </descr>
  1950. <seealso>
  1951. <link id="TCollection.GetAttr"/>
  1952. <link id="TCollection.GetItemAttr"/>
  1953. </seealso>
  1954. </element>
  1955. <element name="TCollection.GetAttr"> <!-- Function -->
  1956. <short>Returns an attribute of the collection.</short>
  1957. <descr>
  1958. <p>This method is provided for compatibility with Delphi only and is not
  1959. used in Free Pascal.
  1960. </p>
  1961. </descr>
  1962. <seealso>
  1963. <link id="TCollection.GetAttrCount"/>
  1964. <link id="TCollection.GetItemAttr"/>
  1965. </seealso>
  1966. </element>
  1967. <element name="TCollection.GetItemAttr"> <!-- Function -->
  1968. <short>Returns the attributes of an item.</short>
  1969. <descr>
  1970. <p>This method is provided for compatibility with Delphi only and is not
  1971. used in Free Pascal.
  1972. </p>
  1973. </descr>
  1974. <seealso>
  1975. <link id="TCollection.GetAttr"/>
  1976. <link id="TCollection.GetAttrCount"/>
  1977. </seealso>
  1978. </element>
  1979. <element name="TCollection.GetNamePath"> <!-- Function -->
  1980. <short>Overrides <link id="TPersistent.GetNamePath"/> to return a proper
  1981. pathname.</short>
  1982. <descr>
  1983. <p>
  1984. <var>GetNamePath</var> returns the name path for this collection. If the
  1985. following conditions are satisfied:
  1986. </p>
  1987. <ol>
  1988. <li>There is an owner object.</li>
  1989. <li>The owner object returns a non-empty name path.</li>
  1990. <li>The <link id="TCollection.Propname"/> property is not empty</li>
  1991. </ol>
  1992. <p>
  1993. collection has an owner and the owning object has a name, then the function
  1994. returns the owner name, followed by the propname. If one of the conditions
  1995. is not satisfied, then the classname is returned.
  1996. </p>
  1997. </descr>
  1998. <seealso>
  1999. <link id="TCollection.GetOwner"/>
  2000. <link id="TCollection.Propname"/>
  2001. </seealso>
  2002. </element>
  2003. <element name="TCollection.Changed"> <!-- Procedure -->
  2004. <short>Procedure called if an item is added to or removed from the collection.</short>
  2005. <descr>
  2006. <var>Changed</var> is called if a change takes place in the collection
  2007. managed by the class. If the update count ghas reached zero, it
  2008. calls <link id="TCollection.Update"/> with a nil argument.
  2009. </descr>
  2010. <seealso>
  2011. <link id="TCollection.Update"/>
  2012. <link id="TCollection.Add"/>
  2013. <link id="TCollection.Clear"/>
  2014. </seealso>
  2015. </element>
  2016. <element name="TCollection.GetItem"> <!-- Function -->
  2017. <short>Read handler for the <link id="TCollection.Items"/> property.</short>
  2018. <descr>
  2019. <var>GetItem</var> is the read handler for the <link
  2020. id="TCollection.Items"/> property. It returns the <var>Index</var>-th
  2021. element from the list of objects.
  2022. </descr>
  2023. <errors>
  2024. If <var>Index</var> is outside the allowed range, then an <link
  2025. id="EListError"/> exception is raised.
  2026. </errors>
  2027. <seealso>
  2028. <link id="TCollection.Items"/>
  2029. <link id="TCollection.Count"/>
  2030. <link id="TCollection.SetItem"/>
  2031. </seealso>
  2032. </element>
  2033. <element name="TCollection.SetItem"> <!-- Procedure -->
  2034. <short>Write handler for the <link id="TCollection.Items"/> property.</short>
  2035. <descr>
  2036. <var>SetItem</var> implements the write handler for the <link
  2037. id="TCollection.Items"/> property. It assignes <var>Value</var> to the
  2038. <var>Index</var>-th element in the array. For this to work properly, the
  2039. <link id="TPersistent.Assign"/> method of the <var>Item</var> must work
  2040. correctly.
  2041. </descr>
  2042. <errors>
  2043. If <var>Index</var> is outside the allowed range, then an <link
  2044. id="EListError"/> exception is raised.
  2045. </errors>
  2046. <seealso>
  2047. <link id="TCollection.Items"/>
  2048. <link id="TCollection.Count"/>
  2049. <link id="TCollection.GetItem"/>
  2050. </seealso>
  2051. </element>
  2052. <element name="TCollection.SetItemName"> <!-- Procedure -->
  2053. <short>Virtual method to set the name of the specified item</short>
  2054. <descr>
  2055. </descr>
  2056. <seealso>
  2057. </seealso>
  2058. </element>
  2059. <element name="TCollection.SetPropName"> <!-- Procedure -->
  2060. <short>Write handler for the <link id="TCollection.PropName"/> property</short>
  2061. <descr>
  2062. <var>SetPropName</var> must be overridden by descendent objects to set the
  2063. <link id="TCollection.PropName"/> property to a suitable value. By default,
  2064. <var>SetPropName</var> sets the <var>PropName</var> property to empty.
  2065. </descr>
  2066. <seealso>
  2067. <link id="TCollection.PropName"/>
  2068. </seealso>
  2069. </element>
  2070. <element name="TCollection.Update"> <!-- Procedure -->
  2071. <short>Hander called when an item in the collection has changed.</short>
  2072. <descr>
  2073. <p><var>Update</var> is called in the following cases:
  2074. </p>
  2075. <ol>
  2076. <li>An item is added to or removed from the collection.</li>
  2077. <li>An item is moved in the list, i.e. its <link id="TCollectionItem.Index"/>
  2078. property changes.</li>
  2079. <li>An item's <link id="TCollectionItem.DisplayName"/> property
  2080. changes.</li>
  2081. </ol>
  2082. <p>
  2083. Descendent classes can override this method to perform additional actions
  2084. when the collection changes. The <var>Item</var> parameter indicates the
  2085. item that was changed. This can be <var>Nil</var>
  2086. </p>
  2087. </descr>
  2088. <seealso>
  2089. <link id="TCollection.Changed"/>
  2090. </seealso>
  2091. </element>
  2092. <element name="TCollection.PropName"> <!-- Property -->
  2093. <short>Name of the property that this collection represents.</short>
  2094. <descr>
  2095. <var>PropName</var> indicates the name of the property that this collection
  2096. is supposed to represent. By default, this is the empty string. Descendents
  2097. can override this property to return the name of the property that is
  2098. represented by this collection.
  2099. </descr>
  2100. <seealso>
  2101. <link id="TCollection.SetPropName"/>
  2102. <link id="TCollection.GetPropName"/>
  2103. </seealso>
  2104. </element>
  2105. <element name="TCollection.Create"> <!-- Constructor -->
  2106. <short>Creates a new collection.</short>
  2107. <descr>
  2108. <var>Create</var> instantiates a new instance of the <var>TCollection</var>
  2109. class which will manage objects of class <var>AItemClass</var>.
  2110. It creates the list used to hold all objects, and stores the
  2111. <var>AItemClass</var> for the adding of new objects to the collection.
  2112. </descr>
  2113. <seealso>
  2114. <link id="TCollection.ItemClass"/>
  2115. <link id="TCollection.Destroy"/>
  2116. </seealso>
  2117. </element>
  2118. <element name="TCollection.Destroy"> <!-- Destructor -->
  2119. <short>Destroys the collection and frees all the objects it manages.</short>
  2120. <descr>
  2121. <p>
  2122. <var>Destroy</var> first clears the collection, and then frees all memory
  2123. allocated to this instance.
  2124. </p>
  2125. <p>
  2126. Don't call <var>Destroy</var> directly, call <var>Free</var> instead.
  2127. </p>
  2128. </descr>
  2129. <seealso>
  2130. <link id="TCollection.Create"/>
  2131. </seealso>
  2132. </element>
  2133. <element name="TCollection.Add"> <!-- Function -->
  2134. <short>Creates and adds a new item to the collection.</short>
  2135. <descr>
  2136. <var>Add</var> instantiates a new item of class <link
  2137. id="TCollection.ItemClass"/> and adds it to the list. The newly created
  2138. object is returned.
  2139. </descr>
  2140. <seealso>
  2141. <link id="TCollection.ItemClass"/>
  2142. <link id="TCollection.Clear"/>
  2143. </seealso>
  2144. </element>
  2145. <element name="TCollection.Assign"> <!-- Procedure -->
  2146. <short>Assigns one collection to another.</short>
  2147. <descr>
  2148. <p>
  2149. <var>Assign</var> assigns the contents of one collection to another.
  2150. It does this by clearing the items list, and adding as much elements as
  2151. there are in the <var>Source</var> collection; it assigns to each created
  2152. element the contents of it's counterpart in the <var>Source</var> element.
  2153. </p>
  2154. <p>
  2155. Two collections cannot be assigned to each other if instances of the
  2156. <var>ItemClass</var> classes cannot be assigned to each other.
  2157. </p>
  2158. </descr>
  2159. <errors>
  2160. If the objects in the collections cannot be assigned to one another, then
  2161. an <var>EConvertError</var> is raised.
  2162. </errors>
  2163. <seealso>
  2164. <link id="TPersistent.Assign"/>
  2165. <link id="TCollectionItem"/>
  2166. </seealso>
  2167. </element>
  2168. <element name="TCollection.BeginUpdate"> <!-- Procedure -->
  2169. <short>Start an update batch.</short>
  2170. <descr>
  2171. <p>
  2172. <var>BeginUpdate</var> is called at the beginning of a batch update. It
  2173. raises the update count with 1.
  2174. </p>
  2175. <p>
  2176. Call <var>BeginUpdate</var> at the beginning of a series of operations that
  2177. will change the state of the collection. This will avoid the call to
  2178. <link id="TCollection.Update"/> for each operation.
  2179. At the end of the operations, a corresponding call to <var>EndUpdate</var>
  2180. must be made. It is best to do this in the context of a
  2181. <var>Try ... finally</var> block:
  2182. </p>
  2183. <code>
  2184. With MyCollection Do
  2185. try
  2186. BeginUpdate;
  2187. // Some Lengthy operations
  2188. finally
  2189. EndUpdate;
  2190. end;
  2191. </code>
  2192. <p>
  2193. This insures that the number of calls to <var>BeginUpdate</var> always
  2194. matches the number of calls to <link id="TCollection.EndUpdate"/>, even in
  2195. case of an exception.
  2196. </p>
  2197. </descr>
  2198. <seealso>
  2199. <link id="TCollection.EndUpdate"/>
  2200. <link id="TCollection.Changed"/>
  2201. <link id="TCollection.Update"/>
  2202. </seealso>
  2203. </element>
  2204. <element name="TCollection.Clear"> <!-- Procedure -->
  2205. <short>Removes all items from the collection.</short>
  2206. <descr>
  2207. <var>Clear</var> will clear the collection, i.e. each item in the collection
  2208. is destroyed and removed from memory.
  2209. After a call to <var>Clear</var>, <var>Count</var> is zero.
  2210. </descr>
  2211. <seealso>
  2212. <link id="TCollection.Add"/>
  2213. <link id="TCollectionItem.Destroy"/>
  2214. <link id="TCollection.Destroy"/>
  2215. </seealso>
  2216. </element>
  2217. <element name="TCollection.EndUpdate"> <!-- Procedure -->
  2218. <short>Ends an update batch.</short>
  2219. <descr>
  2220. <var>EndUpdate</var> signals the end of a series of operations that change
  2221. the state of the collection, possibly triggering an update event.
  2222. It does this by decreasing the update count with 1 and calling <link
  2223. id="TCollection.Changed"/> it should always be used in conjunction with
  2224. <link id="TCollection.BeginUpdate"/>, preferably in the <var>Finally</var>
  2225. section of a <var>Try ... Finally</var> block.
  2226. </descr>
  2227. <seealso>
  2228. <link id="TCollection.BeginUpdate"/>
  2229. <link id="TCollection.Changed"/>
  2230. <link id="TCollection.Update"/>
  2231. </seealso>
  2232. </element>
  2233. <element name="TCollection.FindItemID"> <!-- Function -->
  2234. <short>Searches for an Item in the collection, based on its
  2235. <link id="TCollectionItem.ID"/> property.</short>
  2236. <descr>
  2237. <p>
  2238. <var>FindItemID</var> searches through the collection for the item that has
  2239. a value of <var>ID</var> for its <link id="TCollectionItem.ID"/> property,
  2240. and returns the found item. If no such item is found in the collection,
  2241. <var>Nil</var> is returned.
  2242. </p>
  2243. <p>The routine performs a linear search, so this can be slow on very large
  2244. collections.
  2245. </p>
  2246. </descr>
  2247. <seealso>
  2248. <link id="TCollection.Items"/>
  2249. <link id="TCollectionItem.ID"/>
  2250. </seealso>
  2251. </element>
  2252. <element name="TCollection.Count"> <!-- Property -->
  2253. <short>Number of items in the collection.</short>
  2254. <descr>
  2255. <p>
  2256. <var>Count</var> contains the number of items in the collection.
  2257. </p>
  2258. <remark>
  2259. The items in the collection are identified by their <link
  2260. id="TCollectionItem.Index"/> property, which is a zero-based index, meaning
  2261. that it can take values between <var>0</var> and <var>Count</var>.
  2262. </remark>
  2263. </descr>
  2264. <seealso>
  2265. <link id="TCollectionItem.Index"/>
  2266. <link id="TCollection.Items"/>
  2267. </seealso>
  2268. </element>
  2269. <element name="TCollection.ItemClass"> <!-- Property -->
  2270. <short>Class pointer for each item in the collection.</short>
  2271. <descr>
  2272. <var>ItemClass</var> is the class pointer with which each new item in the
  2273. collection is created. It is the value that was passed to the collection's
  2274. constructor when it was created, and does not change during the lifetime of
  2275. the collection.
  2276. </descr>
  2277. <seealso>
  2278. <link id="TCollectionItem"/>
  2279. <link id="TCollection.Items"/>
  2280. </seealso>
  2281. </element>
  2282. <element name="TCollection.Items"> <!-- Property -->
  2283. <short>Indexed array of items in the collection.</short>
  2284. <descr>
  2285. <p>
  2286. <var>Items</var> provides indexed access to the items in the collection.
  2287. Since the array is zero-based, <var>Index</var> should be an integer
  2288. between <var>0</var> and <var>Count-1</var>.
  2289. </p>
  2290. <p>It is possible to set or retrieve an element in the array. When setting
  2291. an element of the array, the object that is assigned should be compatible
  2292. with the class of the objects in the collection, as given by the
  2293. <link id="TCollection.ItemClass"/> property.
  2294. </p>
  2295. <p>Adding an element to the array can be done with the <link
  2296. id="TCollection.Add"/> method. The array can be cleared with the <link
  2297. id="TCollection.Clear"/> method. Removing an element of the array should
  2298. be done by freeing that element.
  2299. </p>
  2300. </descr>
  2301. <seealso>
  2302. <link id="TCollection.Count"/>
  2303. <link id="TCollection.ItemClass"/>
  2304. <link id="TCollection.Clear"/>
  2305. <link id="TCollection.Add"/>
  2306. </seealso>
  2307. </element>
  2308. <!--
  2309. *********************************************************************
  2310. IStringsAdapter
  2311. *********************************************************************
  2312. -->
  2313. <element name="IStringsAdapter"> <!-- Class -->
  2314. <short>IStringsAdapter Interface declaration.</short>
  2315. <descr>Is not yet supported in Free Pascal.
  2316. </descr>
  2317. <seealso>
  2318. <link id="TStrings"/>
  2319. </seealso>
  2320. </element>
  2321. <!--
  2322. *********************************************************************
  2323. TStrings
  2324. *********************************************************************
  2325. -->
  2326. <element name="TStrings"> <!-- Class -->
  2327. <short>Class to manage arrays or collections of strings</short>
  2328. <descr>
  2329. <p><var>TStrings</var> implements an abstract class to manage an array of
  2330. strings. It introduces methods to set and retrieve strings in the array,
  2331. searching for a particular string, concatenating the strings and so on.
  2332. It also allows an arbitrary object to be associated with each string.
  2333. </p>
  2334. <p>
  2335. It also introduces methods to manage a series of <var>name=value</var>
  2336. settings, as found in many configuration files.
  2337. </p>
  2338. <p>An instance of <var>TStrings</var> is never created directly, instead a
  2339. descendent class such as <link id="TStringList"/> should be created. This is
  2340. because <var>TStrings</var> is an abstract class which does not implement
  2341. all methods; <var>TStrings</var> also doesn't store any strings, this is the
  2342. functionality introduced in descendents such as <link id="TStringList"/>.
  2343. </p>
  2344. </descr>
  2345. <seealso>
  2346. <link id="TStringList"/>
  2347. </seealso>
  2348. </element>
  2349. <element name="TStrings.DefineProperties"> <!-- Procedure -->
  2350. <short>Method to stream the contents of the string collection</short>
  2351. <descr>
  2352. <var>DefineProperties</var> allows the contents of the string collection
  2353. to be streamed. As such, it overrides <link id="TPersistent.DefineProperties"/>
  2354. </descr>
  2355. <seealso>
  2356. <link id="TPersistent.DefineProperties"/>
  2357. </seealso>
  2358. </element>
  2359. <element name="TStrings.Error"> <!-- Procedure -->
  2360. <short>Raises an <link id="EStringListError"/> exception.</short>
  2361. <descr>
  2362. <p>
  2363. <var>Error</var> raises an <link id="EStringListError"/> exception. It passes
  2364. <var>Msg</var> as a format with <var>Data</var> as the only argument.
  2365. </p>
  2366. <p> This method can be used by descendent objects to raise an error.</p>
  2367. </descr>
  2368. <seealso>
  2369. <link id="EStringListError"/>
  2370. </seealso>
  2371. </element>
  2372. <element name="TStrings.Get"> <!-- Function -->
  2373. <short>Abstract read handler for the <link id="TStrings.Strings"/> property.</short>
  2374. <descr>
  2375. <p>
  2376. <var>Get</var> is the abstract read handler for the <link id="TStrings.Strings"/>
  2377. property. This is an abstract method, hence it is not implemented in
  2378. <var>TStrings</var>.
  2379. </p>
  2380. <p>
  2381. Descendent classes, such as <link id="TStringList"/> must override this
  2382. method and implement a routine that retrieves the <var>Index</var>-th string
  2383. in the list. <var>Index</var> should have a value between <var>0</var> and
  2384. <var>Count-1</var>, in all other cases an error should be raised using
  2385. <link id="TStrings.Error"/>.
  2386. </p>
  2387. </descr>
  2388. <seealso>
  2389. <link id="TStrings.Strings"/>
  2390. <link id="TStrings.Put"/>
  2391. <link id="TStrings.GetObject"/>
  2392. </seealso>
  2393. </element>
  2394. <element name="TStrings.GetCapacity"> <!-- Function -->
  2395. <short>Abstract Read handler for the <link id="TStrings.Capacity"/> property.</short>
  2396. <descr>
  2397. <p>
  2398. <var>GetCapacity</var> is the read handler for the <link
  2399. id="TStrings.Capacity"/> property. The implementation in <var>TStrings</var>
  2400. will return 0.
  2401. </p>
  2402. <p>Descendent classes can override this method. It should return the
  2403. current number of strings that can be held by the stringlist before
  2404. it attempts to expand it's storage space.
  2405. </p>
  2406. </descr>
  2407. <seealso>
  2408. <link id="TStrings.Capacity"/>
  2409. <link id="TStrings.SetCapacity"/>
  2410. </seealso>
  2411. </element>
  2412. <element name="TStrings.GetCount"> <!-- Function -->
  2413. <short>Abstract read handler for the <link id="TStrings.Count"/> property.</short>
  2414. <descr>
  2415. <p>
  2416. <var>GetCount</var> is the abstract read handler for the <link
  2417. id="TStrings.Count"/> property. This is an abstract method, hence it is not implemented in
  2418. <var>TStrings</var>.
  2419. </p>
  2420. <p>
  2421. Descendent classes must override this method. It should return the
  2422. current number of strings in the list. (empty strings included).
  2423. </p>
  2424. </descr>
  2425. <seealso>
  2426. <link id="TStrings.Count"/>
  2427. </seealso>
  2428. </element>
  2429. <element name="TStrings.GetObject"> <!-- Function -->
  2430. <short>Abstract read handler for the <link id="TStrings.Objects"/> property.</short>
  2431. <descr>
  2432. <p>
  2433. <var>GetObject</var> is the read handler for the <link
  2434. id="TStrings.Objects"/> property. The <var>TStrings</var> implementation of
  2435. this method ignores the <var>Index</var> argument and simply
  2436. returns <var>Nil</var>.
  2437. </p>
  2438. <p>
  2439. Descendent classes that should support object storage should override this
  2440. method and return the object associated to the <var>Index</var>-th string
  2441. in the list. <var>Index</var> should have a value between <var>0</var> and
  2442. <var>Count-1</var>. If <var>Index</var> is outside the allowed range, an
  2443. error should be raised using <link id="TStrings.Error"/>.
  2444. </p>
  2445. </descr>
  2446. <seealso>
  2447. <link id="TStrings.Objects"/>
  2448. <link id="TStrings.PutObject"/>
  2449. <link id="TStrings.Get"/>
  2450. </seealso>
  2451. </element>
  2452. <element name="TStrings.GetTextStr"> <!-- Function -->
  2453. <short>Read handler for the <link id="TStrings.Text"/> property.</short>
  2454. <descr>
  2455. <p><var>GetTextStr</var> is the read handler for the <link id="TStrings.Text"/>
  2456. property. It simply concatenates all strings in the list with a linefeed between
  2457. them, and returns the resulting string.
  2458. </p>
  2459. <p>
  2460. Descendent classes may override this method to implement an efficienter
  2461. algorithm which is more suitable to their storage method.
  2462. </p>
  2463. </descr>
  2464. <seealso>
  2465. <link id="TStrings.Text"/>
  2466. <link id="TStrings.SetTextStr"/>
  2467. </seealso>
  2468. </element>
  2469. <element name="TStrings.Put"> <!-- Procedure -->
  2470. <short>Write handler for the <link id="TStrings.Strings"/> property.</short>
  2471. <descr>
  2472. <p>
  2473. <var>Put</var> is the write handler for the <link id="TStrings.Strings"/>
  2474. property. It does this by saving the object associated to the
  2475. <var>Index</var>-th string, deleting the <var>Index</var>-th string, and
  2476. inserting <var>S</var> and the saved object at position <var>Index</var>
  2477. with <link id="TStrings.InsertObject"/>
  2478. </p>
  2479. <p>
  2480. Descendent classes may wish to override <var>Put</var> to implement a more
  2481. efficient method.
  2482. </p>
  2483. </descr>
  2484. <seealso>
  2485. <link id="TStrings.Strings"/>
  2486. <link id="TStrings.Get"/>
  2487. <link id="TStrings.PutObject"/>
  2488. </seealso>
  2489. </element>
  2490. <element name="TStrings.PutObject"> <!-- Procedure -->
  2491. <short>Write handler for the <link id="TStrings.Objects"/> property.</short>
  2492. <descr>
  2493. <p>
  2494. <var>PutObject</var> is the write handler for the <link
  2495. id="TStrings.Objects"/> property. The <var>TStrings</var> implementation of
  2496. <var>PutObject</var> does nothing.
  2497. </p>
  2498. <p>
  2499. Descendent objects that should support Object storage must override this
  2500. method to store the <var>AObject</var> so that it is associated with the
  2501. <var>Index</var>-th string in the list. <var>Index</var> should have a value
  2502. between <var>0</var> and <var>Count-1</var>. If the value of
  2503. <var>Index</var> is out of range, an error should be raised using <link
  2504. id="TStrings.Error"/>.
  2505. </p>
  2506. </descr>
  2507. <seealso>
  2508. <link id="TStrings.Objects"/>
  2509. <link id="TStrings.GetObject"/>
  2510. <link id="TStrings.Put"/>
  2511. </seealso>
  2512. </element>
  2513. <element name="TStrings.SetCapacity"> <!-- Procedure -->
  2514. <short>Write handler for the <link id="TStrings.Capacity"/> property.</short>
  2515. <descr>
  2516. <p>
  2517. <var>SetCapacity</var> is the write handler for the <link
  2518. id="TStrings.Capacity"/> property. The <var>TStrings</var> implementation
  2519. of <var>SetCapacity</var> does nothing.
  2520. </p>
  2521. <p>
  2522. Descendent classes can override this method to set the current capacity of
  2523. the stringlist to <var>NewCapacity</var>. The capacity is the number of strings the list can hold
  2524. before it tries to expand its storage space. <var>NewCapacity</var> should
  2525. be no less than <var>Count</var>.
  2526. </p>
  2527. </descr>
  2528. <seealso>
  2529. <link id="TStrings.Capacity"/>
  2530. <link id="TStrings.GetCapacity"/>
  2531. </seealso>
  2532. </element>
  2533. <element name="TStrings.SetTextStr"> <!-- Procedure -->
  2534. <short>Write handler for the <link id="TStrings.Text"/> property.</short>
  2535. <descr>
  2536. <p>
  2537. <var>SetTextStr</var> is the write method for the <link id="TStrings.Text"/>
  2538. property. It does nothing other than calling <link id="TStrings.SetText"/>.
  2539. </p>
  2540. <p>
  2541. Descendent classes may override this method to implement a more efficient
  2542. algoritm that fits their storage method better.
  2543. </p>
  2544. </descr>
  2545. <seealso>
  2546. <link id="TStrings.Text"/>
  2547. <link id="TStrings.GetTextStr"/>
  2548. </seealso>
  2549. </element>
  2550. <element name="TStrings.SetUpdateState"> <!-- Procedure -->
  2551. <short>Sets the update state. </short>
  2552. <descr>
  2553. <p>
  2554. <var>SetUpdateState</var> sets the update state to <var>Updating</var>. The
  2555. <var>TStrings</var> implementation of <var>SetUpdateState</var> does
  2556. nothing.
  2557. </p>
  2558. <p>
  2559. Descendent objects may override this method to implement optimizations. If
  2560. <var>Updating</var> is <var>True</var> then the list of strings is about to
  2561. be updated (possibly many times). If it is <var>False</var> no more updates
  2562. will take place till the next <var>SetUpdateState</var> call.
  2563. </p>
  2564. </descr>
  2565. <seealso>
  2566. <link id="TStrings.BeginUpdate"/>
  2567. <link id="TStrings.EndUpdate"/>
  2568. </seealso>
  2569. </element>
  2570. <element name="TStrings.Destroy"> <!-- Destructor -->
  2571. <short>Frees all strings and objects, and removes the list from memory.</short>
  2572. <descr>
  2573. <var>Destroy</var> is the destructor of <var>TStrings</var> it does nothing
  2574. except calling the inherited destructor.
  2575. </descr>
  2576. <seealso>
  2577. </seealso>
  2578. </element>
  2579. <element name="TStrings.Add"> <!-- Function -->
  2580. <short>Add a string to the list</short>
  2581. <descr>
  2582. <var>Add</var> adds <var>S</var> at the end of the list and returns the
  2583. index of <var>S</var> in the list (which should equal <link id="Tstrings.Count"/>
  2584. </descr>
  2585. <seealso>
  2586. <link id="TStrings.Items"/>
  2587. <link id="TStrings.AddObject"/>"
  2588. <link id="TStrings.Insert"/>
  2589. <link id="TStrings.Delete"/>
  2590. <link id="TStrings.Strings"/>
  2591. <link id="TStrings.Count"/>
  2592. </seealso>
  2593. </element>
  2594. <element name="TStrings.AddObject"> <!-- Function -->
  2595. <short>Add a string and associated object to the list.</short>
  2596. <descr>
  2597. <p>
  2598. <var>AddObject</var> adds <var>S</var> to the list of strings, and
  2599. associates <var>AObject</var> with it. It returns the index of <var>S</var>.
  2600. </p>
  2601. <remark>
  2602. An object added to the list is not automatically destroyed by the list of
  2603. the list is destroyed or the string it is associated with is deleted. It is
  2604. the responsibility of the application to destroy any objects associated with
  2605. strings.
  2606. </remark>
  2607. </descr>
  2608. <seealso>
  2609. <link id="TStrings.Add"/>
  2610. <link id="Tstrings.Items"/>
  2611. <link id="TStrings.Objects"/>
  2612. <link id="Tstrings.InsertObject"/>
  2613. </seealso>
  2614. </element>
  2615. <element name="TStrings.Append"> <!-- Procedure -->
  2616. <short>Add a string to the list.</short>
  2617. <descr>
  2618. <var>Append</var> does the same as <link id="TStrings.Add"/>, only it does
  2619. not return the index of the inserted string.
  2620. </descr>
  2621. <seealso>
  2622. <link id="TStrings.Add"/>
  2623. </seealso>
  2624. </element>
  2625. <element name="TStrings.AddStrings"> <!-- Procedure -->
  2626. <short>Add contents of another stringlist to this list.</short>
  2627. <descr>
  2628. <var>AddStrings</var> adds the contents of <var>TheStrings</var> to the
  2629. stringlist. Any associated objects are added as well.
  2630. </descr>
  2631. <seealso>
  2632. <link id="TStrings.Add"/>
  2633. <link id="TStrings.Assign"/>
  2634. </seealso>
  2635. </element>
  2636. <element name="TStrings.Assign"> <!-- Procedure -->
  2637. <short>Assign the contents of another stringlist to this one.</short>
  2638. <descr>
  2639. <var>Assign</var> replaces the contents of the stringlist with the contents
  2640. of <var>Source</var> if <var>Source</var> is also of type
  2641. <var>TStrings</var>. Any associated objects are copied as well.
  2642. </descr>
  2643. <seealso>
  2644. <link id="TStrings.Add"/>
  2645. <link id="TStrings.AddStrings"/>
  2646. <link id="TPersistent.Assign"/>
  2647. </seealso>
  2648. </element>
  2649. <element name="TStrings.BeginUpdate"> <!-- Procedure -->
  2650. <short>Mark the beginning of an update batch.</short>
  2651. <descr>
  2652. <p>
  2653. <var>BeginUpdate</var> increases the update count by one. It is advisable to
  2654. call <var>BeginUpdate</var> before lengthy operations on the stringlist. At
  2655. the end of these operation, <link id="TStrings.EndUpdate"/> should be
  2656. called to mark the end of the operation. Descendent classes may use this
  2657. information to perform optmizations. e.g. updating the screen only once
  2658. after many strings were added to the list.
  2659. </p>
  2660. <p>
  2661. All <var>TStrings</var> methods that modify the string list call
  2662. <var>BeginUpdate</var> before the actual operation, and call
  2663. <var>endUpdate</var> when the operation is finished. Descendent classes
  2664. should also call these methods when modifying the string list.
  2665. </p>
  2666. <remark>
  2667. <p>
  2668. Always put the corresponding call to <link id="TStrings.EndUpdate"/> in the
  2669. context of a <var>Finally</var> block, to ensure that the update count is
  2670. always descreased at the end of the operation, even if an exception
  2671. occurred:
  2672. </p>
  2673. <code>
  2674. With MyStrings do
  2675. try
  2676. BeginUpdate;
  2677. // Some lengthy operation.
  2678. Finally
  2679. EndUpdate
  2680. end;
  2681. </code>
  2682. </remark>
  2683. </descr>
  2684. <seealso>
  2685. <link id="TStrings.EndUpdate"/>
  2686. </seealso>
  2687. </element>
  2688. <element name="TStrings.Clear"> <!-- Procedure -->
  2689. <short>Removes all strings and associated objects from the list.</short>
  2690. <descr>
  2691. <p>
  2692. <var>Clear</var> will remove all strings and their associated objects from
  2693. the list. After a call to clear, <link id="TStrings.Count"/> is zero.
  2694. </p>
  2695. <p>
  2696. Since it is an abstract method, <var>TStrings</var> itself does not implement
  2697. <var>Clear</var>. Descendent classes such as <link
  2698. id="TStringList"/> implement this method.
  2699. </p>
  2700. </descr>
  2701. <seealso>
  2702. <link id="TStrings.Items"/>
  2703. <link id="TStrings.Delete"/>
  2704. <link id="TStrings.Count"/>"
  2705. </seealso>
  2706. </element>
  2707. <element name="TStrings.Delete"> <!-- Procedure -->
  2708. <short>Delete a string from the list.</short>
  2709. <descr>
  2710. <p>
  2711. <var>Delete</var> deletes the string at position <var>Index</var> from the
  2712. list. The associated object is also removed from the list, but not
  2713. destroyed. <var>Index</var> is zero-based, and should be in the range
  2714. <var>0</var> to <var>Count-1</var>.
  2715. </p>
  2716. <p>
  2717. Since it is an abstract method, <var>TStrings</var> itself does not implement
  2718. <var>Delete</var>. Descendent classes such as <link
  2719. id="TStringList"/> implement this method.
  2720. </p>
  2721. </descr>
  2722. <errors>
  2723. If <var>Index</var> is not in the allowed range, an <link
  2724. id="EStringListError"/> is raised.
  2725. </errors>
  2726. <seealso>
  2727. <link id="TStrings.Insert"/>
  2728. <link id="TStrings.Items"/>
  2729. <link id="TStrings.Clear"/>
  2730. </seealso>
  2731. </element>
  2732. <element name="TStrings.EndUpdate"> <!-- Procedure -->
  2733. <short>Mark the end of an update batch.</short>
  2734. <descr>
  2735. <p>
  2736. <var>EndUpdate</var> should be called at the end of a lengthy operation on
  2737. the stringlist, but only if there was a call to <var>BeginUpdate</var> before
  2738. the operation was started. It is best to put the call to
  2739. <var>EndUpdate</var> in the context of a <var>Finally</var> block, so it
  2740. will be called even if an exception occurs.
  2741. </p>
  2742. <p>
  2743. For more information, see <link id="TStrings.BeginUpdate"/>.
  2744. </p>
  2745. </descr>
  2746. <seealso>
  2747. <link id="TStrings.BeginUpdate"/>
  2748. </seealso>
  2749. </element>
  2750. <element name="TStrings.Equals"> <!-- Function -->
  2751. <short>Compares the contents of two stringlists.</short>
  2752. <descr>
  2753. <p>
  2754. <var>Equals</var> compares the contents of the stringlist with the contents
  2755. of <var>TheStrings</var>. If the contents match, i.e. the stringlist contain
  2756. an equal amount of strings, and all strings match, then <var>True</var> is
  2757. returned. If the number of strings in the lists is is unequal, or they
  2758. contain one or more different strings, <var>False</var> is returned.
  2759. </p>
  2760. <remark>
  2761. <ol>
  2762. <li>The strings are compared case-insensitively.</li>
  2763. <li>The associated objects are not compared</li>
  2764. </ol>
  2765. </remark>
  2766. </descr>
  2767. <seealso>
  2768. <link id="Tstrings.Items"/>
  2769. <link id="TStrings.Count"/>
  2770. <link id="TStrings.Assign"/>
  2771. </seealso>
  2772. </element>
  2773. <element name="TStrings.Exchange"> <!-- Procedure -->
  2774. <short>Exchanges two strings in the list.</short>
  2775. <descr>
  2776. <p>
  2777. <var>Exchange</var> exchanges the strings at positions <var>Index1</var>
  2778. and <var>Index2</var>. The associated objects are also exchanged.
  2779. </p>
  2780. <p>
  2781. Both indexes must be in the range of valid indexes, i.e. must have a
  2782. value between <var>0</var> and <var>Count-1</var>.
  2783. </p>
  2784. </descr>
  2785. <errors>
  2786. If either <var>Index1</var> or <var>Index2</var> is not in the range of valid
  2787. indexes, an <link id="EStringListError"/> exception is raised.
  2788. </errors>
  2789. <seealso>
  2790. <link id="TStrings.Move"/>
  2791. <link id="TStrings.Strings"/>
  2792. <link id="TStrings.Count"/>
  2793. </seealso>
  2794. </element>
  2795. <element name="TStrings.GetText"> <!-- Function -->
  2796. <short>Returns the contents as a PChar</short>
  2797. <descr>
  2798. <p>
  2799. <var>GetText</var> allocates a memory buffer and compies the contents of the
  2800. stringlist to this buffer as a series of strings, separated by an
  2801. end-of-line marker. The buffer is zero terminated.
  2802. </p>
  2803. <remark>
  2804. The caller is responsible for freeing the returned memory buffer.
  2805. </remark>
  2806. </descr>
  2807. <seealso>
  2808. </seealso>
  2809. </element>
  2810. <element name="TStrings.IndexOf"> <!-- Function -->
  2811. <short>Find a string in the list and return its position.</short>
  2812. <descr>
  2813. <p>
  2814. <var>IndexOf</var> searches the list for <var>S</var>. The search is
  2815. case-insensitive. If a matching entry is found, its position is returned.
  2816. if no matching string is found, <var>-1</var> is returned.
  2817. </p>
  2818. <remark>
  2819. <ol>
  2820. <li>Only the first occurrence of the string is returned.</li>
  2821. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2822. in the list.</li>
  2823. </ol>
  2824. </remark>
  2825. </descr>
  2826. <seealso>
  2827. <link id="TStrings.IndexOfObject"/>
  2828. <link id="TStrings.IndexOfName"/>
  2829. <link id="TStrings.Strings"/>
  2830. </seealso>
  2831. </element>
  2832. <element name="TStrings.IndexOfName"> <!-- Function -->
  2833. <short>Finds the index of a name in the name-value pairs.</short>
  2834. <descr>
  2835. <p>
  2836. <var>IndexOfName</var> searches in the list of strings for a name-value pair
  2837. with name part <var>Name</var>. If such a pair is found, it returns the
  2838. index of the pair in the stringlist. If no such pair is found, the function
  2839. returns <var>-1</var>. The search is done case-insensitive.
  2840. </p>
  2841. <remark>
  2842. <ol>
  2843. <li>Only the first occurrence of a matching name-value pair is returned.</li>
  2844. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2845. in the list.</li>
  2846. </ol>
  2847. </remark>
  2848. </descr>
  2849. <seealso>
  2850. <link id="TStrings.IndexOf"/>
  2851. <link id="TStrings.IndexOfObject"/>
  2852. <link id="TStrings.Strings"/>
  2853. </seealso>
  2854. </element>
  2855. <element name="TStrings.IndexOfObject"> <!-- Function -->
  2856. <short>Finds an object in the list and returns its index.</short>
  2857. <descr>
  2858. <p>
  2859. <var>IndexOfObject</var> searchs through the list of strings till it find a
  2860. string associated with <var>AObject</var>, and returns the index of this
  2861. string. If no such string is found, <var>-1</var> is returned.
  2862. </p>
  2863. <remark>
  2864. <ol>
  2865. <li>Only the first occurrence of a string with associated object
  2866. <var>AObject</var> is returned; if more strings in the list can be
  2867. associated with <var>AObject</var>, they will not be found by this routine.</li>
  2868. <li>The returned position is zero-based, i.e. 0 indicates the first string
  2869. in the list.</li>
  2870. </ol>
  2871. </remark>
  2872. </descr>
  2873. <seealso>
  2874. </seealso>
  2875. </element>
  2876. <element name="TStrings.Insert"> <!-- Procedure -->
  2877. <short>Insert a string in the list.</short>
  2878. <descr>
  2879. <p>
  2880. <var>Insert</var> inserts the string <var>S</var> at position
  2881. <var>Index</var> in the list. <var>Index</var> is a zero-based position,
  2882. and can have values from <var>0</var> to <var>Count</var>. If
  2883. <var>Index</var> equals <var>Count</var> then the string is appended to the
  2884. list.
  2885. </p>
  2886. <remark>
  2887. <ol>
  2888. <li>All methods that add strings to the list use <var>Insert</var> to add
  2889. a string to the list.</li>
  2890. <li>If the string has an associated object, use <link
  2891. id="TStrings.InsertObject"/> instead.</li>
  2892. </ol>
  2893. </remark>
  2894. </descr>
  2895. <errors>
  2896. If <var>Index</var> is less than zero or larger than <var>Count</var> then
  2897. an <link id="EStringListError"/> exception is raised.
  2898. </errors>
  2899. <seealso>
  2900. <link id="TStrings.Add"/>
  2901. <link id="TStrings.InsertObject"/>
  2902. <link id="TStrings.Append"/>
  2903. <link id="TStrings.Delete"/>
  2904. </seealso>
  2905. </element>
  2906. <element name="TStrings.InsertObject"> <!-- Procedure -->
  2907. <short>Insert a string and associated object in the list.</short>
  2908. <descr>
  2909. <p>
  2910. <var>InsertObject</var> inserts the string <var>S</var> and its associated
  2911. object<var>AObject</var> at position <var>Index</var> in the list.
  2912. <var>Index</var> is a zero-based position, and can have values from
  2913. <var>0</var> to <var>Count</var>. If <var>Index</var> equals
  2914. <var>Count</var> then the string is appended to the list.
  2915. </p>
  2916. </descr>
  2917. <errors>
  2918. If <var>Index</var> is less than zero or larger than <var>Count</var> then
  2919. an <link id="EStringListError"/> exception is raised.
  2920. </errors>
  2921. <seealso>
  2922. <link id="TStrings.Insert"/>
  2923. <link id="TStrings.AddObject"/>
  2924. <link id="TStrings.Append"/>
  2925. <link id="TStrings.Delete"/>
  2926. </seealso>
  2927. </element>
  2928. <element name="TStrings.LoadFromFile"> <!-- Procedure -->
  2929. <short>Load the contents of a file as a series of strings.</short>
  2930. <descr>
  2931. <p>
  2932. <var>LoadFromFile</var> loads the contents of a file into the stringlist.
  2933. Each line in the file (as marked by the end-of-line marker of the
  2934. particular OS the application runs on) becomes one string in the stringlist.
  2935. This action replaces
  2936. the contents of the stringlist, it does not append the strings to the
  2937. current content.
  2938. </p>
  2939. <p>
  2940. <var>LoadFromFile</var> simply creates a <link id="TFileStream">file
  2941. stream</link> with the given filename, and then executes
  2942. <link id="TStrings.LoadfromStream"/>; after that the file stream object
  2943. is destroyed again.
  2944. </p>
  2945. </descr>
  2946. <seealso>
  2947. <link id="TStrings.LoadFromStream"/>
  2948. <link id="TStrings.SaveToFile"/>
  2949. <link id="Tstrings.SaveToStream"/>
  2950. </seealso>
  2951. </element>
  2952. <element name="TStrings.LoadFromStream"> <!-- Procedure -->
  2953. <short>Load the contents of a stream as a series of strings.</short>
  2954. <descr>
  2955. <var>LoadFromStream</var> loads the contents of <var>Stream</var>
  2956. into the stringlist.
  2957. Each line in the stream (as marked by the end-of-line marker of the
  2958. particular OS the application runs on) becomes one string in the stringlist.
  2959. This action replaces
  2960. the contents of the stringlist, it does not append the strings to the
  2961. current content.
  2962. </descr>
  2963. <seealso>
  2964. <link id="TStrings.LoadFromFile"/>
  2965. <link id="TStrings.SaveToFile"/>
  2966. <link id="Tstrings.SaveToStream"/>
  2967. </seealso>
  2968. </element>
  2969. <element name="TStrings.Move"> <!-- Procedure -->
  2970. <short>Move a string from one place in the list to another.</short>
  2971. <descr>
  2972. <p>
  2973. <var>Move</var> moves the string at position <var>CurIndex</var> so
  2974. it has position <var>NewIndex</var> after the move operation. The object
  2975. associated to the string is also moved. <var>CurIndex</var> and
  2976. <var>NewIndex</var> should be in the range of <var>0</var> to
  2977. <var>Count-1</var>.
  2978. </p>
  2979. <remark>
  2980. <p>
  2981. <var>NewIndex</var> is <em>not</em> the position in the stringlist before
  2982. the move operation starts. The move operation
  2983. </p>
  2984. <ol>
  2985. <li> removes the string from position <var>CurIndex</var></li>
  2986. <li> inserts the string at position <var>NewIndex</var></li>
  2987. </ol>
  2988. <p>
  2989. This may not lead to the desired result if <var>NewIndex</var> is bigger
  2990. than <var>CurIndex</var>. Consider the following example:
  2991. </p>
  2992. <code>
  2993. With MyStrings do
  2994. begin
  2995. Clear;
  2996. Add('String 0');
  2997. Add('String 1');
  2998. Add('String 2');
  2999. Add('String 3');
  3000. Add('String 4');
  3001. Move(1,3);
  3002. end;
  3003. </code>
  3004. <p>
  3005. After the <var>Move</var> operation has completed, 'String 1' will be between 'String 3'
  3006. and 'String 4'.
  3007. </p>
  3008. </remark>
  3009. </descr>
  3010. <errors>
  3011. If either <var>CurIndex</var> or <var>NewIndex</var> is outside the allowed
  3012. range, an <link id="EStringListError"/> is raised.
  3013. </errors>
  3014. <seealso>
  3015. <link id="TStrings.Exchange"/>
  3016. </seealso>
  3017. </element>
  3018. <element name="TStrings.SaveToFile"> <!-- Procedure -->
  3019. <short>Save the contents of the list to a file.</short>
  3020. <descr>
  3021. <p>
  3022. <var>SaveToFile</var> saves the contents of the stringlist to the file with
  3023. name <var>FileName</var>. It writes the strings to the file, separated by
  3024. end-of-line markers, so each line in the file will contain 1 string from the
  3025. stringlist.
  3026. </p>
  3027. <p>
  3028. <var>SaveToFile</var> creates a <link id="TFileStream">file stream</link>
  3029. with name <var>FileName</var>, calls <link id="TStrings.SaveToStream"/>
  3030. and then destroys the file stream object.
  3031. </p>
  3032. </descr>
  3033. <errors>
  3034. An <link id="EStreamError"/> exception can be raised if the file <var>FileName</var> cannot be opened,
  3035. or if it cannot be written to.
  3036. </errors>
  3037. <seealso>
  3038. <link id="TStrings.SaveToStream"/>
  3039. <link id="Tstrings.LoadFromStream"/>
  3040. <link id="TStrings.LoadFromFile"/>
  3041. </seealso>
  3042. </element>
  3043. <element name="TStrings.SaveToStream"> <!-- Procedure -->
  3044. <short>Save the contents of the string to a stream.</short>
  3045. <descr>
  3046. <p>
  3047. <var>SaveToStream</var> saves the contents of the stringlist to
  3048. <var>Stream</var>. It writes the strings to the stream, separated by
  3049. end-of-line markers, so each 'line' in the stream will contain 1 string from the
  3050. stringlist.
  3051. </p>
  3052. </descr>
  3053. <errors>
  3054. An <link id="EStreamError"/> exception can be raised if the stream cannot be written to.
  3055. </errors>
  3056. <seealso>
  3057. <link id="TStrings.SaveToFile"/>
  3058. <link id="Tstrings.LoadFromStream"/>
  3059. <link id="TStrings.LoadFromFile"/>
  3060. </seealso>
  3061. </element>
  3062. <element name="TStrings.SetText"> <!-- Procedure -->
  3063. <short>Set the contents of the list from a PChar.</short>
  3064. <descr>
  3065. <var>SetText</var> parses the contents of <var>TheText</var> and fills the
  3066. stringlist based on the contents. It regards <var>TheText</var> as a series
  3067. of strings, separated by end-of-line markers. Each of these strings is added
  3068. to the stringlist.
  3069. </descr>
  3070. <seealso>
  3071. <link id="TStrings.Text"/>
  3072. </seealso>
  3073. </element>
  3074. <element name="TStrings.Capacity"> <!-- Property -->
  3075. <short>Capacity of the list, i.e. number of strings that the list can
  3076. currently hold before it tries to expand.</short>
  3077. <descr>
  3078. <p>
  3079. <var>Capacity</var> is the number of strings that the list can hold before
  3080. it tries to allocate more memory.
  3081. </p>
  3082. <p><var>TStrings</var> returns <link id="TStrings.Count"/> when read. Trying
  3083. to set the capacity has no effect. Descendent classes such as
  3084. <link id="TStringlist"/> can override this property such that it actually
  3085. sets the new capacity.
  3086. </p>
  3087. </descr>
  3088. <seealso>
  3089. <link id="TStringList"/>
  3090. <link id="TStrings.Count"/>
  3091. </seealso>
  3092. </element>
  3093. <element name="TStrings.CommaText"> <!-- Property -->
  3094. <short>Contents of the list as a comma-separated string.</short>
  3095. <descr>
  3096. <p>
  3097. <var>CommaText</var> represents the stringlist as a single string,
  3098. consisting of a comma-separated concatenation of the strings in the list.
  3099. If one of the strings contains spaces, comma's or quotes it will be enclosed by
  3100. double quotes. Any double quotes in a string will be doubled. For instance
  3101. the following strings:
  3102. </p>
  3103. <pre>
  3104. Comma,string
  3105. Quote"string
  3106. Space string
  3107. NormalSttring
  3108. </pre>
  3109. <p>
  3110. is converted to
  3111. </p>
  3112. <code>
  3113. "Comma,string","Quote""String","Space string",NormalString
  3114. </code>
  3115. <p>
  3116. Conversely, when setting the <var>CommaText</var> property, the text will be parsed
  3117. according to the rules outlined above, and the strings will be set
  3118. accordingly. Note that spaces will in this context be regarded as string
  3119. separators, unless the string as a whole is contained in double quotes.
  3120. Spaces that occur next to a delimiter will be ignored.
  3121. The following string:
  3122. </p>
  3123. <pre>
  3124. "Comma,string" , "Quote""String",Space string,, NormalString
  3125. </pre>
  3126. <p>
  3127. Will be converted to
  3128. </p>
  3129. <pre>
  3130. Comma,String
  3131. Quote"String
  3132. Space
  3133. String
  3134. NormalString
  3135. </pre>
  3136. </descr>
  3137. <seealso>
  3138. <link id="TStrings.Text"/>
  3139. <link id="TStrings.SetText"/>
  3140. </seealso>
  3141. </element>
  3142. <element name="TStrings.Count"> <!-- Property -->
  3143. <short>Number of strings in the list.</short>
  3144. <descr>
  3145. <p>
  3146. <var>Count</var> is the current number of strings in the list.
  3147. <var>TStrings</var> does not implement this property; descendent classes
  3148. should override the property read handler to return the correct value.
  3149. </p>
  3150. <p>
  3151. Strings in the list are always uniquely identified by their
  3152. <var>Index</var>; the index of a string is zero-based, i.e. it's supported
  3153. range is <var>0</var> to <var>Count-1</var>. trying to access a string with
  3154. an index larger than or equal to <var>Count</var> will result in an error.
  3155. Code that iterates over the list in a stringlist should always take into
  3156. account the zero-based character of the list index.
  3157. </p>
  3158. </descr>
  3159. <seealso>
  3160. <link id="TStrings.Strings"/>
  3161. <link id="TStrings.Objects"/>
  3162. <link id="TStrings.Capacity"/>
  3163. </seealso>
  3164. </element>
  3165. <element name="TStrings.Names"> <!-- Property -->
  3166. <short>Name parts of the name-value pairs in the list.</short>
  3167. <descr>
  3168. <p>
  3169. <var>Names</var> provides indexed access to the names of teh name-value
  3170. pairs in the list. It returns the name part of the <var>Index</var>-th
  3171. string in the list.
  3172. </p>
  3173. <remark>
  3174. The index is not an index based on the number of name-value pairs in the
  3175. list. It is the name part of the name-value pair a string <var>Index</var>
  3176. in the list. If the string at position <var>Index</var> is not a name-value
  3177. pair (i.e. does not contain the equal sign (=)), then an empty name is
  3178. returned.
  3179. </remark>
  3180. </descr>
  3181. <seealso>
  3182. <link id="TStrings.Values"/>
  3183. <link id="TStrings.IndexOfName"/>
  3184. </seealso>
  3185. </element>
  3186. <element name="TStrings.Objects"> <!-- Property -->
  3187. <short>Indexed access to the objects associated with the strings in the
  3188. list.</short>
  3189. <descr>
  3190. <p>
  3191. <var>Objects</var> provides indexed access to the objects associated to
  3192. the strings in the list. <var>Index</var> is a zero-based index and
  3193. must be in the range of <var>0</var> to <var>Count-1</var>.
  3194. </p>
  3195. <p>
  3196. Setting the <var>objects</var> property will not free the previously associated object,
  3197. if there was one. The caller is repsonsible for freeing the object that
  3198. was previously associated to the string.
  3199. </p>
  3200. <p>
  3201. <var>TStrings</var> does not implement any storage for objects. Reading the
  3202. <var>Objects</var> property will always return <var>Nil</var>, Setting the
  3203. property will have no effect. It is the responsability of the descendent
  3204. classes to provide storage for the associated objects.
  3205. </p>
  3206. </descr>
  3207. <errors>
  3208. If an <var>Index</var> outside the valid range is specified, an <link
  3209. id="EStringListError"/> exception will be raised.
  3210. </errors>
  3211. <seealso>
  3212. <link id="TStrings.Strings"/>
  3213. <link id="TStrings.IndexOfObject"/>
  3214. <link id="TStrings.Names"/>
  3215. <link id="TStrings.Values"/>
  3216. </seealso>
  3217. </element>
  3218. <element name="TStrings.Values"> <!-- Property -->
  3219. <short>Value parts of the name-value pairs in the list.</short>
  3220. <descr>
  3221. <p>
  3222. <var>Values</var> represents the value parts of the name-value pairs in the
  3223. list.
  3224. </p>
  3225. <p>
  3226. When reading this property, if there is a name-value pair in the list
  3227. of strings that has name part <var>Name</var>, then the corresponding value
  3228. is returned. If there is no such pair, an empty string is returned.
  3229. </p>
  3230. <p>
  3231. When writing this value, first it is checked whether there exists a
  3232. name-value pair in the list with name <var>Name</var>. If such a pair is
  3233. found, it's value part is overwritten with the specified value. If no
  3234. such pair is found, a new name-value pair is added with the specified
  3235. <var>Name</var> and value.
  3236. </p>
  3237. <remark>
  3238. <ol>
  3239. <li>Names are compared case-insensitively.</li>
  3240. <li>Any character, including whitespace, up till the first equal (=) sign
  3241. in a string is considered part of the name.</li>
  3242. </ol>
  3243. </remark>
  3244. </descr>
  3245. <seealso>
  3246. <link id="TStrings.Names"/>
  3247. <link id="TStrings.Strings"/>
  3248. <link id="TStrings.Objects"/>
  3249. </seealso>
  3250. </element>
  3251. <element name="TStrings.Strings"> <!-- Property -->
  3252. <short>Indexed access to teh strings in the list.</short>
  3253. <descr>
  3254. <p>
  3255. <var>Strings</var> is the default property of <var>TStrings</var>. It
  3256. provides indexed read-write access to the list of strings. Reading it will
  3257. return the string at position <var>Index</var> in the list. Writing it will
  3258. set the string at position <var>Index</var>.
  3259. </p>
  3260. <p>
  3261. <var>Index</var> is the position of the string in the list. It is
  3262. zero-based, i.e. valued values range from <var>0</var> (the first string in
  3263. the list) till <var>Count-1</var> (the last string in the list).
  3264. When browsing through the strings in the list, this fact must be taken into
  3265. account.
  3266. </p>
  3267. <p>
  3268. To access the objects associated with the strings in the list, use the <link
  3269. id="TStrings.Objects"/> property. The name parts of name-value pairs can be
  3270. accessed with the <link id="TStrings.Names"/> property, and the values can
  3271. be set or read through the <link id="TStrings.Values"/> property.
  3272. </p>
  3273. <p>
  3274. Searching through the list can be done using the <link
  3275. id="TStrings.IndexOf"/> method.
  3276. </p>
  3277. </descr>
  3278. <errors>
  3279. If <var>Index</var> is outside the allowed range, an <link
  3280. id="EStringListError"/> exception is raised.
  3281. </errors>
  3282. <seealso>
  3283. <link id="TStrings.Count"/>
  3284. <link id="TStrings.Objects"/>
  3285. <link id="TStrings.Names"/>
  3286. <link id="TStrings.Values"/>
  3287. <link id="TStrings.IndexOf"/>
  3288. </seealso>
  3289. </element>
  3290. <element name="TStrings.Text"> <!-- Property -->
  3291. <short>Contents of the list as one big string.</short>
  3292. <descr>
  3293. <p>
  3294. <var>Text</var> returns, when read, the contents of the stringlist as one
  3295. big string consisting of all strings in the list, separated by an
  3296. end-of-line marker. When this property is set, the string will be cut into
  3297. smaller strings, based on the positions of end-of-line markers in the
  3298. string. Any previous content of the stringlist will be lost.
  3299. </p>
  3300. <remark>
  3301. If any of the strings in the list contains an end-of-line marker, then the
  3302. resulting string will appear to contain more strings than actually present
  3303. in the list. To avoid this ambiguity, use the <link id="TStrings.CommaText"/>
  3304. property instead.
  3305. </remark>
  3306. </descr>
  3307. <seealso>
  3308. <link id="TStrings.Strings"/>
  3309. <link id="TStrings.Count"/>
  3310. <link id="TStrings.CommaText"/>
  3311. </seealso>
  3312. </element>
  3313. <element name="TStrings.StringsAdapter"> <!-- Property -->
  3314. <short>Not implemented in Free Pascal.</short>
  3315. <descr>
  3316. </descr>
  3317. <seealso>
  3318. </seealso>
  3319. </element>
  3320. <element name="TDuplicates"> <!-- Enumeration type -->
  3321. <short>Type to describe what to do with duplicate values in a <link
  3322. id="TStringlist"/>.</short>
  3323. <descr>
  3324. </descr>
  3325. <seealso>
  3326. </seealso>
  3327. </element>
  3328. <element name="TDuplicates.dupIgnore"> <!-- Enumeration value -->
  3329. <short>Duplicate values will not be be added to the list, but no error will
  3330. be triggered.</short>
  3331. <seealso>
  3332. </seealso>
  3333. </element>
  3334. <element name="TDuplicates.dupAccept"> <!-- Enumeration value -->
  3335. <short>Duplicate values can be added to the list.</short>
  3336. <descr>
  3337. </descr>
  3338. <seealso>
  3339. </seealso>
  3340. </element>
  3341. <element name="TDuplicates.dupError"> <!-- Enumeration value -->
  3342. <short>If an attempt is made to add a duplicate value to the list, an
  3343. <link id="EStringListError"/> exception is raised.</short>
  3344. <descr>
  3345. </descr>
  3346. <seealso>
  3347. </seealso>
  3348. </element>
  3349. <element name="TStringItemList"> <!-- Array type -->
  3350. <short>Array of <link id="TStringItem"/> records.</short>
  3351. <descr>
  3352. This declaration is provided for Delphi compatibility, it is not used in
  3353. Free Pascal.
  3354. </descr>
  3355. </element>
  3356. <!--
  3357. *********************************************************************
  3358. TStringList
  3359. *********************************************************************
  3360. -->
  3361. <element name="TStringList"> <!-- Class -->
  3362. <short>Standard implementation of the <link id="TStrings"/> class.</short>
  3363. <descr>
  3364. <p>
  3365. <var>TStringList</var> is a descendent class of <link id="TStrings"/> that
  3366. implements all of the abstract methods introduced there. It also introduces
  3367. some additional methods:
  3368. </p>
  3369. <ul>
  3370. <li>Sort the list, or keep the list sorted at all times</li>
  3371. <li>Special handling of duplicates in sorted lists</li>
  3372. <li>Notification of changes in the list</li>
  3373. </ul>
  3374. </descr>
  3375. <seealso>
  3376. <link id="TStrings"/>
  3377. <link id="TStrings.Duplicates"/>
  3378. <link id="TStrings.Sorted"/>
  3379. </seealso>
  3380. </element>
  3381. <element name="TStringList.Changed"> <!-- Procedure -->
  3382. <short>Called when the list of strings was modified.</short>
  3383. <descr>
  3384. </descr>
  3385. <seealso>
  3386. </seealso>
  3387. </element>
  3388. <element name="TStringList.Changing"> <!-- Procedure -->
  3389. <short>Called when the list is changing.</short>
  3390. <descr>
  3391. </descr>
  3392. <seealso>
  3393. </seealso>
  3394. </element>
  3395. <element name="TStringList.Get"> <!-- Function -->
  3396. <short>Overrides the standard read handler for the <link id="TStrings.Strings"/> property.</short>
  3397. <descr>
  3398. </descr>
  3399. <seealso>
  3400. </seealso>
  3401. </element>
  3402. <element name="TStringList.GetCapacity"> <!-- Function -->
  3403. <short>Overrides the standard read handler for the <link
  3404. id="TStrings.Capacity"/> property.</short>
  3405. <descr>
  3406. </descr>
  3407. <seealso>
  3408. </seealso>
  3409. </element>
  3410. <element name="TStringList.GetCount"> <!-- Function -->
  3411. <short>Overrides the standard read handler for the <link
  3412. id="TStrings.Count"/> property.</short>
  3413. <descr>
  3414. </descr>
  3415. <seealso>
  3416. </seealso>
  3417. </element>
  3418. <element name="TStringList.GetObject"> <!-- Function -->
  3419. <short>Overrides the standard read handler for the <link
  3420. id="TStrings.Objects"/> property.</short>
  3421. <descr>
  3422. </descr>
  3423. <seealso>
  3424. </seealso>
  3425. </element>
  3426. <element name="TStringList.Put"> <!-- Procedure -->
  3427. <short>Overrides the standard write handler for the <link
  3428. id="TStrings.Strings"/> property.</short>
  3429. <descr>
  3430. </descr>
  3431. <seealso>
  3432. </seealso>
  3433. </element>
  3434. <element name="TStringList.PutObject"> <!-- Procedure -->
  3435. <short>Overrides the standard write handler for the <link
  3436. id="TStrings.Objects"/> property.</short>
  3437. <descr>
  3438. </descr>
  3439. <seealso>
  3440. </seealso>
  3441. </element>
  3442. <element name="TStringList.SetCapacity"> <!-- Procedure -->
  3443. <short>Overrides the standard write handler for the <link
  3444. id="TStrings.Capacity"/> property.</short>
  3445. <descr>
  3446. </descr>
  3447. <seealso>
  3448. </seealso>
  3449. </element>
  3450. <element name="TStringList.SetUpdateState"> <!-- Procedure -->
  3451. <short>Overrides the standard <link id="TStrings.SetUpdateState"/>
  3452. call.</short>
  3453. <descr>
  3454. </descr>
  3455. <seealso>
  3456. </seealso>
  3457. </element>
  3458. <element name="TStringList.Destroy"> <!-- Destructor -->
  3459. <short>Destroys the stringlist.</short>
  3460. <descr>
  3461. <p>
  3462. <var>Destroy</var> clears the stringlist, release all memory allocated for
  3463. the storage of the strings, and then calls the inherited destroy method.
  3464. </p>
  3465. <remark>
  3466. Any objects associated to strings in the list will <em>not</em> be
  3467. destroyed; it is the responsability of the caller to destroy all objects
  3468. associated with strings in the list.
  3469. </remark>
  3470. </descr>
  3471. </element>
  3472. <element name="TStringList.Add"> <!-- Function -->
  3473. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3474. <descr>
  3475. <p>
  3476. <var>Add</var> will add <var>S</var> to the list. If the list is sorted and
  3477. the string <var>S</var> is already present in the list and
  3478. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3479. id="EStringListError"/> exception is raised. If <var>Duplicates</var> is
  3480. set to <var>dupIgnore</var> then the return value is underfined.
  3481. </p>
  3482. <p>
  3483. If the list is sorted, new strings will not necessarily be added to the end
  3484. of the list, rather they will be inserted at their alphabetical position.
  3485. </p>
  3486. </descr>
  3487. <errors>
  3488. If the list is sorted and the string <var>S</var> is already present in the list and
  3489. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3490. id="EStringListError"/> exception is raised.
  3491. </errors>
  3492. <seealso>
  3493. <link id="TStringList.Insert"/>
  3494. <link id="TStringList.Duplicates"/>
  3495. </seealso>
  3496. </element>
  3497. <element name="TStringList.Clear"> <!-- Procedure -->
  3498. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3499. <descr>
  3500. </descr>
  3501. <seealso>
  3502. </seealso>
  3503. </element>
  3504. <element name="TStringList.Delete"> <!-- Procedure -->
  3505. <short>Implements the <link id="TStrings.Delete"/> function.</short>
  3506. <descr>
  3507. </descr>
  3508. <seealso>
  3509. </seealso>
  3510. </element>
  3511. <element name="TStringList.Exchange"> <!-- Procedure -->
  3512. <short>Implements the <link id="TStrings.Exchange"/> function.</short>
  3513. <descr>
  3514. <p>
  3515. <var>Exchange</var> will exchange two items in the list as described in
  3516. <link id="TStrings.Exchange"/>.
  3517. </p>
  3518. <remark>
  3519. <var>Exchange</var> will not check whether the list os sorted or not;
  3520. if <var>Exchange</var> is called on a sorted list and the strings are not
  3521. identical, the sort order of the list will be destroyed.
  3522. </remark>
  3523. </descr>
  3524. <seealso>
  3525. <link id="TStringList.Sorted"/>
  3526. <link id="TStrings.Exchange"/>
  3527. </seealso>
  3528. </element>
  3529. <element name="TStringList.Find"> <!-- Function -->
  3530. <short>Locates the index for a given string in sorted lists.</short>
  3531. <descr>
  3532. <p>
  3533. <var>Find</var> returns <var>True</var> if the string <var>S</var> is present in the
  3534. list. Upon exit, the <var>Index</var> parameter will contain the position of
  3535. the string in the list. If the string is not found, the function will return
  3536. <var>False</var> and <var>Index</var> will contain the position where the
  3537. string will be inserted if it is added to the list.
  3538. </p>
  3539. <remark>
  3540. <ol>
  3541. <li> Use this method only on sorted lists. For unsorted lists, use <link
  3542. id="TStringList.IndexOf"/> instead.</li>
  3543. <li>Find uses a binary search method to locate the string</li>
  3544. </ol>
  3545. </remark>
  3546. </descr>
  3547. <seealso>
  3548. </seealso>
  3549. </element>
  3550. <element name="TStringList.IndexOf"> <!-- Function -->
  3551. <short>Overrides the <link id="TStrings.IndexOf"/> property.</short>
  3552. <descr>
  3553. <var>IndexOf</var> overrides the ancestor method <link
  3554. id="TStrings.indexOf"/>. It tries to optimize the
  3555. search by executing a binary search if the list is sorted. The function
  3556. returns the position of <var>S</var> if it is found in the list, or -1 if
  3557. the string is not found in the list.
  3558. </descr>
  3559. <seealso>
  3560. <link id="TStrings.IndexOf"/>
  3561. <link id="TStringList.Find"/>
  3562. </seealso>
  3563. </element>
  3564. <element name="TStringList.Insert"> <!-- Procedure -->
  3565. <short>Overrides the <link id="TStrings.Insert"/> method.</short>
  3566. <descr>
  3567. <var>Insert</var> will insert the string <var>S</var> at position
  3568. <var>Index</var> in the list. If the list is sorted, an <link
  3569. id="EStringListError"/> exception will be raised instead. <var>Index</var>
  3570. is a zero-based position.
  3571. </descr>
  3572. <errors>
  3573. If <var>Index</var> contains an invalid value (less than zero or larger than
  3574. <var>Count</var>, or the list is sorted, an <link id="EStringListError"/>
  3575. exception will be raised.
  3576. </errors>
  3577. <seealso>
  3578. <link id="TStringList.Add"/>
  3579. <link id="TStrings.Insert"/>
  3580. <link id="TStringList.InsertObject"/>
  3581. </seealso>
  3582. </element>
  3583. <element name="TStringList.Sort"> <!-- Procedure -->
  3584. <short>Sorts the strings in the list.</short>
  3585. <descr>
  3586. <var>Sort</var> will sort the strings in the list using the quicksort
  3587. algorithm. If the list has its <link id="TStringList.Sorted"/> property set
  3588. to <var>True</var> then nothing will be done.
  3589. </descr>
  3590. <seealso>
  3591. <link id="TStringList.Sorted"/>
  3592. </seealso>
  3593. </element>
  3594. <element name="TStringList.Duplicates"> <!-- Property -->
  3595. <short>Describes the behaviour of a sorted list with respect to duplicate
  3596. strings.</short>
  3597. <descr>
  3598. <p>
  3599. <var>Duplicates</var> describes what to do in case a duplicate value is
  3600. added to the list:
  3601. </p>
  3602. <table>
  3603. <tr><td>dupIgnore</td><td><printshort id="TDuplicates.dupIgnore"/></td></tr>
  3604. <tr><td>dupError</td><td><printshort id="TDuplicates.dupError"/></td></tr>
  3605. <tr><td>dupAccept</td><td><printshort id="TDuplicates.dupAccept"/></td></tr>
  3606. </table>
  3607. <p>
  3608. If the stringlist is not sorted, the <var>Duplicates</var> setting is
  3609. ignored.
  3610. </p>
  3611. </descr>
  3612. <seealso>
  3613. </seealso>
  3614. </element>
  3615. <element name="TStringList.Sorted"> <!-- Property -->
  3616. <short>Determines whether the list is sorted or not.</short>
  3617. <descr>
  3618. <p>
  3619. <var>Sorted</var> can be set to <var>True</var> in order to cause the list
  3620. of strings to be sorted. Further additions to the list will be inserted at
  3621. the correct position so the list remains sorted at all times. Setting the
  3622. property to <var>False</var> has no immediate effect, but will allow strings
  3623. to be inserted at any position.
  3624. </p>
  3625. <remark>
  3626. <ol>
  3627. <li>
  3628. When <var>Sorted</var> is <var>True</var>, <link id="TStringList.Insert"/>
  3629. cannot be used. For sorted lists, <link id="TStringList.Add"/> should be
  3630. used instead.</li>
  3631. <li>If <var>Sorted</var> is <var>True</var>, the <link
  3632. id="TStringList.Duplicates"/> setting has effect. This setting is ignored
  3633. when <var>Sorted</var> is <var>False</var>.</li>
  3634. </ol>
  3635. </remark>
  3636. </descr>
  3637. <seealso>
  3638. <link id="TStringList.Sort"/>
  3639. <link id="TStringList.Duplicates"/>
  3640. <link id="TStringList.Add"/>
  3641. <link id="TstringList.Insert"/>
  3642. </seealso>
  3643. </element>
  3644. <element name="TStringList.OnChange"> <!-- Property -->
  3645. <short>Event triggered after the list was modified.</short>
  3646. <descr>
  3647. <p>
  3648. <var>OnChange</var> can be assigned to respond to changes that have occurred
  3649. in the list. The handler is called whenever strings are added, moved,
  3650. modified or deleted from the list.
  3651. </p>
  3652. <p>
  3653. The <var>Onchange</var> event is triggered after the modification took place.
  3654. When the modification is about to happen, an <link
  3655. id="TstringList.OnChanging"/> event occurs.
  3656. </p>
  3657. </descr>
  3658. <seealso>
  3659. <link id="TStringList.OnChanging"/>
  3660. </seealso>
  3661. </element>
  3662. <element name="TStringList.OnChanging"> <!-- Property -->
  3663. <short>Event triggered when the list is about to be modified.</short>
  3664. <descr>
  3665. <p>
  3666. <var>OnChanging</var> can be assigned to respond to changes that will occurred
  3667. in the list. The handler is called whenever strings will be added, moved,
  3668. modified or deleted from the list.
  3669. </p>
  3670. <p>
  3671. The <var>Onchanging</var> event is triggered before the modification will
  3672. take place. When the modification has happened, an <link
  3673. id="TstringList.OnChange"/> event occurs.
  3674. </p>
  3675. </descr>
  3676. <seealso>
  3677. <link id="TStringList.OnChange"/>
  3678. </seealso>
  3679. </element>
  3680. <!--
  3681. *********************************************************************
  3682. TStream
  3683. *********************************************************************
  3684. -->
  3685. <element name="TStream"> <!-- Class -->
  3686. <short>Base class for streams.</short>
  3687. <descr>
  3688. <p>
  3689. <var>TStream</var> is the base class for all streaming classes. It defines
  3690. abstract methods for <link id="TStream.Read">reading</link>, <link
  3691. id="TStream.Write">writing</link> from and to streams, as well as functions to
  3692. determine the size of the stream as well as the current position of the
  3693. stream.
  3694. </p>
  3695. <p>Descendent classes such as <link id="TMemoryStream"/> or <link
  3696. id="TFileStream"/> then implement these abstract methods to write streams to
  3697. memory or file.
  3698. </p>
  3699. </descr>
  3700. <seealso>
  3701. <link id="TMemoryStream"/>
  3702. <link id="TFileStream"/>
  3703. <link id="TStringStream"/>
  3704. </seealso>
  3705. </element>
  3706. <element name="TStream.SetSize"> <!-- Procedure -->
  3707. <short>Sets the size of the stream</short>
  3708. <descr>
  3709. <var>SetSize</var> is the write handler for the <link id="TStream.Size"/>
  3710. property. The <var>TStream</var> implementation of <var>SetSize</var> does
  3711. nothing, but descendent classes may override this methods to allow
  3712. programmers to set the size of the stream.
  3713. </descr>
  3714. <seealso>
  3715. <link id="TStream.GetSize"/>
  3716. <link id="TStream.Size"/>
  3717. </seealso>
  3718. </element>
  3719. <element name="TStream.Read"> <!-- Function -->
  3720. <short>Reads data from the stream to a buffer and returns the number of
  3721. bytes read.</short>
  3722. <descr>
  3723. <p>
  3724. <var>Read</var> attempts to read <var>Count</var> from the stream to
  3725. <var>Buffer</var> and returns the number of bytes actually read.
  3726. </p>
  3727. <p>This method should be used when the number of bytes is not determined.
  3728. If a specific number of bytes is expected, use <link
  3729. id="TSTream.ReadBuffer"/> instead.
  3730. </p>
  3731. <p>
  3732. <var>Read</var> is an abstract method that is overridden by descendent
  3733. classes to do the actual reading.
  3734. </p>
  3735. </descr>
  3736. <errors>
  3737. Descendent classes that do not allow reading from the stream may raise an
  3738. exception when the <var>Read</var> is used.
  3739. </errors>
  3740. <seealso>
  3741. <link id="TStream.Write"/>
  3742. <link id="TStream.ReadBuffer"/>
  3743. </seealso>
  3744. </element>
  3745. <element name="TStream.Write"> <!-- Function -->
  3746. <short>Writes data from the stream to the buffer and returns the number of
  3747. bytes written.</short>
  3748. <descr>
  3749. <p>
  3750. <var>Write</var> attempts to write <var>Count</var> bytes from
  3751. <var>Buffer</var> to the stream. It returns the actual number of bytes
  3752. written to the stream.
  3753. </p>
  3754. <p>This method should be used when the number of bytes that should be
  3755. written is not determined. If a specific number of bytes should be
  3756. written, use <link id="TSTream.WriteBuffer"/> instead.
  3757. </p>
  3758. <p>
  3759. <var>Write</var> is an abstract method that is overridden by descendent
  3760. classes to do the actual writinging.
  3761. </p>
  3762. </descr>
  3763. <errors>
  3764. Descendent classes that do not allow writing to the stream may raise an
  3765. exception when <var>Write</var> is used.
  3766. </errors>
  3767. <seealso>
  3768. <link id="TStream.Read"/>
  3769. <link id="TStream.WriteBuffer"/>
  3770. </seealso>
  3771. </element>
  3772. <element name="TStream.Seek"> <!-- Function -->
  3773. <short>Sets the current position in the stream</short>
  3774. <descr>
  3775. <p>
  3776. <var>Seek</var> sets the position of the stream to <var>Offset</var> bytes
  3777. from <var>Origin</var>. <var>Origin</var> can have one of the following
  3778. values:
  3779. </p>
  3780. <table>
  3781. <tr><td>Constant</td><td>Meaning</td></tr>
  3782. <tr><td>soFromBeginning</td><td>Set the position relative to the start of
  3783. the stream.</td></tr>
  3784. <tr><td>soFromCurrent</td><td>Set the position relative to the beginning of
  3785. the stream.</td></tr>
  3786. <tr><td>soFromEnd</td><td>Set the position relative to the end of the
  3787. stream.</td></tr>
  3788. </table>
  3789. <p>
  3790. <var>Offset</var> should be negative when the origin is <var>SoFromEnd</var>.
  3791. It should be positive for <var>soFromBeginning</var> and can have both signs
  3792. for <var>soFromCurrent</var>
  3793. </p>
  3794. <p>
  3795. This is an abstract method, which must be overridden by descendent classes.
  3796. They may choose not to implement this method for all values of
  3797. <var>Origin</var> and <var>Offset</var>.
  3798. </p>
  3799. </descr>
  3800. <errors>
  3801. An exception may be raised if this method is called with an invalid pair of
  3802. <var>Offset</var>,<var>Origin</var> values. e.g. a negative
  3803. <var>offset</var> for <var>soFromBeginning</var>.
  3804. </errors>
  3805. <seealso>
  3806. <link id="TStream.Position"/>
  3807. </seealso>
  3808. </element>
  3809. <element name="TStream.ReadBuffer"> <!-- Procedure -->
  3810. <short>Reads data from the stream to a buffer</short>
  3811. <descr>
  3812. <p>
  3813. <var>ReadBuffer</var> reads <var>Count</var> bytes of the stream into
  3814. <var>Buffer</var>. If the stream does not contain <var>Count</var> bytes,
  3815. then an exception is raised.
  3816. </p>
  3817. <p>
  3818. <var>ReadBuffer</var> should be used to read in a fixed number of bytes,
  3819. such as when reading structures or the content of variables. If the number
  3820. of bytes is not determined, use <link id="TStream.Read"/> instead.
  3821. <var>ReadBuffer</var> uses <var>Read</var> internally to do the actual
  3822. reading.
  3823. </p>
  3824. </descr>
  3825. <errors>
  3826. If the stream does not allow to read <var>Count</var> bytes, then an
  3827. exception is raised.
  3828. </errors>
  3829. <seealso>
  3830. <link id="TStream.Read"/>
  3831. <link id="TStream.WriteBuffer"/>
  3832. </seealso>
  3833. </element>
  3834. <element name="TStream.WriteBuffer"> <!-- Procedure -->
  3835. <short>Writes data from the stream to the buffer</short>
  3836. <descr>
  3837. <p>
  3838. <var>WriteBuffer</var> writes <var>Count</var> bytes to the stream from
  3839. <var>Buffer</var>. If the stream does not allow <var>Count</var> bytes to be
  3840. written, then an exception is raised.
  3841. </p>
  3842. <p>
  3843. <var>WriteBuffer</var> should be used to read in a fixed number of bytes,
  3844. such as when writing structures or the content of variables. If the number
  3845. of bytes is not determined, use <link id="TStream.Write"/> instead.
  3846. <var>WriteBuffer</var> uses <var>Write</var> internally to do the actual
  3847. reading.
  3848. </p>
  3849. </descr>
  3850. <errors>
  3851. If the stream does not allow to write <var>Count</var> bytes, then an
  3852. exception is raised.
  3853. </errors>
  3854. <seealso>
  3855. <link id="TStream.Write"/>
  3856. <link id="TStream.ReadBuffer"/>
  3857. </seealso>
  3858. </element>
  3859. <element name="TStream.CopyFrom"> <!-- Function -->
  3860. <short>Copy data from one stream to another</short>
  3861. <descr>
  3862. <p>
  3863. <var>CopyFrom</var> reads <var>Count</var> bytes from <var>Source</var> and
  3864. writes them to the current stream. This updates the current position in the
  3865. stream. After the action is completed, the number of bytes copied is
  3866. returned.
  3867. </p>
  3868. <p>
  3869. This can be used to quickly copy data from one stream to another or to copy
  3870. the whole contents of the stream.
  3871. </p>
  3872. </descr>
  3873. <seealso>
  3874. <link id="TStream.Read"/>
  3875. <link id="TStream.Write"/>
  3876. </seealso>
  3877. </element>
  3878. <element name="TStream.ReadComponent"> <!-- Function -->
  3879. <short>Reads component data from a stream</short>
  3880. <descr>
  3881. <p>
  3882. <var>ReadComponent</var> reads a component state from the stream and
  3883. transfers this state to <var>Instance</var>. If <var>Instance</var> is nil,
  3884. then it is created first based on the type stored in the stream.
  3885. <var>ReadComponent</var> returns the component as it is read from the stream.
  3886. </p>
  3887. <p>
  3888. <var>ReadComponent</var> simply creates a <link id="TReader"/> object and
  3889. calls its <link id="TReader.ReadRootComponent">ReadRootComponent</link>
  3890. method.
  3891. </p>
  3892. </descr>
  3893. <errors>
  3894. If an error occurs during the reading of the component, an <link
  3895. id="EFilerError"/> exception is raised.
  3896. </errors>
  3897. <seealso>
  3898. <link id="TStream.WriteComponent"/>
  3899. <link id="TStream.ReadComponentRes"/>
  3900. <link id="TReader.ReadRootComponent"/>
  3901. </seealso>
  3902. </element>
  3903. <element name="TStream.ReadComponentRes"> <!-- Function -->
  3904. <short>Reads component data and resource header from a stream</short>
  3905. <descr>
  3906. <p>
  3907. <var>ReadComponentRes</var> reads a resource header from the stream, and then
  3908. calls <link id="TStream.ReadComponent">ReadComponent</link> to read the
  3909. component state from the stream into <var>Instance</var>.
  3910. </p>
  3911. <p>
  3912. This method is usually called by the global streaming method when
  3913. instantiating forms and datamodules as created by an IDE. It should be used
  3914. mainly on Windows, to store components in Windows resources.
  3915. </p>
  3916. </descr>
  3917. <errors>
  3918. If an error occurs during the reading of the component, an <link
  3919. id="EFilerError"/> exception is raised.
  3920. </errors>
  3921. <seealso>
  3922. <link id="TStream.ReadComponent"/>
  3923. <link id="TStream.WriteComponentRes"/>
  3924. </seealso>
  3925. </element>
  3926. <element name="TStream.WriteComponent"> <!-- Procedure -->
  3927. <short>Write component data to the stream</short>
  3928. <descr>
  3929. <p>
  3930. <var>WriteComponent</var> writes the published properties of
  3931. <var>Instance</var> to the stream, so they can later be read with <link
  3932. id="TStream.ReadComponent"/>. This method is intended to be used by an IDE,
  3933. to preserve the state of a form or datamodule as designed in the IDE.
  3934. </p>
  3935. <p>
  3936. <var>WriteComponent</var> simply calls <link
  3937. id="TStream.WriteDescendent">WriteDescendent</link> with <var>Nil</var>
  3938. ancestor.
  3939. </p>
  3940. </descr>
  3941. <seealso>
  3942. <link id="TStream.ReadComponent"/>
  3943. <link id="TStream.WriteComponentRes"/>
  3944. </seealso>
  3945. </element>
  3946. <element name="TStream.WriteComponentRes"> <!-- Procedure -->
  3947. <short>Write resource header and component data to a stream</short>
  3948. <descr>
  3949. <p>
  3950. <var>WriteComponentRes</var> writes a <var>ResName</var> resource header
  3951. to the stream and then calls <link id="TStream.WriteComponent">WriteComponent</link>
  3952. to write the published properties of <var>Instance</var> to the stream.
  3953. </p>
  3954. <p>
  3955. This method is intened for use by an IDE that can use it to store forms or
  3956. datamodules as designed in a Windows resource stream.
  3957. </p>
  3958. </descr>
  3959. <seealso>
  3960. <link id="TStream.WriteComponent"/>
  3961. <link id="TStream.ReadComponentRes"/>
  3962. </seealso>
  3963. </element>
  3964. <element name="TStream.WriteDescendent"> <!-- Procedure -->
  3965. <short>Write component data to a stream, relative to an ancestor</short>
  3966. <descr>
  3967. <p>
  3968. <var>WriteDescendent</var> writes the state of <var>Instance</var> to the
  3969. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  3970. properties are written to the stream.
  3971. </p>
  3972. <p>
  3973. <var>WriteDescendent</var> creates a <link id="TWriter"/> object and calls
  3974. its <link id="TWriter.WriteDescendent">WriteDescendent</link> object. The
  3975. writer is passed a <link id="TBinaryObjectWriter">binary driver
  3976. object</link> by default.
  3977. </p>
  3978. </descr>
  3979. <seealso>
  3980. </seealso>
  3981. </element>
  3982. <element name="TStream.WriteDescendentRes"> <!-- Procedure -->
  3983. <short>Write resource header and component data to a stream, relative to an ancestor</short>
  3984. <descr>
  3985. <p>
  3986. <var>WriteDescendentRes</var> writes a <var>ResName</var> resource header,
  3987. and then calls <link id="TStream.WriteDescendent">WriteDescendent</link> to
  3988. write the state of <var>Instance</var> to the
  3989. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  3990. properties are written to the stream.
  3991. </p>
  3992. <p>
  3993. This method is intened for use by an IDE that can use it to store forms or
  3994. datamodules as designed in a Windows resource stream.
  3995. </p>
  3996. </descr>
  3997. <seealso>
  3998. </seealso>
  3999. </element>
  4000. <element name="TStream.WriteResourceHeader"> <!-- Procedure -->
  4001. <short>Write resource header to the stream</short>
  4002. <descr>
  4003. <p>
  4004. <var>WriteResourceHeader</var> writes a resource-file header for a resource
  4005. called <var>ResName</var>. It returns in <var>FixupInfo</var> the argument
  4006. that should be passed on to <link id="TStream.FixupResourceHeader"/>.
  4007. </p>
  4008. <p>
  4009. <var>WriteResourceHeader</var> should not be used directly. It is called by
  4010. the <link id="TStream.WriteComponentRes"/> and
  4011. <link id="TStream.WriteDescendentRes"/>
  4012. methods.
  4013. </p>
  4014. </descr>
  4015. <seealso>
  4016. <link id="TStream.FixupResourceHeader"/>
  4017. <link id="TStream.WriteComponentRes"/>
  4018. <link id="TStream.WriteDescendentRes"/>
  4019. </seealso>
  4020. </element>
  4021. <element name="TStream.FixupResourceHeader"> <!-- Procedure -->
  4022. <short>Not implemented in FPC</short>
  4023. <descr>
  4024. <p>
  4025. <var>FixupResourceHeader</var> is used to write the size of the resource
  4026. after a component was written to stream. The size is determined from the
  4027. current position, and it is written at position <var>FixupInfo</var>. After
  4028. that the current position is restored.
  4029. </p>
  4030. <p>
  4031. <var>FixupResourceHeader</var> should never be called directly; it is
  4032. handled by the streaming system.
  4033. </p>
  4034. </descr>
  4035. <seealso>
  4036. <link id="TStream.WriteResourceHeader"/>
  4037. <link id="TStream.WriteComponentRes"/>
  4038. <link id="TStream.WriteDescendentRes"/>
  4039. </seealso>
  4040. </element>
  4041. <element name="TStream.ReadResHeader"> <!-- Procedure -->
  4042. <short>Read a resource header from the stream.</short>
  4043. <descr>
  4044. <p>
  4045. <var>ReadResourceHeader</var> reads a reasource file header from the stream.
  4046. It positions the stream just beyond the header.
  4047. </p>
  4048. <p>
  4049. <var>ReadResourceHeader</var> should not be called directly, it is called by
  4050. the streaming system when needed.
  4051. </p>
  4052. </descr>
  4053. <errors>
  4054. If the resource header is invalid an <link id="EInvalidImage"/> exception is
  4055. raised.
  4056. </errors>
  4057. <seealso>
  4058. <link id="TStream.ReadComponentRes"/>
  4059. <link id="EInvalidImage"/>
  4060. </seealso>
  4061. </element>
  4062. <element name="TStream.ReadByte"> <!-- Function -->
  4063. <short>Read a byte from the stream and return its value.</short>
  4064. <descr>
  4065. <var>ReadByte</var> reads one byte from the stream and returns its value.
  4066. </descr>
  4067. <errors>
  4068. If the byte cannot be read, a <link id="EStreamError"/> exception will be
  4069. raised. This is a utility function which symply calls the
  4070. <link id="TStream.Read">Read</link> function.
  4071. </errors>
  4072. <seealso>
  4073. <link id="TStream.Read"/>
  4074. <link id="TStream.WriteByte"/>
  4075. <link id="TStream.ReadWord"/>
  4076. <link id="TStream.ReadDWord"/>
  4077. <link id="TStream.ReadAnsiString"/>
  4078. </seealso>
  4079. </element>
  4080. <element name="TStream.ReadWord"> <!-- Function -->
  4081. <short>Read a word from the stream and return its value.</short>
  4082. <descr>
  4083. <var>ReadWord</var> reads one Word (i.e. 2 bytes) from the stream
  4084. and returns its value. This is a utility function which symply calls the
  4085. <link id="TStream.Read">Read</link> function.
  4086. </descr>
  4087. <errors>
  4088. If the word cannot be read, a <link id="EStreamError"/> exception will be
  4089. raised.
  4090. </errors>
  4091. <seealso>
  4092. <link id="TStream.Read"/>
  4093. <link id="TStream.WriteWord"/>
  4094. <link id="TStream.ReadByte"/>
  4095. <link id="TStream.ReadDWord"/>
  4096. <link id="TStream.ReadAnsiString"/>
  4097. </seealso>
  4098. </element>
  4099. <element name="TStream.ReadDWord"> <!-- Function -->
  4100. <short>Read a DWord from the stream and return its value.</short>
  4101. <descr>
  4102. <var>ReadDWord</var> reads one DWord (i.e. 4 bytes) from the stream
  4103. and returns its value. This is a utility function which simply calls the
  4104. <link id="TStream.Read">Read</link> function.
  4105. </descr>
  4106. <errors>
  4107. If the DWord cannot be read, a <link id="EStreamError"/> exception will be
  4108. raised.
  4109. </errors>
  4110. <seealso>
  4111. <link id="TStream.Read"/>
  4112. <link id="TStream.WriteDWord"/>
  4113. <link id="TStream.ReadByte"/>
  4114. <link id="TStream.ReadWord"/>
  4115. <link id="TStream.ReadAnsiString"/>
  4116. </seealso>
  4117. </element>
  4118. <element name="TStream.ReadAnsiString"> <!-- Function -->
  4119. <short>Read an ansistring from the stream and return its value.</short>
  4120. <descr>
  4121. <var>ReadAnsiString</var> reads an ansistring from the stream
  4122. and returns its value. This is a utility function which simply calls the
  4123. read function several times.
  4124. The Ansistring should be stored as 4 bytes (a DWord) representing the length
  4125. of the string, and then the string value itself.
  4126. The <link id="TStream.WriteAnsiString">WriteAnsiString</link> function
  4127. writes an ansistring in such a format.
  4128. </descr>
  4129. <errors>
  4130. If the AnsiString cannot be read, a <link id="EStreamError"/> exception will be
  4131. raised.
  4132. </errors>
  4133. <seealso>
  4134. <link id="TStream.Read"/>
  4135. <link id="TStream.WriteAnsiString"/>
  4136. <link id="TStream.ReadByte"/>
  4137. <link id="TStream.ReadWord"/>
  4138. <link id="TStream.ReadDWord"/>
  4139. </seealso>
  4140. </element>
  4141. <element name="TStream.WriteByte"> <!-- Procedure -->
  4142. <short>Write a byte to the stream.</short>
  4143. <descr>
  4144. <var>WriteByte</var> writes the byte <var>B</var> to the stream. This is a
  4145. utility function which simply calls the <link
  4146. id="TStream.Write">Write</link> function.
  4147. The byte can be read from the stream using the <link
  4148. id="TStream.ReadByte">ReadByte</link> function.
  4149. </descr>
  4150. <errors>
  4151. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4152. </errors>
  4153. <seealso>
  4154. <link id="TStream.Write"/>
  4155. <link id="TStream.ReadByte"/>
  4156. <link id="TStream.WriteWord"/>
  4157. <link id="TStream.WriteDWord"/>
  4158. <link id="TStream.WriteAnsiString"/>
  4159. </seealso>
  4160. </element>
  4161. <element name="TStream.WriteWord"> <!-- Procedure -->
  4162. <short>Write a word to the stream.</short>
  4163. <descr>
  4164. <var>WriteWord</var> writes the word <var>W</var> (i.e. 2 bytes) to the stream. This is a
  4165. utility function which simply calls the <link
  4166. id="TStream.Write">Write</link> function.
  4167. The word can be read from the stream using the <link
  4168. id="TStream.ReadWord">ReadWord</link> function.
  4169. </descr>
  4170. <errors>
  4171. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4172. </errors>
  4173. <seealso>
  4174. <link id="TStream.Write"/>
  4175. <link id="TStream.ReadWord"/>
  4176. <link id="TStream.WriteByte"/>
  4177. <link id="TStream.WriteDWord"/>
  4178. <link id="TStream.WriteAnsiString"/>
  4179. </seealso>
  4180. </element>
  4181. <element name="TStream.WriteDWord"> <!-- Procedure -->
  4182. <short>Write a DWord to the stream.</short>
  4183. <descr>
  4184. <var>WriteDWord</var> writes the DWord <var>D</var> (i.e. 4 bytes) to the stream. This is a
  4185. utility function which simply calls the <link
  4186. id="TStream.Write">Write</link> function.
  4187. The DWord can be read from the stream using the <link
  4188. id="TStream.ReadDWord">ReadDWord</link> function.
  4189. </descr>
  4190. <errors>
  4191. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4192. </errors>
  4193. <seealso>
  4194. <link id="TStream.Write"/>
  4195. <link id="TStream.ReadDWord"/>
  4196. <link id="TStream.WriteByte"/>
  4197. <link id="TStream.WriteWord"/>
  4198. <link id="TStream.WriteAnsiString"/>
  4199. </seealso>
  4200. </element>
  4201. <element name="TStream.WriteAnsiString"> <!-- Procedure -->
  4202. <short>Write an ansistring to the stream.</short>
  4203. <descr>
  4204. <var>WriteAnsiString</var> writes the AnsiString <var>S</var> (i.e. 4 bytes) to the stream. This is a
  4205. utility function which simply calls the <link
  4206. id="TStream.Write">Write</link> function.
  4207. The ansistring is written as a 4 byte length specifier, followed by the
  4208. ansistring's content.
  4209. The ansistring can be read from the stream using the <link
  4210. id="TStream.ReadAnsiString">ReadAnsiString</link> function.
  4211. </descr>
  4212. <errors>
  4213. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4214. </errors>
  4215. <seealso>
  4216. <link id="TStream.Write"/>
  4217. <link id="TStream.ReadAnsiString"/>
  4218. <link id="TStream.WriteByte"/>
  4219. <link id="TStream.WriteWord"/>
  4220. <link id="TStream.WriteDWord"/>
  4221. </seealso>
  4222. </element>
  4223. <element name="TStream.Position"> <!-- Property -->
  4224. <short>The current position in the stream.</short>
  4225. <descr>
  4226. <p>
  4227. <var>Position</var> can be read to determine the current position in the
  4228. stream. It can be written to to set the (absolute) position in the stream.
  4229. The position is zero-based, so to set the position at the beginning of the
  4230. stream, the position must be set to zero.
  4231. </p>
  4232. <remark>
  4233. Not all <var>TStream</var> descendants support setting the position in the
  4234. stream, so this should be used with care.
  4235. </remark>
  4236. </descr>
  4237. <errors>
  4238. Some descendents may raise an <link id="EStreamError"/> exception if they
  4239. do not support setting the stream position.
  4240. </errors>
  4241. <seealso>
  4242. <link id="TStream.Size"/>
  4243. <link id="TStream.Seek"/>
  4244. </seealso>
  4245. </element>
  4246. <element name="TStream.Size"> <!-- Property -->
  4247. <short>The current size of the stream.</short>
  4248. <descr>
  4249. <p>
  4250. <var>Size</var> can be read to determine the stream size or to set the
  4251. stream size.
  4252. </p>
  4253. <remark>
  4254. Not all descendents of <var>TStream</var> support getting or setting the
  4255. stream size; they may raise an exception if the <var>Size</var> property
  4256. is read or set.
  4257. </remark>
  4258. </descr>
  4259. <seealso>
  4260. <link id="TStream.Position"/>
  4261. <link id="TStream.Seek"/>
  4262. </seealso>
  4263. </element>
  4264. <!--
  4265. *********************************************************************
  4266. THandleStream
  4267. *********************************************************************
  4268. -->
  4269. <element name="THandleStream"> <!-- Class -->
  4270. <short>Base clas for streams that are identified by an OS handle.</short>
  4271. <descr>
  4272. <p>
  4273. <var>THandleStream</var> is an abstract descendent of the <link
  4274. id="TStream"/>
  4275. class that provides methods for a stream to handle all reading and writing
  4276. to and from a handle, provided by the underlying OS. To this end, it
  4277. overrides the <link id="THandleStream.Read">Read</link> and <link
  4278. id="THandleStream.Write">Write</link> methods of TStream.
  4279. </p>
  4280. <remark>
  4281. <ul>
  4282. <li>
  4283. <var>ThandleStream</var> does not obtain a handle from the OS by itself,
  4284. it just handles reading and writing to such a handle by wrapping the system
  4285. calls for reading and writing;
  4286. Descendent classes should obtain a handle from the OS by themselves and pass it on in the inherited
  4287. constructor.</li>
  4288. <li>
  4289. Contrary to Delphi, no seek is implemented for <var>THandleStream</var>,
  4290. since pipes and sockets do not support this. The seek is implemented in
  4291. descendent methods that support it.
  4292. </li>
  4293. </ul>
  4294. </remark>
  4295. </descr>
  4296. <seealso>
  4297. <link id="TStream"/>
  4298. <link id="TFileStream"/>
  4299. </seealso>
  4300. </element>
  4301. <element name="THandleStream.Create"> <!-- Constructor -->
  4302. <short>Create a handlestream from an OS Handle.</short>
  4303. <descr>
  4304. <var>Create</var> creates a new instance of a <var>THandleStream</var>
  4305. class. It stores <var>AHandle</var> in an internal variable and
  4306. then calls the inherited constructor.
  4307. </descr>
  4308. <seealso>
  4309. <link id="TStream"/>
  4310. </seealso>
  4311. </element>
  4312. <element name="THandleStream.Read"> <!-- Function -->
  4313. <short>Overrides standard read method.</short>
  4314. <descr>
  4315. <p>
  4316. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4317. method of <var>TStream</var>. It uses the <link
  4318. id="THandleStream.Handle">Handle</link> property to read the
  4319. <var>Count</var> bytes into <var>Buffer</var>
  4320. </p>
  4321. <p>
  4322. If no error occurs while reading, the number of bytes actually read will be
  4323. returned.
  4324. </p>
  4325. </descr>
  4326. <errors>
  4327. If the operating system reports an error while reading from the handle, -1
  4328. is returned.
  4329. </errors>
  4330. <seealso>
  4331. <link id="TStream.Read"/>
  4332. <link id="THandleStream.Write"/>
  4333. <link id="THandleStream.Handle"/>
  4334. </seealso>
  4335. </element>
  4336. <element name="THandleStream.Write"> <!-- Function -->
  4337. <short>Overrides standard write method.</short>
  4338. <descr>
  4339. <p>
  4340. <var>Write</var> implements the abstract <link id="TStream.Write">Write</link>
  4341. method of <var>TStream</var>. It uses the <link
  4342. id="THandleStream.Handle">Handle</link> property to write the
  4343. <var>Count</var> bytes from <var>Buffer</var>.
  4344. </p>
  4345. <p>
  4346. If no error occurs while writing, the number of bytes actually written will be
  4347. returned.
  4348. </p>
  4349. </descr>
  4350. <errors>
  4351. If the operating system reports an error while writing to handle, -1
  4352. is returned.
  4353. </errors>
  4354. <seealso>
  4355. <link id="TStream.Read"/>
  4356. <link id="THandleStream.Write"/>
  4357. <link id="THandleStream.Handle"/>
  4358. </seealso>
  4359. </element>
  4360. <element name="THandleStream.Handle"> <!-- Property -->
  4361. <short>The OS handle of the stream.</short>
  4362. <descr>
  4363. <var>Handle</var> represents the Operating system handle to which reading
  4364. and writing is done. The handle can be read only, i.e. it cannot be set
  4365. after the <var>THandlestream</var> instance was created. It should be
  4366. passed to the constructor <link id="THandleStream.Create"/>
  4367. </descr>
  4368. <seealso>
  4369. <link id="THandleStream"/>
  4370. <link id="THandleStream.Create"/>
  4371. </seealso>
  4372. </element>
  4373. <!--
  4374. *********************************************************************
  4375. TFileStream
  4376. *********************************************************************
  4377. -->
  4378. <element name="TFileStream"> <!-- Class -->
  4379. <short>Stream that stores its data in a named file on disk.</short>
  4380. <descr>
  4381. <p>
  4382. <var>TFileStream</var> is a <link id="TStream"/> descdendent that
  4383. stores or reads it's data from a named file in the filesystem of
  4384. the operating system.
  4385. </p>
  4386. <p>
  4387. To this end, it overrides some of the abstract methods in <var>TStream</var>
  4388. and implements them for the case of files on disk, and it adds the <link
  4389. id="TFileStream.Filename">FileName</link> property to the list of public
  4390. properties.
  4391. </p>
  4392. </descr>
  4393. <seealso>
  4394. <link id="TFileStream.Create"/>
  4395. <link id="TStream"/>
  4396. </seealso>
  4397. </element>
  4398. <element name="TFileStream.SetSize"> <!-- Procedure -->
  4399. <short>Sets the size of the file stream.</short>
  4400. <descr>
  4401. <p>
  4402. <var>SetSize</var> sets the size of the file at <var>NewSize</var> bytes.
  4403. Errors returned by the operating system call will be silently ignored.
  4404. </p>
  4405. <p>
  4406. This is the protected write method of the public <link id="TStream.Size"/>
  4407. property.
  4408. </p>
  4409. </descr>
  4410. <seealso>
  4411. <link id="TStream.Size"/>
  4412. </seealso>
  4413. </element>
  4414. <element name="TFileStream.Create"> <!-- Constructor -->
  4415. <short>Creates a file stream.</short>
  4416. <descr>
  4417. <p>
  4418. <var>Create</var> creates a new instance of a <var>TFileStream</var> class.
  4419. It opens the file <var>AFileName</var> with mode <var>Mode</var>, which can
  4420. have one of the following values:
  4421. </p>
  4422. <table>
  4423. <tr>
  4424. <td>fmCreate</td><td><printshort id="fmCreate"/></td>
  4425. </tr>
  4426. <tr>
  4427. <td>fmOpenRead</td><td><printshort id="fmOpenRead"/></td>
  4428. </tr>
  4429. <tr>
  4430. <td>fmOpenWrite</td><td><printshort id="fmOpenWrite"/></td>
  4431. </tr>
  4432. <tr>
  4433. <td>fmOpenReadWrite</td><td><printshort id="fmOpenReadWrite"/></td>
  4434. </tr>
  4435. </table>
  4436. <p>
  4437. After the file has been opened in the requested mode and a handle has been
  4438. obtained from the operating system, the inherited constructor is called.
  4439. </p>
  4440. </descr>
  4441. <errors>
  4442. If the file could not be opened in the requested mode, an <link
  4443. id="EFOpenError"/> exception is raised.
  4444. </errors>
  4445. <seealso>
  4446. <link id="TStream"/>
  4447. <link id="TFileStream.FileName"/>
  4448. <link id="THandleStream.Create"/>
  4449. </seealso>
  4450. </element>
  4451. <element name="TFileStream.Destroy"> <!-- Destructor -->
  4452. <short>Destroys the file stream.</short>
  4453. <descr>
  4454. <p>
  4455. <var>Destroy</var> closes the file (causing possible buffered data to be
  4456. written to disk) and then calls the inherited destructor.
  4457. </p>
  4458. <p>
  4459. Do not call <var>destroy</var> directly, instead call the <var>Free</var>
  4460. method. Destroy does not check whether <var>Self</var> is nil, while
  4461. <var>Free</var> does.
  4462. </p>
  4463. </descr>
  4464. <seealso>
  4465. <link id="TFileStream.Create"/>
  4466. </seealso>
  4467. </element>
  4468. <element name="TFileStream.Seek"> <!-- Function -->
  4469. <short>Overrides the standard method.</short>
  4470. <descr>
  4471. <p>
  4472. <var>Seek</var> attempts to set the position of the stream at
  4473. <var>Offset</var> bytes from <var>Origin</var>. <var>Offset</var> can have
  4474. any integer value which would set the position within the boundaries of the
  4475. file, and thus the valid range depends on the value of <var>Origin</var>.
  4476. <var>Origin</var> can have one of the following values:
  4477. </p>
  4478. <table>
  4479. <tr>
  4480. <td>soFromBeginning</td><td><printshort id="soFromBeginning"/></td>
  4481. </tr>
  4482. <tr>
  4483. <td>soFromCurrent</td><td><printshort id="soFromCurrent"/></td>
  4484. </tr>
  4485. <tr>
  4486. <td>soFromEnd</td><td><printshort id="soFromEnd"/></td>
  4487. </tr>
  4488. </table>
  4489. <p>
  4490. <var>Seek</var> returns the new position in the file, or -1 on error.
  4491. </p>
  4492. </descr>
  4493. <errors>
  4494. On error, -1 is returned, and the position is not changed.
  4495. </errors>
  4496. <seealso>
  4497. <link id="TStream.Position"/>
  4498. <link id="TStream.Size"/>
  4499. </seealso>
  4500. </element>
  4501. <element name="TFileStream.FileName"> <!-- Property -->
  4502. <short>The filename of the stream.</short>
  4503. <descr>
  4504. <var>FileName</var> is the name of the file that the stream reads from or writes
  4505. to. It is the name as passed in the constructor of the stream; it cannot be
  4506. changed. To write to another file, the stream must be freed and created
  4507. again with the new filename.
  4508. </descr>
  4509. <seealso>
  4510. <link id="TFileStream.Create"/>
  4511. </seealso>
  4512. </element>
  4513. <!--
  4514. *********************************************************************
  4515. TCustomMemoryStream
  4516. *********************************************************************
  4517. -->
  4518. <element name="TCustomMemoryStream"> <!-- Class -->
  4519. <short>Abstract stream that stores its data in memory.</short>
  4520. <descr>
  4521. <p>
  4522. <var>TCustomMemoryStream</var> is the parent class for streams that stored
  4523. their data in memory. It introduces all needed functions to handle reading
  4524. from and navigating through the memory, and introduces a
  4525. <link id="TCustomMemoryStream.Memory">Memory</link> property which points to
  4526. the memory area where the stream data is kept.
  4527. </p>
  4528. <p>
  4529. The only thing which <var>TCustomMemoryStream</var> does not do is obtain
  4530. memory to store data when writing data or the writing of data. This
  4531. functionality is implemented in descendent streams such as <link
  4532. id='TMemoryStream'/>. The reason for this approach is that this way it is
  4533. possible to create e.g. read-only descendents of
  4534. <var>TCustomMemoryStream</var> that point to a fixed part in memory which
  4535. can be read from, but not written to.
  4536. </p>
  4537. <remark>
  4538. Since <var>TCustomMemoryStream</var> is an abstract class, do not create
  4539. instances of <var>TMemoryStream</var> directly. Instead,
  4540. create instances of descendents such as <link id="TMemoryStream"/>.
  4541. </remark>
  4542. </descr>
  4543. <seealso>
  4544. <link id="TMemoryStream"/>
  4545. <link id="TStream"/>
  4546. </seealso>
  4547. </element>
  4548. <element name="TCustomMemoryStream.SetPointer"> <!-- Procedure -->
  4549. <short>Sets the internal memory pointer and size of the memory block.</short>
  4550. <descr>
  4551. <p>
  4552. <var>SetPointer</var> updates the internal memory pointer and the size of
  4553. the memory area pointed to.
  4554. </p>
  4555. <p>
  4556. Descendent memory streams should call this method whenever they set or reset
  4557. the memory the stream should read from or write to.
  4558. </p>
  4559. </descr>
  4560. <seealso>
  4561. <link id="TCustomMemoryStream.Memory"/>
  4562. <link id="TStream.Size"/>
  4563. </seealso>
  4564. </element>
  4565. <element name="TCustomMemoryStream.Read"> <!-- Function -->
  4566. <short>Reads <var>Count</var> bytes from the stream into <var>buffer</var>.</short>
  4567. <descr>
  4568. <p>
  4569. <var>Read</var> reads <var>Count</var> bytes from the stream into the memory
  4570. pointed to by <var>buffer</var>. It returns the number of bytes actually
  4571. read.
  4572. </p>
  4573. <p>
  4574. This method overrides the abstract <link id="TStream.Read"/> method of <link
  4575. id="TStream"/>. It will read as much bytes as are still available in the
  4576. memory area pointer to by <link id="TCustomMemoryStream.Memory">Memory</link>.
  4577. After the bytes are read, the internal stream position is updated.
  4578. </p>
  4579. </descr>
  4580. <seealso>
  4581. <link id="TCustomMemoryStream.Memory"/>
  4582. <link id="TStream.Read"/>
  4583. </seealso>
  4584. </element>
  4585. <element name="TCustomMemoryStream.Seek"> <!-- Function -->
  4586. <short>Sets a new position in the stream.</short>
  4587. <descr>
  4588. <var>Seek</var> overrides the abstract <link id="TStream.Seek"/> method.
  4589. It simply updates the internal stream position, and returns the new
  4590. position.
  4591. </descr>
  4592. <errors>
  4593. No checking is done whether the new position is still a valid position, i.e.
  4594. whether the position is still within the range <var>0..Size</var>.
  4595. Attempting a seek outside the valid memory range of the stream may result in
  4596. an exception at the next read or write operation.
  4597. </errors>
  4598. <seealso>
  4599. <link id="TStream.Position"/>
  4600. <link id="TStream.Size"/>
  4601. <link id="TCustomMemoryStream.Memory"/>
  4602. </seealso>
  4603. </element>
  4604. <element name="TCustomMemoryStream.SaveToStream"> <!-- Procedure -->
  4605. <short>Writes the contents of the memory stream to another stream.</short>
  4606. <descr>
  4607. <p>
  4608. <var>SaveToStream</var> writes the contents of the memory stream to
  4609. <var>Stream</var>. The content of <var>Stream</var> is not cleared first.
  4610. The current position of the memory stream is not changed by this action.
  4611. </p>
  4612. <remark>
  4613. <p>
  4614. This method will work much faster than the use of the
  4615. <link id="TStream.CopyFrom"/> method:
  4616. </p>
  4617. <code>
  4618. Seek(0,soFromBeginning);
  4619. Stream.CopyFrom(Self,Size);
  4620. </code>
  4621. <p>
  4622. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4623. <var>SaveToStream</var> writes the contents of the memory as one big block.
  4624. </p>
  4625. </remark>
  4626. </descr>
  4627. <errors>
  4628. If an error occurs when writing to <var>Stream</var> an <link
  4629. id="EStreamError"/> exception will be raised.
  4630. </errors>
  4631. <seealso>
  4632. <link id="TCustomMemoryStream.SaveToFile"/>
  4633. <link id="TStream.CopyFrom"/>
  4634. </seealso>
  4635. </element>
  4636. <element name="TCustomMemoryStream.SaveToFile"> <!-- Procedure -->
  4637. <short>Writes the contents of the stream to a file.</short>
  4638. <descr>
  4639. <p>
  4640. <var>SaveToFile</var> writes the contents of the stream to a file with name
  4641. <var>FileName</var>.
  4642. It simply creates a filestream and writes the contents of the memorystream
  4643. to this file stream using <link id="TCustomMemoryStream.SaveToStream"/>.
  4644. </p>
  4645. <remark>
  4646. <p>
  4647. This method will work much faster than the use of the <link
  4648. id="TStream.CopyFrom"/> method:
  4649. </p>
  4650. <code>
  4651. Stream:=TFileStream.Create(fmCreate,FileName);
  4652. Seek(0,soFromBeginning);
  4653. Stream.CopyFrom(Self,Size);
  4654. </code>
  4655. <p>
  4656. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4657. <var>SaveToFile</var> writes the contents of the memory as one big block.
  4658. </p>
  4659. </remark>
  4660. </descr>
  4661. <errors>
  4662. If an error occurs when creating or writing to the file, an <link
  4663. id="EStreamError"/> exception may occur.
  4664. </errors>
  4665. <seealso>
  4666. <link id="TCustomMemoryStream.SaveToStream"/>
  4667. <link id="TFileStream"/>
  4668. <link id="TStream.CopyFrom"/>
  4669. </seealso>
  4670. </element>
  4671. <element name="TCustomMemoryStream.Memory"> <!-- Property -->
  4672. <short>Pointer to the data kept in the memory stream.</short>
  4673. <descr>
  4674. <p>
  4675. <var>Memory</var> points to the memory area where stream keeps it's data.
  4676. The property is read-only, so the pointer cannot be set this way.
  4677. </p>
  4678. <remark>
  4679. Do not write to the memory pointed to by <var>Memory</var>, since the memory
  4680. content may be read-only, and thus writing to it may cause errors.
  4681. </remark>
  4682. </descr>
  4683. <seealso>
  4684. <link id="TStream.Size"/>
  4685. </seealso>
  4686. </element>
  4687. <!--
  4688. *********************************************************************
  4689. TMemoryStream
  4690. *********************************************************************
  4691. -->
  4692. <element name="TMemoryStream"> <!-- Class -->
  4693. <short>Standard implementation of a stream that stores its data in memory</short>
  4694. <descr>
  4695. <p>
  4696. <var>TMemoryStream</var> is a <link id="TStream"/> descendent that stores
  4697. it's data in memory. It descends directly from <link id="TCustomMemoryStream"/>
  4698. and implements the necessary to allocate and de-allocate memory diretly from
  4699. the heap. It implements the <link id="TMemoryStream.Write">Write</link> method
  4700. which is missing in <var>TCustomMemoryStream</var>.
  4701. </p>
  4702. <p>
  4703. <var>TMemoryStream</var> also introduces methods to load the contents of
  4704. another stream or a file into the memory stream.
  4705. </p>
  4706. <p>
  4707. It is not necessary to do any memory management manually, as the stream
  4708. will allocate or de-allocate memory as needed. When the stream is freed, all
  4709. allocated memory will be freed as well.
  4710. </p>
  4711. </descr>
  4712. <seealso>
  4713. <link id="TCustomMemoryStream"/>
  4714. <link id="TStream"/>
  4715. </seealso>
  4716. </element>
  4717. <element name="TMemoryStream.Realloc"> <!-- Function -->
  4718. <short>Sets the new capacity for the memory stream</short>
  4719. <descr>
  4720. <p>
  4721. <var>SetCapacity</var> sets the capacity of the memory stream, i.e.
  4722. does the actual allocation or de-allocation of memory for the stream. It
  4723. allocates at least <var>NewCapacity</var> bytes on the heap, moves the
  4724. current contents of the stream to this location (as much as fits in) and
  4725. returns the new memory location.
  4726. Extra allocated memory is not initialized, i.e. may contain garbage.
  4727. </p>
  4728. <p>
  4729. Memory is allocated in blocks of 4 Kb; this can be changed by overriding
  4730. the method.
  4731. </p>
  4732. </descr>
  4733. <seealso>
  4734. <link id="TMemoryStream.Capacity"/>
  4735. </seealso>
  4736. </element>
  4737. <element name="TMemoryStream.Capacity"> <!-- Property -->
  4738. <short>Current capacity of the stream.</short>
  4739. <descr>
  4740. <p>
  4741. <var>Capacity</var> is the current capacity of the stream, this is the
  4742. current size of the memory allocated to the stream. This is not necessarily
  4743. equal to the size of the stream, but will always be larger than or equal to
  4744. the size of the stream. When writing to the stream, the <link
  4745. id="TMemoryStream.Write"/> sets the capacity to the needed value.
  4746. </p>
  4747. <p>
  4748. If a lot of write operations will occur, performance may be improved by
  4749. setting the capacity to a large value, so less reallocations of memory will
  4750. occur while writing to the stream.
  4751. </p>
  4752. </descr>
  4753. <seealso>
  4754. <link id="TMemoryStream.ReAlloc"/>
  4755. </seealso>
  4756. </element>
  4757. <element name="TMemoryStream.Destroy"> <!-- Destructor -->
  4758. <short>Frees any allocated memory and destroys the memory stream.</short>
  4759. <descr>
  4760. <var>Free</var> clears the memory stream, thus in effect freeing any memory
  4761. allocated for it, and then frees the memory stream.
  4762. </descr>
  4763. </element>
  4764. <element name="TMemoryStream.Clear"> <!-- Procedure -->
  4765. <short>Zeroes the position, capacity and size of the stream.</short>
  4766. <descr>
  4767. <var>Clear</var> sets the position and size to 0, and sets the capacity of
  4768. the stream to 0, thus freeing all memory allocated for the stream.
  4769. </descr>
  4770. <seealso>
  4771. <link id="TStream.Size"/>
  4772. <link id="TStream.Position"/>
  4773. <link id="TCustomMemoryStream.Memory"/>
  4774. </seealso>
  4775. </element>
  4776. <element name="TMemoryStream.LoadFromStream"> <!-- Procedure -->
  4777. <short>Loads the contents of a stream into memory.</short>
  4778. <descr>
  4779. <p>
  4780. <var>LoadFromStream</var> loads the contents of <var>Stream</var> into
  4781. the memorybuffer of the stream. Any previous contents of the memory
  4782. stream are overwritten. Memory is allocated as needed.
  4783. </p>
  4784. <remark>
  4785. <p>
  4786. The <var>LoadFromStream</var> uses the <link id="TStream.Size">Size</link>
  4787. property of <var>Stream</var> to determine how much memory must be
  4788. allocated. Some streams do not allow the stream size to be determined, so
  4789. care must be taken when using this method.
  4790. </p>
  4791. <p>
  4792. This method will work much faster than the use of the <link
  4793. id="TStream.CopyFrom"/> method:
  4794. </p>
  4795. <code>
  4796. Seek(0,soFromBeginning);
  4797. CopyFrom(Stream,Stream.Size);
  4798. </code>
  4799. <p>
  4800. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4801. <var>LoadFromStream</var> reads the contents of the stream as one big block.
  4802. </p>
  4803. </remark>
  4804. </descr>
  4805. <errors>
  4806. If an error occurs when reading from the stream, an <link
  4807. id="EStreamError"/> may occur.
  4808. </errors>
  4809. <seealso>
  4810. <link id="TStream.CopyFrom"/>
  4811. <link id="TMemoryStream.LoadFromFile"/>
  4812. </seealso>
  4813. </element>
  4814. <element name="TMemoryStream.LoadFromFile"> <!-- Procedure -->
  4815. <short>Loads the contents of a file into memory.</short>
  4816. <descr>
  4817. <p>
  4818. <var>LoadFromFile</var> loads the contents of the file with name
  4819. <var>FileName</var> into the memory stream. The current contents of the
  4820. memory stream is replaced by the contents of the file. Memory is allocated
  4821. as needed.
  4822. </p>
  4823. <p>
  4824. The <var>LoadFromFile</var> method simply creates a filestream and then
  4825. calls the <link id="TMemoryStream.LoadFromStream"/> method.
  4826. </p>
  4827. </descr>
  4828. If an error occurs when creating or reading from the stream, an <link
  4829. id="EStreamError"/> may occur.
  4830. <seealso>
  4831. <link id="TMemoryStream.LoadFromStream"/>
  4832. </seealso>
  4833. </element>
  4834. <element name="TMemoryStream.SetSize"> <!-- Procedure -->
  4835. <short>Sets the size for the memory stream.</short>
  4836. <descr>
  4837. <var>SetSize</var> sets the size of the memory stream to <var>NewSize</var>.
  4838. This will set the capacity of the stream to <var>NewSize</var> and correct
  4839. the current position in the stream when needed.
  4840. </descr>
  4841. <seealso>
  4842. <link id="TStream.Position"/>
  4843. <link id="TStream.Size"/>
  4844. </seealso>
  4845. </element>
  4846. <element name="TMemoryStream.Write"> <!-- Function -->
  4847. <short>Writes data to the stream's memory.</short>
  4848. <descr>
  4849. <p>
  4850. <var>Write</var> writes <var>Count</var> bytes from <var>Buffer</var>
  4851. to the stream's memory, starting at the current position in the stream.
  4852. If more memory is needed than currently allocated, more memory will be
  4853. allocated. Any contents in the memory stream at the current position will be
  4854. overwritten. The function returns the number of bytes actually written
  4855. (which should under normal circumstances always equal <var>Count</var>).
  4856. </p>
  4857. <p>
  4858. This method overrides the abstract <link id="TStream.Write"/> method.
  4859. </p>
  4860. </descr>
  4861. <errors>
  4862. If no more memory could be allocated, then an exception will be raised.
  4863. </errors>
  4864. <seealso>
  4865. <link id="TCustomMemoryStream.Read"/>
  4866. </seealso>
  4867. </element>
  4868. <!--
  4869. *********************************************************************
  4870. TStringStream
  4871. *********************************************************************
  4872. -->
  4873. <element name="TStringStream"> <!-- Class -->
  4874. <short>Stream that stores its data in a string.</short>
  4875. <descr>
  4876. <p>
  4877. <var>TStringStream</var> stores its data in an ansistring. The contents of
  4878. this string is available as the
  4879. <link id="TStringStream.DataString">DataString</link> property. It also
  4880. introduces some methods to read or write parts of the stringstream's data
  4881. as a string.
  4882. </p>
  4883. <p>The main purpose of a <var>TStringSTream</var> is to be able to treat a
  4884. string as a stream from which can be read.
  4885. </p>
  4886. </descr>
  4887. <seealso>
  4888. <link id="TStream"/>
  4889. <link id="TStringStream.DataString"/>
  4890. <link id="TStringStream.ReadString"/>
  4891. <link id="TStringStream.WriteString"/>
  4892. </seealso>
  4893. </element>
  4894. <element name="TStringStream.SetSize"> <!-- Procedure -->
  4895. <short>Sets the size of the stream.</short>
  4896. <descr>
  4897. <var>SetSize</var> sets the size of the stream to <var>newsize</var>.
  4898. It does this by setting the size of the ansisting in which the stream
  4899. is stored. <var>NewSize</var> can have any value greater than or equal to
  4900. zero.
  4901. </descr>
  4902. <errors>
  4903. In case there is not enough memory, an exception may be raised.
  4904. </errors>
  4905. <seealso>
  4906. <link id="TStream.Size"/>
  4907. </seealso>
  4908. </element>
  4909. <element name="TStringStream.Create"> <!-- Constructor -->
  4910. <short>Creates a new stringstream and sets its initial content.</short>
  4911. <descr>
  4912. <var>Create</var> creates a new <var>TStringStream</var> instance and
  4913. sets its initial content to <var>Astring</var>. The position is still 0 but
  4914. the size of the stream will equal the length of the string.
  4915. </descr>
  4916. <seealso>
  4917. <link id="TStringStream.DataString"/>
  4918. </seealso>
  4919. </element>
  4920. <element name="TStringStream.Read"> <!-- Function -->
  4921. <short>Reads from the stream.</short>
  4922. <descr>
  4923. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4924. from <link id="TStream"/>. It tries to read <var>Count</var> bytes into
  4925. <var>Buffer</var>. It returns the number of bytes actually read. The
  4926. position of the stream is advanced with the number of bytes actually read;
  4927. When the reading has reached the end of the <link
  4928. id="TStringSTream.DataString">DataString</link>, then the reading stops,
  4929. i.e. it is not possible to read beyond the end of the datastring.
  4930. </descr>
  4931. <seealso>
  4932. <link id="TStream.Read"/>
  4933. <link id="TStringStream.Write"/>
  4934. <link id="TStringStream.DataString"/>
  4935. </seealso>
  4936. </element>
  4937. <element name="TStringStream.ReadString"> <!-- Function -->
  4938. <short>Reads a string of length <var>Count</var></short>
  4939. <descr>
  4940. <p>
  4941. <var>ReadString</var> reads <var>Count</var> bytes from the stream and
  4942. returns the read bytes as a string. If less than <var>Count</var> bytes
  4943. were available, the string has as many characters as bytes could be read.
  4944. </p>
  4945. <p>The <var>ReadString</var> method is a wrapper around the <link
  4946. id="TStringStream.Read">Read</link> method. It does not do the same stringas
  4947. the <link id="TStream.ReadAnsiString"/> method, which first reads a length
  4948. integer to determine the length of the string to be read.
  4949. </p>
  4950. </descr>
  4951. <seealso>
  4952. <link id="TStringStream.Read"/>
  4953. <link id="TStream.ReadAnsiString"/>
  4954. </seealso>
  4955. </element>
  4956. <element name="TStringStream.Seek"> <!-- Function -->
  4957. <short>Sets the position in the stream.</short>
  4958. <descr>
  4959. <var>Seek</var> implements the abstract <link id="TStream.Seek">Seek</link>
  4960. method.
  4961. </descr>
  4962. <seealso>
  4963. </seealso>
  4964. </element>
  4965. <element name="TStringStream.Write"> <!-- Function -->
  4966. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  4967. method.</short>
  4968. <descr>
  4969. </descr>
  4970. <seealso>
  4971. </seealso>
  4972. </element>
  4973. <element name="TStringStream.WriteString"> <!-- Procedure -->
  4974. <short><var>WriteString</var> writes a string to the stream.</short>
  4975. <descr>
  4976. </descr>
  4977. <seealso>
  4978. </seealso>
  4979. </element>
  4980. <element name="TStringStream.DataString"> <!-- Property -->
  4981. <short>Contains the contents of the stream in string form</short>
  4982. <descr>
  4983. </descr>
  4984. <seealso>
  4985. </seealso>
  4986. </element>
  4987. <!--
  4988. *********************************************************************
  4989. TResourceStream
  4990. *********************************************************************
  4991. -->
  4992. <element name="TResourceStream"> <!-- Class -->
  4993. <short>Stream that reads its data from a resource object.</short>
  4994. <descr>
  4995. </descr>
  4996. <seealso>
  4997. </seealso>
  4998. </element>
  4999. <element name="TResourceStream.Initialize"> <!-- Procedure -->
  5000. <short>Initializes the resource stream.</short>
  5001. <descr>
  5002. </descr>
  5003. <seealso>
  5004. </seealso>
  5005. </element>
  5006. <element name="TResourceStream.Create"> <!-- Constructor -->
  5007. <short>Creates a new instance of a resource stream.</short>
  5008. <descr>
  5009. </descr>
  5010. <seealso>
  5011. </seealso>
  5012. </element>
  5013. <element name="TResourceStream.CreateFromID"> <!-- Constructor -->
  5014. <short>Creates a new instance of a resource stream with resource</short>
  5015. <descr>
  5016. </descr>
  5017. <seealso>
  5018. </seealso>
  5019. </element>
  5020. <element name="TResourceStream.Destroy"> <!-- Destructor -->
  5021. <short>Destroys the instance of the resource stream.</short>
  5022. <descr>
  5023. </descr>
  5024. <seealso>
  5025. </seealso>
  5026. </element>
  5027. <element name="TResourceStream.Write"> <!-- Function -->
  5028. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  5029. method.</short>
  5030. <descr>
  5031. </descr>
  5032. <seealso>
  5033. </seealso>
  5034. </element>
  5035. <element name="TValueType"> <!-- Enumeration type -->
  5036. <short>Enumerated type used to identify the kind of streamed property</short>
  5037. <descr>
  5038. </descr>
  5039. <seealso>
  5040. </seealso>
  5041. </element>
  5042. <element name="TValueType.vaNull"> <!-- Enumeration value -->
  5043. <short>Empty value. Ends a list.</short>
  5044. </element>
  5045. <element name="TValueType.vaList"> <!-- Enumeration value -->
  5046. <short>Identifies the start of a list of values</short>
  5047. </element>
  5048. <element name="TValueType.vaInt8"> <!-- Enumeration value -->
  5049. <short>Integer value, 8 bits long.</short>
  5050. </element>
  5051. <element name="TValueType.vaInt16"> <!-- Enumeration value -->
  5052. <short>Integer value, 16 bits long.</short>
  5053. </element>
  5054. <element name="TValueType.vaInt32"> <!-- Enumeration value -->
  5055. <short>Integer value, 32 bits long.</short>
  5056. </element>
  5057. <element name="TValueType.vaExtended"> <!-- Enumeration value -->
  5058. <short>Extended value.</short>
  5059. </element>
  5060. <element name="TValueType.vaString"> <!-- Enumeration value -->
  5061. <short>String value.</short>
  5062. </element>
  5063. <element name="TValueType.vaIdent"> <!-- Enumeration value -->
  5064. <short>Identifier.</short>
  5065. </element>
  5066. <element name="TValueType.vaFalse"> <!-- Enumeration value -->
  5067. <short>Boolean <var>False</var> value.</short>
  5068. </element>
  5069. <element name="TValueType.vaTrue"> <!-- Enumeration value -->
  5070. <short>Boolean <var>True</var> value.</short>
  5071. </element>
  5072. <element name="TValueType.vaBinary"> <!-- Enumeration value -->
  5073. <short>Binary data follows.</short>
  5074. </element>
  5075. <element name="TValueType.vaSet"> <!-- Enumeration value -->
  5076. <short>Set data follows.</short>
  5077. </element>
  5078. <element name="TValueType.vaLString"> <!-- Enumeration value -->
  5079. <short>Ansistring data follows.</short>
  5080. </element>
  5081. <element name="TValueType.vaNil"> <!-- Enumeration value -->
  5082. <short>Nil pointer.</short>
  5083. </element>
  5084. <element name="TValueType.vaCollection"> <!-- Enumeration value -->
  5085. <short>Collection follows</short>
  5086. </element>
  5087. <element name="TValueType.vaSingle"> <!-- Enumeration value -->
  5088. <short>Single type follows.</short>
  5089. </element>
  5090. <element name="TValueType.vaCurrency"> <!-- Enumeration value -->
  5091. <short>Currency value follows</short>
  5092. </element>
  5093. <element name="TValueType.vaDate"> <!-- Enumeration value -->
  5094. <short>Date value follows</short>
  5095. </element>
  5096. <element name="TValueType.vaWString"> <!-- Enumeration value -->
  5097. <short>Widestring value follows.</short>
  5098. </element>
  5099. <element name="TValueType.vaInt64"> <!-- Enumeration value -->
  5100. <short>Integer value, 64 bits long.</short>
  5101. </element>
  5102. <element name="TFilerFlag"> <!-- Enumeration type -->
  5103. <short>Flags used by the <link id="TFiler"/> class</short>
  5104. <descr>
  5105. The <var>TFiler</var> class uses this enumeration type to decide whether the
  5106. streamed object was streamed as part of an inherited form or not.
  5107. </descr>
  5108. <seealso>
  5109. <link id="TFiler"/>
  5110. </seealso>
  5111. </element>
  5112. <element name="TFilerFlag.ffInherited"> <!-- Enumeration value -->
  5113. <short>Stored object is an inherited object.</short>
  5114. </element>
  5115. <element name="TFilerFlag.ffChildPos"> <!-- Enumeration value -->
  5116. <short>The position of the child on it's parent is included.</short>
  5117. </element>
  5118. <element name="TFilerFlag.ffInline"> <!-- Enumeration value -->
  5119. <short>Used for frames.</short>
  5120. </element>
  5121. <element name="TFilerFlags"> <!-- Set type -->
  5122. <short>Set of <link id="TFilerFlag"/></short>
  5123. </element>
  5124. <element name="TReaderProc"> <!-- Procedure type -->
  5125. <short>Reader procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5126. <descr>
  5127. The <var>TReaderProc</var> reader procedure is a callback procedure which
  5128. will be used by a <link id="TPersistent"/> descendent to read user
  5129. properties from a stream during the streaming process. The <var>Reader</var>
  5130. argument is the writer object which can be used read properties from the
  5131. stream.
  5132. </descr>
  5133. <seealso>
  5134. <Link id="TPersistent.DefineProperties"/>
  5135. </seealso>
  5136. </element>
  5137. <element name="TWriterProc"> <!-- Procedure type -->
  5138. <short>Writer procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5139. <descr>
  5140. The <var>TWriterProc</var> writer procedure is a callback procedure which
  5141. will be used by a <link id="TPersistent"/> descendent to write user
  5142. properties from a stream during the streaming process. The <var>Writer</var>
  5143. argument is the writer object which can be used write properties to the
  5144. stream.
  5145. </descr>
  5146. <seealso>
  5147. <Link id="TPersistent.DefineProperties"/>
  5148. </seealso>
  5149. </element>
  5150. <element name="TStreamProc"> <!-- Procedure type -->
  5151. <short>Procedure type used in streaming.</short>
  5152. <descr>
  5153. </descr>
  5154. <seealso>
  5155. </seealso>
  5156. </element>
  5157. <!--
  5158. *********************************************************************
  5159. TFiler
  5160. *********************************************************************
  5161. -->
  5162. <element name="TFiler"> <!-- Class -->
  5163. <short>Class responsible for streaming of components.</short>
  5164. <descr>
  5165. </descr>
  5166. <seealso>
  5167. </seealso>
  5168. </element>
  5169. <element name="TFiler.SetRoot"> <!-- Procedure -->
  5170. <short>Sets the root component which is being streamed.</short>
  5171. <descr>
  5172. Sets the root component.
  5173. The root component is the initial component which is being streamed.
  5174. </descr>
  5175. <seealso>
  5176. </seealso>
  5177. </element>
  5178. <element name="TFiler.DefineProperty"> <!-- Procedure -->
  5179. <short></short>
  5180. <descr>
  5181. </descr>
  5182. <seealso>
  5183. </seealso>
  5184. </element>
  5185. <element name="TFiler.DefineBinaryProperty"> <!-- Procedure -->
  5186. <short></short>
  5187. <descr>
  5188. </descr>
  5189. <seealso>
  5190. </seealso>
  5191. </element>
  5192. <element name="TFiler.Root"> <!-- Property -->
  5193. <short>The root component is the initial component which is being streamed.
  5194. </short>
  5195. <descr>
  5196. The streaming process will stream a component and all the components which
  5197. it owns. The <var>Root</var> component is the component which is initially
  5198. streamed.
  5199. </descr>
  5200. <seealso>
  5201. <link id="TFiler.LookupRoot">LookupRoot</link>
  5202. </seealso>
  5203. </element>
  5204. <element name="TFiler.LookupRoot"> <!-- Property -->
  5205. <short>Component used to look up ancestor components.</short>
  5206. <descr>
  5207. When comparing inherited component's values against parent values, the
  5208. values are compared with the component in <var>LookupRoot</var>. Initially,
  5209. it is set to <link id="TFiler.Root">Root</link>.
  5210. </descr>
  5211. <seealso>
  5212. <link id="TFiler.Root">Root</link>
  5213. </seealso>
  5214. </element>
  5215. <element name="TFiler.Ancestor"> <!-- Property -->
  5216. <short>Ancestor component from which an inherited component is streamed.</short>
  5217. <descr>
  5218. When streaming a component, this is the parent component. Only properties
  5219. that differ from the parent's property value will be streamed.
  5220. </descr>
  5221. <seealso>
  5222. <link id="TFiler.Root">Root</link>
  5223. <link id="TFiler.LookupRoot">LookupRoot</link>
  5224. </seealso>
  5225. </element>
  5226. <element name="TFiler.IgnoreChildren"> <!-- Property -->
  5227. <short>Determines whether children will be streamed as well.</short>
  5228. <descr>
  5229. By default, all children (i.e. owned objects) will also be streamed when
  5230. streaming a component. This property can be used to prevent owned objects
  5231. from being streamed.
  5232. </descr>
  5233. </element>
  5234. <element name="TComponentClass"> <!-- "class of" type -->
  5235. <short>Class of TComponent</short>
  5236. <descr>
  5237. The <var>TComponentClass</var> type is used when constructing
  5238. <link id="TComponent"/> descendent instances and when registering
  5239. components.
  5240. </descr>
  5241. <seealso>
  5242. <link id="TComponent"/>
  5243. </seealso>
  5244. </element>
  5245. <!--
  5246. *********************************************************************
  5247. TAbstractObjectReader
  5248. *********************************************************************
  5249. -->
  5250. <element name="TAbstractObjectReader"> <!-- Class -->
  5251. <short>Abstract driver class to read stored component data.</short>
  5252. <descr>
  5253. <p>
  5254. The Free Pascal streaming mechanism, while compatible with Delphi's
  5255. mechanism, differs from it in the sense that the streaming mechanism uses
  5256. a driver class when streaming components. The <var>TAbstractObjectReader</var>
  5257. class is the base driver class for reading property values from streams.
  5258. It consists entirely of abstract methods, which must be implemented by
  5259. descendent classes.
  5260. </p>
  5261. <p>
  5262. Different streaming mechanisms can be implemented by making a descendent
  5263. from <var>TAbstractObjectReader</var>. The <link id="TBinaryObjectReader"/>
  5264. class is such a descendent class, which streams data in binary (Delphi
  5265. compatible) format.
  5266. </p>
  5267. <p>
  5268. All methods described in this class, mustbe implemented by descendent
  5269. classes.
  5270. </p>
  5271. </descr>
  5272. <seealso>
  5273. <link id="TBinaryObjectReader"/>
  5274. </seealso>
  5275. </element>
  5276. <element name="TAbstractObjectReader.NextValue"> <!-- Function -->
  5277. <short>Returns the type of the next value in the stream.</short>
  5278. <descr>
  5279. <p>
  5280. This function should return the type of the next value in the stream,
  5281. but should not read it, i.e. the stream position should not be altered by
  5282. this method. This is used to 'peek' in the stream what value is next.
  5283. </p>
  5284. </descr>
  5285. <seealso>
  5286. <link id="TAbstractObjectReader.ReadValue"/>
  5287. </seealso>
  5288. </element>
  5289. <element name="TAbstractObjectReader.ReadValue"> <!-- Function -->
  5290. <short>Reads the type of the next value.</short>
  5291. <descr>
  5292. This function returns the type of the next value in the stream and reads it.
  5293. i.e. after the call to this method, the stream is positioned to read the
  5294. value of the type returned by this function.
  5295. </descr>
  5296. <seealso>
  5297. <link id="TAbstractObjectReader.ReadValue"/>
  5298. </seealso>
  5299. </element>
  5300. <element name="TAbstractObjectReader.BeginRootComponent"> <!-- Procedure -->
  5301. <short>Starts the reading of the root component.</short>
  5302. <descr>
  5303. This function can be used to initialize the driver class for reading a
  5304. component. It is called once at the beginning of the read process, and
  5305. is immediatly followed by a call to <link
  5306. id="TAbstractObjectReader.BeginComponent">BeginComponent</link>.
  5307. </descr>
  5308. <seealso>
  5309. <link id="TAbstractObjectReader.BeginComponent"/>
  5310. </seealso>
  5311. </element>
  5312. <element name="TAbstractObjectReader.BeginComponent"> <!-- Procedure -->
  5313. <short>Marks the reading of a new component. </short>
  5314. <descr>
  5315. <p>
  5316. This method is called when the streaming process wants to start reading a
  5317. new component.
  5318. </p>
  5319. <p>
  5320. Descendent classes should override this method to read the start of a
  5321. component new component definition and return the needed arguments.
  5322. <var>Flags</var> should be filled with any flags that were found at the
  5323. component definition, as well as <var>AChildPos</var>. The
  5324. <var>CompClassName</var> should be filled with the class name of the
  5325. streamed component, and the <var>CompName</var> argument should be filled
  5326. with the name of the component.
  5327. </p>
  5328. </descr>
  5329. <seealso>
  5330. <link id="TAbstractObjectReader.BeginRootComponent"/>
  5331. <link id="TAbstractObjectReader.BeginProperty"/>
  5332. </seealso>
  5333. </element>
  5334. <element name="TAbstractObjectReader.BeginProperty"> <!-- Function -->
  5335. <short>Marks the reading of a property value.</short>
  5336. <descr>
  5337. <var>BeginProperty</var> is called by the streaming system when it wants to
  5338. read a new property. The return value of the function is the name of the
  5339. property which can be read from the stream.
  5340. </descr>
  5341. <seealso>
  5342. <link id="TAbstractObjectReader.BeginComponent"/>
  5343. </seealso>
  5344. </element>
  5345. <element name="TAbstractObjectReader.ReadBinary"> <!-- Procedure -->
  5346. <short>Read binary data from the stream.</short>
  5347. <descr>
  5348. <var>ReadBinary</var> is called when binary data should be read from the
  5349. stream
  5350. (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5351. returned a valuetype of <var>vaBinary</var>). The data should be stored in the <var>DestData</var> memory stream
  5352. by descendent classes.
  5353. </descr>
  5354. <seealso>
  5355. <link id="TAbstractObjectReader.ReadFloat"/>
  5356. <link id="TAbstractObjectReader.ReadDate"/>
  5357. <link id="TAbstractObjectReader.ReadSingle"/>
  5358. <link id="TAbstractObjectReader.ReadIdent"/>
  5359. <link id="TAbstractObjectReader.ReadInt8"/>
  5360. <link id="TAbstractObjectReader.ReadInt16"/>
  5361. <link id="TAbstractObjectReader.ReadInt32"/>
  5362. <link id="TAbstractObjectReader.ReadInt64"/>
  5363. <link id="TabstractObjectReader.ReadSet"/>
  5364. <link id="TabstractObjectReader.ReadStr"/>
  5365. <link id="TabstractObjectReader.ReadString"/>
  5366. </seealso>
  5367. </element>
  5368. <element name="TAbstractObjectReader.ReadFloat"> <!-- Function -->
  5369. <short>Read a float value from the stream.</short>
  5370. <descr>
  5371. <var>ReadFloat</var> is called by the streaming system when it wants to read
  5372. a float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5373. returned a valuetype of <var>vaExtended</var>). The return value should be the value of the float.
  5374. </descr>
  5375. <seealso>
  5376. <link id="TAbstractObjectReader.ReadFloat"/>
  5377. <link id="TAbstractObjectReader.ReadDate"/>
  5378. <link id="TAbstractObjectReader.ReadSingle"/>
  5379. <link id="TAbstractObjectReader.ReadIdent"/>
  5380. <link id="TAbstractObjectReader.ReadInt8"/>
  5381. <link id="TAbstractObjectReader.ReadInt16"/>
  5382. <link id="TAbstractObjectReader.ReadInt32"/>
  5383. <link id="TAbstractObjectReader.ReadInt64"/>
  5384. <link id="TabstractObjectReader.ReadSet"/>
  5385. <link id="TabstractObjectReader.ReadStr"/>
  5386. <link id="TabstractObjectReader.ReadString"/>
  5387. </seealso>
  5388. </element>
  5389. <element name="TAbstractObjectReader.ReadSingle"> <!-- Function -->
  5390. <short>Read a single (real-type) value from the stream.</short>
  5391. <descr>
  5392. <var>ReadSingle</var> is called by the streaming system when it wants to read
  5393. a single-type float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5394. returned a valuetype of <var>vaSingle</var>). The return value should be the value of
  5395. the float.
  5396. </descr>
  5397. <seealso>
  5398. <link id="TAbstractObjectReader.ReadFloat"/>
  5399. <link id="TAbstractObjectReader.ReadDate"/>
  5400. <link id="TAbstractObjectReader.ReadSingle"/>
  5401. <link id="TAbstractObjectReader.ReadIdent"/>
  5402. <link id="TAbstractObjectReader.ReadInt8"/>
  5403. <link id="TAbstractObjectReader.ReadInt16"/>
  5404. <link id="TAbstractObjectReader.ReadInt32"/>
  5405. <link id="TAbstractObjectReader.ReadInt64"/>
  5406. <link id="TabstractObjectReader.ReadSet"/>
  5407. <link id="TabstractObjectReader.ReadStr"/>
  5408. <link id="TabstractObjectReader.ReadString"/>
  5409. </seealso>
  5410. </element>
  5411. <element name="TAbstractObjectReader.ReadDate"> <!-- Function -->
  5412. <short>Read a date value from the stream.</short>
  5413. <descr>
  5414. <var>ReadDate</var> is called by the streaming system when it wants to read
  5415. a date/time value from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5416. returned a valuetype of <var>vaDate</var>). The return value should be the date/time
  5417. value. (This value can be stored as a float, since <var>TDateTime</var> is
  5418. nothing but a float.)
  5419. </descr>
  5420. <seealso>
  5421. <link id="TAbstractObjectReader.ReadFloat"/>
  5422. <link id="TAbstractObjectReader.ReadSingle"/>
  5423. <link id="TAbstractObjectReader.ReadIdent"/>
  5424. <link id="TAbstractObjectReader.ReadInt8"/>
  5425. <link id="TAbstractObjectReader.ReadInt16"/>
  5426. <link id="TAbstractObjectReader.ReadInt32"/>
  5427. <link id="TAbstractObjectReader.ReadInt64"/>
  5428. <link id="TabstractObjectReader.ReadSet"/>
  5429. <link id="TabstractObjectReader.ReadStr"/>
  5430. <link id="TabstractObjectReader.ReadString"/>
  5431. </seealso>
  5432. </element>
  5433. <element name="TAbstractObjectReader.ReadIdent"> <!-- Function -->
  5434. <short>Read an identifier from the stream.</short>
  5435. <descr>
  5436. <p>
  5437. <var>ReadIdent</var> is called by the streaming system if it expects to read
  5438. an identifier of type <var>ValueType</var> from the stream after a call to
  5439. <link id="TAbstractObjectReader.Readvalue">ReadValue</link> returned
  5440. <var>vaIdent</var>. The identifier
  5441. should be returned as a string. Note that in some cases the identifier does
  5442. not actually have to be in the stream;
  5443. </p>
  5444. <table>
  5445. <tr><td>ValueType</td><td>Expected value</td></tr>
  5446. <tr><td>vaIdent</td><td>Read from stream.</td></tr>
  5447. <tr><td>vaNil</td><td>'Nil'. This does not have to be read from the stream.</td></tr>
  5448. <tr><td>vaFalse</td><td>'False'. This does not have to be read from the stream.</td></tr>
  5449. <tr><td>vaTrue</td><td>'True'. This does not have to be read from the stream.</td></tr>
  5450. <tr><td>vaNull</td><td>'Null'. This does not have to be read from the stream.</td></tr>
  5451. </table>
  5452. </descr>
  5453. <seealso>
  5454. <link id="TAbstractObjectReader.ReadFloat"/>
  5455. <link id="TAbstractObjectReader.ReadDate"/>
  5456. <link id="TAbstractObjectReader.ReadSingle"/>
  5457. <link id="TAbstractObjectReader.ReadInt8"/>
  5458. <link id="TAbstractObjectReader.ReadInt16"/>
  5459. <link id="TAbstractObjectReader.ReadInt32"/>
  5460. <link id="TAbstractObjectReader.ReadInt64"/>
  5461. <link id="TabstractObjectReader.ReadSet"/>
  5462. <link id="TabstractObjectReader.ReadStr"/>
  5463. <link id="TabstractObjectReader.ReadString"/>
  5464. </seealso>
  5465. </element>
  5466. <element name="TAbstractObjectReader.ReadInt8"> <!-- Function -->
  5467. <short>Read an 8-bit integer from the stream.</short>
  5468. <descr>
  5469. <var>ReadInt8</var> is called by the streaming process if it expects to
  5470. read an integer value with a size of 8 bits (1 byte) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5471. returned a valuetype of <var>vaInt8</var>).
  5472. The return value is the value if the integer. Note that the size of the
  5473. value in the stream does not actually have to be 1 byte.
  5474. </descr>
  5475. <seealso>
  5476. <link id="TAbstractObjectReader.ReadFloat"/>
  5477. <link id="TAbstractObjectReader.ReadDate"/>
  5478. <link id="TAbstractObjectReader.ReadSingle"/>
  5479. <link id="TAbstractObjectReader.ReadIdent"/>
  5480. <link id="TAbstractObjectReader.ReadInt16"/>
  5481. <link id="TAbstractObjectReader.ReadInt32"/>
  5482. <link id="TAbstractObjectReader.ReadInt64"/>
  5483. <link id="TabstractObjectReader.ReadSet"/>
  5484. <link id="TabstractObjectReader.ReadStr"/>
  5485. <link id="TabstractObjectReader.ReadString"/>
  5486. </seealso>
  5487. </element>
  5488. <element name="TAbstractObjectReader.ReadInt16"> <!-- Function -->
  5489. <short>Read a 16-bit integer from the stream.</short>
  5490. <descr>
  5491. <var>ReadInt16</var> is called by the streaming process if it expects to
  5492. read an integer value with a size of 16 bits (2 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5493. returned a valuetype of <var>vaInt16</var>).
  5494. The return value is the value if the integer. Note that the size of the
  5495. value in the stream does not actually have to be 2 bytes.
  5496. </descr>
  5497. <seealso>
  5498. <link id="TAbstractObjectReader.ReadFloat"/>
  5499. <link id="TAbstractObjectReader.ReadDate"/>
  5500. <link id="TAbstractObjectReader.ReadSingle"/>
  5501. <link id="TAbstractObjectReader.ReadIdent"/>
  5502. <link id="TAbstractObjectReader.ReadInt8"/>
  5503. <link id="TAbstractObjectReader.ReadInt32"/>
  5504. <link id="TAbstractObjectReader.ReadInt64"/>
  5505. <link id="TabstractObjectReader.ReadSet"/>
  5506. <link id="TabstractObjectReader.ReadStr"/>
  5507. <link id="TabstractObjectReader.ReadString"/>
  5508. </seealso>
  5509. </element>
  5510. <element name="TAbstractObjectReader.ReadInt32"> <!-- Function -->
  5511. <short>Read a 32-bit integer from the stream.</short>
  5512. <descr>
  5513. <var>ReadInt32</var> is called by the streaming process if it expects to
  5514. read an integer value with a size of 32 bits (4 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5515. returned a valuetype of <var>vaInt32</var>).
  5516. The return value is the value of the integer. Note that the size of the
  5517. value in the stream does not actually have to be 4 bytes.
  5518. </descr>
  5519. <seealso>
  5520. <link id="TAbstractObjectReader.ReadFloat"/>
  5521. <link id="TAbstractObjectReader.ReadDate"/>
  5522. <link id="TAbstractObjectReader.ReadSingle"/>
  5523. <link id="TAbstractObjectReader.ReadIdent"/>
  5524. <link id="TAbstractObjectReader.ReadInt8"/>
  5525. <link id="TAbstractObjectReader.ReadInt16"/>
  5526. <link id="TAbstractObjectReader.ReadInt64"/>
  5527. <link id="TabstractObjectReader.ReadSet"/>
  5528. <link id="TabstractObjectReader.ReadStr"/>
  5529. <link id="TabstractObjectReader.ReadString"/>
  5530. </seealso>
  5531. </element>
  5532. <element name="TAbstractObjectReader.ReadInt64"> <!-- Function -->
  5533. <short>Read a 64-bit integer from the stream.</short>
  5534. <descr>
  5535. <var>ReadInt64</var> is called by the streaming process if it expects to
  5536. read an int64 value with a size of 64 bits (8 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5537. returned a valuetype of <var>vaInt64</var>).
  5538. The return value is the value if the integer. Note that the size of the
  5539. value in the stream does not actually have to be 8 bytes.
  5540. </descr>
  5541. <seealso>
  5542. <link id="TAbstractObjectReader.ReadFloat"/>
  5543. <link id="TAbstractObjectReader.ReadDate"/>
  5544. <link id="TAbstractObjectReader.ReadSingle"/>
  5545. <link id="TAbstractObjectReader.ReadIdent"/>
  5546. <link id="TAbstractObjectReader.ReadInt8"/>
  5547. <link id="TAbstractObjectReader.ReadInt16"/>
  5548. <link id="TAbstractObjectReader.ReadInt32"/>
  5549. <link id="TabstractObjectReader.ReadSet"/>
  5550. <link id="TabstractObjectReader.ReadStr"/>
  5551. <link id="TabstractObjectReader.ReadString"/>
  5552. </seealso>
  5553. </element>
  5554. <element name="TAbstractObjectReader.ReadSet"> <!-- Function -->
  5555. <short>Reads a set from the stream.</short>
  5556. <descr>
  5557. <p>
  5558. This method is called by the streaming system if it expects to read a
  5559. set from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5560. returned a valuetype of <var>vaSet</var>). The return value is the contents of the
  5561. set, encoded in a bitmask the following way:
  5562. </p>
  5563. <p>
  5564. For each (enumerated) value in the set, the bit corresponding to the
  5565. ordinal value of the enumerated value should be set. i.e.
  5566. as <var>1 shl ord(value)</var>.
  5567. </p>
  5568. </descr>
  5569. <seealso>
  5570. <link id="TAbstractObjectReader.ReadFloat"/>
  5571. <link id="TAbstractObjectReader.ReadDate"/>
  5572. <link id="TAbstractObjectReader.ReadSingle"/>
  5573. <link id="TAbstractObjectReader.ReadIdent"/>
  5574. <link id="TAbstractObjectReader.ReadInt8"/>
  5575. <link id="TAbstractObjectReader.ReadInt16"/>
  5576. <link id="TAbstractObjectReader.ReadInt32"/>
  5577. <link id="TAbstractObjectReader.ReadInt64"/>
  5578. <link id="TabstractObjectReader.ReadStr"/>
  5579. <link id="TabstractObjectReader.ReadString"/>
  5580. </seealso>
  5581. </element>
  5582. <element name="TAbstractObjectReader.ReadStr"> <!-- Function -->
  5583. <short>Read a shortstring from the stream</short>
  5584. <descr>
  5585. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5586. shortstring from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5587. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5588. <var>vaString</var>). The return value is the string.
  5589. </descr>
  5590. <seealso>
  5591. <link id="TAbstractObjectReader.ReadFloat"/>
  5592. <link id="TAbstractObjectReader.ReadDate"/>
  5593. <link id="TAbstractObjectReader.ReadSingle"/>
  5594. <link id="TAbstractObjectReader.ReadIdent"/>
  5595. <link id="TAbstractObjectReader.ReadInt8"/>
  5596. <link id="TAbstractObjectReader.ReadInt16"/>
  5597. <link id="TAbstractObjectReader.ReadInt32"/>
  5598. <link id="TAbstractObjectReader.ReadInt64"/>
  5599. <link id="TabstractObjectReader.ReadSet"/>
  5600. <link id="TabstractObjectReader.ReadString"/>
  5601. </seealso>
  5602. </element>
  5603. <element name="TAbstractObjectReader.ReadString"> <!-- Function -->
  5604. <short>Read a string of type <var>StringType</var> from the stream.</short>
  5605. <descr>
  5606. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5607. string from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5608. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5609. <var>vaString</var>). The return value is the string.
  5610. </descr>
  5611. <seealso>
  5612. <link id="TAbstractObjectReader.ReadFloat"/>
  5613. <link id="TAbstractObjectReader.ReadDate"/>
  5614. <link id="TAbstractObjectReader.ReadSingle"/>
  5615. <link id="TAbstractObjectReader.ReadIdent"/>
  5616. <link id="TAbstractObjectReader.ReadInt8"/>
  5617. <link id="TAbstractObjectReader.ReadInt16"/>
  5618. <link id="TAbstractObjectReader.ReadInt32"/>
  5619. <link id="TAbstractObjectReader.ReadInt64"/>
  5620. <link id="TabstractObjectReader.ReadSet"/>
  5621. <link id="TabstractObjectReader.ReadStr"/>
  5622. </seealso>
  5623. </element>
  5624. <element name="TAbstractObjectReader.SkipComponent"> <!-- Procedure -->
  5625. <short>Skip till the end of the component.</short>
  5626. <descr>
  5627. This method is used to skip the entire declaration of a component in the
  5628. stream. Each descendent of <var>TAbstractObjectReader</var> should implement
  5629. this in a way which is optimal for the implemented stream format.
  5630. </descr>
  5631. <seealso>
  5632. <link id="TAbstractObjectReader.BeginComponent"/>
  5633. <link id="TAbstractObjectReader.SkipValue"/>
  5634. </seealso>
  5635. </element>
  5636. <element name="TAbstractObjectReader.SkipValue"> <!-- Procedure -->
  5637. <short>Skip the current value.</short>
  5638. <descr>
  5639. <var>SkipValue</var> should be used when skipping a value in the stream;
  5640. The method should determine the type of the value which should be skipped
  5641. by itself, if this is necessary.
  5642. </descr>
  5643. <seealso>
  5644. <link id="TAbstractObjectReader.SkipComponent"/>
  5645. </seealso>
  5646. </element>
  5647. <!--
  5648. *********************************************************************
  5649. TBinaryObjectReader
  5650. *********************************************************************
  5651. -->
  5652. <element name="TBinaryObjectReader"> <!-- Class -->
  5653. <short>Driver class descendent which reads component data stored in binary format.</short>
  5654. <descr>
  5655. The <var>TBinaryObjectReader</var> class reads component data stored in
  5656. binary form in a file. For this, it overrides or implements all abstract
  5657. methods from <link id="TAbstractObjectReader"/>. No new functionality is
  5658. added by this class, it is a driver class for the streaming system.
  5659. </descr>
  5660. <seealso>
  5661. <link id="TAbstractObjectReader"/>
  5662. <link id="TBinaryObjectWriter"/>
  5663. </seealso>
  5664. </element>
  5665. <element name="TBinaryObjectReader.Create"> <!-- Constructor -->
  5666. <short>Creates a new binary data reader instance.</short>
  5667. <descr>
  5668. <var>Create</var> instantiates a new binary component data reader. The
  5669. <var>Stream</var> stream is the stream from which data will be read. The
  5670. <var>BufSize</var> argument is the size of the internal buffer that will be
  5671. used by the reader. This can be used to optimize the reading process.
  5672. </descr>
  5673. <seealso>
  5674. <link id="TAbstractObjectReader"/>
  5675. </seealso>
  5676. </element>
  5677. <element name="TBinaryObjectReader.Destroy"> <!-- Destructor -->
  5678. <short>Destroys the binary data reader.</short>
  5679. <descr>
  5680. <var>Destroy</var> frees the buffer allocated when the instance was created.
  5681. It also positions the stream on the last used position in the stream (the
  5682. buffering may cause the reader to read more bytes than were actually used.)
  5683. </descr>
  5684. <seealso>
  5685. <link id="TBinaryObjectReader.Create"/>
  5686. </seealso>
  5687. </element>
  5688. <element name="TFindMethodEvent"> <!-- Procedure type -->
  5689. <short>Occurs when the streaming process needs to locate a method</short>
  5690. <descr>
  5691. If a <link id="TReader"/> instance needs to locate a method and it doesn't
  5692. find it in the streamed form, then the <link
  5693. id="TReader.OnFindMethod">OnFindMethod</link> event handler will be called,
  5694. if one is installed. This event can be assigned in order to use different
  5695. locating methods. If a method is found, then its address should be returned
  5696. in <var>Address</var>. The <var>Error</var> should be set to <var>True</var>
  5697. if the reader should raise an exception after the event was handled. If it
  5698. is set to <var>False</var> no exception will be raised, even if no method
  5699. was found. On entry, <var>Error</var> will be set to <var>True</var>.
  5700. </descr>
  5701. </element>
  5702. <element name="TSetNameEvent"> <!-- Procedure type -->
  5703. <short>Occurs when the reader needs to set a component's name.</short>
  5704. <descr>
  5705. </descr>
  5706. <seealso>
  5707. </seealso>
  5708. </element>
  5709. <element name="TReferenceNameEvent"> <!-- Procedure type -->
  5710. <short>Occurs when a named object needs to be looked up.</short>
  5711. <descr>
  5712. </descr>
  5713. <seealso>
  5714. </seealso>
  5715. </element>
  5716. <element name="TAncestorNotFoundEvent"> <!-- Procedure type -->
  5717. <short>This event occurs when an ancestor component cannot be found.</short>
  5718. <descr>
  5719. </descr>
  5720. <seealso>
  5721. </seealso>
  5722. </element>
  5723. <element name="TReadComponentsProc"> <!-- Procedure type -->
  5724. <short>Callback type when reading a component from a stream</short>
  5725. <descr>
  5726. </descr>
  5727. <seealso>
  5728. </seealso>
  5729. </element>
  5730. <element name="TReaderError"> <!-- Procedure type -->
  5731. <short>Event handler type, called when an error occurs during the streaming.</short>
  5732. <descr>
  5733. </descr>
  5734. <seealso>
  5735. </seealso>
  5736. </element>
  5737. <element name="TFindComponentClassEvent"> <!-- Procedure type -->
  5738. <short>Event handler type, occurs when a component class pointer must be
  5739. found when reading a component from a stream.</short>
  5740. <descr>
  5741. </descr>
  5742. <seealso>
  5743. </seealso>
  5744. </element>
  5745. <element name="TCreateComponentEvent"> <!-- Procedure type -->
  5746. <short>Event handler type, occurs when a component instance must be created
  5747. when a component is read from a stream.</short>
  5748. <descr>
  5749. </descr>
  5750. <seealso>
  5751. </seealso>
  5752. </element>
  5753. <!--
  5754. *********************************************************************
  5755. TReader
  5756. *********************************************************************
  5757. -->
  5758. <element name="TReader"> <!-- Class -->
  5759. <short>Generic reader object which reads component data from any given source.</short>
  5760. <descr>
  5761. The <var>TReader</var> class is a reader class that implements generic
  5762. component streaming capabilities, independent of the format of the data in
  5763. the stream. It uses a driver class <link id="TAbstractObjectReader"/> to
  5764. do the actual reading of data. The interface of the <var>TReader</var> class
  5765. should be identical to the interface in Delphi.
  5766. </descr>
  5767. <seealso>
  5768. <link id="TFiler"/>
  5769. <link id="TWriter"/>
  5770. <link id="TAbstractObjectReader"/>
  5771. </seealso>
  5772. </element>
  5773. <element name="TReader.Error"> <!-- Function -->
  5774. <short>Calls an installed error handler and passes it <var>Message</var></short>
  5775. <descr>
  5776. <p>
  5777. <var>Error</var> returns <var>False</var> if no <link id="TReader.OnError"/>
  5778. handler is installed. If one is installed, then it will be called, passing
  5779. the reader instance, message, and function return value as parameters.
  5780. </p>
  5781. <p>
  5782. If the function result <var>False</var>, i.e. when there is no handler
  5783. installed or the handler restured <var>False</var>, then the calling code
  5784. will raise an exception.
  5785. </p>
  5786. </descr>
  5787. <seealso>
  5788. <link id="TReader.FindMethod"/>
  5789. </seealso>
  5790. </element>
  5791. <element name="TReader.FindMethod"> <!-- Function -->
  5792. <short>Return the address of a published method.</short>
  5793. <descr>
  5794. <p>
  5795. <var>FindMethod</var> will search for the method in <var>ARoot</var>. If it
  5796. isn't found there, then it will call a <var>OnFindMethod</var> handler, if
  5797. one is installed, passing it the method name <var>AMethodName</var>, the
  5798. result pointer and a variable which says whether an exception should be
  5799. raised if no method with name <var>AMethodName</var> is found.
  5800. </p>
  5801. <p>
  5802. If the method cannot be found and the <link
  5803. id="TReader.OnFindMethod">OnFindMethod</link> returns <var>True</var>, then
  5804. an exception will be raised.
  5805. </p>
  5806. </descr>
  5807. <seealso>
  5808. <link id="TReader.OnFindMethod"/>
  5809. <link id="TFindMethodEvent"/>
  5810. </seealso>
  5811. </element>
  5812. <element name="TReader.ReadProperty"> <!-- Procedure -->
  5813. <short>Read and process a property name</short>
  5814. <descr>
  5815. </descr>
  5816. <seealso>
  5817. </seealso>
  5818. </element>
  5819. <element name="TReader.ReadPropValue"> <!-- Procedure -->
  5820. <short>Reads a property value for <var>PropInfo</var>.</short>
  5821. <descr>
  5822. </descr>
  5823. <seealso>
  5824. </seealso>
  5825. </element>
  5826. <element name="TReader.PropertyError"> <!-- Procedure -->
  5827. <short>Skips a property value and raises an exception.</short>
  5828. <descr>
  5829. </descr>
  5830. <seealso>
  5831. </seealso>
  5832. </element>
  5833. <element name="TReader.ReadData"> <!-- Procedure -->
  5834. <short>Reads the components data after it has been created.</short>
  5835. <descr>
  5836. </descr>
  5837. <seealso>
  5838. </seealso>
  5839. </element>
  5840. <element name="TReader.PropName"> <!-- Property -->
  5841. <short>Name of the property being read at this moment.</short>
  5842. <descr>
  5843. </descr>
  5844. <seealso>
  5845. </seealso>
  5846. </element>
  5847. <element name="TReader.CanHandleExceptions"> <!-- Property -->
  5848. <short>Indicates whether the reader is handling exceptions at this stage.</short>
  5849. <descr>
  5850. </descr>
  5851. <seealso>
  5852. </seealso>
  5853. </element>
  5854. <element name="TReader.Create"> <!-- Constructor -->
  5855. <short>Creates a new reader class</short>
  5856. <descr>
  5857. </descr>
  5858. <seealso>
  5859. </seealso>
  5860. </element>
  5861. <element name="TReader.Destroy"> <!-- Destructor -->
  5862. <short>Destroys a reader class.</short>
  5863. <descr>
  5864. </descr>
  5865. <seealso>
  5866. </seealso>
  5867. </element>
  5868. <element name="TReader.BeginReferences"> <!-- Procedure -->
  5869. <short>Initializes the component referencing mechanism.</short>
  5870. <descr>
  5871. </descr>
  5872. <seealso>
  5873. </seealso>
  5874. </element>
  5875. <element name="TReader.CheckValue"> <!-- Procedure -->
  5876. <short>Raises an exception if the next value in the stream is not of type
  5877. <var>Value</var></short>
  5878. <descr>
  5879. </descr>
  5880. <seealso>
  5881. </seealso>
  5882. </element>
  5883. <element name="TReader.DefineProperty"> <!-- Procedure -->
  5884. <short>Reads a user-defined property from the stream.</short>
  5885. <descr>
  5886. </descr>
  5887. <seealso>
  5888. </seealso>
  5889. </element>
  5890. <element name="TReader.DefineBinaryProperty"> <!-- Procedure -->
  5891. <short>Reads a user-defined binary property from the stream.</short>
  5892. <descr>
  5893. </descr>
  5894. <seealso>
  5895. </seealso>
  5896. </element>
  5897. <element name="TReader.EndOfList"> <!-- Function -->
  5898. <short>Returns true if the stream contains an end-of-list marker.</short>
  5899. <descr>
  5900. </descr>
  5901. <seealso>
  5902. </seealso>
  5903. </element>
  5904. <element name="TReader.EndReferences"> <!-- Procedure -->
  5905. <short>Finalizes the component referencing mechanism.</short>
  5906. <descr>
  5907. </descr>
  5908. <seealso>
  5909. </seealso>
  5910. </element>
  5911. <element name="TReader.FixupReferences"> <!-- Procedure -->
  5912. <short>Tries to resolve all unresolved component references.</short>
  5913. <descr>
  5914. </descr>
  5915. <seealso>
  5916. </seealso>
  5917. </element>
  5918. <element name="TReader.NextValue"> <!-- Function -->
  5919. <short>Returns the type of the next value.</short>
  5920. <descr>
  5921. </descr>
  5922. <seealso>
  5923. </seealso>
  5924. </element>
  5925. <element name="TReader.ReadBoolean"> <!-- Function -->
  5926. <short>Reads a boolean from the stream.</short>
  5927. <descr>
  5928. </descr>
  5929. <seealso>
  5930. </seealso>
  5931. </element>
  5932. <element name="TReader.ReadChar"> <!-- Function -->
  5933. <short>Reads a character from the stream.</short>
  5934. <descr>
  5935. </descr>
  5936. <seealso>
  5937. </seealso>
  5938. </element>
  5939. <element name="TReader.ReadCollection"> <!-- Procedure -->
  5940. <short>Reads a collection from the stream.</short>
  5941. <descr>
  5942. </descr>
  5943. <seealso>
  5944. </seealso>
  5945. </element>
  5946. <element name="TReader.ReadComponent"> <!-- Function -->
  5947. <short>Starts reading a component from the stream.</short>
  5948. <descr>
  5949. </descr>
  5950. <seealso>
  5951. </seealso>
  5952. </element>
  5953. <element name="TReader.ReadComponents"> <!-- Procedure -->
  5954. <short>Starts reading child components from the stream.</short>
  5955. <descr>
  5956. </descr>
  5957. <seealso>
  5958. </seealso>
  5959. </element>
  5960. <element name="TReader.ReadFloat"> <!-- Function -->
  5961. <short>Reads a float from the stream.</short>
  5962. <descr>
  5963. </descr>
  5964. <seealso>
  5965. </seealso>
  5966. </element>
  5967. <element name="TReader.ReadSingle"> <!-- Function -->
  5968. <short>Reads a single-type real from the stream.</short>
  5969. <descr>
  5970. </descr>
  5971. <seealso>
  5972. </seealso>
  5973. </element>
  5974. <element name="TReader.ReadDate"> <!-- Function -->
  5975. <short>Reads a date from the stream</short>
  5976. <descr>
  5977. </descr>
  5978. <seealso>
  5979. </seealso>
  5980. </element>
  5981. <element name="TReader.ReadIdent"> <!-- Function -->
  5982. <short>Reads an identifier from the stream.</short>
  5983. <descr>
  5984. </descr>
  5985. <seealso>
  5986. </seealso>
  5987. </element>
  5988. <element name="TReader.ReadInteger"> <!-- Function -->
  5989. <short>Reads an integer from the stream</short>
  5990. <descr>
  5991. </descr>
  5992. <seealso>
  5993. </seealso>
  5994. </element>
  5995. <element name="TReader.ReadInt64"> <!-- Function -->
  5996. <short>Reads a 64-bit integer from the stream.</short>
  5997. <descr>
  5998. </descr>
  5999. <seealso>
  6000. </seealso>
  6001. </element>
  6002. <element name="TReader.ReadListBegin"> <!-- Procedure -->
  6003. <short>Checks for the beginning of a list.</short>
  6004. <descr>
  6005. </descr>
  6006. <seealso>
  6007. </seealso>
  6008. </element>
  6009. <element name="TReader.ReadListEnd"> <!-- Procedure -->
  6010. <short>Checks for the end of a list.</short>
  6011. <descr>
  6012. </descr>
  6013. <seealso>
  6014. </seealso>
  6015. </element>
  6016. <element name="TReader.ReadRootComponent"> <!-- Function -->
  6017. <short>Starts reading a root component.</short>
  6018. <descr>
  6019. </descr>
  6020. <seealso>
  6021. </seealso>
  6022. </element>
  6023. <element name="TReader.ReadString"> <!-- Function -->
  6024. <short>Reads a string from the stream.</short>
  6025. <descr>
  6026. </descr>
  6027. <seealso>
  6028. </seealso>
  6029. </element>
  6030. <element name="TReader.ReadValue"> <!-- Function -->
  6031. <short>Reads the next value type from the stream.</short>
  6032. <descr>
  6033. </descr>
  6034. <seealso>
  6035. </seealso>
  6036. </element>
  6037. <element name="TReader.CopyValue"> <!-- Procedure -->
  6038. <short>Copy a value to a writer.</short>
  6039. <descr>
  6040. </descr>
  6041. <seealso>
  6042. </seealso>
  6043. </element>
  6044. <element name="TReader.Owner"> <!-- Property -->
  6045. <short>Owner of the component being read</short>
  6046. <descr>
  6047. </descr>
  6048. <seealso>
  6049. </seealso>
  6050. </element>
  6051. <element name="TReader.Parent"> <!-- Property -->
  6052. <short>Parent of the component being read.</short>
  6053. <descr>
  6054. </descr>
  6055. <seealso>
  6056. </seealso>
  6057. </element>
  6058. <element name="TReader.Driver"> <!-- Property -->
  6059. <short>The driver in use for streaming the data.</short>
  6060. <descr>
  6061. </descr>
  6062. <seealso>
  6063. </seealso>
  6064. </element>
  6065. <element name="TReader.OnError"> <!-- Property -->
  6066. <short>Handler called when an error occurs.</short>
  6067. <descr>
  6068. </descr>
  6069. <seealso>
  6070. </seealso>
  6071. </element>
  6072. <element name="TReader.OnFindMethod"> <!-- Property -->
  6073. <short>Handler to find or change a method address.</short>
  6074. <descr>
  6075. </descr>
  6076. <seealso>
  6077. </seealso>
  6078. </element>
  6079. <element name="TReader.OnSetName"> <!-- Property -->
  6080. <short>Handler called when setting a component name.</short>
  6081. <descr>
  6082. </descr>
  6083. <seealso>
  6084. </seealso>
  6085. </element>
  6086. <element name="TReader.OnReferenceName"> <!-- Property -->
  6087. <short>Handler called when another component is referenced.</short>
  6088. <descr>
  6089. </descr>
  6090. <seealso>
  6091. </seealso>
  6092. </element>
  6093. <element name="TReader.OnAncestorNotFound"> <!-- Property -->
  6094. <short>Handler called when the ancestor component cannot be found.</short>
  6095. <descr>
  6096. </descr>
  6097. <seealso>
  6098. </seealso>
  6099. </element>
  6100. <element name="TReader.OnCreateComponent"> <!-- Property -->
  6101. <short>Handler called when a component needs to be created.</short>
  6102. <descr>
  6103. </descr>
  6104. <seealso>
  6105. </seealso>
  6106. </element>
  6107. <element name="TReader.OnFindComponentClass"> <!-- Property -->
  6108. <short>Handler called when a component class reference needs to be found.</short>
  6109. <descr>
  6110. </descr>
  6111. <seealso>
  6112. </seealso>
  6113. </element>
  6114. <!--
  6115. *********************************************************************
  6116. TAbstractObjectWriter
  6117. *********************************************************************
  6118. -->
  6119. <element name="TAbstractObjectWriter"> <!-- Class -->
  6120. <short>Abstract driver class for writing component data.</short>
  6121. <descr>
  6122. </descr>
  6123. <seealso>
  6124. </seealso>
  6125. </element>
  6126. <element name="TAbstractObjectWriter.BeginCollection"> <!-- Procedure -->
  6127. <short>Start writing a collection.</short>
  6128. <descr>
  6129. </descr>
  6130. <seealso>
  6131. </seealso>
  6132. </element>
  6133. <element name="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6134. <short>Start writing a component</short>
  6135. <descr>
  6136. </descr>
  6137. <seealso>
  6138. </seealso>
  6139. </element>
  6140. <element name="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6141. <short>Start writing a list.</short>
  6142. <descr>
  6143. </descr>
  6144. <seealso>
  6145. </seealso>
  6146. </element>
  6147. <element name="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6148. <short>Mark the end of a list.</short>
  6149. <descr>
  6150. </descr>
  6151. <seealso>
  6152. </seealso>
  6153. </element>
  6154. <element name="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6155. <short>Start writing a property</short>
  6156. <descr>
  6157. </descr>
  6158. <seealso>
  6159. </seealso>
  6160. </element>
  6161. <element name="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6162. <short>Marks the end of writing of a property.</short>
  6163. <descr>
  6164. </descr>
  6165. <seealso>
  6166. </seealso>
  6167. </element>
  6168. <element name="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6169. <short>Writes binary data to the stream.</short>
  6170. <descr>
  6171. </descr>
  6172. <seealso>
  6173. </seealso>
  6174. </element>
  6175. <element name="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6176. <short>Writes a boolean value to the stream.</short>
  6177. <descr>
  6178. </descr>
  6179. <seealso>
  6180. </seealso>
  6181. </element>
  6182. <element name="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6183. <short>Writes a float value to the stream.</short>
  6184. <descr>
  6185. </descr>
  6186. <seealso>
  6187. </seealso>
  6188. </element>
  6189. <element name="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6190. <short>Writes a single-type real value to the stream.</short>
  6191. <descr>
  6192. </descr>
  6193. <seealso>
  6194. </seealso>
  6195. </element>
  6196. <element name="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6197. <short>Writes a date type to the stream.</short>
  6198. <descr>
  6199. </descr>
  6200. <seealso>
  6201. </seealso>
  6202. </element>
  6203. <element name="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6204. <short>Writes an identifier to the stream.</short>
  6205. <descr>
  6206. </descr>
  6207. <seealso>
  6208. </seealso>
  6209. </element>
  6210. <element name="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6211. <short>Writes an integer value to the stream</short>
  6212. <descr>
  6213. </descr>
  6214. <seealso>
  6215. </seealso>
  6216. </element>
  6217. <element name="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6218. <short>Writes a methodname to the stream.</short>
  6219. <descr>
  6220. </descr>
  6221. <seealso>
  6222. </seealso>
  6223. </element>
  6224. <element name="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6225. <short>Writes a set value to the stream.</short>
  6226. <descr>
  6227. </descr>
  6228. <seealso>
  6229. </seealso>
  6230. </element>
  6231. <element name="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6232. <short>Writes a string value to the stream.</short>
  6233. <descr>
  6234. </descr>
  6235. <seealso>
  6236. </seealso>
  6237. </element>
  6238. <!--
  6239. *********************************************************************
  6240. TBinaryObjectWriter
  6241. *********************************************************************
  6242. -->
  6243. <element name="TBinaryObjectWriter"> <!-- Class -->
  6244. <short>Driver class which stores component data in binary form.</short>
  6245. <descr>
  6246. </descr>
  6247. <seealso>
  6248. </seealso>
  6249. </element>
  6250. <element name="TBinaryObjectWriter.Create"> <!-- Constructor -->
  6251. <short>Creates a new instance of a binary object writer.</short>
  6252. <descr>
  6253. </descr>
  6254. <seealso>
  6255. </seealso>
  6256. </element>
  6257. <element name="TBinaryObjectWriter.Destroy"> <!-- Destructor -->
  6258. <short>Destroys an instance of the binary object writer.</short>
  6259. <descr>
  6260. </descr>
  6261. <seealso>
  6262. </seealso>
  6263. </element>
  6264. <element name="TBinaryObjectWriter.BeginCollection"
  6265. link="TAbstractObjectWriter.BeginCollection">
  6266. <short>Start writing a collection.</short>
  6267. </element>
  6268. <element name="TBinaryObjectWriter.BeginComponent"
  6269. link="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6270. <short>Start writing a component</short>
  6271. </element>
  6272. <element name="TBinaryObjectWriter.BeginList"
  6273. link="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6274. <short>Start writing a list.</short>
  6275. </element>
  6276. <element name="TBinaryObjectWriter.EndList"
  6277. link="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6278. <short>Mark the end of a list.</short>
  6279. </element>
  6280. <element name="TBinaryObjectWriter.BeginProperty"
  6281. link="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6282. <short>Start writing a property</short>
  6283. </element>
  6284. <element name="TBinaryObjectWriter.EndProperty"
  6285. link="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6286. <short>Marks the end of writing of a property.</short>
  6287. </element>
  6288. <element name="TBinaryObjectWriter.WriteBinary"
  6289. link="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6290. <short>Writes binary data to the stream.</short>
  6291. </element>
  6292. <element name="TBinaryObjectWriter.WriteBoolean"
  6293. link="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6294. <short>Writes a boolean value to the stream.</short>
  6295. </element>
  6296. <element name="TBinaryObjectWriter.WriteFloat"
  6297. link="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6298. <short>Writes a float value to the stream.</short>
  6299. </element>
  6300. <element name="TBinaryObjectWriter.WriteSingle"
  6301. link="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6302. <short>Writes a single-type real value to the stream.</short>
  6303. </element>
  6304. <element name="TBinaryObjectWriter.WriteDate"
  6305. link="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6306. <short>Writes a date type to the stream.</short>
  6307. </element>
  6308. <element name="TBinaryObjectWriter.WriteIdent"
  6309. link="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6310. <short>Writes an identifier to the stream.</short>
  6311. </element>
  6312. <element name="TBinaryObjectWriter.WriteInteger"
  6313. link="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6314. <short>Writes an integer value to the stream.</short>
  6315. </element>
  6316. <element name="TBinaryObjectWriter.WriteMethodName"
  6317. link="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6318. <short>Writes a methodname to the stream.</short>
  6319. </element>
  6320. <element name="TBinaryObjectWriter.WriteSet"
  6321. link="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6322. <short>Writes a set value to the stream.</short>
  6323. </element>
  6324. <element name="TBinaryObjectWriter.WriteString"
  6325. link="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6326. <short>Writes a string value to the stream.</short>
  6327. </element>
  6328. <!--
  6329. *********************************************************************
  6330. TTextObjectWriter
  6331. *********************************************************************
  6332. -->
  6333. <element name="TTextObjectWriter"> <!-- Class -->
  6334. <short>Driver class which stores component data in text format.</short>
  6335. <descr>
  6336. Not yet implemented.
  6337. </descr>
  6338. <seealso>
  6339. </seealso>
  6340. </element>
  6341. <element name="TFindAncestorEvent"> <!-- Procedure type -->
  6342. <short>Event that occurs w</short>
  6343. <descr>
  6344. </descr>
  6345. <seealso>
  6346. </seealso>
  6347. </element>
  6348. <!--
  6349. *********************************************************************
  6350. TWriter
  6351. *********************************************************************
  6352. -->
  6353. <element name="TWriter"> <!-- Class -->
  6354. <short>Object to write component data to an arbitrary format.</short>
  6355. <descr>
  6356. </descr>
  6357. <seealso>
  6358. </seealso>
  6359. </element>
  6360. <element name="TWriter.SetRoot" link="TFiler.SetRoot"> <!-- Procedure -->
  6361. <short>Sets the root component</short>
  6362. </element>
  6363. <element name="TWriter.WriteBinary"> <!-- Procedure -->
  6364. <short>Writes binary data to the stream.</short>
  6365. <descr>
  6366. </descr>
  6367. <seealso>
  6368. </seealso>
  6369. </element>
  6370. <element name="TWriter.WriteProperty"> <!-- Procedure -->
  6371. <short>Writes one property to the stream.</short>
  6372. <descr>
  6373. </descr>
  6374. <seealso>
  6375. </seealso>
  6376. </element>
  6377. <element name="TWriter.WriteProperties"> <!-- Procedure -->
  6378. <short>Writes the published properties to the stream.</short>
  6379. <descr>
  6380. </descr>
  6381. <seealso>
  6382. </seealso>
  6383. </element>
  6384. <element name="TWriter.Create"> <!-- Constructor -->
  6385. <short>Creates a new Writer instance with a driver.</short>
  6386. <descr>
  6387. </descr>
  6388. <seealso>
  6389. </seealso>
  6390. </element>
  6391. <element name="TWriter.Create"> <!-- Constructor -->
  6392. <short>Creates a new Writer with a stream and bufsize.</short>
  6393. <descr>
  6394. </descr>
  6395. <seealso>
  6396. </seealso>
  6397. </element>
  6398. <element name="TWriter.Destroy"> <!-- Destructor -->
  6399. <short>Destroys the writer instance.</short>
  6400. <descr>
  6401. </descr>
  6402. <seealso>
  6403. </seealso>
  6404. </element>
  6405. <element name="TWriter.DefineProperty"> <!-- Procedure -->
  6406. <short>Callback used when defining and streaming custom properties.</short>
  6407. <descr>
  6408. </descr>
  6409. <seealso>
  6410. </seealso>
  6411. </element>
  6412. <element name="TWriter.DefineBinaryProperty"> <!-- Procedure -->
  6413. <short>Callback used when defining and streaming custom properties.</short>
  6414. <descr>
  6415. </descr>
  6416. <seealso>
  6417. </seealso>
  6418. </element>
  6419. <element name="TWriter.WriteBoolean"> <!-- Procedure -->
  6420. <short>Write boolean value to the stream.</short>
  6421. <descr>
  6422. </descr>
  6423. <seealso>
  6424. </seealso>
  6425. </element>
  6426. <element name="TWriter.WriteCollection"> <!-- Procedure -->
  6427. <short>Write a collection to the stream.</short>
  6428. <descr>
  6429. </descr>
  6430. <seealso>
  6431. </seealso>
  6432. </element>
  6433. <element name="TWriter.WriteComponent"> <!-- Procedure -->
  6434. <short>Stream a component to the stream.</short>
  6435. <descr>
  6436. </descr>
  6437. <seealso>
  6438. </seealso>
  6439. </element>
  6440. <element name="TWriter.WriteChar"> <!-- Procedure -->
  6441. <short>Write a character to the stream.</short>
  6442. <descr>
  6443. </descr>
  6444. <seealso>
  6445. </seealso>
  6446. </element>
  6447. <element name="TWriter.WriteDescendent"> <!-- Procedure -->
  6448. <short>Write a descendent component to the stream.</short>
  6449. <descr>
  6450. </descr>
  6451. <seealso>
  6452. </seealso>
  6453. </element>
  6454. <element name="TWriter.WriteFloat"> <!-- Procedure -->
  6455. <short>Write a float to the stream.</short>
  6456. <descr>
  6457. </descr>
  6458. <seealso>
  6459. </seealso>
  6460. </element>
  6461. <element name="TWriter.WriteSingle"> <!-- Procedure -->
  6462. <short>Write a single-type real to the stream.</short>
  6463. <descr>
  6464. </descr>
  6465. <seealso>
  6466. </seealso>
  6467. </element>
  6468. <element name="TWriter.WriteDate"> <!-- Procedure -->
  6469. <short>Write a date to the stream.</short>
  6470. <descr>
  6471. </descr>
  6472. <seealso>
  6473. </seealso>
  6474. </element>
  6475. <element name="TWriter.WriteIdent"> <!-- Procedure -->
  6476. <short>Write an identifier to the stream.</short>
  6477. <descr>
  6478. </descr>
  6479. <seealso>
  6480. </seealso>
  6481. </element>
  6482. <element name="TWriter.WriteInteger"> <!-- Procedure -->
  6483. <short>Write an integer to the stream.</short>
  6484. <descr>
  6485. </descr>
  6486. <seealso>
  6487. </seealso>
  6488. </element>
  6489. <element name="TWriter.WriteListBegin"> <!-- Procedure -->
  6490. <short>Write a start-of-list marker to the stream.</short>
  6491. <descr>
  6492. </descr>
  6493. <seealso>
  6494. </seealso>
  6495. </element>
  6496. <element name="TWriter.WriteListEnd"> <!-- Procedure -->
  6497. <short>Write an end-of-list marker to the stream.</short>
  6498. <descr>
  6499. </descr>
  6500. <seealso>
  6501. </seealso>
  6502. </element>
  6503. <element name="TWriter.WriteRootComponent"> <!-- Procedure -->
  6504. <short>Write a root component to the stream.</short>
  6505. <descr>
  6506. </descr>
  6507. <seealso>
  6508. </seealso>
  6509. </element>
  6510. <element name="TWriter.WriteString"> <!-- Procedure -->
  6511. <short>Write a string to the stream.</short>
  6512. <descr>
  6513. </descr>
  6514. <seealso>
  6515. </seealso>
  6516. </element>
  6517. <element name="TWriter.RootAncestor"> <!-- Property -->
  6518. <short>Ancestor of root component.</short>
  6519. <descr>
  6520. </descr>
  6521. <seealso>
  6522. </seealso>
  6523. </element>
  6524. <element name="TWriter.OnFindAncestor"> <!-- Property -->
  6525. <short>Event occurring when an ancestor component must be found.</short>
  6526. <descr>
  6527. </descr>
  6528. <seealso>
  6529. </seealso>
  6530. </element>
  6531. <element name="TWriter.Driver"> <!-- Property -->
  6532. <short>Driver used when writing to the stream.</short>
  6533. <descr>
  6534. </descr>
  6535. <seealso>
  6536. </seealso>
  6537. </element>
  6538. <!--
  6539. *********************************************************************
  6540. TParser
  6541. *********************************************************************
  6542. -->
  6543. <element name="TParser"> <!-- Class -->
  6544. <short>Class to parse the contents of a stream containing text data.</short>
  6545. <descr>
  6546. </descr>
  6547. <seealso>
  6548. </seealso>
  6549. </element>
  6550. <element name="TParser.Create"> <!-- Constructor -->
  6551. <short>Creates a new parser instance.</short>
  6552. <descr>
  6553. </descr>
  6554. <seealso>
  6555. </seealso>
  6556. </element>
  6557. <element name="TParser.Destroy"> <!-- Destructor -->
  6558. <short>Destroys the parser instance.</short>
  6559. <descr>
  6560. </descr>
  6561. <seealso>
  6562. </seealso>
  6563. </element>
  6564. <element name="TParser.CheckToken"> <!-- Procedure -->
  6565. <short>Checks whether the token if of the given type.</short>
  6566. <descr>
  6567. </descr>
  6568. <seealso>
  6569. </seealso>
  6570. </element>
  6571. <element name="TParser.CheckTokenSymbol"> <!-- Procedure -->
  6572. <short>Checks whether the token equals the given symbol</short>
  6573. <descr>
  6574. </descr>
  6575. <seealso>
  6576. </seealso>
  6577. </element>
  6578. <element name="TParser.Error"> <!-- Procedure -->
  6579. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6580. <descr>
  6581. </descr>
  6582. <seealso>
  6583. </seealso>
  6584. </element>
  6585. <element name="TParser.ErrorFmt"> <!-- Procedure -->
  6586. <short>Raises an <link id="EParserError"/> exception and formats the message.</short>
  6587. <descr>
  6588. </descr>
  6589. <seealso>
  6590. </seealso>
  6591. </element>
  6592. <element name="TParser.ErrorStr"> <!-- Procedure -->
  6593. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6594. <descr>
  6595. </descr>
  6596. <seealso>
  6597. </seealso>
  6598. </element>
  6599. <element name="TParser.HexToBinary"> <!-- Procedure -->
  6600. <short>Writes hexadecimal data to the stream.</short>
  6601. <descr>
  6602. </descr>
  6603. <seealso>
  6604. </seealso>
  6605. </element>
  6606. <element name="TParser.NextToken"> <!-- Function -->
  6607. <short>Reads the next token and returns its type.</short>
  6608. <descr>
  6609. </descr>
  6610. <seealso>
  6611. </seealso>
  6612. </element>
  6613. <element name="TParser.SourcePos"> <!-- Function -->
  6614. <short>Returns the current position in the stream.</short>
  6615. <descr>
  6616. </descr>
  6617. <seealso>
  6618. </seealso>
  6619. </element>
  6620. <element name="TParser.TokenComponentIdent"> <!-- Function -->
  6621. <short>Checks whether the current token is a component identifier.</short>
  6622. <descr>
  6623. </descr>
  6624. <seealso>
  6625. </seealso>
  6626. </element>
  6627. <element name="TParser.TokenFloat"> <!-- Function -->
  6628. <short>Returns the current token as a float.</short>
  6629. <descr>
  6630. </descr>
  6631. <seealso>
  6632. </seealso>
  6633. </element>
  6634. <element name="TParser.TokenInt"> <!-- Function -->
  6635. <short>Returns the current token as an integer.</short>
  6636. <descr>
  6637. </descr>
  6638. <seealso>
  6639. </seealso>
  6640. </element>
  6641. <element name="TParser.TokenString"> <!-- Function -->
  6642. <short>Returns the current token as a string.</short>
  6643. <descr>
  6644. </descr>
  6645. <seealso>
  6646. </seealso>
  6647. </element>
  6648. <element name="TParser.TokenSymbolIs"> <!-- Function -->
  6649. <short>Returns <var>True</var> if the current token is a symbol.</short>
  6650. <descr>
  6651. </descr>
  6652. <seealso>
  6653. </seealso>
  6654. </element>
  6655. <element name="TParser.SourceLine"> <!-- Property -->
  6656. <short>Current source linenumber.</short>
  6657. <descr>
  6658. </descr>
  6659. <seealso>
  6660. </seealso>
  6661. </element>
  6662. <element name="TParser.Token"> <!-- Property -->
  6663. <short>Contents of the current token.</short>
  6664. <descr>
  6665. </descr>
  6666. <seealso>
  6667. </seealso>
  6668. </element>
  6669. <!--
  6670. *********************************************************************
  6671. EThread
  6672. *********************************************************************
  6673. -->
  6674. <element name="EThread"> <!-- Class -->
  6675. <short>Thread error exception.</short>
  6676. <descr>
  6677. </descr>
  6678. <seealso>
  6679. </seealso>
  6680. </element>
  6681. <element name="TThreadMethod"> <!-- Procedure type -->
  6682. <short>Procedure variable used when synchronizing threads.</short>
  6683. <descr>
  6684. </descr>
  6685. <seealso>
  6686. </seealso>
  6687. </element>
  6688. <element name="TThreadPriority"> <!-- Enumeration type -->
  6689. <short>Enumeration specifying the priority at which a thread runs.</short>
  6690. <descr>
  6691. </descr>
  6692. <seealso>
  6693. </seealso>
  6694. </element>
  6695. <element name="TThreadPriority.tpIdle"> <!-- Enumeration value -->
  6696. <short>Thread only runs when other processes are idle.</short>
  6697. <descr>
  6698. </descr>
  6699. <seealso>
  6700. </seealso>
  6701. </element>
  6702. <element name="TThreadPriority.tpLowest"> <!-- Enumeration value -->
  6703. <short>Thread runs at the lowest priority.</short>
  6704. <descr>
  6705. </descr>
  6706. <seealso>
  6707. </seealso>
  6708. </element>
  6709. <element name="TThreadPriority.tpLower"> <!-- Enumeration value -->
  6710. <short>Thread runs at a lower priority.</short>
  6711. <descr>
  6712. </descr>
  6713. <seealso>
  6714. </seealso>
  6715. </element>
  6716. <element name="TThreadPriority.tpNormal"> <!-- Enumeration value -->
  6717. <short>Thread runs at normal process priority.</short>
  6718. <descr>
  6719. </descr>
  6720. <seealso>
  6721. </seealso>
  6722. </element>
  6723. <element name="TThreadPriority.tpHigher"> <!-- Enumeration value -->
  6724. <short>Thread runs at high priority</short>
  6725. <descr>
  6726. </descr>
  6727. <seealso>
  6728. </seealso>
  6729. </element>
  6730. <element name="TThreadPriority.tpHighest"> <!-- Enumeration value -->
  6731. <short>Thread runs at highest possible priority.</short>
  6732. <descr>
  6733. </descr>
  6734. <seealso>
  6735. </seealso>
  6736. </element>
  6737. <element name="TThreadPriority.tpTimeCritical"> <!-- Enumeration value -->
  6738. <short>Thread runs at realtime priority.</short>
  6739. <descr>
  6740. </descr>
  6741. <seealso>
  6742. </seealso>
  6743. </element>
  6744. <!--
  6745. *********************************************************************
  6746. TThread
  6747. *********************************************************************
  6748. -->
  6749. <element name="TThread"> <!-- Class -->
  6750. <short>Abstract Thread class.</short>
  6751. <descr>
  6752. The <var>TThread</var> class encapsulates the native thread support of the
  6753. operating system. To create a thread, declare a descendent of the
  6754. <var>TThread</var> object and override the <link
  6755. id="TThread.Execute">Execute</link> method. In this method, the thhread's
  6756. code should be executed. To run a thread, create an instance of the tthread
  6757. descendent, and call it's execute method.
  6758. </descr>
  6759. <seealso>
  6760. <link id="EThread"/>
  6761. <link id="TThread.Execute"/>
  6762. </seealso>
  6763. </element>
  6764. <element name="TThread.DoTerminate"> <!-- Procedure -->
  6765. <short>Terminates the thread.</short>
  6766. <descr>
  6767. </descr>
  6768. <seealso>
  6769. </seealso>
  6770. </element>
  6771. <element name="TThread.Execute"> <!-- Procedure -->
  6772. <short>Execute method. Should be overridden in a descendent thread.</short>
  6773. <descr>
  6774. </descr>
  6775. <seealso>
  6776. </seealso>
  6777. </element>
  6778. <element name="TThread.Synchronize"> <!-- Procedure -->
  6779. <short>Synchronizes the thread by executing the method in the main thread.</short>
  6780. <descr>
  6781. </descr>
  6782. <seealso>
  6783. </seealso>
  6784. </element>
  6785. <element name="TThread.ReturnValue"> <!-- Property -->
  6786. <short>Return value of the thread when it stops executing.</short>
  6787. <descr>
  6788. </descr>
  6789. <seealso>
  6790. </seealso>
  6791. </element>
  6792. <element name="TThread.Terminated"> <!-- Property -->
  6793. <short>Indicates whether the <link id="TThread.Terminate">Terminate</link>method was called by the user.</short>
  6794. <descr>
  6795. </descr>
  6796. <seealso>
  6797. </seealso>
  6798. </element>
  6799. <element name="TThread.FStackPointer"> <!-- Variable -->
  6800. <short></short>
  6801. <descr>
  6802. </descr>
  6803. <seealso>
  6804. </seealso>
  6805. </element>
  6806. <element name="TThread.FStackSize"> <!-- Variable -->
  6807. <short></short>
  6808. <descr>
  6809. </descr>
  6810. <seealso>
  6811. </seealso>
  6812. </element>
  6813. <element name="TThread.FCallExitProcess"> <!-- Variable -->
  6814. <short></short>
  6815. <descr>
  6816. </descr>
  6817. <seealso>
  6818. </seealso>
  6819. </element>
  6820. <element name="TThread.Create"> <!-- Constructor -->
  6821. <short>Creates a new thread.</short>
  6822. <descr>
  6823. </descr>
  6824. <seealso>
  6825. </seealso>
  6826. </element>
  6827. <element name="TThread.Destroy"> <!-- Destructor -->
  6828. <short>Destroys the thread object.</short>
  6829. <descr>
  6830. </descr>
  6831. <seealso>
  6832. </seealso>
  6833. </element>
  6834. <element name="TThread.Resume"> <!-- Procedure -->
  6835. <short>Resumes the thread's execution.</short>
  6836. <descr>
  6837. </descr>
  6838. <seealso>
  6839. </seealso>
  6840. </element>
  6841. <element name="TThread.Suspend"> <!-- Procedure -->
  6842. <short>Suspends the thread's execution.</short>
  6843. <descr>
  6844. </descr>
  6845. <seealso>
  6846. </seealso>
  6847. </element>
  6848. <element name="TThread.Terminate"> <!-- Procedure -->
  6849. <short>Signals the thread it should terminate.</short>
  6850. <descr>
  6851. </descr>
  6852. <seealso>
  6853. </seealso>
  6854. </element>
  6855. <element name="TThread.WaitFor"> <!-- Function -->
  6856. <short>Waits for the thread to terminate and returns the exit status.</short>
  6857. <descr>
  6858. </descr>
  6859. <seealso>
  6860. </seealso>
  6861. </element>
  6862. <element name="TThread.FreeOnTerminate"> <!-- Property -->
  6863. <short>Indicates whether the thread should free itself when it stops executing.</short>
  6864. <descr>
  6865. </descr>
  6866. <seealso>
  6867. </seealso>
  6868. </element>
  6869. <element name="TThread.Handle"> <!-- Property -->
  6870. <short>Returns the thread handle.</short>
  6871. <descr>
  6872. </descr>
  6873. <seealso>
  6874. </seealso>
  6875. </element>
  6876. <element name="TThread.Priority"> <!-- Property -->
  6877. <short>Returns the thread priority.</short>
  6878. <descr>
  6879. </descr>
  6880. <seealso>
  6881. </seealso>
  6882. </element>
  6883. <element name="TThread.Suspended"> <!-- Property -->
  6884. <short>Indicates whether the thread is suspended.</short>
  6885. <descr>
  6886. </descr>
  6887. <seealso>
  6888. </seealso>
  6889. </element>
  6890. <element name="TThread.ThreadID"> <!-- Property -->
  6891. <short>Returns the thread ID.</short>
  6892. <descr>
  6893. </descr>
  6894. <seealso>
  6895. </seealso>
  6896. </element>
  6897. <element name="TThread.OnTerminate"> <!-- Property -->
  6898. <short>Event called when the thread terminates.</short>
  6899. <descr>
  6900. </descr>
  6901. <seealso>
  6902. </seealso>
  6903. </element>
  6904. <element name="TOperation"> <!-- Enumeration type -->
  6905. <short>Operation of which a component is notified.</short>
  6906. <descr>
  6907. </descr>
  6908. <seealso>
  6909. </seealso>
  6910. </element>
  6911. <element name="TOperation.opInsert"> <!-- Enumeration value -->
  6912. <short>A new component is being inserted in the child component list.</short>
  6913. <descr>
  6914. </descr>
  6915. <seealso>
  6916. </seealso>
  6917. </element>
  6918. <element name="TOperation.opRemove"> <!-- Enumeration value -->
  6919. <short>A component is being removed from the child component list.</short>
  6920. <descr>
  6921. </descr>
  6922. <seealso>
  6923. </seealso>
  6924. </element>
  6925. <element name="TComponentState"> <!-- Set type -->
  6926. <short>Indicates the state of the component during the streaming process.</short>
  6927. <descr>
  6928. </descr>
  6929. <seealso>
  6930. </seealso>
  6931. </element>
  6932. <element name="TComponentState.csLoading"> <!-- Enumeration value -->
  6933. <short>The component is being loaded from the stream.</short>
  6934. <descr>
  6935. </descr>
  6936. <seealso>
  6937. </seealso>
  6938. </element>
  6939. <element name="TComponentState.csReading"> <!-- Enumeration value -->
  6940. <short>Properties are being read from the stream.</short>
  6941. <descr>
  6942. </descr>
  6943. <seealso>
  6944. </seealso>
  6945. </element>
  6946. <element name="TComponentState.csWriting"> <!-- Enumeration value -->
  6947. <short>Properties are being written to the stream.</short>
  6948. <descr>
  6949. </descr>
  6950. <seealso>
  6951. </seealso>
  6952. </element>
  6953. <element name="TComponentState.csDestroying"> <!-- Enumeration value -->
  6954. <short>The component is being destroyed.</short>
  6955. <descr>
  6956. </descr>
  6957. <seealso>
  6958. </seealso>
  6959. </element>
  6960. <element name="TComponentState.csDesigning"> <!-- Enumeration value -->
  6961. <short>The component is being designed in an IDE.</short>
  6962. <descr>
  6963. </descr>
  6964. <seealso>
  6965. </seealso>
  6966. </element>
  6967. <element name="TComponentState.csAncestor"> <!-- Enumeration value -->
  6968. <short>The component is being streamed as part of a frame (?) </short>
  6969. <descr>
  6970. </descr>
  6971. <seealso>
  6972. </seealso>
  6973. </element>
  6974. <element name="TComponentState.csUpdating"> <!-- Enumeration value -->
  6975. <short>The component is being updated.</short>
  6976. <descr>
  6977. </descr>
  6978. <seealso>
  6979. </seealso>
  6980. </element>
  6981. <element name="TComponentState.csFixups"> <!-- Enumeration value -->
  6982. <short>The component's references to other components are being fixed.</short>
  6983. <descr>
  6984. </descr>
  6985. <seealso>
  6986. </seealso>
  6987. </element>
  6988. <element name="TComponentState.csFreeNotification"> <!-- Enumeration value -->
  6989. <short>Indicates whether the component has freenotifications</short>
  6990. <descr>
  6991. </descr>
  6992. <seealso>
  6993. </seealso>
  6994. </element>
  6995. <element name="TComponentState.csInline"> <!-- Enumeration value -->
  6996. <short>Component is part of a frame (?).</short>
  6997. <descr>
  6998. </descr>
  6999. <seealso>
  7000. </seealso>
  7001. </element>
  7002. <element name="TComponentState.csDesignInstance"> <!-- Enumeration value -->
  7003. <short>??</short>
  7004. <descr>
  7005. </descr>
  7006. <seealso>
  7007. </seealso>
  7008. </element>
  7009. <element name="TComponentStyle"> <!-- Set type -->
  7010. <short>Describes the style of the component.</short>
  7011. <descr>
  7012. </descr>
  7013. <seealso>
  7014. </seealso>
  7015. </element>
  7016. <element name="TComponentStyle.csInheritable"> <!-- Enumeration value -->
  7017. <short>The component can be on inherited forms.</short>
  7018. <descr>
  7019. </descr>
  7020. <seealso>
  7021. </seealso>
  7022. </element>
  7023. <element name="TComponentStyle.csCheckPropAvail"> <!-- Enumeration value -->
  7024. <short>??</short>
  7025. <descr>
  7026. </descr>
  7027. <seealso>
  7028. </seealso>
  7029. </element>
  7030. <element name="TGetChildProc"> <!-- Procedure type -->
  7031. <short>Callback used when obtaining child components.</short>
  7032. <descr>
  7033. </descr>
  7034. <seealso>
  7035. </seealso>
  7036. </element>
  7037. <!--
  7038. *********************************************************************
  7039. TComponent
  7040. *********************************************************************
  7041. -->
  7042. <element name="TComponent"> <!-- Class -->
  7043. <short>Base class for all components that need owner-owned functionality.</short>
  7044. <descr>
  7045. <p>
  7046. <var>TComponent</var> is the base class for any set of classes that needs
  7047. owner-owned functionality, and which needs support for property streaming.
  7048. All classes that should be handled by an IDE (Integrated Development
  7049. Environment) must descend from <var>TComponent</var>, as it includes all
  7050. support for streaming all its published properties.
  7051. </p>
  7052. <p>
  7053. Components can 'own' other components. <var>TComponent</var> introduces
  7054. methods for enumerating the child components. It also allows to name the
  7055. owned components with a unique name. Furthermore, functionality for
  7056. sending notifications when a component is removed from the list or
  7057. removed from memory alltogether is also introduced in <var>TComponent</var>
  7058. </p>
  7059. <p>
  7060. <var>TComponent</var> introduces a form of automatic memory management: When
  7061. a component is destroyed, all its child components will be destroyed first.
  7062. </p>
  7063. </descr>
  7064. </element>
  7065. <element name="TComponent.FComponentStyle"> <!-- Variable -->
  7066. <short>Contains the component's style.</short>
  7067. <descr>
  7068. <var>FComponentStyle</var> is the location where the <link
  7069. id="TComponent.ComponentStyle">ComponentStyle</link> property is read from.
  7070. </descr>
  7071. <seealso>
  7072. </seealso>
  7073. <link id="TComponent.ComponentStyle">ComponentStyle</link>
  7074. </element>
  7075. <element name="TComponent.ChangeName"> <!-- Procedure -->
  7076. <short>Actually sets the component name.</short>
  7077. <descr>
  7078. <p>
  7079. <var>ChangeName</var> is called by the <link
  7080. id="TComponent.SetName">SetName</link> procedure when the component name is
  7081. set and the name has been verified. It actually sets the name of the
  7082. component to <var>NewName</var>, and can be used to bypass the name checks which are done when the
  7083. <link id="TComponent.Name">Name</link> property is set.
  7084. </p>
  7085. <p>
  7086. Application programmers should never use <var>SetName</var> directly.
  7087. </p>
  7088. </descr>
  7089. <seealso>
  7090. <link id="TComponent.SetName">SetName</link>
  7091. <link id="TComponent.Name">Name</link>
  7092. </seealso>
  7093. </element>
  7094. <element name="TComponent.DefineProperties"> <!-- Procedure -->
  7095. <short>Defines fake top,left properties for handling in the IDE.</short>
  7096. <descr>
  7097. <var>DefineProperties</var> overrides the standard <link
  7098. id="TPersistent.DefineProperties"/> to store the top/left properties used to
  7099. display an icon for a non-visual component in an IDE.
  7100. </descr>
  7101. <seealso>
  7102. <link id="TPersistent.DefineProperties"/>
  7103. </seealso>
  7104. </element>
  7105. <element name="TComponent.GetChildren"> <!-- Procedure -->
  7106. <short>Must be overridden by descendents to return all child components that must be streamed.</short>
  7107. <descr>
  7108. <p>
  7109. <var>GetChildren</var> is called by the streaming system to determine which
  7110. child components should be streamed as well when the component is being
  7111. streamed.
  7112. By default, no child components are streamed, i.e. the <var>TComponent</var>
  7113. implementation is empty.
  7114. </p>
  7115. <p>
  7116. <var>TComponent</var> descendents should override this method. For each
  7117. child that needs to be streamed, <var>Proc</var> should be called with as
  7118. an argument the child component that must be streamed. The <var>Root</var>
  7119. argument contains the root component relative to which all streaming is
  7120. done.
  7121. </p>
  7122. </descr>
  7123. <seealso>
  7124. <link id="TComponent.WriteState"/>
  7125. </seealso>
  7126. </element>
  7127. <element name="TComponent.GetChildOwner"> <!-- Function -->
  7128. <short>Returns the owner of any children.</short>
  7129. <descr>
  7130. <p>
  7131. <var>GetChildOwner</var> returns the owner of the children that are read from the stream.
  7132. If the method returns <var>Nil</var> (the default) this means that streamed
  7133. child components are owned by the root component of the streaming process
  7134. (usually a Form or Datamodule)
  7135. </p>
  7136. <p>
  7137. Application programmers should not call <var>GetChildOwner</var> directly,
  7138. it is called by the streaming system when needed.
  7139. </p>
  7140. </descr>
  7141. <seealso>
  7142. <link id="TComponent.WriteState"/>
  7143. <link id="TComponent.ReadState"/>
  7144. <link id="TComponent.Owner"/>
  7145. <link id="TComponent.GetChildParent"/>
  7146. </seealso>
  7147. </element>
  7148. <element name="TComponent.GetChildParent"> <!-- Function -->
  7149. <short>Returns the parent of any children.</short>
  7150. <descr>
  7151. <p>
  7152. <var>GetChildParent</var> returns the parent component of the child
  7153. components being streamed. The parent property is a visual property, which
  7154. is not always meaningful. If there is no parent component, the owner
  7155. of child components that are streamed is returned. If <var>Nil</var> is
  7156. returned, then the root component of the streaming operation is assumed.
  7157. The <var>TComponent</var> implementation of this method returns
  7158. <var>Self</var>.
  7159. </p>
  7160. <p>
  7161. Application programmers should not call this method, it is called
  7162. automatically by the streaming mechanism.
  7163. </p>
  7164. </descr>
  7165. <seealso>
  7166. <link id="TComponent.GetChildOwner"/>
  7167. </seealso>
  7168. </element>
  7169. <element name="TComponent.GetNamePath"> <!-- Function -->
  7170. <short>Returns the name path of this component.</short>
  7171. <descr>
  7172. <p>
  7173. <var>GetNamePath</var> returns the name of the component as it will be
  7174. shown in the object inspector.
  7175. </p>
  7176. <p>
  7177. <var>TComponent</var> overrides <var>GetNamePath</var> so it returns the
  7178. <link id="TComponent.Name">Name</link> property of the component.
  7179. </p>
  7180. </descr>
  7181. <seealso>
  7182. <link id="TComponent.Name">Name</link>
  7183. <link id="TPersistent.GetNamePath"/>
  7184. </seealso>
  7185. </element>
  7186. <element name="TComponent.GetOwner"> <!-- Function -->
  7187. <short>Returns the owner of this component.</short>
  7188. <descr>
  7189. <var>GetOwner</var> returns the owner of this component as indicated by the
  7190. <link id="TComponent.Owner">Owner</link> property. The
  7191. <var>GetOwner</var> call is introduced in <link id="TPersistent"/>
  7192. and is used by the streaming system to determine the 'owner' of a component.
  7193. </descr>
  7194. <seealso>
  7195. <link id="TPersistent.GetOwner"/>
  7196. <link id="TComponent.Owner"/>
  7197. </seealso>
  7198. </element>
  7199. <element name="TComponent.Loaded"> <!-- Procedure -->
  7200. <short>Called when the component has finished loading.</short>
  7201. <descr>
  7202. <p>
  7203. <var>Loaded</var> is called by the streaming system when a root
  7204. component was completely read from a stream and all properties and
  7205. references to other objects have been resolved by the streaming
  7206. system. Descendents of <var>TComponent</var> should override this method to
  7207. do some additional processing of properties after all published
  7208. properties have been set from values obtained from the stream.
  7209. </p>
  7210. <p>
  7211. Application programmers should never call <var>Loaded</var> directly, this
  7212. is done automatically by the streaming system.
  7213. </p>
  7214. </descr>
  7215. <seealso>
  7216. <link id="TComponent.ReadState"/>
  7217. <link id="TComponent.ComponentState"/>
  7218. </seealso>
  7219. </element>
  7220. <element name="TComponent.Notification"> <!-- Procedure -->
  7221. <short>Called by components that are freed and which received a FreeNotification.</short>
  7222. <descr>
  7223. <p>
  7224. <var>Notification</var> is called whenever a child component is destroyed,
  7225. inserted or removed from the list of owned component. Components that
  7226. were requested to send a notification when they are freed
  7227. ((with <link id="TComponent.FreeNotification">FreeNotification</link>)
  7228. will also call <var>Notification</var> when they are freed.
  7229. </p>
  7230. <p>The <var>AComponent</var> parameter specifies which component sends the
  7231. notification, and <var>Operation</var> specifies whether the component is
  7232. being inserted into or removed from the child component list, or whether it
  7233. is being destroyed.
  7234. </p>
  7235. <p>
  7236. Descendents of <var>TComponent</var> can use <link
  7237. id="TComponent.FreeNotification">FreeNotification</link> to request
  7238. notification of the destruction of another object. By overriding the
  7239. <var>Notification</var> method, they can do special processing (typically,
  7240. set a reference to this component to <var>Nil</var>)
  7241. when this component is destroyed. The <var>Notification</var> method is
  7242. called quite often in the streaming process, so speed should be a
  7243. consideration when overriding this method.
  7244. </p>
  7245. </descr>
  7246. <seealso>
  7247. <link id="TOperation"/>
  7248. <link id="TComponent.FreeNotification"/>
  7249. </seealso>
  7250. </element>
  7251. <element name="TComponent.ReadState"> <!-- Procedure -->
  7252. <short>Read the component's state from a stream.</short>
  7253. <descr>
  7254. <p>
  7255. <var>ReadState</var> reads the component's state from a stream through the
  7256. reader object <var>reader</var>. Values for all published properties of
  7257. the component can be read from the stream. Normally there is no need to
  7258. call <var>ReadState</var> directly. The streaming system calls
  7259. <var>ReadState</var> itself.
  7260. </p>
  7261. <p>
  7262. The <link id="TComponent"/> implementation of <var>ReadState</var> simply
  7263. calls <link id="TReader.ReadData"/> Descendent classes can, however,
  7264. override <var>ReadState</var>to provide additional processing of stream
  7265. data.
  7266. </p>
  7267. </descr>
  7268. <seealso>
  7269. <link id="TComponent.WriteState">WriteState</link>
  7270. <link id="TStream.ReadComponent"/>
  7271. <link id="TReader.ReadData"/>
  7272. </seealso>
  7273. </element>
  7274. <element name="TComponent.SetAncestor"> <!-- Procedure -->
  7275. <short>Sets the <var>csAncestor</var> state of the component.</short>
  7276. <descr>
  7277. <p>
  7278. <var>SetAncestor</var> includes or excludes the <var>csAncestor</var> flag
  7279. in the <link id="TComponent.ComponentState">ComponentState</link> set property,
  7280. depending on the boolean <var>Value</var>. The flag is set recursively for
  7281. all owned components as well.
  7282. </p>
  7283. <p>
  7284. This is normally only done during the streaming system, and should not be called
  7285. directly by an application programmer.
  7286. </p>
  7287. </descr>
  7288. <seealso>
  7289. <link id="TComponent.ComponentState">ComponentState</link>
  7290. </seealso>
  7291. </element>
  7292. <element name="TComponent.SetDesigning"> <!-- Procedure -->
  7293. <short>Sets the <var>csDesigning</var> state of the component.</short>
  7294. <descr>
  7295. <p>
  7296. <var>SetDesigning</var> includes or excludes the <var>csDesigning</var> flag
  7297. in the <link id="TComponent.ComponentState">ComponentState</link> set property,
  7298. depending on the boolean <var>Value</var>. The flag is set recursively for
  7299. all owned components as well.
  7300. </p>
  7301. <p>
  7302. This is normally only done during the streaming system, and should not be called
  7303. directly by an application programmer.
  7304. </p>
  7305. </descr>
  7306. <seealso>
  7307. </seealso>
  7308. </element>
  7309. <element name="TComponent.SetName"> <!-- Procedure -->
  7310. <short>Write handler for <link id="TComponent.Name">Name</link> property.</short>
  7311. <descr>
  7312. <var>SetName</var> is the write handler for the <link
  7313. id="TComponent.Name">Name</link> property. It checks whether the desired
  7314. name is valid (i.e is a valid identifier) and is unique among the children
  7315. of the owner component. If either conditions is not satisfied, an exception
  7316. is raised.
  7317. </descr>
  7318. <seealso>
  7319. <link id="TComponent.Name">Name</link>
  7320. <link id="TComponent.ValidateRename">ValidateRename</link>
  7321. </seealso>
  7322. </element>
  7323. <element name="TComponent.SetChildOrder"> <!-- Procedure -->
  7324. <short>Determines the order in which children are streamed/created.</short>
  7325. <descr>
  7326. This method does nothing. It can be used to change the order in which child
  7327. components are streamed and created. This can be used by descendent classes
  7328. to optimize or correct the order in which child components are streamed.
  7329. </descr>
  7330. <seealso>
  7331. <link id="TComponent.ReadState"/>
  7332. </seealso>
  7333. </element>
  7334. <element name="TComponent.SetParentComponent"> <!-- Procedure -->
  7335. <short>Set the parent component.</short>
  7336. <descr>
  7337. <var>SetParentComponent</var> does nothing, but is called by the streaming
  7338. system to set the parent component of the current component. This method
  7339. can be overridden by descendent components to set the parent component of
  7340. the current component.
  7341. </descr>
  7342. <seealso>
  7343. <link id="TComponent.Owner">Owner</link>
  7344. </seealso>
  7345. </element>
  7346. <element name="TComponent.Updating"> <!-- Procedure -->
  7347. <short>Sets the state to <var>csUpdating</var></short>
  7348. <descr>
  7349. <p>
  7350. <var>Updating</var> includes <var>csUpdating</var> in the <link
  7351. id="TComponent.ComponentState">ComponentState</link> property of the
  7352. component.
  7353. </p>
  7354. <p>
  7355. Normally, an application programmer should not call this method directly, it
  7356. is called automatically by the streaming system.
  7357. </p>
  7358. </descr>
  7359. <seealso>
  7360. <link id="TComponent.Updated">Updated</link>
  7361. <link id="TComponent.ComponentState">ComponentState</link>
  7362. </seealso>
  7363. </element>
  7364. <element name="TComponent.Updated"> <!-- Procedure -->
  7365. <short>Ends the <var>csUpdating</var> state.</short>
  7366. <descr>
  7367. <p>
  7368. <var>Updated</var> excludes <var>csUpdating</var> from the <link
  7369. id="TComponent.ComponentState">ComponentState</link> property of the
  7370. component.
  7371. </p>
  7372. <p>
  7373. Normally, an application programmer should not call this method directly, it
  7374. is called automatically by the streaming system.
  7375. </p>
  7376. </descr>
  7377. <seealso>
  7378. <link id="TComponent.Updating">Updating</link>
  7379. <link id="TComponent.ComponentState">ComponentState</link>
  7380. </seealso>
  7381. </element>
  7382. <element name="TComponent.UpdateRegistry"> <!-- Procedure -->
  7383. <short>For compatibilty only.</short>
  7384. <descr>
  7385. This method does nothing, and is provided for compatibility only.
  7386. </descr>
  7387. <seealso>
  7388. </seealso>
  7389. </element>
  7390. <element name="TComponent.ValidateRename"> <!-- Procedure -->
  7391. <short>Called when a name change must be validated</short>
  7392. <descr>
  7393. <var>ValidateRename</var> checks whether <var>NewName</var> is a valid
  7394. replacement for <var>CurName</var> for component <var>AComponent</var>.
  7395. Two owned components of a component can not have the same name.
  7396. If a child component with the same name is found, then an exception
  7397. is raised.
  7398. </descr>
  7399. <seealso>
  7400. <link id="TComponent.SetName">SetName</link>
  7401. <link id="TComponent.Name">Name</link>
  7402. </seealso>
  7403. </element>
  7404. <element name="TComponent.ValidateContainer"> <!-- Procedure -->
  7405. <short>??</short>
  7406. <descr>
  7407. <var>ValidateContainer</var> is provided for compatibility only.
  7408. It doesn't do anything in Free Pascal.
  7409. </descr>
  7410. </element>
  7411. <element name="TComponent.ValidateInsert"> <!-- Procedure -->
  7412. <short>Called when an insert must be validated.</short>
  7413. <descr>
  7414. <p>
  7415. <var>ValidateInsert</var> should be implemented by descendent components to
  7416. see whether the <var>AComponent</var> component may be inserted in the list
  7417. of owned components.
  7418. </p>
  7419. <p>
  7420. This procedure does nothing in the <var>TComponent</var> implementation, it
  7421. should be overridden by descendant components.
  7422. </p>
  7423. </descr>
  7424. <seealso>
  7425. <link id="TComponent.Insert">Insert</link>
  7426. </seealso>
  7427. </element>
  7428. <element name="TComponent.WriteState"> <!-- Procedure -->
  7429. <short>Writes the component to a stream.</short>
  7430. <descr>
  7431. <p>
  7432. <var>WriteState</var> writes the component's current state to a stream
  7433. through the <link id="TWriter">writer</link> object <var>writer</var>.
  7434. Values for all published properties of the component can be written to
  7435. the stream. Normally there is no need to call <var>WriteState</var> directly.
  7436. The streaming system calls <var>WriteState</var> itself.
  7437. </p>
  7438. <p>
  7439. The <link id="TComponent"/> implementation of <var>WriteState</var> simply
  7440. calls <link id="TWriter.WriteData"/>. Descendent classes can, however,
  7441. override <var>WriteState</var>to provide additional processing of stream
  7442. data.
  7443. </p>
  7444. </descr>
  7445. <seealso>
  7446. <link id="TComponent.ReadState">ReadState</link>
  7447. <link id="TStream.WriteComponent"/>
  7448. <link id="TWriter.WriteData"/>
  7449. </seealso>
  7450. </element>
  7451. <element name="TComponent.Create"> <!-- Constructor -->
  7452. <short>Creates a new instance of the component.</short>
  7453. <descr>
  7454. <var>Create</var> creates a new instance of a <var>TComponent</var> class.
  7455. If <var>AOwner</var> is not <var>Nil</var>, the new component attempts to
  7456. insert itself in the list of owned components of the owner.
  7457. </descr>
  7458. <seealso>
  7459. <link id="TComponent.Insert">Insert</link>
  7460. <link id="TComponent.Owner">Owner</link>
  7461. </seealso>
  7462. </element>
  7463. <element name="TComponent.Destroy"> <!-- Destructor -->
  7464. <short>Destroys the instance of the component.</short>
  7465. <descr>
  7466. <var>Destroy</var> sends a <var>opRemove</var> notification to all components
  7467. in the free-notification list. After that, all owned components are
  7468. destroyed by calling <link id="TComponent.DestroyComponents">DestroyComponents</link>
  7469. (and hence removed from the list of owned components). When this
  7470. is done, the component removes itself from its owner's child component list.
  7471. After that, the parent's destroy method is called.
  7472. </descr>
  7473. <seealso>
  7474. <link id="TComponent.Notification">Notification</link>
  7475. <link id="TComponent.Owner">Owner</link>
  7476. <link id="TComponent.DestroyComponents">DestroyComponents</link>
  7477. <link id="TComponent.Components">Components</link>
  7478. </seealso>
  7479. </element>
  7480. <element name="TComponent.DestroyComponents"> <!-- Procedure -->
  7481. <short>Destroy child components.</short>
  7482. <descr>
  7483. <p>
  7484. <var>DestroyComponents</var> calls the destructor of all owned components,
  7485. till no more components are left in the <link id="TComponent.Components">Components</link> array.
  7486. </p>
  7487. <p>
  7488. Calling the destructor of an owned component has as the effect that the
  7489. component will remove itself from the list of owned components, if nothing
  7490. has disrupted the sequence of destructors.
  7491. </p>
  7492. </descr>
  7493. <errors>
  7494. If an overridden 'destroy' method does not call it's intherited
  7495. destructor or raises an exception, it's <link id="TComponent.Destroy"/>
  7496. destructor will not be called, which may result in an endless loop.
  7497. </errors>
  7498. <seealso>
  7499. <link id="TComponent.Destroy">Destroy</link>
  7500. <link id="TComponent.Components">Components</link>
  7501. </seealso>
  7502. </element>
  7503. <element name="TComponent.Destroying"> <!-- Procedure -->
  7504. <short>Called when the component is being destroyed</short>
  7505. <descr>
  7506. <p>
  7507. <var>Destroying</var> sets the <var>csDestroying</var> flag in the
  7508. component's <link id="TComponent.State">state</link> property, and does the
  7509. same for all owned components.
  7510. </p>
  7511. <p>
  7512. It is not necessary to call <var>Destroying</var> directly, the destructor <link
  7513. id="TComponent.Destroy">Destroy</link> does this automatically.
  7514. </p>
  7515. </descr>
  7516. <seealso>
  7517. <link id="TComponent.State">State</link>
  7518. <link id="TComponent.Destroy">Destroy</link>
  7519. </seealso>
  7520. </element>
  7521. <element name="TComponent.FindComponent"> <!-- Function -->
  7522. <short>Finds and returns the named component in the owned components.</short>
  7523. <descr>
  7524. <var>FindComponent</var> searches the component with name <var>AName</var>
  7525. in the list of owned components. If <var>AName</var> is empty, then
  7526. <var>Nil</var> is returned.
  7527. </descr>
  7528. <seealso>
  7529. <link id="TComponent.Components">Components</link>
  7530. <link id="TComponent.Name">Name</link>
  7531. </seealso>
  7532. </element>
  7533. <element name="TComponent.FreeNotification"> <!-- Procedure -->
  7534. <short>Ask the component to notify called when it is being destroyed.</short>
  7535. <descr>
  7536. <var>FreeNotification</var> inserts <var>AComponent</var> in the
  7537. freenotification list. When the component is destroyed, the <link
  7538. id="TComponent.Notification">Notification</link> method is called for all
  7539. components in the freenotification list.
  7540. </descr>
  7541. <seealso>
  7542. <link id="TComponent.Components">Components</link>
  7543. <link id="TComponent.Notification">Notification</link>
  7544. </seealso>
  7545. </element>
  7546. <element name="TComponent.FreeOnRelease"> <!-- Procedure -->
  7547. <short>Part of the <var>IVCLComObject</var> interface.</short>
  7548. <descr>
  7549. Provided for Delphi compatibility, but is not yet impltmentedd.
  7550. </descr>
  7551. </element>
  7552. <element name="TComponent.GetParentComponent"> <!-- Function -->
  7553. <short>Returns the parent component.</short>
  7554. <descr>
  7555. <var>GetParentComponent</var> can be implemented to return the parent
  7556. component of this component. The implementation of this method in
  7557. <var>TComponent</var> always returns <var>Nil</var>. Descendent classes must
  7558. override this method to return the visual parent of the component.
  7559. </descr>
  7560. <seealso>
  7561. <link id="TComponent.HasParent">HasParent</link>
  7562. <link id="TComponent.Owner">Owner</link>
  7563. </seealso>
  7564. </element>
  7565. <element name="TComponent.HasParent"> <!-- Function -->
  7566. <short>Does the component have a parent ?</short>
  7567. <descr>
  7568. <var>HasParent</var> can be implemented to return whether the parent of the
  7569. component exists. The implementation of this method in TComponent always
  7570. returns <var>False</var>, and should be overridden by descendent classes to
  7571. return <var>True</var> when a parent is available. If <var>HasParent</var>
  7572. returns <var>True</var>, then <link
  7573. id="TComponent.GetParentComponent">GetParentComponent</link> will return the
  7574. parent component.
  7575. </descr>
  7576. <seealso>
  7577. <link id="TComponent.HasParent">HasParent</link>
  7578. <link id="TComponent.Owner">Owner</link>
  7579. </seealso>
  7580. </element>
  7581. <element name="TComponent.InsertComponent"> <!-- Procedure -->
  7582. <short>Insert the given component in the list of owned components.</short>
  7583. <descr>
  7584. <var>InsertComponent</var> attempts to insert <var>AComponent</var> in the
  7585. list with owned components. It first calls <link
  7586. id="TComponent">ValidateComponent</link> to see whether the component can be
  7587. inserted. It then checks whether there are no name conflicts by calling
  7588. <link id="TComponent.ValidateRename">ValidateRename</link>. If neither of
  7589. these checks have raised an exception the component is inserted, and
  7590. notified of the insert.
  7591. </descr>
  7592. <seealso>
  7593. <link id="TComponent.RemoveComponent">RemoveComponent</link>
  7594. <link id="TComponent.Insert">Insert</link>
  7595. <link id="TComponent.ValidateContainer">ValidateContainer</link>
  7596. <link id="TComponent.ValidateRename">ValidateRename</link>
  7597. <link id="TComponent.Notification">Notification</link>
  7598. </seealso>
  7599. </element>
  7600. <element name="TComponent.RemoveComponent"> <!-- Procedure -->
  7601. <short>Remove the given component from the list of owned components.</short>
  7602. <descr>
  7603. <var>RemoveComponent</var> will send an <var>opRemove</var> notification to
  7604. <var>AComponent</var> and will then proceed to remove <var>AComponent</var>
  7605. from the list of owned components.
  7606. </descr>
  7607. <seealso>
  7608. <link id="TComponent.InsertComponent">InsertComponent</link>
  7609. <link id="TComponent.Remove">Remove</link>
  7610. <link id="TComponent.ValidateRename">ValidateRename</link>
  7611. <link id="TComponent.Notification">Notification</link>
  7612. </seealso>
  7613. </element>
  7614. <element name="TComponent.SafeCallException"> <!-- Function -->
  7615. <short>Part of the <var>IVCLComObject</var> Interface.</short>
  7616. <descr>
  7617. Provided for Delphi compatibility, but not implemented.
  7618. </descr>
  7619. <seealso>
  7620. </seealso>
  7621. </element>
  7622. <element name="TComponent.Components"> <!-- Property -->
  7623. <short>Indexed list (zero-based) of all owned components.</short>
  7624. <descr>
  7625. <var>Components</var> provides indexed access to the list of owned
  7626. components. <var>Index</var> can range from 0 to <link
  7627. id="TComponent.ComponentCount">ComponentCount-1</link>.
  7628. </descr>
  7629. <seealso>
  7630. <link id="TComponent.ComponentCount">ComponentCount</link>
  7631. <link id="TComponent.Owner">Owner</link>
  7632. </seealso>
  7633. </element>
  7634. <element name="TComponent.ComponentCount"> <!-- Property -->
  7635. <short>Count of owned components</short>
  7636. <descr>
  7637. <var>ComponentCount</var> returns the number of components that the current
  7638. component owns. It can be used to determine the valid index range in the
  7639. <link id="TComponent.Components">Component</link> array.
  7640. </descr>
  7641. <seealso>
  7642. <link id="TComponent.Components">Components</link>
  7643. <link id="TComponent.Owner">Owner</link>
  7644. </seealso>
  7645. </element>
  7646. <element name="TComponent.ComponentIndex"> <!-- Property -->
  7647. <short>Index of component in it's owner's list.</short>
  7648. <descr>
  7649. <var>ComponentIndex</var> is the index of the current component in its
  7650. owner's list of components. If the component has no owner, the value of this
  7651. property is -1.
  7652. </descr>
  7653. <seealso>
  7654. <link id="TComponent.Components">Components</link>
  7655. <link id="TComponent.ComponentCount">ComponentCount</link>
  7656. <link id="TComponent.Owner">Owner</link>
  7657. </seealso>
  7658. </element>
  7659. <element name="TComponent.ComponentState"> <!-- Property -->
  7660. <short>Current component's state.</short>
  7661. <descr>
  7662. <p>
  7663. <var>ComponentState</var> indicates the current state of the component. It
  7664. is a set of flags which indicate the various stages in the lifetime of a
  7665. component. The following values can occur in this set:
  7666. </p>
  7667. <table>
  7668. <caption>Component states</caption>
  7669. <th><td>Flag</td><td>Meaning</td></th>
  7670. <tr><td>csLoading</td><td>The component is being loaded from stream</td></tr>
  7671. <tr><td>csReading</td><td>Component properties are being read from stream.</td></tr>
  7672. <tr><td>csWriting</td><td>Component properties are weing written to stream.</td></tr>
  7673. <tr><td>csDestroying</td><td>The component or one of it's owners is being destoyed.</td></tr>
  7674. <tr><td>csAncestor</td><td>The component is being streamed as part of a frame </td></tr>
  7675. <tr><td>csUpdating</td><td>The component is being updated</td></tr>
  7676. <tr><td>csFixups</td><td>References to other components are being resolved</td></tr>
  7677. <tr><td>csFreeNotification</td><td>The component has freenotifications.</td></tr>
  7678. <tr><td>csInline</td><td>The component is being loaded as part of a frame</td></tr>
  7679. <tr><td>csDesignInstance</td><td>? not used.</td></tr>
  7680. </table>
  7681. <p>
  7682. The component state is set by various actions such as reading it from stream,
  7683. destroying it etc.
  7684. </p>
  7685. </descr>
  7686. <seealso>
  7687. <link id="TComponent.SetAncestor">SetAncestor</link>
  7688. <link id="TComponent.SetDesigning">SetDesigning</link>
  7689. <link id="TComponent.SetInline">SetInline</link>
  7690. <link id="TComponent.SetDesignInstance">SetDesignInstance</link>
  7691. <link id="TComponent.Updating">Updating</link>
  7692. <link id="TComponent.Updated">Updated</link>
  7693. <link id="TComponent.Loaded">Loaded</link>
  7694. </seealso>
  7695. </element>
  7696. <element name="TComponent.ComponentStyle"> <!-- Property -->
  7697. <short>Current component's style.</short>
  7698. <descr>
  7699. </descr>
  7700. <seealso>
  7701. </seealso>
  7702. </element>
  7703. <element name="TComponent.DesignInfo"> <!-- Property -->
  7704. <short>Information for IDE designer.</short>
  7705. <descr>
  7706. <var>DesignInformation</var> can be used by an IDE to store design
  7707. information in the component. It should not be used by an application
  7708. programmer.
  7709. </descr>
  7710. <seealso>
  7711. <link id="TComponent.Tag">Tag</link>
  7712. </seealso>
  7713. </element>
  7714. <element name="TComponent.Owner"> <!-- Property -->
  7715. <short>Owner of this component.</short>
  7716. <descr>
  7717. <var>Owner</var> returns the owner of this component. The owner cannot be
  7718. set except by explicitly inserting the component in another component's
  7719. owned components list using that component's <link
  7720. id="TComponent.InsertComponent">InsertComponent</link> method, or by
  7721. removing the component from it's owner's owned component list using the
  7722. <link id="TComponent.RemoveComponent">RemoveComponent</link> method.
  7723. </descr>
  7724. <seealso>
  7725. <link id="TComponent.Components">Components</link>
  7726. <link id="TComponent.InsertComponent">InsertComponent</link>
  7727. <link id="TComponent.RemoveComponent">RemoveComponent</link>
  7728. </seealso>
  7729. </element>
  7730. <element name="TComponent.VCLComObject"> <!-- Property -->
  7731. <short>Not implemented.</short>
  7732. <descr>
  7733. <var>VCLComObject</var> is not yet implemented in Free Pascal.
  7734. </descr>
  7735. </element>
  7736. <element name="TComponent.Name"> <!-- Property -->
  7737. <short>Name of the component.</short>
  7738. <descr>
  7739. <var>Name</var> is the name of the component. This name should be a valid
  7740. identifier, i.e. must start with a letter, and can contain only letters,
  7741. numbers and the underscore character. When attempting to set the name of a
  7742. component, the name will be checked for validity. Furthermore, when a
  7743. component is owned by another component, the name must be either empty
  7744. or must be unique among the child component names.
  7745. </descr>
  7746. <errors>
  7747. Attempting to set the name to an invalid value will result in an exception
  7748. being raised.
  7749. </errors>
  7750. <seealso>
  7751. <link id="TComponent.ValidateRename">ValidateRename</link>
  7752. <link id="TComponent.Owner">Owner</link>
  7753. </seealso>
  7754. </element>
  7755. <element name="TComponent.Tag"> <!-- Property -->
  7756. <short>Tag value of the component.</short>
  7757. <descr>
  7758. <var>Tag</var> can be used to store an integer value in the component. This
  7759. value is streamed together with all other published properties. It can be
  7760. used for instance to quickly identify a component in an event handler.
  7761. </descr>
  7762. <seealso>
  7763. <link id="TComponent.Name">Name</link>
  7764. </seealso>
  7765. </element>
  7766. <!--
  7767. *********************************************************************
  7768. TBasicAction
  7769. *********************************************************************
  7770. -->
  7771. <element name="TBasicAction">
  7772. <short>Abstract base class for all Actions.</short>
  7773. <descr>
  7774. <p>
  7775. <var>TBasicAction</var> implements a basic action class from which all
  7776. actions are derived. It introduces all basic methods of an action, and
  7777. implements functionality to maintain a list of clients, i.e. components that
  7778. are connected with this action.
  7779. </p>
  7780. <p>
  7781. Do not create instances of <var>TBasicAction</var>. Instead, create a
  7782. descendent class and create an instance of this class instead.
  7783. </p>
  7784. </descr>
  7785. <seealso>
  7786. <link id="TBasicActionLink"/>
  7787. <link id="TComponent"/>
  7788. </seealso>
  7789. </element>
  7790. <element name="TBasicAction.FClients">
  7791. <short>List with components linked to this action.
  7792. </short>
  7793. <descr>
  7794. <var>FClients</var> is a list of <link id="TBasicActionLink"/> classes which
  7795. represent links to various components that are connected to this action.
  7796. The elements in this list should not be manipulated directly, but should be
  7797. managed with the
  7798. <link id="TBasicAction.RegisterChanges">RegisterChanges</link> and
  7799. <link id="TBasicAction.UnRegisterChanges">UnRegisterChanges</link> methods.
  7800. </descr>
  7801. <seealso>
  7802. <link id="TBasicAction.RegisterChanges">RegisterChanges</link>
  7803. <link id="TBasicAction.UnRegisterChanges">UnRegisterChanges</link>
  7804. <link id="TBasicActionLink"/>
  7805. </seealso>
  7806. </element>
  7807. <element name="TBasicAction.Change">
  7808. <short>Calls the <link id="TBasicAction.OnChange">OnChange</link> handler.</short>
  7809. <descr>
  7810. <p>
  7811. <var>Change</var> calls the <link id="TBasicAction.OnChange">OnChange</link>
  7812. handler if one is assigned.
  7813. </p>
  7814. <p>
  7815. Application programmers should not call <var>Change</var> directly.
  7816. It is called automatically if a property of an action component changes.
  7817. </p>
  7818. <p>
  7819. Descendent classes of <var>TBasicAction</var> should call explicitly call
  7820. <var>Change</var> if one of their properties that affect client controls
  7821. changes its value.
  7822. </p>
  7823. </descr>
  7824. </element>
  7825. <element name="TBasicAction.SetOnExecute">
  7826. <short>Assigns an <link id="TBasicAction.OnExecute">OnExecute</link> event
  7827. handler</short>
  7828. <descr>
  7829. <var>SetOnExecute</var> sets the
  7830. <link id="TBasicAction.OnExecute">OnExecute</link> handler of the component.
  7831. It also propagates this event to all client controls, and finally triggers
  7832. the <link id="TBasicAction.OnChange">OnChange</link> event.
  7833. </descr>
  7834. <seealso>
  7835. <link id="TBasicAction.OnExecute">OnExecute</link>
  7836. <link id="TBasicAction.OnChange">OnChange</link>
  7837. </seealso>
  7838. </element>
  7839. <element name="TBasicAction.OnChange">
  7840. <short>Occurs when one of the action's properties changes.
  7841. </short>
  7842. <descr>
  7843. <p>
  7844. <var>OnChange</var> is the event that is triggered when one of the
  7845. action's properties changes. This event should be used by client
  7846. controls or descendent classes to respond to these changes in the properties
  7847. of the action.
  7848. </p>
  7849. <p>
  7850. Application programmers should never use the <var>OnChange</var> event
  7851. directly.
  7852. </p>
  7853. </descr>
  7854. </element>
  7855. <element name="TBasicAction.Create">
  7856. <short>Creates a new instance of a <link id="TBasicAction"/> class.
  7857. </short>
  7858. <descr>
  7859. <p>
  7860. <var>Create</var> calls the inherited constructor, and then initializes the
  7861. list of clients controls (or action lists) by adding the <var>AClient</var>
  7862. argument to the list of client controls.
  7863. </p>
  7864. <p>
  7865. Under normal circumstances it should not be necessary to create a
  7866. <var>TBasicAction</var> descendent manually, actions are created in an IDE.
  7867. </p>
  7868. </descr>
  7869. <seealso>
  7870. <link id="TBasicAction.Destroy">Destroy</link>
  7871. <link id="TBasicAction.AssignClient">AssignClient</link>
  7872. </seealso>
  7873. </element>
  7874. <element name="TBasicAction.Destroy">
  7875. <short>Destroys the action.</short>
  7876. <descr>
  7877. <p>
  7878. <var>Destroy</var> cleans up the list of client controls and then calls the
  7879. inherited destructor.
  7880. </p>
  7881. <p>
  7882. An application programmer should not call <var>Destroy</var> directly;
  7883. Instead <var>Free</var> should be called, if it needs to be called at all.
  7884. Normally the controlling class (e.g. a TActionList) will destroy the action.
  7885. </p>
  7886. </descr>
  7887. </element>
  7888. <element name="TBasicAction.HandlesTarget">
  7889. <short>Determines whether <var>Target</var> can be handled by this action
  7890. </short>
  7891. <descr>
  7892. <p>
  7893. <var>HandlesTarget</var> returns <var>True</var> if <var>Target</var> is
  7894. a valid client for this action and if so, if it is in a suitable state to
  7895. execute the action. An application programmer should never need to call
  7896. <var>HandlesTarget</var> directly, it will be called by the action itself
  7897. when needed.
  7898. </p>
  7899. <p>
  7900. In <var>TBasicAction</var> this method is empty; descendent classes should
  7901. override this method to implement appropriate checks.
  7902. </p>
  7903. </descr>
  7904. <seealso>
  7905. <link id="TBasicAction.UpdateTarget">UpdateTarget</link>
  7906. <link id="TBasicAction.ExecuteTarget">ExecuteTarget</link>
  7907. </seealso>
  7908. </element>
  7909. <element name="TBasicAction.UpdateTarget">
  7910. <short>Notify client controls when the action updates itself.</short>
  7911. <descr>
  7912. <p>
  7913. <var>UpdateTarget</var> should update the client control specified by
  7914. <var>Target</var> when the action updates itself.
  7915. In <var>TBasicAction</var>, the implementation of <var>UpdateTarget</var>
  7916. is empty. Descendent classes should override and implement
  7917. <var>UpdateTarget</var> to actually update the <var>Target</var> object.
  7918. </p>
  7919. <p>
  7920. An application programmer should never need to call
  7921. <var>HandlesTarget</var> directly, it will be called by the action itself
  7922. when needed.
  7923. </p>
  7924. </descr>
  7925. <seealso>
  7926. <link id="TBasicAction.HandlesTarget">HandlesTarget</link>
  7927. <link id="TBasicAction.ExecuteTarget">ExecuteTarget</link>
  7928. </seealso>
  7929. </element>
  7930. <element name="TBasicAction.ExecuteTarget">
  7931. <short>Executes the action on the <var>Target</var> object</short>
  7932. <descr>
  7933. <p>
  7934. <var>ExecuteTarget</var> performs the action on the <var>Target</var>
  7935. object. In <var>TBasicAction</var> this method does nothing. Descendent
  7936. classes should implement the action to be performed. For instance an action
  7937. to post data in a dataset could call the <var>Post</var> method of the
  7938. dataset.
  7939. </p>
  7940. <p>
  7941. An application programmer should never call <var>ExecuteTarget</var>
  7942. directly.
  7943. </p>
  7944. </descr>
  7945. <seealso>
  7946. <link id="TBasicAction.HandlesTarget">HandlesTarget</link>
  7947. <link id="TBasicAction.ExecuteTarget">UpdateTarget</link>
  7948. <link id="TBasicAction.Execute">Execute</link>
  7949. </seealso>
  7950. </element>
  7951. <element name="TBasicAction.Execute">
  7952. <short>Triggers the <link id="TBasicAction.OnExecute">OnExecute</link> event</short>
  7953. <descr>
  7954. <var>Execute</var> triggers the <var>OnExecute</var> event, if one is
  7955. assigned. It returns <var>True</var> if the event handler was called,
  7956. <var>False</var> otherwise.
  7957. </descr>
  7958. </element>
  7959. <element name="TBasicAction.RegisterChanges">
  7960. <short>Registers a new client with the action.</short>
  7961. <descr>
  7962. <var>RegisterChanges</var> adds <var>Value</var> to the list of clients.
  7963. </descr>
  7964. <seealso>
  7965. <link id="TBasicAction.UnregisterChanges">UnregisterChanges</link>
  7966. </seealso>
  7967. </element>
  7968. <element name="TBasicAction.UnregisterChanges">
  7969. <short>Unregisters a client from the list of clients</short>
  7970. <descr>
  7971. <var>UnregisterChanges</var> removes <var>Value</var> from the list of clients.
  7972. This is called for instance when the action is destroyed, or when the client
  7973. is assigned a new action.
  7974. </descr>
  7975. <seealso>
  7976. <link id="TBasicAction.UnregisterChanges">UnregisterChanges</link>
  7977. <link id="TBasicAction.Destroy">Destroy</link>
  7978. </seealso>
  7979. </element>
  7980. <element name="TBasicAction.Update">
  7981. <short>Triggers the <link id="TBasicAction.OnUpdate">OnUpdate</link> event</short>
  7982. <descr>
  7983. <p>
  7984. <var>Update</var> triggers the <var>OnUpdate</var> event, if one is
  7985. assigned. It returns <var>True</var> if the event was triggered, or
  7986. <var>False</var> if no event was assigned.
  7987. </p>
  7988. <p>
  7989. Application programmers should never run <var>Update</var> directly. The
  7990. <var>Update</var> method is called automatically by the action mechanism;
  7991. Normally this is in the Idle time of an application. An application
  7992. programmer should assign the <link id="TBasicAction.OnUpdate">OnUpdate</link>
  7993. event, and perform any checks in that handler.
  7994. </p>
  7995. </descr>
  7996. <seealso>
  7997. <link id="TBasicAction.OnUpdate">OnUpdate</link>
  7998. <link id="TBasicAction.Execute">Execute</link>
  7999. <link id="TBAsicAction.UpdateTarget">UpdateTarget</link>
  8000. </seealso>
  8001. </element>
  8002. <element name="TBasicAction.ActionComponent">
  8003. <short>Returns the component that initiated the action.</short>
  8004. <descr>
  8005. <var>ActionComponent</var> is set to the component that caused the action to
  8006. execute, e.g. a toolbutton or a menu item.
  8007. The property is set just before the action executes, and is reset to nil
  8008. after the action was executed.
  8009. </descr>
  8010. <seealso>
  8011. <link id="TBasicAction.Execute">Execute</link>
  8012. <link id="TBasicAction.OnExecute">OnExecute</link>
  8013. </seealso>
  8014. </element>
  8015. <element name="TBasicAction.OnExecute">
  8016. <short>Event triggered when the action executes.</short>
  8017. <descr>
  8018. <p>
  8019. <var>OnExecute</var> is the event triggered when the action is activated
  8020. (executed). The event is triggered e.g. when the user clicks e.g. on a menu
  8021. item or a button associated to the action. The application programmer
  8022. should provide a <var>OnExecute</var> event handler to execute whatever code
  8023. is necessary when the button is pressed or the menu item is chosen.
  8024. </p>
  8025. <p>
  8026. Note that assigning an <var>OnExecute</var> handler will result in the
  8027. <link id="TBasicAction.Execute">Execute</link> method returning a
  8028. <var>True</var> value. Predefined actions (such as dataset actions)
  8029. will check the result of <var>Execute</var> and will not perform their
  8030. normal task if the <var>OnExecute</var> handler was called.
  8031. </p>
  8032. </descr>
  8033. <seealso>
  8034. <link id="TBasicAction.Execute">Execute</link>
  8035. <link id="TBasicAction.OnUpdate">OnUpdate</link>
  8036. </seealso>
  8037. </element>
  8038. <element name="TBasicAction.OnUpdate">
  8039. <short>Event trigged when the application is idle.</short>
  8040. <descr>
  8041. <var>OnUpdate</var> is the event triggered when the application is idle, and
  8042. the action is being updated. The <var>OnUpdate</var> event can be used to
  8043. set the state of the action, for instance disable it if the action cannot be
  8044. executed at this point in time.
  8045. </descr>
  8046. <seealso>
  8047. <link id="TBasicAction.Update">Update</link>
  8048. <link id="TBasicAction.OnExecute">OnExecute</link>
  8049. </seealso>
  8050. </element>
  8051. <!--
  8052. *********************************************************************
  8053. TBasicActionLink
  8054. *********************************************************************
  8055. -->
  8056. <element name="TBasicActionLink">
  8057. <short>Link between actions and action clients (e.g. controls)</short>
  8058. <descr>
  8059. <p>
  8060. <var>TBasicActionLink</var> links an Action to its clients. With each client
  8061. for an action, a <var>TBasicActionLink</var> class is instantiated to handle
  8062. the communication between the action and the client. It passes events
  8063. between the action and its clients, and thus presents the action with a
  8064. uniform interface to the clients.
  8065. </p>
  8066. <p>An application programmer should never use a <var>TBasicActionLink</var>
  8067. instance directly; They are created automatically when an action is
  8068. associated with a component. Component programmers should create specialized
  8069. descendents of <var>TBasicActionLink</var> which communicate changes in the
  8070. action to the component.
  8071. </p>
  8072. </descr>
  8073. <seealso>
  8074. <link id="TBasicAction"/>
  8075. </seealso>
  8076. </element>
  8077. <element name="TBasicActionLink.FAction">
  8078. <short>The action with which this link is associated</short>
  8079. <descr>
  8080. <var>FAction</var> contains a reference to the action with which this link
  8081. is associated. It should never be manipulated directly. It will be set
  8082. automatically by the <link id="TBasicActionLink.SetAction">SetAction</link> write method
  8083. for the <link id="TBasicActionLink.Action">Action</link> property.
  8084. </descr>
  8085. <seealso>
  8086. <link id="TBasicActionLink.SetAction">SetAction</link>
  8087. <link id="TBasicActionLink.Action">Action</link>
  8088. </seealso>
  8089. </element>
  8090. <element name="TBasicActionLink.AssignClient">
  8091. <short>Assigns a control (client) to the action link.</short>
  8092. <descr>
  8093. <var>AssignClient</var> assigns a control to the actionlink and hence to the
  8094. action. Descendent classes can override <var>AssignClient</var> to check
  8095. whether the new client is a suitable client for this action.
  8096. </descr>
  8097. <seealso>
  8098. <link id="TBasicActionLink.Action">Action</link>
  8099. </seealso>
  8100. </element>
  8101. <element name="TBasicActionLink.Change">
  8102. <short>Executed whenever the Action is changed.</short>
  8103. <descr>
  8104. <p>
  8105. <var>Change</var> is executed whenever the action changes.
  8106. It executes the <link id="TBasicActionLink.OnChange">OnChange</link>
  8107. handler, if one is assigned.
  8108. </p>
  8109. <p>
  8110. Component programmers may decide to override the <var>Change</var>
  8111. procedure in descendent classes to perform aditional actions when
  8112. the properties of the action changes.
  8113. </p>
  8114. </descr>
  8115. <seealso>
  8116. <link id="TBasicActionLink.OnChange">OnChange</link>
  8117. <link id="TBasicAction.Change"/>
  8118. </seealso>
  8119. </element>
  8120. <element name="TBasicActionLink.IsOnExecuteLinked">
  8121. <short>Returns whether the client has it's OnExecute property linked.</short>
  8122. <descr>
  8123. <var>IsOnExecuteLinked</var> always returns true in <var>TBasicActionLink</var>.
  8124. Descendent classes can override this method to provide a different result.
  8125. </descr>
  8126. <link id="TBasicActionLink.OnExecute">OnExecute</link>
  8127. </element>
  8128. <element name="TBasicActionLink.SetAction">
  8129. <short>Sets the action with which the actionlink is associated.</short>
  8130. <descr>
  8131. <var>SetAction</var> is the write handler for the <link
  8132. id="TBasicActionLink.Action">Action</link> property. It sets the
  8133. <var>Action</var> property to it's new value, after unregistering itself
  8134. with the old action, if there was one.
  8135. </descr>
  8136. <seealso>
  8137. <link id="TBasicActionLink.Action">Action</link>
  8138. <link id="TBasicAction"/>
  8139. </seealso>
  8140. </element>
  8141. <element name="TBasicActionLink.SetOnExecute">
  8142. <short>Assigns the <link id="TBasicAction.OnExecute">OnExecute</link> handler
  8143. to the client</short>
  8144. <descr>
  8145. <var>SetOnExecute</var> must be overridden by descendent classes to pass the
  8146. <var>OnExecute</var> handler of the associated action to the client control.
  8147. It will attach the <var>OnExecute</var> handler to whatever handler is
  8148. appropriate for the client control.
  8149. </descr>
  8150. <seealso>
  8151. <link id="TBasicAction.OnExecute">OnExecute</link>
  8152. <link id="TBasicAction"/>
  8153. </seealso>
  8154. </element>
  8155. <element name="TBasicActionLink.Create">
  8156. <short>Creates a new instance of the TBasicActionLink class</short>
  8157. <descr>
  8158. <p>
  8159. <var>Create</var> creates a new instance of a <var>TBasicActionLink</var>
  8160. and assigns <var>AClient</var> as the client of the link.
  8161. </p>
  8162. <p>
  8163. Application programmers should never instantiate <var>TBasicActionLink</var>
  8164. classes directly. An instance is created automatically when an action is
  8165. assigned to a control (client).
  8166. </p>
  8167. <p>
  8168. Component programmers can override the create constructor to initialize
  8169. further properties.
  8170. </p>
  8171. </descr>
  8172. <seealso>
  8173. <link id="TBasicActionLink.Destroy">Destroy</link>
  8174. </seealso>
  8175. </element>
  8176. <element name="TBasicActionLink.Destroy">
  8177. <short>Destroys the TBasicActionLink instance.</short>
  8178. <descr>
  8179. <p>
  8180. <var>Destroy</var> unregisters the <var>TBasicActionLink</var> with the
  8181. action, and then calls the inherited destructor.
  8182. </p>
  8183. <p>
  8184. Application programmers should never call <var>Destroy</var> directly. If a
  8185. link should be destroyed at all, the <var>Free</var> method should be called
  8186. instead.
  8187. </p>
  8188. </descr>
  8189. <seealso>
  8190. <link id="TBasicActionLink.Create">Create</link>
  8191. </seealso>
  8192. </element>
  8193. <element name="TBasicActionLink.Execute">
  8194. <short>Calls the action's Execute method.</short>
  8195. <descr>
  8196. <p>
  8197. <var>Execute</var> sets the <link
  8198. id="TBasicAction.ActionComponent">ActionComponent</link>
  8199. property of the associated <link id="TBasicActionLink.Action">Action</link> to
  8200. <var>AComponent</var> and then calls the Action's <link
  8201. id="TBasicAction.Execute">execute</link> method. After the action has
  8202. executed, the <var>ActionComponent</var> property is cleared again.
  8203. </p>
  8204. <p>
  8205. The return value of the function is the return value of the Action's execute
  8206. method.
  8207. </p>
  8208. <p>
  8209. Application programmers should never call <var>Execute</var> directly. This
  8210. method will be called automatically when the associated control is
  8211. activated. (e.g. a button is clicked on)
  8212. </p>
  8213. <p>
  8214. Component programmers should call <var>Execute</var> whenever the action
  8215. should be activated.
  8216. </p>
  8217. </descr>
  8218. <seealso>
  8219. <link id="TBasicActionLink.Action">Action</link>
  8220. <link id="TBasicAction.ActionComponent"/>
  8221. <link id="TBasicAction.Execute"/>
  8222. <link id="TBasicAction.onExecute"/>
  8223. </seealso>
  8224. </element>
  8225. <element name="TBasicActionLink.Update">
  8226. <short>Calls the action's Update method</short>
  8227. <descr>
  8228. <p>
  8229. <var>Update</var> calls the associated Action's <link
  8230. id="TBasicAction.Update">Update</link> methoda.
  8231. </p>
  8232. <p>
  8233. Component programmers can override the <var>Update</var> method to provide
  8234. additional processing when the <var>Update</var> method occurs.
  8235. </p>
  8236. </descr>
  8237. </element>
  8238. <element name="TBasicActionLink.Action">
  8239. <short>The action to which the link was assigned.</short>
  8240. <descr>
  8241. <var>Action</var> represents the <link id="TBasicAction">Action</link> which
  8242. was assigned to the client. Setting this property will unregister the client
  8243. at the old action (if one existed) and registers the client at the new
  8244. action.
  8245. </descr>
  8246. <seealso>
  8247. <link id="TBasicAction"/>
  8248. </seealso>
  8249. </element>
  8250. <element name="TBasicActionLink.OnChange">
  8251. <short>Event handler triggered when the action's properties change</short>
  8252. <descr>
  8253. <p>
  8254. <var>OnChange</var> is the event triggered when the action's properties
  8255. change.
  8256. </p>
  8257. <p>
  8258. Application programmers should never need to assign this event. Component
  8259. programmers can assign this event to have a client control reflect any
  8260. changes in an Action's properties.
  8261. </p>
  8262. </descr>
  8263. <seealso>
  8264. <link id="TBasicActionLink.Change">Change</link>
  8265. <link id="TBasicAction.Change"/>
  8266. </seealso>
  8267. </element>
  8268. <!--
  8269. *********************************************************************
  8270. Various calls
  8271. *********************************************************************
  8272. -->
  8273. <element name="TActiveXRegType"> <!-- Enumeration type -->
  8274. <short>Used when registering ActveX component types.</short>
  8275. <descr>
  8276. This type is provided for compatibility only, and is currently not used in
  8277. Free Pascal.
  8278. </descr>
  8279. <seealso>
  8280. </seealso>
  8281. </element>
  8282. <element name="TActiveXRegType.axrComponentOnly"> <!-- Enumeration value -->
  8283. <short></short>
  8284. </element>
  8285. <element name="TActiveXRegType.axrIncludeDescendants"> <!-- Enumeration value -->
  8286. <short></short>
  8287. </element>
  8288. <element name="RegisterComponentsProc"> <!-- Variable -->
  8289. <short>Callback procedure used when handling component registration.</short>
  8290. <descr>
  8291. <var>RegisterComponentsProc</var> can be set by an IDE to be notified when
  8292. new components are being registered. Application programmers should never
  8293. have to set <var>RegisterComponentsProc</var>
  8294. </descr>
  8295. <seealso>
  8296. <link id="RegisterNoIconProc"/>
  8297. <link id="RegisterComponents"/>
  8298. </seealso>
  8299. </element>
  8300. <element name="RegisterNoIconProc"> <!-- Variable -->
  8301. <short>Callback procedure used when handling iconless component registration.</short>
  8302. <descr>
  8303. <var>RegisterNoIconProc</var> can be set by an IDE to be notified when
  8304. new components are being registered, and which do not need an Icon in the
  8305. component palette. Application programmers should never
  8306. have to set <var>RegisterComponentsProc</var>
  8307. </descr>
  8308. <seealso>
  8309. </seealso>
  8310. </element>
  8311. <element name="Point"> <!-- Function -->
  8312. <short>Returns a <var>TPoint</var> record with the given coordinates.</short>
  8313. <descr>
  8314. <var>Point</var> returns a <link id="TPoint"/> record with the given
  8315. coordinates <var>AX</var> and <var>AY</var> filled in.
  8316. </descr>
  8317. <seealso>
  8318. <link id="TPoint"/>
  8319. <link id="SmallPoint"/>
  8320. <link id="Rect"/>
  8321. <link id="Bounds"/>
  8322. </seealso>
  8323. </element>
  8324. <element name="SmallPoint"> <!-- Function -->
  8325. <short>Returns a <var>TSmallPoint</var> record with the given coordinates.</short>
  8326. <descr>
  8327. <var>SmallPoint</var> returns a <link id="TSmallPoint"/> record with the given
  8328. coordinates <var>AX</var> and <var>AY</var> filled in.
  8329. </descr>
  8330. <seealso>
  8331. <link id="TSmallPoint"/>
  8332. <link id="Point"/>
  8333. <link id="Rect"/>
  8334. <link id="Bounds"/>
  8335. </seealso>
  8336. </element>
  8337. <element name="Rect"> <!-- Function -->
  8338. <short>Returns a <var>TRect</var> record with the given coordinates.</short>
  8339. <descr>
  8340. <p>
  8341. <var>Rect</var> returns a <link id="TRect"/> record with the given
  8342. top-left <var>(ALeft,ATop)</var> and bottom-right <var>(ABottom,ARight)</var>
  8343. corners filled in.
  8344. </p>
  8345. <p>
  8346. No checking is done to see whether the coordinates are valid.
  8347. </p>
  8348. </descr>
  8349. <seealso>
  8350. <link id="TRect"/>
  8351. <link id="Point"/>
  8352. <link id="SmallPoint"/>
  8353. <link id="Bounds"/>
  8354. </seealso>
  8355. </element>
  8356. <element name="Bounds"> <!-- Function -->
  8357. <short>Returns a <var>TRect</var> structure with the bounding rect of the
  8358. given location and size.</short>
  8359. <descr>
  8360. <var>Bounds</var> returns a <link id="TRect"/> record with the given
  8361. origin <var>(ALeft,ATop)</var> and dimensions <var>(AWidth,AHeight)</var>
  8362. filled in.
  8363. </descr>
  8364. <seealso>
  8365. </seealso>
  8366. </element>
  8367. <element name="RegisterClass"> <!-- Procedure -->
  8368. <short>Registers a class with the streaming system.</short>
  8369. <descr>
  8370. <var>RegisterClass</var> registers the class <var>AClass</var> in the
  8371. streaming system. After the class has been registered, it can be read from
  8372. a stream when a reference to this class is encountered.
  8373. </descr>
  8374. <seealso>
  8375. <link id="RegisterClasses"/>
  8376. <link id="RegisterClassAlias"/>
  8377. <link id="RegisterComponents"/>
  8378. <link id="UnregisterClass"/>
  8379. </seealso>
  8380. </element>
  8381. <element name="RegisterClasses"> <!-- Procedure -->
  8382. <short>Registers multiple classes with the streaming system.</short>
  8383. <descr>
  8384. <var>RegisterClasses</var> registers the specified classes <var>AClass</var> in the
  8385. streaming system. After the classes have been registered, they can be read from
  8386. a stream when a reference to this class is encountered.
  8387. </descr>
  8388. <seealso>
  8389. <link id="RegisterClass"/>
  8390. <link id="RegisterClassAlias"/>
  8391. <link id="RegisterComponents"/>
  8392. <link id="UnregisterClass"/>
  8393. </seealso>
  8394. </element>
  8395. <element name="RegisterClassAlias"> <!-- Procedure -->
  8396. <short>Registers a class alias with the streaming system.</short>
  8397. <descr>
  8398. <var>RegisterClassAlias</var> registers a class alias in the streaming
  8399. system. If a reference to a class <var>Alias</var> is encountered in a
  8400. stream, then an instance of the class <var>AClass</var> will be created
  8401. instead by the streaming code.
  8402. </descr>
  8403. <seealso>
  8404. <link id="RegisterClass"/>
  8405. <link id="RegisterClasses"/>
  8406. <link id="RegisterComponents"/>
  8407. <link id="UnregisterClass"/>
  8408. </seealso>
  8409. </element>
  8410. <element name="UnRegisterClass"> <!-- Procedure -->
  8411. <short>Unregisters a class from the streaming system.</short>
  8412. <descr>
  8413. <var>UnregisterClass</var> removes the class <var>AClass</var> from the
  8414. class definitions in the streaming system.
  8415. </descr>
  8416. <seealso>
  8417. <link id="UnRegisterClasses"/>
  8418. <link id="UnRegisterModuleClasses"/>
  8419. <link id="RegisterClass"/>
  8420. </seealso>
  8421. </element>
  8422. <element name="UnRegisterClasses"> <!-- Procedure -->
  8423. <short>Unregisters multiple classes from the streaming system.</short>
  8424. <descr>
  8425. <var>UnregisterClasses</var> removes the classes in <var>AClasses</var> from the
  8426. class definitions in the streaming system.
  8427. </descr>
  8428. <link id="UnRegisterClass"/>
  8429. <link id="UnRegisterModuleClasses"/>
  8430. <link id="RegisterClasses"/>
  8431. <seealso>
  8432. </seealso>
  8433. </element>
  8434. <element name="UnRegisterModuleClasses"> <!-- Procedure -->
  8435. <short>Unregisters classes registered by module.</short>
  8436. <descr>
  8437. <var>UnRegisterModuleClasses</var> unregisters all classes which reside in
  8438. the module <var>Module</var>. For each registered class, the definition
  8439. pointer is checked to see whether it resides in the module, and if it does,
  8440. the definition is removed.
  8441. </descr>
  8442. <seealso>
  8443. <link id="UnRegisterClass"/>
  8444. <link id="UnRegisterClasses"/>
  8445. <link id="RegisterClasses"/>
  8446. </seealso>
  8447. </element>
  8448. <element name="FindClass"> <!-- Function -->
  8449. <short>Returns the class pointer of a class with given name.</short>
  8450. <descr>
  8451. <p>
  8452. <var>FindClass</var> searches for the class named <var>ClassName</var>
  8453. in the list of registered classes and returns a class pointer to the
  8454. definition. If no class with the given name could be found, an exception is
  8455. raised.
  8456. </p>
  8457. <p>The <link id="GetClass"/> function does not raise an exception when it
  8458. does not find the class, but returns a <var>Nil</var> pointer instead.
  8459. </p>
  8460. </descr>
  8461. <seealso>
  8462. <link id="RegisterClass"/>
  8463. <link id="GetClass"/>
  8464. </seealso>
  8465. </element>
  8466. <element name="GetClass"> <!-- Function -->
  8467. <short>Returns the class pointer of a class with given name.</short>
  8468. <descr>
  8469. <p>
  8470. <var>GetClass</var> searches for the class named <var>ClassName</var>
  8471. in the list of registered classes and returns a class pointer to the
  8472. definition. If no class with the given name could be found, <var>Nil</var>
  8473. is returned.
  8474. </p>
  8475. <p>The <link id="FindClass"/> function will raise an exception if the
  8476. does not find the class.
  8477. </p>
  8478. </descr>
  8479. <seealso>
  8480. <link id="RegisterClass"/>
  8481. <link id="GetClass"/>
  8482. </seealso>
  8483. </element>
  8484. <element name="RegisterComponents"> <!-- Procedure -->
  8485. <short>Registers components for the component palette.</short>
  8486. <descr>
  8487. <p>
  8488. <var>RegisterComponents</var> registers the component on the appropriate
  8489. component page. The component pages can be used by an IDE to display the
  8490. known components so an application programmer may pick and use the
  8491. components in his programs.
  8492. </p>
  8493. <p>
  8494. Registercomponents inserts the component class in the correct component
  8495. page. If the <var>RegisterComponentsProc</var> procedure is set, this is
  8496. called as well. Note that this behaviour is different from Delphi's
  8497. behaviour where an exception will be raised if the procedural variable is
  8498. not set.
  8499. </p>
  8500. </descr>
  8501. <seealso>
  8502. <link id="RegisterClass"/>
  8503. <link id="RegisterNoIcon"/>
  8504. </seealso>
  8505. </element>
  8506. <element name="RegisterNoIcon"> <!-- Procedure -->
  8507. <short>Registers components that have no icon on the component palette.</short>
  8508. <descr>
  8509. <var>RegisterNoIcon</var> performs the same function as <link
  8510. id="RegisterComponents"/> except that it calls <link
  8511. id="RegisterNoIconProc"/>
  8512. instead of <link id="RegisterComponentsProc"/>
  8513. </descr>
  8514. <seealso>
  8515. <link id="RegisterNoIconProc"/>
  8516. <link id="RegisterComponents"/>
  8517. </seealso>
  8518. </element>
  8519. <element name="RegisterNonActiveX"> <!-- Procedure -->
  8520. <short>Register non-activex component.</short>
  8521. <descr>
  8522. Not yet implemented in Free Pascal
  8523. </descr>
  8524. <seealso>
  8525. </seealso>
  8526. </element>
  8527. <element name="TIdentMapEntry"> <!-- Record type -->
  8528. <short>Record used when associating names with integer values.</short>
  8529. <descr>
  8530. <var>TIdentMapEntry</var> is used internally by the <link id="IdentToInt"/>
  8531. and <link id="IntToIdent"/> calls to store the mapping between the
  8532. identifiers and the integers they represent.
  8533. </descr>
  8534. <seealso>
  8535. <link id="IntToIdent"/>
  8536. <link id="IdentToInt"/>
  8537. </seealso>
  8538. </element>
  8539. <element name="TIdentMapEntry.Value"> <!-- Variable -->
  8540. <short>Integer value</short>
  8541. </element>
  8542. <element name="TIdentMapEntry.Name"> <!-- Variable -->
  8543. <short>Name of the integer value.</short>
  8544. </element>
  8545. <element name="TIdentToInt"> <!-- Function type -->
  8546. <short>Callback for converting identifiers to integers.</short>
  8547. <descr>
  8548. <p>
  8549. <var>TIdentToInt</var> is a callback used to look up identifiers
  8550. (<var>Ident</var>) and return an integer value corresponding to this
  8551. identifier (<var>Int</var>). The callback should return <var>True</var> if a
  8552. value corresponding to integer <var>Ident</var> was found, <var>False</var>
  8553. if not.
  8554. </p>
  8555. <p>
  8556. A callback of type <var>TIdentToInt</var> should be specified when an
  8557. integer is registered using the <link id="RegisterIntegerConsts"/> call.
  8558. </p>
  8559. </descr>
  8560. <seealso>
  8561. <link id="RegisterIntegerConsts"/>
  8562. <link id="TIntToIdent"/>
  8563. </seealso>
  8564. </element>
  8565. <element name="TIntToIdent"> <!-- Function type -->
  8566. <short>Callback for converting integers to identifiers.</short>
  8567. <descr>
  8568. <p>
  8569. <var>TIdentToInt</var> is a callback used to look up integers
  8570. (<var>Ident</var>) and return an identifier (<var>Ident</var>)
  8571. that can be used to represent this integer value in an IDE.
  8572. The callback should return <var>True</var> if a value corresponding
  8573. to integer <var>Ident</var> was found, <var>False</var> if not.
  8574. </p>
  8575. <p>
  8576. A callback of type <var>TIntToIdent</var> should be specified when an
  8577. integer is registered using the <link id="RegisterIntegerConsts"/> call.
  8578. </p>
  8579. </descr>
  8580. <seealso>
  8581. <link id="RegisterIntegerConsts"/>
  8582. <link id="TIdentToInt"/>
  8583. </seealso>
  8584. </element>
  8585. <element name="TFindGlobalComponent"> <!-- Function type -->
  8586. <short>Callback type to search for a component.</short>
  8587. <descr>
  8588. <p>
  8589. <var>TFindGlobalComponent</var> is a callback used to find a component in a
  8590. global scope. It is used when the streaming system needs to find a component
  8591. which is not part of the component which is currently being streamed. It
  8592. should return the component with name <var>Name</var>, or <var>Nil</var> if
  8593. none is found.
  8594. </p>
  8595. <p>
  8596. The variable <link id="FindGlobalComponent"/> is a callback of type
  8597. <var>TFindGlobalComponent</var>. It can be set by the IDE when an unknown
  8598. reference is found, to offer the designer to redirect the link to a new
  8599. component.
  8600. </p>
  8601. </descr>
  8602. <seealso>
  8603. <link id="FindGlobalComponent"/>
  8604. </seealso>
  8605. </element>
  8606. <element name="MainThreadID"> <!-- Variable -->
  8607. <short>ID of main thread. Unused at this point.</short>
  8608. <descr>
  8609. </descr>
  8610. <seealso>
  8611. </seealso>
  8612. </element>
  8613. <element name="FindGlobalComponent"> <!-- Variable -->
  8614. <short>Callback used when a component must be found.</short>
  8615. <descr>
  8616. <p>
  8617. <var>FindGlobalComponent</var> is a callback of type
  8618. <link id="TFindGlobalComponent"/>. It can be set by the IDE when an unknown
  8619. reference is found, to offer the user to redirect the link to a new
  8620. component.
  8621. </p>
  8622. <p>
  8623. It is a callback used to find a component in a
  8624. global scope. It is used when the streaming system needs to find a component
  8625. which is not part of the component which is currently being streamed. It
  8626. should return the component with name <var>Name</var>, or <var>Nil</var> if
  8627. none is found.
  8628. </p>
  8629. </descr>
  8630. <seealso>
  8631. <link id="TFindGlobalComponent"/>
  8632. </seealso>
  8633. </element>
  8634. <element name="RegisterIntegerConsts"> <!-- Procedure -->
  8635. <short>Registers some integer-to-identifier mappings.</short>
  8636. <descr>
  8637. <p>
  8638. <var>RegisterIntegerConsts</var> registers a pair of callbacks to be used
  8639. when an integer of type <var>IntegerType</var> must be mapped to an
  8640. identifier (using <var>IntToIdentFn</var>) or when an identifier must be
  8641. mapper to an integer (using <var>IdentToIntFn</var>).
  8642. </p>
  8643. <p>
  8644. Component programmers can use <var>RegisterIntegerConsts</var> to associate
  8645. a series of identifier strings with integer values for a property. A
  8646. necessary condition is that the property should have a separate type
  8647. declared using the <var>type integer</var> syntax. If a type of integer is
  8648. defined in this way, an IDE can show symbolic names for the values of these
  8649. properties.
  8650. </p>
  8651. <p>
  8652. The <var>IntegerType</var> should be a pointer to the type information of
  8653. the integer type. The <var>IntToIdentFn</var> and <var>IdentToIntFn</var>
  8654. are two callbacks that will be used when converting between the identifier
  8655. and integer value and vice versa. The functions <link id="IdentToInt"/>
  8656. and <link id="IntToIdent"/> can be used to implement these callback
  8657. functions.
  8658. </p>
  8659. </descr>
  8660. <seealso>
  8661. <link id="TIdentToInt"/>
  8662. <link id="TIntToIdent"/>
  8663. <link id="IdentToInt"/>
  8664. <link id="IntToIdent"/>
  8665. </seealso>
  8666. </element>
  8667. <element name="IdentToInt"> <!-- Function -->
  8668. <short>Looks up an integer value in a integer-to-identifier map list.</short>
  8669. <descr>
  8670. <var>IdentToInt</var> searches <var>Map</var> for an entry whose
  8671. <var>Name</var> field matches <var>Ident</var> and returns the corresponding
  8672. integer value in <var>Int</var>. If a match was found, the function returns
  8673. <var>True</var>, otherwise, <var>False</var> is returned.
  8674. </descr>
  8675. <seealso>
  8676. <link id="TIdentToInt"/>
  8677. <link id="TIntToIdent"/>
  8678. <link id="IntToIdent"/>
  8679. <link id="TIdentMapEntry"/>
  8680. </seealso>
  8681. </element>
  8682. <element name="IntToIdent"> <!-- Function -->
  8683. <short>Looks up an identifier for an integer value in a identifier-to-integer map list.</short>
  8684. <descr>
  8685. <var>IdentToInt</var> searches <var>Map</var> for an entry whose
  8686. <var>Value</var> field matches <var>Int</var> and returns the corresponding
  8687. identifier in <var>Ident</var>. If a match was found, the function returns
  8688. <var>True</var>, otherwise, <var>False</var> is returned.
  8689. </descr>
  8690. <seealso>
  8691. <link id="TIdentToInt"/>
  8692. <link id="TintToIdent"/>
  8693. <link id="IdentToInt"/>
  8694. <link id="TIdentMapEntry"/>
  8695. </seealso>
  8696. </element>
  8697. <element name="InitInheritedComponent"> <!-- Function -->
  8698. <short>Initializes a component descending from <var>RootAncestor</var></short>
  8699. <descr>
  8700. <p>
  8701. <var>InitInheritedComponent</var> should be called from a constructor to
  8702. read properties of the component <var>Instance</var> from the streaming
  8703. system. The <var>RootAncestor</var> class is the root class from which
  8704. <var>Instance</var> is a descendent. This must be one of
  8705. <var>TDatamodule</var>, <var>TCustomForm</var> or <var>TFrame</var>.
  8706. </p>
  8707. <p>
  8708. The function returns <var>True</var> if the properties were successfully
  8709. read from a stream or <var>False</var> if some error occurred.
  8710. </p>
  8711. </descr>
  8712. <seealso>
  8713. <link id="ReadComponentRes"/>
  8714. <link id="ReadComponentResEx"/>
  8715. <link id="ReadComponentResFile"/>
  8716. </seealso>
  8717. </element>
  8718. <element name="InitComponentRes"> <!-- Function -->
  8719. <short>Provided for Delphi compatibility only</short>
  8720. <descr>
  8721. This function is provided for Delphi compatibility.
  8722. It always returns <var>false</var>.
  8723. </descr>
  8724. <seealso>
  8725. <link id="ReadComponentRes"/>
  8726. </seealso>
  8727. </element>
  8728. <element name="ReadComponentRes"> <!-- Function -->
  8729. <short>Read component properties from a resource in the current module</short>
  8730. <descr>
  8731. This function is provided for Delphi compatibility.
  8732. It always returns <var>Nil</var>.
  8733. </descr>
  8734. </element>
  8735. <element name="ReadComponentResEx"> <!-- Function -->
  8736. <short>Read component properties from a resource in the specified module</short>
  8737. <descr>
  8738. This function is provided for Delphi compatibility.
  8739. It always returns <var>Nil</var>.
  8740. </descr>
  8741. </element>
  8742. <element name="ReadComponentResFile"> <!-- Function -->
  8743. <short>Read component properties from a specified resource file</short>
  8744. <descr>
  8745. <var>ReadComponentResFile</var> starts reading properties for
  8746. <var>Instance</var> from the file <var>FileName</var>. It creates a
  8747. filestream from <var>FileName</var> and then calls the <link
  8748. id="TStream.ReadComponentRes"/> method to read the state of the component from the
  8749. stream.
  8750. </descr>
  8751. <seealso>
  8752. <link id="TStream.ReadComponentRes"/>
  8753. <link id="WriteComponentResFile"/>
  8754. </seealso>
  8755. </element>
  8756. <element name="WriteComponentResFile"> <!-- Procedure -->
  8757. <short>Write component properties to a specified resource file</short>
  8758. <descr>
  8759. <var>WriteComponentResFile</var> starts writing properties of
  8760. <var>Instance</var> to the file <var>FileName</var>. It creates a
  8761. filestream from <var>FileName</var> and then calls <link
  8762. id="TStream.WriteComponentRes"/> method to write the state of
  8763. the component to the stream.
  8764. </descr>
  8765. <seealso>
  8766. <link id="TStream.WriteComponentRes"/>
  8767. <link id="ReadComponentResFile"/>
  8768. </seealso>
  8769. </element>
  8770. <element name="GlobalFixupReferences"> <!-- Procedure -->
  8771. <short>Called to resolve unresolved references after forms are loaded.</short>
  8772. <descr>
  8773. <var>GlobalFixupReferences</var> runs over the list of unresolved references
  8774. and tries to resolve them. This routine should under normal circumstances
  8775. not be called in an application programmer's code. It is called
  8776. automatically by the streaming system after a component has been
  8777. instantiated and its properties read from a stream. It will attempt to
  8778. resolve references to other global components.
  8779. </descr>
  8780. <seealso>
  8781. <link id="GetFixupReferenceNames"/>
  8782. <link id="GetFixupInstanceNames"/>
  8783. </seealso>
  8784. </element>
  8785. <element name="GetFixupReferenceNames"> <!-- Procedure -->
  8786. <short>Returns the names of elements that need to be resolved for the
  8787. <var>root</var> component.</short>
  8788. <descr>
  8789. <var>GetFixupReferenceNames</var> examines the list of unresolved references
  8790. and returns the names of properties that must be resolved for the
  8791. component <var>Root</var> in the list <var>Names</var>. The list is not
  8792. cleared prior to filling it.
  8793. </descr>
  8794. <seealso>
  8795. <link id="GetFixupInstanceNames"/>
  8796. <link id="GlobalFixupReferences"/>
  8797. </seealso>
  8798. </element>
  8799. <element name="GetFixupInstanceNames"> <!-- Procedure -->
  8800. <short>Returns the names of elements that need to be resolved for the
  8801. <var>root</var> component, whose reference contains <var>ReferenceRootName</var></short>
  8802. <descr>
  8803. <var>GetFixupInstanceNames</var> examines the list of unresolved references
  8804. and returns the names of classes that contain unresolved references to the
  8805. <var>Root</var> component in the list <var>Names</var>. The list is not
  8806. cleared prior to filling it.
  8807. </descr>
  8808. <seealso>
  8809. <link id="GetFixupReferenceNames"/>
  8810. <link id="GlobalFixupReferences"/>
  8811. </seealso>
  8812. </element>
  8813. <element name="RedirectFixupReferences"> <!-- Procedure -->
  8814. <short>Redirects references under the <var>root</var> object from
  8815. <var>OldRootName</var> to <var>NewRootName</var></short>
  8816. <descr>
  8817. <p>
  8818. <var>RedirectFixupReferences</var> examines the list of unresolved
  8819. references and replaces references to a root object named
  8820. <var>OldRootName</var> with references to root object
  8821. <var>NewRootName</var>.
  8822. </p>
  8823. <p>
  8824. An application programmer should never need to call
  8825. <var>RedirectFixupReferences</var>.
  8826. This function can be used by an IDE to support redirection of broken
  8827. component links.
  8828. </p>
  8829. </descr>
  8830. <seealso>
  8831. <link id="RemoveFixupReferences"/>
  8832. </seealso>
  8833. </element>
  8834. <element name="RemoveFixupReferences"> <!-- Procedure -->
  8835. <short>Removes references to rootname from the fixup list.</short>
  8836. <descr>
  8837. <p>
  8838. <var>RemoveFixupReferences</var> examines the list of unresolved
  8839. references and removes references to a root object pointing at
  8840. <var>Root</var> or a root component named <var>RootName</var>.
  8841. </p>
  8842. <p>
  8843. An application programmer should never need to call
  8844. <var>RemoveFixupReferences</var>.
  8845. This function can be used by an IDE to support removal of broken
  8846. component links.
  8847. </p>
  8848. </descr>
  8849. <seealso>
  8850. <link id="RedirectFixupReferences"/>
  8851. </seealso>
  8852. </element>
  8853. <element name="RemoveFixups"> <!-- Procedure -->
  8854. <short>Removes <var>Instance</var> from the fixup list.</short>
  8855. <descr>
  8856. <var>RemoveFixups</var> removes all entries for component
  8857. <var>Instance</var> from the list of unresolved references.a
  8858. </descr>
  8859. <seealso>
  8860. <link id="RedirectFixupReferences"/>
  8861. <link id="RemoveFixupReferences"/>
  8862. </seealso>
  8863. </element>
  8864. <element name="FindNestedComponent"> <!-- Function -->
  8865. <short>Finds the component with name path starting at the indicated root
  8866. component.</short>
  8867. <descr>
  8868. <var>FindNestedComponent</var> will descend through the list of owned
  8869. components (starting at <var>Root</var>) and will return the component whose
  8870. name path matches <var>NamePath</var>. As a path separator the characters .
  8871. (dot), - (dash) and > (greater than) can be used
  8872. </descr>
  8873. <seealso>
  8874. <link id="GlobalFixupReferences"/>
  8875. </seealso>
  8876. </element>
  8877. <element name="BeginGlobalLoading"> <!-- Procedure -->
  8878. <short>Not yet implemented</short>
  8879. <descr>
  8880. </descr>
  8881. <seealso>
  8882. </seealso>
  8883. </element>
  8884. <element name="NotifyGlobalLoading"> <!-- Procedure -->
  8885. <short>Not yet implemented.</short>
  8886. <descr>
  8887. </descr>
  8888. <seealso>
  8889. </seealso>
  8890. </element>
  8891. <element name="EndGlobalLoading"> <!-- Procedure -->
  8892. <short>Not yet implemented.</short>
  8893. <descr>
  8894. </descr>
  8895. <seealso>
  8896. </seealso>
  8897. </element>
  8898. <element name="CollectionsEqual"> <!-- Function -->
  8899. <short>Returns <var>True</var> if two collections are equal.</short>
  8900. <descr>
  8901. <var>CollectionsEqual</var> is not yet implemented. It simply returns
  8902. <var>False</var>
  8903. </descr>
  8904. </element>
  8905. <element name="ObjectBinaryToText"> <!-- Procedure -->
  8906. <short>Converts an object stream from a binary to a text format.</short>
  8907. <descr>
  8908. <var>ObjectBinaryToText</var> reads an object stream in binary format from
  8909. <var>Input</var> and writes the object stream in text format to
  8910. <var>Output</var>. No components are instantiated during the process,
  8911. this is a pure conversion routine.
  8912. </descr>
  8913. <seealso>
  8914. <link id="ObjectTextToBinary"/>
  8915. </seealso>
  8916. </element>
  8917. <element name="ObjectTextToBinary"> <!-- Procedure -->
  8918. <short>Converts an object stream from a text to a binary format.</short>
  8919. <descr>
  8920. </descr>
  8921. <seealso>
  8922. </seealso>
  8923. </element>
  8924. <element name="ObjectResourceToText"> <!-- Procedure -->
  8925. <short>Converts an object stream from a (windows) resource to a text format.</short>
  8926. <descr>
  8927. <var>ObjectResourceToText</var> reads the resource header from the
  8928. <var>Input</var> stream and then passes the streams to
  8929. <link id="ObjectBinaryToText"/>
  8930. </descr>
  8931. <seealso>
  8932. <link id="ObjectBinaryToText"/>
  8933. <link id="ObjectTextToResource"/>
  8934. </seealso>
  8935. </element>
  8936. <element name="ObjectTextToResource"> <!-- Procedure -->
  8937. <short>Converts an object stream from a text to a (windows) resource format.</short>
  8938. <descr>
  8939. <p>
  8940. <var>ObjectTextToResource</var> reads an object stream in text format from
  8941. <var>Input</var> and writes a resource stream to <var>Output</var>.
  8942. </p>
  8943. <p>
  8944. Note that for the current implementation of this method in Free Pascal,
  8945. the output stream should support positioning. (e.g. it should not be a pipe)
  8946. </p>
  8947. </descr>
  8948. <seealso>
  8949. <link id="ObjectBinaryToText"/>
  8950. <link id="ObjectResourceToText"/>
  8951. </seealso>
  8952. </element>
  8953. <element name="LineStart"> <!-- Function -->
  8954. <short>Finds the start of a line in <var>Buffer</var> before
  8955. <var>BufPos</var>.</short>
  8956. <descr>
  8957. <var>LineStart</var> reversely scans <var>Buffer</var> starting at
  8958. <var>BufPos</var> for a linefeed character. It returns a pointer at the
  8959. linefeed character.
  8960. </descr>
  8961. </element>
  8962. <element name="TPointerList">
  8963. <short>Type for an Array of pointers.</short>
  8964. </element>
  8965. <element name="PPointerList">
  8966. <short>Pointer to an array of pointers.</short>
  8967. </element>
  8968. <element name="THelpContext">
  8969. <short>Range type to specify help contexts.</short>
  8970. </element>
  8971. <element name="THelptype">
  8972. <short>Enumeration type specifying the kind of help requested.</short>
  8973. </element>
  8974. <element name="PStringItemList">
  8975. <short>Pointer to a <link id="TStringItemList"/>.</short>
  8976. </element>
  8977. <element name="TBasicActionClass">
  8978. <short><link id="TBasicAction"/> class reference.</short>
  8979. </element>
  8980. <element name="TBAsicActionLinkClass">
  8981. <short><link id="TBasicActionLink"/> class reference.</short>
  8982. </element>
  8983. <element name="TListNotification">
  8984. <short>Kind of list notification event.</short>
  8985. </element>
  8986. <element name="TListSortCompare">
  8987. <short>Callback type for the list sort algorithm.</short>
  8988. </element>
  8989. <element name="TSeekOrigin">
  8990. <short>Specifies the origin of the <link id="TStream.Seek"/> method.</short>
  8991. </element>
  8992. <element name="TSeekOrigin.soBeginning">
  8993. <short>Offset is interpreted relative to the start of the stream.</short>
  8994. </element>
  8995. <element name="TSeekOrigin.SoEnd">
  8996. <short>Offset is interpreted relative to the end of the stream.</short>
  8997. </element>
  8998. <element name="TSeekOrigin.soCurrent">
  8999. <short>Offset is interpreted relative to the current position in the stream.</short>
  9000. </element>
  9001. <element name="TShortCut">
  9002. <short>Enumeration type to identify shortcut key combinations.</short>
  9003. </element>
  9004. <element name="TStringListSortCompare">
  9005. <short>Callback type used in stringlist compares.</short>
  9006. </element>
  9007. <!-- Template for copy&paste:
  9008. <element name="">
  9009. <short>
  9010. </short>
  9011. <descr>
  9012. </descr>
  9013. </element>
  9014. -->
  9015. </module>
  9016. </package>
  9017. </fpdoc-descriptions>