classes.xml 334 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348
  1. <?xml version="1.0" encoding="ISO8859-1"?>
  2. <fpdoc-descriptions>
  3. <package name="rtl">
  4. <module name="classes">
  5. <short>Basic classes for RTL </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.GetNameValue">
  3094. <short>Return both name and value of a name,value pair based on it's index.</short>
  3095. <descr></descr>
  3096. </element>
  3097. <element name="TStrings.Delimiter">
  3098. <short>Delimiter character used in <link id="#rtl.classes.TStrings.DelimitedText">DelimitedText</link>.</short>
  3099. <descr></descr>
  3100. </element>
  3101. <element name="TStrings.DelimitedText">
  3102. <short>Get or set all strings in the list in a delimited form.</short>
  3103. <descr></descr>
  3104. </element>
  3105. <element name="TStrings.QuoteChar">
  3106. <short>Quote character used in <link id="#rtl.classes.TStrings.DelimitedText">DelimitedText</link>.</short>
  3107. <descr></descr>
  3108. </element>
  3109. <element name="TStrings.NameValueSeparator">
  3110. <short>Value of the character used to separate name,value pairs</short>
  3111. <descr>
  3112. </descr>
  3113. </element>
  3114. <element name="TStrings.ValueFromIndex"><short></short>
  3115. <descr>Return the value part of a string based on it's index.</descr>
  3116. </element>
  3117. <element name="TStringList.CustomSort"><short></short>
  3118. <descr></descr>
  3119. </element>
  3120. <element name="TStringList.CaseSensitive"><short></short>
  3121. <descr>Indicates whether locating strings happens in a case sensitive manner.</descr>
  3122. </element>
  3123. <element name="TStrings.CommaText"> <!-- Property -->
  3124. <short>Contents of the list as a comma-separated string.</short>
  3125. <descr>
  3126. <p>
  3127. <var>CommaText</var> represents the stringlist as a single string,
  3128. consisting of a comma-separated concatenation of the strings in the list.
  3129. If one of the strings contains spaces, comma's or quotes it will be enclosed by
  3130. double quotes. Any double quotes in a string will be doubled. For instance
  3131. the following strings:
  3132. </p>
  3133. <pre>
  3134. Comma,string
  3135. Quote"string
  3136. Space string
  3137. NormalSttring
  3138. </pre>
  3139. <p>
  3140. is converted to
  3141. </p>
  3142. <code>
  3143. "Comma,string","Quote""String","Space string",NormalString
  3144. </code>
  3145. <p>
  3146. Conversely, when setting the <var>CommaText</var> property, the text will be parsed
  3147. according to the rules outlined above, and the strings will be set
  3148. accordingly. Note that spaces will in this context be regarded as string
  3149. separators, unless the string as a whole is contained in double quotes.
  3150. Spaces that occur next to a delimiter will be ignored.
  3151. The following string:
  3152. </p>
  3153. <pre>
  3154. "Comma,string" , "Quote""String",Space string,, NormalString
  3155. </pre>
  3156. <p>
  3157. Will be converted to
  3158. </p>
  3159. <pre>
  3160. Comma,String
  3161. Quote"String
  3162. Space
  3163. String
  3164. NormalString
  3165. </pre>
  3166. <p>
  3167. This is a special case of the <link id="DelimitedText"/> property where the
  3168. quote character is always the double quote, and the delimiter is always the
  3169. colon.
  3170. </p>
  3171. </descr>
  3172. <seealso>
  3173. <link id="TStrings.Text"/>
  3174. <link id="TStrings.SetText"/>
  3175. </seealso>
  3176. </element>
  3177. <element name="TStrings.Count"> <!-- Property -->
  3178. <short>Number of strings in the list.</short>
  3179. <descr>
  3180. <p>
  3181. <var>Count</var> is the current number of strings in the list.
  3182. <var>TStrings</var> does not implement this property; descendent classes
  3183. should override the property read handler to return the correct value.
  3184. </p>
  3185. <p>
  3186. Strings in the list are always uniquely identified by their
  3187. <var>Index</var>; the index of a string is zero-based, i.e. it's supported
  3188. range is <var>0</var> to <var>Count-1</var>. trying to access a string with
  3189. an index larger than or equal to <var>Count</var> will result in an error.
  3190. Code that iterates over the list in a stringlist should always take into
  3191. account the zero-based character of the list index.
  3192. </p>
  3193. </descr>
  3194. <seealso>
  3195. <link id="TStrings.Strings"/>
  3196. <link id="TStrings.Objects"/>
  3197. <link id="TStrings.Capacity"/>
  3198. </seealso>
  3199. </element>
  3200. <element name="TStrings.Names"> <!-- Property -->
  3201. <short>Name parts of the name-value pairs in the list.</short>
  3202. <descr>
  3203. <p>
  3204. <var>Names</var> provides indexed access to the names of teh name-value
  3205. pairs in the list. It returns the name part of the <var>Index</var>-th
  3206. string in the list.
  3207. </p>
  3208. <remark>
  3209. The index is not an index based on the number of name-value pairs in the
  3210. list. It is the name part of the name-value pair a string <var>Index</var>
  3211. in the list. If the string at position <var>Index</var> is not a name-value
  3212. pair (i.e. does not contain the equal sign (=)), then an empty name is
  3213. returned.
  3214. </remark>
  3215. </descr>
  3216. <seealso>
  3217. <link id="TStrings.Values"/>
  3218. <link id="TStrings.IndexOfName"/>
  3219. </seealso>
  3220. </element>
  3221. <element name="TStrings.Objects"> <!-- Property -->
  3222. <short>Indexed access to the objects associated with the strings in the
  3223. list.</short>
  3224. <descr>
  3225. <p>
  3226. <var>Objects</var> provides indexed access to the objects associated to
  3227. the strings in the list. <var>Index</var> is a zero-based index and
  3228. must be in the range of <var>0</var> to <var>Count-1</var>.
  3229. </p>
  3230. <p>
  3231. Setting the <var>objects</var> property will not free the previously associated object,
  3232. if there was one. The caller is repsonsible for freeing the object that
  3233. was previously associated to the string.
  3234. </p>
  3235. <p>
  3236. <var>TStrings</var> does not implement any storage for objects. Reading the
  3237. <var>Objects</var> property will always return <var>Nil</var>, Setting the
  3238. property will have no effect. It is the responsability of the descendent
  3239. classes to provide storage for the associated objects.
  3240. </p>
  3241. </descr>
  3242. <errors>
  3243. If an <var>Index</var> outside the valid range is specified, an <link
  3244. id="EStringListError"/> exception will be raised.
  3245. </errors>
  3246. <seealso>
  3247. <link id="TStrings.Strings"/>
  3248. <link id="TStrings.IndexOfObject"/>
  3249. <link id="TStrings.Names"/>
  3250. <link id="TStrings.Values"/>
  3251. </seealso>
  3252. </element>
  3253. <element name="TStrings.Values"> <!-- Property -->
  3254. <short>Value parts of the name-value pairs in the list.</short>
  3255. <descr>
  3256. <p>
  3257. <var>Values</var> represents the value parts of the name-value pairs in the
  3258. list.
  3259. </p>
  3260. <p>
  3261. When reading this property, if there is a name-value pair in the list
  3262. of strings that has name part <var>Name</var>, then the corresponding value
  3263. is returned. If there is no such pair, an empty string is returned.
  3264. </p>
  3265. <p>
  3266. When writing this value, first it is checked whether there exists a
  3267. name-value pair in the list with name <var>Name</var>. If such a pair is
  3268. found, it's value part is overwritten with the specified value. If no
  3269. such pair is found, a new name-value pair is added with the specified
  3270. <var>Name</var> and value.
  3271. </p>
  3272. <remark>
  3273. <ol>
  3274. <li>Names are compared case-insensitively.</li>
  3275. <li>Any character, including whitespace, up till the first equal (=) sign
  3276. in a string is considered part of the name.</li>
  3277. </ol>
  3278. </remark>
  3279. </descr>
  3280. <seealso>
  3281. <link id="TStrings.Names"/>
  3282. <link id="TStrings.Strings"/>
  3283. <link id="TStrings.Objects"/>
  3284. </seealso>
  3285. </element>
  3286. <element name="TStrings.Strings"> <!-- Property -->
  3287. <short>Indexed access to teh strings in the list.</short>
  3288. <descr>
  3289. <p>
  3290. <var>Strings</var> is the default property of <var>TStrings</var>. It
  3291. provides indexed read-write access to the list of strings. Reading it will
  3292. return the string at position <var>Index</var> in the list. Writing it will
  3293. set the string at position <var>Index</var>.
  3294. </p>
  3295. <p>
  3296. <var>Index</var> is the position of the string in the list. It is
  3297. zero-based, i.e. valued values range from <var>0</var> (the first string in
  3298. the list) till <var>Count-1</var> (the last string in the list).
  3299. When browsing through the strings in the list, this fact must be taken into
  3300. account.
  3301. </p>
  3302. <p>
  3303. To access the objects associated with the strings in the list, use the <link
  3304. id="TStrings.Objects"/> property. The name parts of name-value pairs can be
  3305. accessed with the <link id="TStrings.Names"/> property, and the values can
  3306. be set or read through the <link id="TStrings.Values"/> property.
  3307. </p>
  3308. <p>
  3309. Searching through the list can be done using the <link
  3310. id="TStrings.IndexOf"/> method.
  3311. </p>
  3312. </descr>
  3313. <errors>
  3314. If <var>Index</var> is outside the allowed range, an <link
  3315. id="EStringListError"/> exception is raised.
  3316. </errors>
  3317. <seealso>
  3318. <link id="TStrings.Count"/>
  3319. <link id="TStrings.Objects"/>
  3320. <link id="TStrings.Names"/>
  3321. <link id="TStrings.Values"/>
  3322. <link id="TStrings.IndexOf"/>
  3323. </seealso>
  3324. </element>
  3325. <element name="TStrings.Text"> <!-- Property -->
  3326. <short>Contents of the list as one big string.</short>
  3327. <descr>
  3328. <p>
  3329. <var>Text</var> returns, when read, the contents of the stringlist as one
  3330. big string consisting of all strings in the list, separated by an
  3331. end-of-line marker. When this property is set, the string will be cut into
  3332. smaller strings, based on the positions of end-of-line markers in the
  3333. string. Any previous content of the stringlist will be lost.
  3334. </p>
  3335. <remark>
  3336. If any of the strings in the list contains an end-of-line marker, then the
  3337. resulting string will appear to contain more strings than actually present
  3338. in the list. To avoid this ambiguity, use the <link id="TStrings.CommaText"/>
  3339. property instead.
  3340. </remark>
  3341. </descr>
  3342. <seealso>
  3343. <link id="TStrings.Strings"/>
  3344. <link id="TStrings.Count"/>
  3345. <link id="TStrings.CommaText"/>
  3346. </seealso>
  3347. </element>
  3348. <element name="TStrings.StringsAdapter"> <!-- Property -->
  3349. <short>Not implemented in Free Pascal.</short>
  3350. <descr>
  3351. </descr>
  3352. <seealso>
  3353. </seealso>
  3354. </element>
  3355. <element name="TDuplicates"> <!-- Enumeration type -->
  3356. <short>Type to describe what to do with duplicate values in a <link
  3357. id="TStringlist"/>.</short>
  3358. <descr>
  3359. </descr>
  3360. <seealso>
  3361. </seealso>
  3362. </element>
  3363. <element name="TDuplicates.dupIgnore"> <!-- Enumeration value -->
  3364. <short>Duplicate values will not be be added to the list, but no error will
  3365. be triggered.</short>
  3366. <seealso>
  3367. </seealso>
  3368. </element>
  3369. <element name="TDuplicates.dupAccept"> <!-- Enumeration value -->
  3370. <short>Duplicate values can be added to the list.</short>
  3371. <descr>
  3372. </descr>
  3373. <seealso>
  3374. </seealso>
  3375. </element>
  3376. <element name="TDuplicates.dupError"> <!-- Enumeration value -->
  3377. <short>If an attempt is made to add a duplicate value to the list, an
  3378. <link id="EStringListError"/> exception is raised.</short>
  3379. <descr>
  3380. </descr>
  3381. <seealso>
  3382. </seealso>
  3383. </element>
  3384. <element name="TStringItemList"> <!-- Array type -->
  3385. <short>Array of <link id="TStringItem"/> records.</short>
  3386. <descr>
  3387. This declaration is provided for Delphi compatibility, it is not used in
  3388. Free Pascal.
  3389. </descr>
  3390. </element>
  3391. <!--
  3392. *********************************************************************
  3393. TStringList
  3394. *********************************************************************
  3395. -->
  3396. <element name="TStringList"> <!-- Class -->
  3397. <short>Standard implementation of the <link id="TStrings"/> class.</short>
  3398. <descr>
  3399. <p>
  3400. <var>TStringList</var> is a descendent class of <link id="TStrings"/> that
  3401. implements all of the abstract methods introduced there. It also introduces
  3402. some additional methods:
  3403. </p>
  3404. <ul>
  3405. <li>Sort the list, or keep the list sorted at all times</li>
  3406. <li>Special handling of duplicates in sorted lists</li>
  3407. <li>Notification of changes in the list</li>
  3408. </ul>
  3409. </descr>
  3410. <seealso>
  3411. <link id="TStrings"/>
  3412. <link id="TStrings.Duplicates"/>
  3413. <link id="TStrings.Sorted"/>
  3414. </seealso>
  3415. </element>
  3416. <element name="TStringList.Changed"> <!-- Procedure -->
  3417. <short>Called when the list of strings was modified.</short>
  3418. <descr>
  3419. </descr>
  3420. <seealso>
  3421. </seealso>
  3422. </element>
  3423. <element name="TStringList.Changing"> <!-- Procedure -->
  3424. <short>Called when the list is changing.</short>
  3425. <descr>
  3426. </descr>
  3427. <seealso>
  3428. </seealso>
  3429. </element>
  3430. <element name="TStringList.Get"> <!-- Function -->
  3431. <short>Overrides the standard read handler for the <link id="TStrings.Strings"/> property.</short>
  3432. <descr>
  3433. </descr>
  3434. <seealso>
  3435. </seealso>
  3436. </element>
  3437. <element name="TStringList.GetCapacity"> <!-- Function -->
  3438. <short>Overrides the standard read handler for the <link
  3439. id="TStrings.Capacity"/> property.</short>
  3440. <descr>
  3441. </descr>
  3442. <seealso>
  3443. </seealso>
  3444. </element>
  3445. <element name="TStringList.GetCount"> <!-- Function -->
  3446. <short>Overrides the standard read handler for the <link
  3447. id="TStrings.Count"/> property.</short>
  3448. <descr>
  3449. </descr>
  3450. <seealso>
  3451. </seealso>
  3452. </element>
  3453. <element name="TStringList.GetObject"> <!-- Function -->
  3454. <short>Overrides the standard read handler for the <link
  3455. id="TStrings.Objects"/> property.</short>
  3456. <descr>
  3457. </descr>
  3458. <seealso>
  3459. </seealso>
  3460. </element>
  3461. <element name="TStringList.Put"> <!-- Procedure -->
  3462. <short>Overrides the standard write handler for the <link
  3463. id="TStrings.Strings"/> property.</short>
  3464. <descr>
  3465. </descr>
  3466. <seealso>
  3467. </seealso>
  3468. </element>
  3469. <element name="TStringList.PutObject"> <!-- Procedure -->
  3470. <short>Overrides the standard write handler for the <link
  3471. id="TStrings.Objects"/> property.</short>
  3472. <descr>
  3473. </descr>
  3474. <seealso>
  3475. </seealso>
  3476. </element>
  3477. <element name="TStringList.SetCapacity"> <!-- Procedure -->
  3478. <short>Overrides the standard write handler for the <link
  3479. id="TStrings.Capacity"/> property.</short>
  3480. <descr>
  3481. </descr>
  3482. <seealso>
  3483. </seealso>
  3484. </element>
  3485. <element name="TStringList.SetUpdateState"> <!-- Procedure -->
  3486. <short>Overrides the standard <link id="TStrings.SetUpdateState"/>
  3487. call.</short>
  3488. <descr>
  3489. </descr>
  3490. <seealso>
  3491. </seealso>
  3492. </element>
  3493. <element name="TStringList.Destroy"> <!-- Destructor -->
  3494. <short>Destroys the stringlist.</short>
  3495. <descr>
  3496. <p>
  3497. <var>Destroy</var> clears the stringlist, release all memory allocated for
  3498. the storage of the strings, and then calls the inherited destroy method.
  3499. </p>
  3500. <remark>
  3501. Any objects associated to strings in the list will <em>not</em> be
  3502. destroyed; it is the responsability of the caller to destroy all objects
  3503. associated with strings in the list.
  3504. </remark>
  3505. </descr>
  3506. </element>
  3507. <element name="TStringList.Add"> <!-- Function -->
  3508. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3509. <descr>
  3510. <p>
  3511. <var>Add</var> will add <var>S</var> to the list. If the list is sorted and
  3512. the string <var>S</var> is already present in the list and
  3513. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3514. id="EStringListError"/> exception is raised. If <var>Duplicates</var> is
  3515. set to <var>dupIgnore</var> then the return value is underfined.
  3516. </p>
  3517. <p>
  3518. If the list is sorted, new strings will not necessarily be added to the end
  3519. of the list, rather they will be inserted at their alphabetical position.
  3520. </p>
  3521. </descr>
  3522. <errors>
  3523. If the list is sorted and the string <var>S</var> is already present in the list and
  3524. <link id="TStringList.Duplicates"/> is <var>dupError</var> then an <link
  3525. id="EStringListError"/> exception is raised.
  3526. </errors>
  3527. <seealso>
  3528. <link id="TStringList.Insert"/>
  3529. <link id="TStringList.Duplicates"/>
  3530. </seealso>
  3531. </element>
  3532. <element name="TStringList.Clear"> <!-- Procedure -->
  3533. <short>Implements the <link id="TStrings.Add"/> function.</short>
  3534. <descr>
  3535. </descr>
  3536. <seealso>
  3537. </seealso>
  3538. </element>
  3539. <element name="TStringList.Delete"> <!-- Procedure -->
  3540. <short>Implements the <link id="TStrings.Delete"/> function.</short>
  3541. <descr>
  3542. </descr>
  3543. <seealso>
  3544. </seealso>
  3545. </element>
  3546. <element name="TStringList.Exchange"> <!-- Procedure -->
  3547. <short>Implements the <link id="TStrings.Exchange"/> function.</short>
  3548. <descr>
  3549. <p>
  3550. <var>Exchange</var> will exchange two items in the list as described in
  3551. <link id="TStrings.Exchange"/>.
  3552. </p>
  3553. <remark>
  3554. <var>Exchange</var> will not check whether the list os sorted or not;
  3555. if <var>Exchange</var> is called on a sorted list and the strings are not
  3556. identical, the sort order of the list will be destroyed.
  3557. </remark>
  3558. </descr>
  3559. <seealso>
  3560. <link id="TStringList.Sorted"/>
  3561. <link id="TStrings.Exchange"/>
  3562. </seealso>
  3563. </element>
  3564. <element name="TStringList.Find"> <!-- Function -->
  3565. <short>Locates the index for a given string in sorted lists.</short>
  3566. <descr>
  3567. <p>
  3568. <var>Find</var> returns <var>True</var> if the string <var>S</var> is present in the
  3569. list. Upon exit, the <var>Index</var> parameter will contain the position of
  3570. the string in the list. If the string is not found, the function will return
  3571. <var>False</var> and <var>Index</var> will contain the position where the
  3572. string will be inserted if it is added to the list.
  3573. </p>
  3574. <remark>
  3575. <ol>
  3576. <li> Use this method only on sorted lists. For unsorted lists, use <link
  3577. id="TStringList.IndexOf"/> instead.</li>
  3578. <li>Find uses a binary search method to locate the string</li>
  3579. </ol>
  3580. </remark>
  3581. </descr>
  3582. <seealso>
  3583. </seealso>
  3584. </element>
  3585. <element name="TStringList.IndexOf"> <!-- Function -->
  3586. <short>Overrides the <link id="TStrings.IndexOf"/> property.</short>
  3587. <descr>
  3588. <var>IndexOf</var> overrides the ancestor method <link
  3589. id="TStrings.indexOf"/>. It tries to optimize the
  3590. search by executing a binary search if the list is sorted. The function
  3591. returns the position of <var>S</var> if it is found in the list, or -1 if
  3592. the string is not found in the list.
  3593. </descr>
  3594. <seealso>
  3595. <link id="TStrings.IndexOf"/>
  3596. <link id="TStringList.Find"/>
  3597. </seealso>
  3598. </element>
  3599. <element name="TStringList.Insert"> <!-- Procedure -->
  3600. <short>Overrides the <link id="TStrings.Insert"/> method.</short>
  3601. <descr>
  3602. <var>Insert</var> will insert the string <var>S</var> at position
  3603. <var>Index</var> in the list. If the list is sorted, an <link
  3604. id="EStringListError"/> exception will be raised instead. <var>Index</var>
  3605. is a zero-based position.
  3606. </descr>
  3607. <errors>
  3608. If <var>Index</var> contains an invalid value (less than zero or larger than
  3609. <var>Count</var>, or the list is sorted, an <link id="EStringListError"/>
  3610. exception will be raised.
  3611. </errors>
  3612. <seealso>
  3613. <link id="TStringList.Add"/>
  3614. <link id="TStrings.Insert"/>
  3615. <link id="TStringList.InsertObject"/>
  3616. </seealso>
  3617. </element>
  3618. <element name="TStringList.Sort"> <!-- Procedure -->
  3619. <short>Sorts the strings in the list.</short>
  3620. <descr>
  3621. <var>Sort</var> will sort the strings in the list using the quicksort
  3622. algorithm. If the list has its <link id="TStringList.Sorted"/> property set
  3623. to <var>True</var> then nothing will be done.
  3624. </descr>
  3625. <seealso>
  3626. <link id="TStringList.Sorted"/>
  3627. </seealso>
  3628. </element>
  3629. <element name="TStringList.Duplicates"> <!-- Property -->
  3630. <short>Describes the behaviour of a sorted list with respect to duplicate
  3631. strings.</short>
  3632. <descr>
  3633. <p>
  3634. <var>Duplicates</var> describes what to do in case a duplicate value is
  3635. added to the list:
  3636. </p>
  3637. <table>
  3638. <tr><td>dupIgnore</td><td><printshort id="TDuplicates.dupIgnore"/></td></tr>
  3639. <tr><td>dupError</td><td><printshort id="TDuplicates.dupError"/></td></tr>
  3640. <tr><td>dupAccept</td><td><printshort id="TDuplicates.dupAccept"/></td></tr>
  3641. </table>
  3642. <p>
  3643. If the stringlist is not sorted, the <var>Duplicates</var> setting is
  3644. ignored.
  3645. </p>
  3646. </descr>
  3647. <seealso>
  3648. </seealso>
  3649. </element>
  3650. <element name="TStringList.Sorted"> <!-- Property -->
  3651. <short>Determines whether the list is sorted or not.</short>
  3652. <descr>
  3653. <p>
  3654. <var>Sorted</var> can be set to <var>True</var> in order to cause the list
  3655. of strings to be sorted. Further additions to the list will be inserted at
  3656. the correct position so the list remains sorted at all times. Setting the
  3657. property to <var>False</var> has no immediate effect, but will allow strings
  3658. to be inserted at any position.
  3659. </p>
  3660. <remark>
  3661. <ol>
  3662. <li>
  3663. When <var>Sorted</var> is <var>True</var>, <link id="TStringList.Insert"/>
  3664. cannot be used. For sorted lists, <link id="TStringList.Add"/> should be
  3665. used instead.</li>
  3666. <li>If <var>Sorted</var> is <var>True</var>, the <link
  3667. id="TStringList.Duplicates"/> setting has effect. This setting is ignored
  3668. when <var>Sorted</var> is <var>False</var>.</li>
  3669. </ol>
  3670. </remark>
  3671. </descr>
  3672. <seealso>
  3673. <link id="TStringList.Sort"/>
  3674. <link id="TStringList.Duplicates"/>
  3675. <link id="TStringList.Add"/>
  3676. <link id="TstringList.Insert"/>
  3677. </seealso>
  3678. </element>
  3679. <element name="TStringList.OnChange"> <!-- Property -->
  3680. <short>Event triggered after the list was modified.</short>
  3681. <descr>
  3682. <p>
  3683. <var>OnChange</var> can be assigned to respond to changes that have occurred
  3684. in the list. The handler is called whenever strings are added, moved,
  3685. modified or deleted from the list.
  3686. </p>
  3687. <p>
  3688. The <var>Onchange</var> event is triggered after the modification took place.
  3689. When the modification is about to happen, an <link
  3690. id="TstringList.OnChanging"/> event occurs.
  3691. </p>
  3692. </descr>
  3693. <seealso>
  3694. <link id="TStringList.OnChanging"/>
  3695. </seealso>
  3696. </element>
  3697. <element name="TStringList.OnChanging"> <!-- Property -->
  3698. <short>Event triggered when the list is about to be modified.</short>
  3699. <descr>
  3700. <p>
  3701. <var>OnChanging</var> can be assigned to respond to changes that will occurred
  3702. in the list. The handler is called whenever strings will be added, moved,
  3703. modified or deleted from the list.
  3704. </p>
  3705. <p>
  3706. The <var>Onchanging</var> event is triggered before the modification will
  3707. take place. When the modification has happened, an <link
  3708. id="TstringList.OnChange"/> event occurs.
  3709. </p>
  3710. </descr>
  3711. <seealso>
  3712. <link id="TStringList.OnChange"/>
  3713. </seealso>
  3714. </element>
  3715. <!--
  3716. *********************************************************************
  3717. TStream
  3718. *********************************************************************
  3719. -->
  3720. <element name="TStream"> <!-- Class -->
  3721. <short>Base class for streams.</short>
  3722. <descr>
  3723. <p>
  3724. <var>TStream</var> is the base class for all streaming classes. It defines
  3725. abstract methods for <link id="TStream.Read">reading</link>, <link
  3726. id="TStream.Write">writing</link> from and to streams, as well as functions to
  3727. determine the size of the stream as well as the current position of the
  3728. stream.
  3729. </p>
  3730. <p>Descendent classes such as <link id="TMemoryStream"/> or <link
  3731. id="TFileStream"/> then implement these abstract methods to write streams to
  3732. memory or file.
  3733. </p>
  3734. </descr>
  3735. <seealso>
  3736. <link id="TMemoryStream"/>
  3737. <link id="TFileStream"/>
  3738. <link id="TStringStream"/>
  3739. </seealso>
  3740. </element>
  3741. <element name="TStream.SetSize"> <!-- Procedure -->
  3742. <short>Sets the size of the stream</short>
  3743. <descr>
  3744. <var>SetSize</var> is the write handler for the <link id="TStream.Size"/>
  3745. property. The <var>TStream</var> implementation of <var>SetSize</var> does
  3746. nothing, but descendent classes may override this methods to allow
  3747. programmers to set the size of the stream.
  3748. </descr>
  3749. <seealso>
  3750. <link id="TStream.GetSize"/>
  3751. <link id="TStream.Size"/>
  3752. </seealso>
  3753. </element>
  3754. <element name="TStream.Read"> <!-- Function -->
  3755. <short>Reads data from the stream to a buffer and returns the number of
  3756. bytes read.</short>
  3757. <descr>
  3758. <p>
  3759. <var>Read</var> attempts to read <var>Count</var> from the stream to
  3760. <var>Buffer</var> and returns the number of bytes actually read.
  3761. </p>
  3762. <p>This method should be used when the number of bytes is not determined.
  3763. If a specific number of bytes is expected, use <link
  3764. id="TSTream.ReadBuffer"/> instead.
  3765. </p>
  3766. <p>
  3767. <var>Read</var> is an abstract method that is overridden by descendent
  3768. classes to do the actual reading.
  3769. </p>
  3770. </descr>
  3771. <errors>
  3772. Descendent classes that do not allow reading from the stream may raise an
  3773. exception when the <var>Read</var> is used.
  3774. </errors>
  3775. <seealso>
  3776. <link id="TStream.Write"/>
  3777. <link id="TStream.ReadBuffer"/>
  3778. </seealso>
  3779. </element>
  3780. <element name="TStream.Write"> <!-- Function -->
  3781. <short>Writes data from a buffer to the stream and returns the number of
  3782. bytes written.</short>
  3783. <descr>
  3784. <p>
  3785. <var>Write</var> attempts to write <var>Count</var> bytes from
  3786. <var>Buffer</var> to the stream. It returns the actual number of bytes
  3787. written to the stream.
  3788. </p>
  3789. <p>This method should be used when the number of bytes that should be
  3790. written is not determined. If a specific number of bytes should be
  3791. written, use <link id="TSTream.WriteBuffer"/> instead.
  3792. </p>
  3793. <p>
  3794. <var>Write</var> is an abstract method that is overridden by descendent
  3795. classes to do the actual writinging.
  3796. </p>
  3797. </descr>
  3798. <errors>
  3799. Descendent classes that do not allow writing to the stream may raise an
  3800. exception when <var>Write</var> is used.
  3801. </errors>
  3802. <seealso>
  3803. <link id="TStream.Read"/>
  3804. <link id="TStream.WriteBuffer"/>
  3805. </seealso>
  3806. </element>
  3807. <element name="TStream.Seek"> <!-- Function -->
  3808. <short>Sets the current position in the stream</short>
  3809. <descr>
  3810. <p>
  3811. <var>Seek</var> sets the position of the stream to <var>Offset</var> bytes
  3812. from <var>Origin</var>. <var>Origin</var> can have one of the following
  3813. values:
  3814. </p>
  3815. <table>
  3816. <tr><td>Constant</td><td>Meaning</td></tr>
  3817. <tr><td>soFromBeginning</td><td>Set the position relative to the start of
  3818. the stream.</td></tr>
  3819. <tr><td>soFromCurrent</td><td>Set the position relative to the beginning of
  3820. the stream.</td></tr>
  3821. <tr><td>soFromEnd</td><td>Set the position relative to the end of the
  3822. stream.</td></tr>
  3823. </table>
  3824. <p>
  3825. <var>Offset</var> should be negative when the origin is <var>SoFromEnd</var>.
  3826. It should be positive for <var>soFromBeginning</var> and can have both signs
  3827. for <var>soFromCurrent</var>
  3828. </p>
  3829. <p>
  3830. This is an abstract method, which must be overridden by descendent classes.
  3831. They may choose not to implement this method for all values of
  3832. <var>Origin</var> and <var>Offset</var>.
  3833. </p>
  3834. </descr>
  3835. <errors>
  3836. An exception may be raised if this method is called with an invalid pair of
  3837. <var>Offset</var>,<var>Origin</var> values. e.g. a negative
  3838. <var>offset</var> for <var>soFromBeginning</var>.
  3839. </errors>
  3840. <seealso>
  3841. <link id="TStream.Position"/>
  3842. </seealso>
  3843. </element>
  3844. <element name="TStream.ReadBuffer"> <!-- Procedure -->
  3845. <short>Reads data from the stream to a buffer</short>
  3846. <descr>
  3847. <p>
  3848. <var>ReadBuffer</var> reads <var>Count</var> bytes of the stream into
  3849. <var>Buffer</var>. If the stream does not contain <var>Count</var> bytes,
  3850. then an exception is raised.
  3851. </p>
  3852. <p>
  3853. <var>ReadBuffer</var> should be used to read in a fixed number of bytes,
  3854. such as when reading structures or the content of variables. If the number
  3855. of bytes is not determined, use <link id="TStream.Read"/> instead.
  3856. <var>ReadBuffer</var> uses <var>Read</var> internally to do the actual
  3857. reading.
  3858. </p>
  3859. </descr>
  3860. <errors>
  3861. If the stream does not allow to read <var>Count</var> bytes, then an
  3862. exception is raised.
  3863. </errors>
  3864. <seealso>
  3865. <link id="TStream.Read"/>
  3866. <link id="TStream.WriteBuffer"/>
  3867. </seealso>
  3868. </element>
  3869. <element name="TStream.WriteBuffer"> <!-- Procedure -->
  3870. <short>Writes data from the stream to the buffer</short>
  3871. <descr>
  3872. <p>
  3873. <var>WriteBuffer</var> writes <var>Count</var> bytes to the stream from
  3874. <var>Buffer</var>. If the stream does not allow <var>Count</var> bytes to be
  3875. written, then an exception is raised.
  3876. </p>
  3877. <p>
  3878. <var>WriteBuffer</var> should be used to read in a fixed number of bytes,
  3879. such as when writing structures or the content of variables. If the number
  3880. of bytes is not determined, use <link id="TStream.Write"/> instead.
  3881. <var>WriteBuffer</var> uses <var>Write</var> internally to do the actual
  3882. reading.
  3883. </p>
  3884. </descr>
  3885. <errors>
  3886. If the stream does not allow to write <var>Count</var> bytes, then an
  3887. exception is raised.
  3888. </errors>
  3889. <seealso>
  3890. <link id="TStream.Write"/>
  3891. <link id="TStream.ReadBuffer"/>
  3892. </seealso>
  3893. </element>
  3894. <element name="TStream.CopyFrom"> <!-- Function -->
  3895. <short>Copy data from one stream to another</short>
  3896. <descr>
  3897. <p>
  3898. <var>CopyFrom</var> reads <var>Count</var> bytes from <var>Source</var> and
  3899. writes them to the current stream. This updates the current position in the
  3900. stream. After the action is completed, the number of bytes copied is
  3901. returned.
  3902. </p>
  3903. <p>
  3904. This can be used to quickly copy data from one stream to another or to copy
  3905. the whole contents of the stream.
  3906. </p>
  3907. </descr>
  3908. <seealso>
  3909. <link id="TStream.Read"/>
  3910. <link id="TStream.Write"/>
  3911. </seealso>
  3912. </element>
  3913. <element name="TStream.ReadComponent"> <!-- Function -->
  3914. <short>Reads component data from a stream</short>
  3915. <descr>
  3916. <p>
  3917. <var>ReadComponent</var> reads a component state from the stream and
  3918. transfers this state to <var>Instance</var>. If <var>Instance</var> is nil,
  3919. then it is created first based on the type stored in the stream.
  3920. <var>ReadComponent</var> returns the component as it is read from the stream.
  3921. </p>
  3922. <p>
  3923. <var>ReadComponent</var> simply creates a <link id="TReader"/> object and
  3924. calls its <link id="TReader.ReadRootComponent">ReadRootComponent</link>
  3925. method.
  3926. </p>
  3927. </descr>
  3928. <errors>
  3929. If an error occurs during the reading of the component, an <link
  3930. id="EFilerError"/> exception is raised.
  3931. </errors>
  3932. <seealso>
  3933. <link id="TStream.WriteComponent"/>
  3934. <link id="TStream.ReadComponentRes"/>
  3935. <link id="TReader.ReadRootComponent"/>
  3936. </seealso>
  3937. </element>
  3938. <element name="TStream.ReadComponentRes"> <!-- Function -->
  3939. <short>Reads component data and resource header from a stream</short>
  3940. <descr>
  3941. <p>
  3942. <var>ReadComponentRes</var> reads a resource header from the stream, and then
  3943. calls <link id="TStream.ReadComponent">ReadComponent</link> to read the
  3944. component state from the stream into <var>Instance</var>.
  3945. </p>
  3946. <p>
  3947. This method is usually called by the global streaming method when
  3948. instantiating forms and datamodules as created by an IDE. It should be used
  3949. mainly on Windows, to store components in Windows resources.
  3950. </p>
  3951. </descr>
  3952. <errors>
  3953. If an error occurs during the reading of the component, an <link
  3954. id="EFilerError"/> exception is raised.
  3955. </errors>
  3956. <seealso>
  3957. <link id="TStream.ReadComponent"/>
  3958. <link id="TStream.WriteComponentRes"/>
  3959. </seealso>
  3960. </element>
  3961. <element name="TStream.WriteComponent"> <!-- Procedure -->
  3962. <short>Write component data to the stream</short>
  3963. <descr>
  3964. <p>
  3965. <var>WriteComponent</var> writes the published properties of
  3966. <var>Instance</var> to the stream, so they can later be read with <link
  3967. id="TStream.ReadComponent"/>. This method is intended to be used by an IDE,
  3968. to preserve the state of a form or datamodule as designed in the IDE.
  3969. </p>
  3970. <p>
  3971. <var>WriteComponent</var> simply calls <link
  3972. id="TStream.WriteDescendent">WriteDescendent</link> with <var>Nil</var>
  3973. ancestor.
  3974. </p>
  3975. </descr>
  3976. <seealso>
  3977. <link id="TStream.ReadComponent"/>
  3978. <link id="TStream.WriteComponentRes"/>
  3979. </seealso>
  3980. </element>
  3981. <element name="TStream.WriteComponentRes"> <!-- Procedure -->
  3982. <short>Write resource header and component data to a stream</short>
  3983. <descr>
  3984. <p>
  3985. <var>WriteComponentRes</var> writes a <var>ResName</var> resource header
  3986. to the stream and then calls <link id="TStream.WriteComponent">WriteComponent</link>
  3987. to write the published properties of <var>Instance</var> to the stream.
  3988. </p>
  3989. <p>
  3990. This method is intened for use by an IDE that can use it to store forms or
  3991. datamodules as designed in a Windows resource stream.
  3992. </p>
  3993. </descr>
  3994. <seealso>
  3995. <link id="TStream.WriteComponent"/>
  3996. <link id="TStream.ReadComponentRes"/>
  3997. </seealso>
  3998. </element>
  3999. <element name="TStream.WriteDescendent"> <!-- Procedure -->
  4000. <short>Write component data to a stream, relative to an ancestor</short>
  4001. <descr>
  4002. <p>
  4003. <var>WriteDescendent</var> writes the state of <var>Instance</var> to the
  4004. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  4005. properties are written to the stream.
  4006. </p>
  4007. <p>
  4008. <var>WriteDescendent</var> creates a <link id="TWriter"/> object and calls
  4009. its <link id="TWriter.WriteDescendent">WriteDescendent</link> object. The
  4010. writer is passed a <link id="TBinaryObjectWriter">binary driver
  4011. object</link> by default.
  4012. </p>
  4013. </descr>
  4014. <seealso>
  4015. </seealso>
  4016. </element>
  4017. <element name="TStream.WriteDescendentRes"> <!-- Procedure -->
  4018. <short>Write resource header and component data to a stream, relative to an ancestor</short>
  4019. <descr>
  4020. <p>
  4021. <var>WriteDescendentRes</var> writes a <var>ResName</var> resource header,
  4022. and then calls <link id="TStream.WriteDescendent">WriteDescendent</link> to
  4023. write the state of <var>Instance</var> to the
  4024. stream where it differs from <var>Ancestor</var>, i.e. only the changed
  4025. properties are written to the stream.
  4026. </p>
  4027. <p>
  4028. This method is intened for use by an IDE that can use it to store forms or
  4029. datamodules as designed in a Windows resource stream.
  4030. </p>
  4031. </descr>
  4032. <seealso>
  4033. </seealso>
  4034. </element>
  4035. <element name="TStream.WriteResourceHeader"> <!-- Procedure -->
  4036. <short>Write resource header to the stream</short>
  4037. <descr>
  4038. <p>
  4039. <var>WriteResourceHeader</var> writes a resource-file header for a resource
  4040. called <var>ResName</var>. It returns in <var>FixupInfo</var> the argument
  4041. that should be passed on to <link id="TStream.FixupResourceHeader"/>.
  4042. </p>
  4043. <p>
  4044. <var>WriteResourceHeader</var> should not be used directly. It is called by
  4045. the <link id="TStream.WriteComponentRes"/> and
  4046. <link id="TStream.WriteDescendentRes"/>
  4047. methods.
  4048. </p>
  4049. </descr>
  4050. <seealso>
  4051. <link id="TStream.FixupResourceHeader"/>
  4052. <link id="TStream.WriteComponentRes"/>
  4053. <link id="TStream.WriteDescendentRes"/>
  4054. </seealso>
  4055. </element>
  4056. <element name="TStream.FixupResourceHeader"> <!-- Procedure -->
  4057. <short>Not implemented in FPC</short>
  4058. <descr>
  4059. <p>
  4060. <var>FixupResourceHeader</var> is used to write the size of the resource
  4061. after a component was written to stream. The size is determined from the
  4062. current position, and it is written at position <var>FixupInfo</var>. After
  4063. that the current position is restored.
  4064. </p>
  4065. <p>
  4066. <var>FixupResourceHeader</var> should never be called directly; it is
  4067. handled by the streaming system.
  4068. </p>
  4069. </descr>
  4070. <seealso>
  4071. <link id="TStream.WriteResourceHeader"/>
  4072. <link id="TStream.WriteComponentRes"/>
  4073. <link id="TStream.WriteDescendentRes"/>
  4074. </seealso>
  4075. </element>
  4076. <element name="TStream.ReadResHeader"> <!-- Procedure -->
  4077. <short>Read a resource header from the stream.</short>
  4078. <descr>
  4079. <p>
  4080. <var>ReadResourceHeader</var> reads a reasource file header from the stream.
  4081. It positions the stream just beyond the header.
  4082. </p>
  4083. <p>
  4084. <var>ReadResourceHeader</var> should not be called directly, it is called by
  4085. the streaming system when needed.
  4086. </p>
  4087. </descr>
  4088. <errors>
  4089. If the resource header is invalid an <link id="EInvalidImage"/> exception is
  4090. raised.
  4091. </errors>
  4092. <seealso>
  4093. <link id="TStream.ReadComponentRes"/>
  4094. <link id="EInvalidImage"/>
  4095. </seealso>
  4096. </element>
  4097. <element name="TStream.ReadByte"> <!-- Function -->
  4098. <short>Read a byte from the stream and return its value.</short>
  4099. <descr>
  4100. <var>ReadByte</var> reads one byte from the stream and returns its value.
  4101. </descr>
  4102. <errors>
  4103. If the byte cannot be read, a <link id="EStreamError"/> exception will be
  4104. raised. This is a utility function which symply calls the
  4105. <link id="TStream.Read">Read</link> function.
  4106. </errors>
  4107. <seealso>
  4108. <link id="TStream.Read"/>
  4109. <link id="TStream.WriteByte"/>
  4110. <link id="TStream.ReadWord"/>
  4111. <link id="TStream.ReadDWord"/>
  4112. <link id="TStream.ReadAnsiString"/>
  4113. </seealso>
  4114. </element>
  4115. <element name="TStream.ReadWord"> <!-- Function -->
  4116. <short>Read a word from the stream and return its value.</short>
  4117. <descr>
  4118. <var>ReadWord</var> reads one Word (i.e. 2 bytes) from the stream
  4119. and returns its value. This is a utility function which symply calls the
  4120. <link id="TStream.Read">Read</link> function.
  4121. </descr>
  4122. <errors>
  4123. If the word cannot be read, a <link id="EStreamError"/> exception will be
  4124. raised.
  4125. </errors>
  4126. <seealso>
  4127. <link id="TStream.Read"/>
  4128. <link id="TStream.WriteWord"/>
  4129. <link id="TStream.ReadByte"/>
  4130. <link id="TStream.ReadDWord"/>
  4131. <link id="TStream.ReadAnsiString"/>
  4132. </seealso>
  4133. </element>
  4134. <element name="TStream.ReadDWord"> <!-- Function -->
  4135. <short>Read a DWord from the stream and return its value.</short>
  4136. <descr>
  4137. <var>ReadDWord</var> reads one DWord (i.e. 4 bytes) from the stream
  4138. and returns its value. This is a utility function which simply calls the
  4139. <link id="TStream.Read">Read</link> function.
  4140. </descr>
  4141. <errors>
  4142. If the DWord cannot be read, a <link id="EStreamError"/> exception will be
  4143. raised.
  4144. </errors>
  4145. <seealso>
  4146. <link id="TStream.Read"/>
  4147. <link id="TStream.WriteDWord"/>
  4148. <link id="TStream.ReadByte"/>
  4149. <link id="TStream.ReadWord"/>
  4150. <link id="TStream.ReadAnsiString"/>
  4151. </seealso>
  4152. </element>
  4153. <element name="TStream.ReadAnsiString"> <!-- Function -->
  4154. <short>Read an ansistring from the stream and return its value.</short>
  4155. <descr>
  4156. <var>ReadAnsiString</var> reads an ansistring from the stream
  4157. and returns its value. This is a utility function which simply calls the
  4158. read function several times.
  4159. The Ansistring should be stored as 4 bytes (a DWord) representing the length
  4160. of the string, and then the string value itself.
  4161. The <link id="TStream.WriteAnsiString">WriteAnsiString</link> function
  4162. writes an ansistring in such a format.
  4163. </descr>
  4164. <errors>
  4165. If the AnsiString cannot be read, a <link id="EStreamError"/> exception will be
  4166. raised.
  4167. </errors>
  4168. <seealso>
  4169. <link id="TStream.Read"/>
  4170. <link id="TStream.WriteAnsiString"/>
  4171. <link id="TStream.ReadByte"/>
  4172. <link id="TStream.ReadWord"/>
  4173. <link id="TStream.ReadDWord"/>
  4174. </seealso>
  4175. </element>
  4176. <element name="TStream.WriteByte"> <!-- Procedure -->
  4177. <short>Write a byte to the stream.</short>
  4178. <descr>
  4179. <var>WriteByte</var> writes the byte <var>B</var> to the stream. This is a
  4180. utility function which simply calls the <link
  4181. id="TStream.Write">Write</link> function.
  4182. The byte can be read from the stream using the <link
  4183. id="TStream.ReadByte">ReadByte</link> function.
  4184. </descr>
  4185. <errors>
  4186. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4187. </errors>
  4188. <seealso>
  4189. <link id="TStream.Write"/>
  4190. <link id="TStream.ReadByte"/>
  4191. <link id="TStream.WriteWord"/>
  4192. <link id="TStream.WriteDWord"/>
  4193. <link id="TStream.WriteAnsiString"/>
  4194. </seealso>
  4195. </element>
  4196. <element name="TStream.WriteWord"> <!-- Procedure -->
  4197. <short>Write a word to the stream.</short>
  4198. <descr>
  4199. <var>WriteWord</var> writes the word <var>W</var> (i.e. 2 bytes) to the stream. This is a
  4200. utility function which simply calls the <link
  4201. id="TStream.Write">Write</link> function.
  4202. The word can be read from the stream using the <link
  4203. id="TStream.ReadWord">ReadWord</link> function.
  4204. </descr>
  4205. <errors>
  4206. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4207. </errors>
  4208. <seealso>
  4209. <link id="TStream.Write"/>
  4210. <link id="TStream.ReadWord"/>
  4211. <link id="TStream.WriteByte"/>
  4212. <link id="TStream.WriteDWord"/>
  4213. <link id="TStream.WriteAnsiString"/>
  4214. </seealso>
  4215. </element>
  4216. <element name="TStream.WriteDWord"> <!-- Procedure -->
  4217. <short>Write a DWord to the stream.</short>
  4218. <descr>
  4219. <var>WriteDWord</var> writes the DWord <var>D</var> (i.e. 4 bytes) to the stream. This is a
  4220. utility function which simply calls the <link
  4221. id="TStream.Write">Write</link> function.
  4222. The DWord can be read from the stream using the <link
  4223. id="TStream.ReadDWord">ReadDWord</link> function.
  4224. </descr>
  4225. <errors>
  4226. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4227. </errors>
  4228. <seealso>
  4229. <link id="TStream.Write"/>
  4230. <link id="TStream.ReadDWord"/>
  4231. <link id="TStream.WriteByte"/>
  4232. <link id="TStream.WriteWord"/>
  4233. <link id="TStream.WriteAnsiString"/>
  4234. </seealso>
  4235. </element>
  4236. <element name="TStream.WriteAnsiString"> <!-- Procedure -->
  4237. <short>Write an ansistring to the stream.</short>
  4238. <descr>
  4239. <var>WriteAnsiString</var> writes the AnsiString <var>S</var> (i.e. 4 bytes) to the stream. This is a
  4240. utility function which simply calls the <link
  4241. id="TStream.Write">Write</link> function.
  4242. The ansistring is written as a 4 byte length specifier, followed by the
  4243. ansistring's content.
  4244. The ansistring can be read from the stream using the <link
  4245. id="TStream.ReadAnsiString">ReadAnsiString</link> function.
  4246. </descr>
  4247. <errors>
  4248. If an error occurs when attempting to write, an <link id="EStreamError"/> exception will be raised.
  4249. </errors>
  4250. <seealso>
  4251. <link id="TStream.Write"/>
  4252. <link id="TStream.ReadAnsiString"/>
  4253. <link id="TStream.WriteByte"/>
  4254. <link id="TStream.WriteWord"/>
  4255. <link id="TStream.WriteDWord"/>
  4256. </seealso>
  4257. </element>
  4258. <element name="TStream.Position"> <!-- Property -->
  4259. <short>The current position in the stream.</short>
  4260. <descr>
  4261. <p>
  4262. <var>Position</var> can be read to determine the current position in the
  4263. stream. It can be written to to set the (absolute) position in the stream.
  4264. The position is zero-based, so to set the position at the beginning of the
  4265. stream, the position must be set to zero.
  4266. </p>
  4267. <remark>
  4268. Not all <var>TStream</var> descendants support setting the position in the
  4269. stream, so this should be used with care.
  4270. </remark>
  4271. </descr>
  4272. <errors>
  4273. Some descendents may raise an <link id="EStreamError"/> exception if they
  4274. do not support setting the stream position.
  4275. </errors>
  4276. <seealso>
  4277. <link id="TStream.Size"/>
  4278. <link id="TStream.Seek"/>
  4279. </seealso>
  4280. </element>
  4281. <element name="TStream.Size"> <!-- Property -->
  4282. <short>The current size of the stream.</short>
  4283. <descr>
  4284. <p>
  4285. <var>Size</var> can be read to determine the stream size or to set the
  4286. stream size.
  4287. </p>
  4288. <remark>
  4289. Not all descendents of <var>TStream</var> support getting or setting the
  4290. stream size; they may raise an exception if the <var>Size</var> property
  4291. is read or set.
  4292. </remark>
  4293. </descr>
  4294. <seealso>
  4295. <link id="TStream.Position"/>
  4296. <link id="TStream.Seek"/>
  4297. </seealso>
  4298. </element>
  4299. <!--
  4300. *********************************************************************
  4301. THandleStream
  4302. *********************************************************************
  4303. -->
  4304. <element name="THandleStream"> <!-- Class -->
  4305. <short>Base clas for streams that are identified by an OS handle.</short>
  4306. <descr>
  4307. <p>
  4308. <var>THandleStream</var> is an abstract descendent of the <link
  4309. id="TStream"/>
  4310. class that provides methods for a stream to handle all reading and writing
  4311. to and from a handle, provided by the underlying OS. To this end, it
  4312. overrides the <link id="THandleStream.Read">Read</link> and <link
  4313. id="THandleStream.Write">Write</link> methods of TStream.
  4314. </p>
  4315. <remark>
  4316. <ul>
  4317. <li>
  4318. <var>ThandleStream</var> does not obtain a handle from the OS by itself,
  4319. it just handles reading and writing to such a handle by wrapping the system
  4320. calls for reading and writing;
  4321. Descendent classes should obtain a handle from the OS by themselves and pass it on in the inherited
  4322. constructor.</li>
  4323. <li>
  4324. Contrary to Delphi, no seek is implemented for <var>THandleStream</var>,
  4325. since pipes and sockets do not support this. The seek is implemented in
  4326. descendent methods that support it.
  4327. </li>
  4328. </ul>
  4329. </remark>
  4330. </descr>
  4331. <seealso>
  4332. <link id="TStream"/>
  4333. <link id="TFileStream"/>
  4334. </seealso>
  4335. </element>
  4336. <element name="THandleStream.Create"> <!-- Constructor -->
  4337. <short>Create a handlestream from an OS Handle.</short>
  4338. <descr>
  4339. <var>Create</var> creates a new instance of a <var>THandleStream</var>
  4340. class. It stores <var>AHandle</var> in an internal variable and
  4341. then calls the inherited constructor.
  4342. </descr>
  4343. <seealso>
  4344. <link id="TStream"/>
  4345. </seealso>
  4346. </element>
  4347. <element name="THandleStream.Read"> <!-- Function -->
  4348. <short>Overrides standard read method.</short>
  4349. <descr>
  4350. <p>
  4351. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4352. method of <var>TStream</var>. It uses the <link
  4353. id="THandleStream.Handle">Handle</link> property to read the
  4354. <var>Count</var> bytes into <var>Buffer</var>
  4355. </p>
  4356. <p>
  4357. If no error occurs while reading, the number of bytes actually read will be
  4358. returned.
  4359. </p>
  4360. </descr>
  4361. <errors>
  4362. If the operating system reports an error while reading from the handle, -1
  4363. is returned.
  4364. </errors>
  4365. <seealso>
  4366. <link id="TStream.Read"/>
  4367. <link id="THandleStream.Write"/>
  4368. <link id="THandleStream.Handle"/>
  4369. </seealso>
  4370. </element>
  4371. <element name="THandleStream.Write"> <!-- Function -->
  4372. <short>Overrides standard write method.</short>
  4373. <descr>
  4374. <p>
  4375. <var>Write</var> implements the abstract <link id="TStream.Write">Write</link>
  4376. method of <var>TStream</var>. It uses the <link
  4377. id="THandleStream.Handle">Handle</link> property to write the
  4378. <var>Count</var> bytes from <var>Buffer</var>.
  4379. </p>
  4380. <p>
  4381. If no error occurs while writing, the number of bytes actually written will be
  4382. returned.
  4383. </p>
  4384. </descr>
  4385. <errors>
  4386. If the operating system reports an error while writing to handle, -1
  4387. is returned.
  4388. </errors>
  4389. <seealso>
  4390. <link id="TStream.Read"/>
  4391. <link id="THandleStream.Write"/>
  4392. <link id="THandleStream.Handle"/>
  4393. </seealso>
  4394. </element>
  4395. <element name="THandleStream.Handle"> <!-- Property -->
  4396. <short>The OS handle of the stream.</short>
  4397. <descr>
  4398. <var>Handle</var> represents the Operating system handle to which reading
  4399. and writing is done. The handle can be read only, i.e. it cannot be set
  4400. after the <var>THandlestream</var> instance was created. It should be
  4401. passed to the constructor <link id="THandleStream.Create"/>
  4402. </descr>
  4403. <seealso>
  4404. <link id="THandleStream"/>
  4405. <link id="THandleStream.Create"/>
  4406. </seealso>
  4407. </element>
  4408. <!--
  4409. *********************************************************************
  4410. TFileStream
  4411. *********************************************************************
  4412. -->
  4413. <element name="TFileStream"> <!-- Class -->
  4414. <short>Stream that stores its data in a named file on disk.</short>
  4415. <descr>
  4416. <p>
  4417. <var>TFileStream</var> is a <link id="TStream"/> descdendent that
  4418. stores or reads it's data from a named file in the filesystem of
  4419. the operating system.
  4420. </p>
  4421. <p>
  4422. To this end, it overrides some of the abstract methods in <var>TStream</var>
  4423. and implements them for the case of files on disk, and it adds the <link
  4424. id="TFileStream.Filename">FileName</link> property to the list of public
  4425. properties.
  4426. </p>
  4427. </descr>
  4428. <seealso>
  4429. <link id="TFileStream.Create"/>
  4430. <link id="TStream"/>
  4431. </seealso>
  4432. </element>
  4433. <element name="TFileStream.SetSize"> <!-- Procedure -->
  4434. <short>Sets the size of the file stream.</short>
  4435. <descr>
  4436. <p>
  4437. <var>SetSize</var> sets the size of the file at <var>NewSize</var> bytes.
  4438. Errors returned by the operating system call will be silently ignored.
  4439. </p>
  4440. <p>
  4441. This is the protected write method of the public <link id="TStream.Size"/>
  4442. property.
  4443. </p>
  4444. </descr>
  4445. <seealso>
  4446. <link id="TStream.Size"/>
  4447. </seealso>
  4448. </element>
  4449. <element name="TFileStream.Create"> <!-- Constructor -->
  4450. <short>Creates a file stream.</short>
  4451. <descr>
  4452. <p>
  4453. <var>Create</var> creates a new instance of a <var>TFileStream</var> class.
  4454. It opens the file <var>AFileName</var> with mode <var>Mode</var>, which can
  4455. have one of the following values:
  4456. </p>
  4457. <table>
  4458. <tr>
  4459. <td>fmCreate</td><td><printshort id="fmCreate"/></td>
  4460. </tr>
  4461. <tr>
  4462. <td>fmOpenRead</td><td><printshort id="fmOpenRead"/></td>
  4463. </tr>
  4464. <tr>
  4465. <td>fmOpenWrite</td><td><printshort id="fmOpenWrite"/></td>
  4466. </tr>
  4467. <tr>
  4468. <td>fmOpenReadWrite</td><td><printshort id="fmOpenReadWrite"/></td>
  4469. </tr>
  4470. </table>
  4471. <p>
  4472. After the file has been opened in the requested mode and a handle has been
  4473. obtained from the operating system, the inherited constructor is called.
  4474. </p>
  4475. </descr>
  4476. <errors>
  4477. If the file could not be opened in the requested mode, an <link
  4478. id="EFOpenError"/> exception is raised.
  4479. </errors>
  4480. <seealso>
  4481. <link id="TStream"/>
  4482. <link id="TFileStream.FileName"/>
  4483. <link id="THandleStream.Create"/>
  4484. </seealso>
  4485. </element>
  4486. <element name="TFileStream.Destroy"> <!-- Destructor -->
  4487. <short>Destroys the file stream.</short>
  4488. <descr>
  4489. <p>
  4490. <var>Destroy</var> closes the file (causing possible buffered data to be
  4491. written to disk) and then calls the inherited destructor.
  4492. </p>
  4493. <p>
  4494. Do not call <var>destroy</var> directly, instead call the <var>Free</var>
  4495. method. Destroy does not check whether <var>Self</var> is nil, while
  4496. <var>Free</var> does.
  4497. </p>
  4498. </descr>
  4499. <seealso>
  4500. <link id="TFileStream.Create"/>
  4501. </seealso>
  4502. </element>
  4503. <element name="TFileStream.Seek"> <!-- Function -->
  4504. <short>Overrides the standard method.</short>
  4505. <descr>
  4506. <p>
  4507. <var>Seek</var> attempts to set the position of the stream at
  4508. <var>Offset</var> bytes from <var>Origin</var>. <var>Offset</var> can have
  4509. any integer value which would set the position within the boundaries of the
  4510. file, and thus the valid range depends on the value of <var>Origin</var>.
  4511. <var>Origin</var> can have one of the following values:
  4512. </p>
  4513. <table>
  4514. <tr>
  4515. <td>soFromBeginning</td><td><printshort id="soFromBeginning"/></td>
  4516. </tr>
  4517. <tr>
  4518. <td>soFromCurrent</td><td><printshort id="soFromCurrent"/></td>
  4519. </tr>
  4520. <tr>
  4521. <td>soFromEnd</td><td><printshort id="soFromEnd"/></td>
  4522. </tr>
  4523. </table>
  4524. <p>
  4525. <var>Seek</var> returns the new position in the file, or -1 on error.
  4526. </p>
  4527. </descr>
  4528. <errors>
  4529. On error, -1 is returned, and the position is not changed.
  4530. </errors>
  4531. <seealso>
  4532. <link id="TStream.Position"/>
  4533. <link id="TStream.Size"/>
  4534. </seealso>
  4535. </element>
  4536. <element name="TFileStream.FileName"> <!-- Property -->
  4537. <short>The filename of the stream.</short>
  4538. <descr>
  4539. <var>FileName</var> is the name of the file that the stream reads from or writes
  4540. to. It is the name as passed in the constructor of the stream; it cannot be
  4541. changed. To write to another file, the stream must be freed and created
  4542. again with the new filename.
  4543. </descr>
  4544. <seealso>
  4545. <link id="TFileStream.Create"/>
  4546. </seealso>
  4547. </element>
  4548. <!--
  4549. *********************************************************************
  4550. TCustomMemoryStream
  4551. *********************************************************************
  4552. -->
  4553. <element name="TCustomMemoryStream"> <!-- Class -->
  4554. <short>Abstract stream that stores its data in memory.</short>
  4555. <descr>
  4556. <p>
  4557. <var>TCustomMemoryStream</var> is the parent class for streams that stored
  4558. their data in memory. It introduces all needed functions to handle reading
  4559. from and navigating through the memory, and introduces a
  4560. <link id="TCustomMemoryStream.Memory">Memory</link> property which points to
  4561. the memory area where the stream data is kept.
  4562. </p>
  4563. <p>
  4564. The only thing which <var>TCustomMemoryStream</var> does not do is obtain
  4565. memory to store data when writing data or the writing of data. This
  4566. functionality is implemented in descendent streams such as <link
  4567. id='TMemoryStream'/>. The reason for this approach is that this way it is
  4568. possible to create e.g. read-only descendents of
  4569. <var>TCustomMemoryStream</var> that point to a fixed part in memory which
  4570. can be read from, but not written to.
  4571. </p>
  4572. <remark>
  4573. Since <var>TCustomMemoryStream</var> is an abstract class, do not create
  4574. instances of <var>TMemoryStream</var> directly. Instead,
  4575. create instances of descendents such as <link id="TMemoryStream"/>.
  4576. </remark>
  4577. </descr>
  4578. <seealso>
  4579. <link id="TMemoryStream"/>
  4580. <link id="TStream"/>
  4581. </seealso>
  4582. </element>
  4583. <element name="TCustomMemoryStream.SetPointer"> <!-- Procedure -->
  4584. <short>Sets the internal memory pointer and size of the memory block.</short>
  4585. <descr>
  4586. <p>
  4587. <var>SetPointer</var> updates the internal memory pointer and the size of
  4588. the memory area pointed to.
  4589. </p>
  4590. <p>
  4591. Descendent memory streams should call this method whenever they set or reset
  4592. the memory the stream should read from or write to.
  4593. </p>
  4594. </descr>
  4595. <seealso>
  4596. <link id="TCustomMemoryStream.Memory"/>
  4597. <link id="TStream.Size"/>
  4598. </seealso>
  4599. </element>
  4600. <element name="TCustomMemoryStream.Read"> <!-- Function -->
  4601. <short>Reads <var>Count</var> bytes from the stream into <var>buffer</var>.</short>
  4602. <descr>
  4603. <p>
  4604. <var>Read</var> reads <var>Count</var> bytes from the stream into the memory
  4605. pointed to by <var>buffer</var>. It returns the number of bytes actually
  4606. read.
  4607. </p>
  4608. <p>
  4609. This method overrides the abstract <link id="TStream.Read"/> method of <link
  4610. id="TStream"/>. It will read as much bytes as are still available in the
  4611. memory area pointer to by <link id="TCustomMemoryStream.Memory">Memory</link>.
  4612. After the bytes are read, the internal stream position is updated.
  4613. </p>
  4614. </descr>
  4615. <seealso>
  4616. <link id="TCustomMemoryStream.Memory"/>
  4617. <link id="TStream.Read"/>
  4618. </seealso>
  4619. </element>
  4620. <element name="TCustomMemoryStream.Seek"> <!-- Function -->
  4621. <short>Sets a new position in the stream.</short>
  4622. <descr>
  4623. <var>Seek</var> overrides the abstract <link id="TStream.Seek"/> method.
  4624. It simply updates the internal stream position, and returns the new
  4625. position.
  4626. </descr>
  4627. <errors>
  4628. No checking is done whether the new position is still a valid position, i.e.
  4629. whether the position is still within the range <var>0..Size</var>.
  4630. Attempting a seek outside the valid memory range of the stream may result in
  4631. an exception at the next read or write operation.
  4632. </errors>
  4633. <seealso>
  4634. <link id="TStream.Position"/>
  4635. <link id="TStream.Size"/>
  4636. <link id="TCustomMemoryStream.Memory"/>
  4637. </seealso>
  4638. </element>
  4639. <element name="TCustomMemoryStream.SaveToStream"> <!-- Procedure -->
  4640. <short>Writes the contents of the memory stream to another stream.</short>
  4641. <descr>
  4642. <p>
  4643. <var>SaveToStream</var> writes the contents of the memory stream to
  4644. <var>Stream</var>. The content of <var>Stream</var> is not cleared first.
  4645. The current position of the memory stream is not changed by this action.
  4646. </p>
  4647. <remark>
  4648. <p>
  4649. This method will work much faster than the use of the
  4650. <link id="TStream.CopyFrom"/> method:
  4651. </p>
  4652. <code>
  4653. Seek(0,soFromBeginning);
  4654. Stream.CopyFrom(Self,Size);
  4655. </code>
  4656. <p>
  4657. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4658. <var>SaveToStream</var> writes the contents of the memory as one big block.
  4659. </p>
  4660. </remark>
  4661. </descr>
  4662. <errors>
  4663. If an error occurs when writing to <var>Stream</var> an <link
  4664. id="EStreamError"/> exception will be raised.
  4665. </errors>
  4666. <seealso>
  4667. <link id="TCustomMemoryStream.SaveToFile"/>
  4668. <link id="TStream.CopyFrom"/>
  4669. </seealso>
  4670. </element>
  4671. <element name="TCustomMemoryStream.SaveToFile"> <!-- Procedure -->
  4672. <short>Writes the contents of the stream to a file.</short>
  4673. <descr>
  4674. <p>
  4675. <var>SaveToFile</var> writes the contents of the stream to a file with name
  4676. <var>FileName</var>.
  4677. It simply creates a filestream and writes the contents of the memorystream
  4678. to this file stream using <link id="TCustomMemoryStream.SaveToStream"/>.
  4679. </p>
  4680. <remark>
  4681. <p>
  4682. This method will work much faster than the use of the <link
  4683. id="TStream.CopyFrom"/> method:
  4684. </p>
  4685. <code>
  4686. Stream:=TFileStream.Create(fmCreate,FileName);
  4687. Seek(0,soFromBeginning);
  4688. Stream.CopyFrom(Self,Size);
  4689. </code>
  4690. <p>
  4691. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4692. <var>SaveToFile</var> writes the contents of the memory as one big block.
  4693. </p>
  4694. </remark>
  4695. </descr>
  4696. <errors>
  4697. If an error occurs when creating or writing to the file, an <link
  4698. id="EStreamError"/> exception may occur.
  4699. </errors>
  4700. <seealso>
  4701. <link id="TCustomMemoryStream.SaveToStream"/>
  4702. <link id="TFileStream"/>
  4703. <link id="TStream.CopyFrom"/>
  4704. </seealso>
  4705. </element>
  4706. <element name="TCustomMemoryStream.Memory"> <!-- Property -->
  4707. <short>Pointer to the data kept in the memory stream.</short>
  4708. <descr>
  4709. <p>
  4710. <var>Memory</var> points to the memory area where stream keeps it's data.
  4711. The property is read-only, so the pointer cannot be set this way.
  4712. </p>
  4713. <remark>
  4714. Do not write to the memory pointed to by <var>Memory</var>, since the memory
  4715. content may be read-only, and thus writing to it may cause errors.
  4716. </remark>
  4717. </descr>
  4718. <seealso>
  4719. <link id="TStream.Size"/>
  4720. </seealso>
  4721. </element>
  4722. <!--
  4723. *********************************************************************
  4724. TMemoryStream
  4725. *********************************************************************
  4726. -->
  4727. <element name="TMemoryStream"> <!-- Class -->
  4728. <short>Standard implementation of a stream that stores its data in memory</short>
  4729. <descr>
  4730. <p>
  4731. <var>TMemoryStream</var> is a <link id="TStream"/> descendent that stores
  4732. it's data in memory. It descends directly from <link id="TCustomMemoryStream"/>
  4733. and implements the necessary to allocate and de-allocate memory diretly from
  4734. the heap. It implements the <link id="TMemoryStream.Write">Write</link> method
  4735. which is missing in <var>TCustomMemoryStream</var>.
  4736. </p>
  4737. <p>
  4738. <var>TMemoryStream</var> also introduces methods to load the contents of
  4739. another stream or a file into the memory stream.
  4740. </p>
  4741. <p>
  4742. It is not necessary to do any memory management manually, as the stream
  4743. will allocate or de-allocate memory as needed. When the stream is freed, all
  4744. allocated memory will be freed as well.
  4745. </p>
  4746. </descr>
  4747. <seealso>
  4748. <link id="TCustomMemoryStream"/>
  4749. <link id="TStream"/>
  4750. </seealso>
  4751. </element>
  4752. <element name="TMemoryStream.Realloc"> <!-- Function -->
  4753. <short>Sets the new capacity for the memory stream</short>
  4754. <descr>
  4755. <p>
  4756. <var>SetCapacity</var> sets the capacity of the memory stream, i.e.
  4757. does the actual allocation or de-allocation of memory for the stream. It
  4758. allocates at least <var>NewCapacity</var> bytes on the heap, moves the
  4759. current contents of the stream to this location (as much as fits in) and
  4760. returns the new memory location.
  4761. Extra allocated memory is not initialized, i.e. may contain garbage.
  4762. </p>
  4763. <p>
  4764. Memory is allocated in blocks of 4 Kb; this can be changed by overriding
  4765. the method.
  4766. </p>
  4767. </descr>
  4768. <seealso>
  4769. <link id="TMemoryStream.Capacity"/>
  4770. </seealso>
  4771. </element>
  4772. <element name="TMemoryStream.Capacity"> <!-- Property -->
  4773. <short>Current capacity of the stream.</short>
  4774. <descr>
  4775. <p>
  4776. <var>Capacity</var> is the current capacity of the stream, this is the
  4777. current size of the memory allocated to the stream. This is not necessarily
  4778. equal to the size of the stream, but will always be larger than or equal to
  4779. the size of the stream. When writing to the stream, the <link
  4780. id="TMemoryStream.Write"/> sets the capacity to the needed value.
  4781. </p>
  4782. <p>
  4783. If a lot of write operations will occur, performance may be improved by
  4784. setting the capacity to a large value, so less reallocations of memory will
  4785. occur while writing to the stream.
  4786. </p>
  4787. </descr>
  4788. <seealso>
  4789. <link id="TMemoryStream.ReAlloc"/>
  4790. </seealso>
  4791. </element>
  4792. <element name="TMemoryStream.Destroy"> <!-- Destructor -->
  4793. <short>Frees any allocated memory and destroys the memory stream.</short>
  4794. <descr>
  4795. <var>Free</var> clears the memory stream, thus in effect freeing any memory
  4796. allocated for it, and then frees the memory stream.
  4797. </descr>
  4798. </element>
  4799. <element name="TMemoryStream.Clear"> <!-- Procedure -->
  4800. <short>Zeroes the position, capacity and size of the stream.</short>
  4801. <descr>
  4802. <var>Clear</var> sets the position and size to 0, and sets the capacity of
  4803. the stream to 0, thus freeing all memory allocated for the stream.
  4804. </descr>
  4805. <seealso>
  4806. <link id="TStream.Size"/>
  4807. <link id="TStream.Position"/>
  4808. <link id="TCustomMemoryStream.Memory"/>
  4809. </seealso>
  4810. </element>
  4811. <element name="TMemoryStream.LoadFromStream"> <!-- Procedure -->
  4812. <short>Loads the contents of a stream into memory.</short>
  4813. <descr>
  4814. <p>
  4815. <var>LoadFromStream</var> loads the contents of <var>Stream</var> into
  4816. the memorybuffer of the stream. Any previous contents of the memory
  4817. stream are overwritten. Memory is allocated as needed.
  4818. </p>
  4819. <remark>
  4820. <p>
  4821. The <var>LoadFromStream</var> uses the <link id="TStream.Size">Size</link>
  4822. property of <var>Stream</var> to determine how much memory must be
  4823. allocated. Some streams do not allow the stream size to be determined, so
  4824. care must be taken when using this method.
  4825. </p>
  4826. <p>
  4827. This method will work much faster than the use of the <link
  4828. id="TStream.CopyFrom"/> method:
  4829. </p>
  4830. <code>
  4831. Seek(0,soFromBeginning);
  4832. CopyFrom(Stream,Stream.Size);
  4833. </code>
  4834. <p>
  4835. because the <var>CopyFrom</var> method copies the contents in blocks, while
  4836. <var>LoadFromStream</var> reads the contents of the stream as one big block.
  4837. </p>
  4838. </remark>
  4839. </descr>
  4840. <errors>
  4841. If an error occurs when reading from the stream, an <link
  4842. id="EStreamError"/> may occur.
  4843. </errors>
  4844. <seealso>
  4845. <link id="TStream.CopyFrom"/>
  4846. <link id="TMemoryStream.LoadFromFile"/>
  4847. </seealso>
  4848. </element>
  4849. <element name="TMemoryStream.LoadFromFile"> <!-- Procedure -->
  4850. <short>Loads the contents of a file into memory.</short>
  4851. <descr>
  4852. <p>
  4853. <var>LoadFromFile</var> loads the contents of the file with name
  4854. <var>FileName</var> into the memory stream. The current contents of the
  4855. memory stream is replaced by the contents of the file. Memory is allocated
  4856. as needed.
  4857. </p>
  4858. <p>
  4859. The <var>LoadFromFile</var> method simply creates a filestream and then
  4860. calls the <link id="TMemoryStream.LoadFromStream"/> method.
  4861. </p>
  4862. </descr>
  4863. If an error occurs when creating or reading from the stream, an <link
  4864. id="EStreamError"/> may occur.
  4865. <seealso>
  4866. <link id="TMemoryStream.LoadFromStream"/>
  4867. </seealso>
  4868. </element>
  4869. <element name="TMemoryStream.SetSize"> <!-- Procedure -->
  4870. <short>Sets the size for the memory stream.</short>
  4871. <descr>
  4872. <var>SetSize</var> sets the size of the memory stream to <var>NewSize</var>.
  4873. This will set the capacity of the stream to <var>NewSize</var> and correct
  4874. the current position in the stream when needed.
  4875. </descr>
  4876. <seealso>
  4877. <link id="TStream.Position"/>
  4878. <link id="TStream.Size"/>
  4879. </seealso>
  4880. </element>
  4881. <element name="TMemoryStream.Write"> <!-- Function -->
  4882. <short>Writes data to the stream's memory.</short>
  4883. <descr>
  4884. <p>
  4885. <var>Write</var> writes <var>Count</var> bytes from <var>Buffer</var>
  4886. to the stream's memory, starting at the current position in the stream.
  4887. If more memory is needed than currently allocated, more memory will be
  4888. allocated. Any contents in the memory stream at the current position will be
  4889. overwritten. The function returns the number of bytes actually written
  4890. (which should under normal circumstances always equal <var>Count</var>).
  4891. </p>
  4892. <p>
  4893. This method overrides the abstract <link id="TStream.Write"/> method.
  4894. </p>
  4895. </descr>
  4896. <errors>
  4897. If no more memory could be allocated, then an exception will be raised.
  4898. </errors>
  4899. <seealso>
  4900. <link id="TCustomMemoryStream.Read"/>
  4901. </seealso>
  4902. </element>
  4903. <!--
  4904. *********************************************************************
  4905. TStringStream
  4906. *********************************************************************
  4907. -->
  4908. <element name="TStringStream"> <!-- Class -->
  4909. <short>Stream that stores its data in a string.</short>
  4910. <descr>
  4911. <p>
  4912. <var>TStringStream</var> stores its data in an ansistring. The contents of
  4913. this string is available as the
  4914. <link id="TStringStream.DataString">DataString</link> property. It also
  4915. introduces some methods to read or write parts of the stringstream's data
  4916. as a string.
  4917. </p>
  4918. <p>The main purpose of a <var>TStringSTream</var> is to be able to treat a
  4919. string as a stream from which can be read.
  4920. </p>
  4921. </descr>
  4922. <seealso>
  4923. <link id="TStream"/>
  4924. <link id="TStringStream.DataString"/>
  4925. <link id="TStringStream.ReadString"/>
  4926. <link id="TStringStream.WriteString"/>
  4927. </seealso>
  4928. </element>
  4929. <element name="TStringStream.SetSize"> <!-- Procedure -->
  4930. <short>Sets the size of the stream.</short>
  4931. <descr>
  4932. <var>SetSize</var> sets the size of the stream to <var>newsize</var>.
  4933. It does this by setting the size of the ansisting in which the stream
  4934. is stored. <var>NewSize</var> can have any value greater than or equal to
  4935. zero.
  4936. </descr>
  4937. <errors>
  4938. In case there is not enough memory, an exception may be raised.
  4939. </errors>
  4940. <seealso>
  4941. <link id="TStream.Size"/>
  4942. </seealso>
  4943. </element>
  4944. <element name="TStringStream.Create"> <!-- Constructor -->
  4945. <short>Creates a new stringstream and sets its initial content.</short>
  4946. <descr>
  4947. <var>Create</var> creates a new <var>TStringStream</var> instance and
  4948. sets its initial content to <var>Astring</var>. The position is still 0 but
  4949. the size of the stream will equal the length of the string.
  4950. </descr>
  4951. <seealso>
  4952. <link id="TStringStream.DataString"/>
  4953. </seealso>
  4954. </element>
  4955. <element name="TStringStream.Read"> <!-- Function -->
  4956. <short>Reads from the stream.</short>
  4957. <descr>
  4958. <var>Read</var> implements the abstract <link id="TStream.Read">Read</link>
  4959. from <link id="TStream"/>. It tries to read <var>Count</var> bytes into
  4960. <var>Buffer</var>. It returns the number of bytes actually read. The
  4961. position of the stream is advanced with the number of bytes actually read;
  4962. When the reading has reached the end of the <link
  4963. id="TStringSTream.DataString">DataString</link>, then the reading stops,
  4964. i.e. it is not possible to read beyond the end of the datastring.
  4965. </descr>
  4966. <seealso>
  4967. <link id="TStream.Read"/>
  4968. <link id="TStringStream.Write"/>
  4969. <link id="TStringStream.DataString"/>
  4970. </seealso>
  4971. </element>
  4972. <element name="TStringStream.ReadString"> <!-- Function -->
  4973. <short>Reads a string of length <var>Count</var></short>
  4974. <descr>
  4975. <p>
  4976. <var>ReadString</var> reads <var>Count</var> bytes from the stream and
  4977. returns the read bytes as a string. If less than <var>Count</var> bytes
  4978. were available, the string has as many characters as bytes could be read.
  4979. </p>
  4980. <p>The <var>ReadString</var> method is a wrapper around the <link
  4981. id="TStringStream.Read">Read</link> method. It does not do the same stringas
  4982. the <link id="TStream.ReadAnsiString"/> method, which first reads a length
  4983. integer to determine the length of the string to be read.
  4984. </p>
  4985. </descr>
  4986. <seealso>
  4987. <link id="TStringStream.Read"/>
  4988. <link id="TStream.ReadAnsiString"/>
  4989. </seealso>
  4990. </element>
  4991. <element name="TStringStream.Seek"> <!-- Function -->
  4992. <short>Sets the position in the stream.</short>
  4993. <descr>
  4994. <var>Seek</var> implements the abstract <link id="TStream.Seek">Seek</link>
  4995. method.
  4996. </descr>
  4997. <seealso>
  4998. </seealso>
  4999. </element>
  5000. <element name="TStringStream.Write"> <!-- Function -->
  5001. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  5002. method.</short>
  5003. <descr>
  5004. </descr>
  5005. <seealso>
  5006. </seealso>
  5007. </element>
  5008. <element name="TStringStream.WriteString"> <!-- Procedure -->
  5009. <short><var>WriteString</var> writes a string to the stream.</short>
  5010. <descr>
  5011. </descr>
  5012. <seealso>
  5013. </seealso>
  5014. </element>
  5015. <element name="TStringStream.DataString"> <!-- Property -->
  5016. <short>Contains the contents of the stream in string form</short>
  5017. <descr>
  5018. </descr>
  5019. <seealso>
  5020. </seealso>
  5021. </element>
  5022. <!--
  5023. *********************************************************************
  5024. TResourceStream
  5025. *********************************************************************
  5026. -->
  5027. <element name="TResourceStream"> <!-- Class -->
  5028. <short>Stream that reads its data from a resource object.</short>
  5029. <descr>
  5030. </descr>
  5031. <seealso>
  5032. </seealso>
  5033. </element>
  5034. <element name="TResourceStream.Initialize"> <!-- Procedure -->
  5035. <short>Initializes the resource stream.</short>
  5036. <descr>
  5037. </descr>
  5038. <seealso>
  5039. </seealso>
  5040. </element>
  5041. <element name="TResourceStream.Create"> <!-- Constructor -->
  5042. <short>Creates a new instance of a resource stream.</short>
  5043. <descr>
  5044. </descr>
  5045. <seealso>
  5046. </seealso>
  5047. </element>
  5048. <element name="TResourceStream.CreateFromID"> <!-- Constructor -->
  5049. <short>Creates a new instance of a resource stream with resource</short>
  5050. <descr>
  5051. </descr>
  5052. <seealso>
  5053. </seealso>
  5054. </element>
  5055. <element name="TResourceStream.Destroy"> <!-- Destructor -->
  5056. <short>Destroys the instance of the resource stream.</short>
  5057. <descr>
  5058. </descr>
  5059. <seealso>
  5060. </seealso>
  5061. </element>
  5062. <element name="TResourceStream.Write"> <!-- Function -->
  5063. <short><var>Write</var> implements the abstract <link id="TStream.Write"/>
  5064. method.</short>
  5065. <descr>
  5066. </descr>
  5067. <seealso>
  5068. </seealso>
  5069. </element>
  5070. <element name="TValueType"> <!-- Enumeration type -->
  5071. <short>Enumerated type used to identify the kind of streamed property</short>
  5072. <descr>
  5073. </descr>
  5074. <seealso>
  5075. </seealso>
  5076. </element>
  5077. <element name="TValueType.vaNull"> <!-- Enumeration value -->
  5078. <short>Empty value. Ends a list.</short>
  5079. </element>
  5080. <element name="TValueType.vaList"> <!-- Enumeration value -->
  5081. <short>Identifies the start of a list of values</short>
  5082. </element>
  5083. <element name="TValueType.vaInt8"> <!-- Enumeration value -->
  5084. <short>Integer value, 8 bits long.</short>
  5085. </element>
  5086. <element name="TValueType.vaInt16"> <!-- Enumeration value -->
  5087. <short>Integer value, 16 bits long.</short>
  5088. </element>
  5089. <element name="TValueType.vaInt32"> <!-- Enumeration value -->
  5090. <short>Integer value, 32 bits long.</short>
  5091. </element>
  5092. <element name="TValueType.vaExtended"> <!-- Enumeration value -->
  5093. <short>Extended value.</short>
  5094. </element>
  5095. <element name="TValueType.vaString"> <!-- Enumeration value -->
  5096. <short>String value.</short>
  5097. </element>
  5098. <element name="TValueType.vaIdent"> <!-- Enumeration value -->
  5099. <short>Identifier.</short>
  5100. </element>
  5101. <element name="TValueType.vaFalse"> <!-- Enumeration value -->
  5102. <short>Boolean <var>False</var> value.</short>
  5103. </element>
  5104. <element name="TValueType.vaTrue"> <!-- Enumeration value -->
  5105. <short>Boolean <var>True</var> value.</short>
  5106. </element>
  5107. <element name="TValueType.vaBinary"> <!-- Enumeration value -->
  5108. <short>Binary data follows.</short>
  5109. </element>
  5110. <element name="TValueType.vaSet"> <!-- Enumeration value -->
  5111. <short>Set data follows.</short>
  5112. </element>
  5113. <element name="TValueType.vaLString"> <!-- Enumeration value -->
  5114. <short>Ansistring data follows.</short>
  5115. </element>
  5116. <element name="TValueType.vaNil"> <!-- Enumeration value -->
  5117. <short>Nil pointer.</short>
  5118. </element>
  5119. <element name="TValueType.vaCollection"> <!-- Enumeration value -->
  5120. <short>Collection follows</short>
  5121. </element>
  5122. <element name="TValueType.vaSingle"> <!-- Enumeration value -->
  5123. <short>Single type follows.</short>
  5124. </element>
  5125. <element name="TValueType.vaCurrency"> <!-- Enumeration value -->
  5126. <short>Currency value follows</short>
  5127. </element>
  5128. <element name="TValueType.vaDate"> <!-- Enumeration value -->
  5129. <short>Date value follows</short>
  5130. </element>
  5131. <element name="TValueType.vaWString"> <!-- Enumeration value -->
  5132. <short>Widestring value follows.</short>
  5133. </element>
  5134. <element name="TValueType.vaInt64"> <!-- Enumeration value -->
  5135. <short>Integer value, 64 bits long.</short>
  5136. </element>
  5137. <element name="TFilerFlag"> <!-- Enumeration type -->
  5138. <short>Flags used by the <link id="TFiler"/> class</short>
  5139. <descr>
  5140. The <var>TFiler</var> class uses this enumeration type to decide whether the
  5141. streamed object was streamed as part of an inherited form or not.
  5142. </descr>
  5143. <seealso>
  5144. <link id="TFiler"/>
  5145. </seealso>
  5146. </element>
  5147. <element name="TFilerFlag.ffInherited"> <!-- Enumeration value -->
  5148. <short>Stored object is an inherited object.</short>
  5149. </element>
  5150. <element name="TFilerFlag.ffChildPos"> <!-- Enumeration value -->
  5151. <short>The position of the child on it's parent is included.</short>
  5152. </element>
  5153. <element name="TFilerFlag.ffInline"> <!-- Enumeration value -->
  5154. <short>Used for frames.</short>
  5155. </element>
  5156. <element name="TFilerFlags"> <!-- Set type -->
  5157. <short>Set of <link id="TFilerFlag"/></short>
  5158. </element>
  5159. <element name="TReaderProc"> <!-- Procedure type -->
  5160. <short>Reader procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5161. <descr>
  5162. The <var>TReaderProc</var> reader procedure is a callback procedure which
  5163. will be used by a <link id="TPersistent"/> descendent to read user
  5164. properties from a stream during the streaming process. The <var>Reader</var>
  5165. argument is the writer object which can be used read properties from the
  5166. stream.
  5167. </descr>
  5168. <seealso>
  5169. <Link id="TPersistent.DefineProperties"/>
  5170. </seealso>
  5171. </element>
  5172. <element name="TWriterProc"> <!-- Procedure type -->
  5173. <short>Writer procedure used by <link id="TPersistent.DefineProperties">DefineProperties</link></short>
  5174. <descr>
  5175. The <var>TWriterProc</var> writer procedure is a callback procedure which
  5176. will be used by a <link id="TPersistent"/> descendent to write user
  5177. properties from a stream during the streaming process. The <var>Writer</var>
  5178. argument is the writer object which can be used write properties to the
  5179. stream.
  5180. </descr>
  5181. <seealso>
  5182. <Link id="TPersistent.DefineProperties"/>
  5183. </seealso>
  5184. </element>
  5185. <element name="TStreamProc"> <!-- Procedure type -->
  5186. <short>Procedure type used in streaming.</short>
  5187. <descr>
  5188. </descr>
  5189. <seealso>
  5190. </seealso>
  5191. </element>
  5192. <!--
  5193. *********************************************************************
  5194. TFiler
  5195. *********************************************************************
  5196. -->
  5197. <element name="TFiler"> <!-- Class -->
  5198. <short>Class responsible for streaming of components.</short>
  5199. <descr>
  5200. </descr>
  5201. <seealso>
  5202. </seealso>
  5203. </element>
  5204. <element name="TFiler.SetRoot"> <!-- Procedure -->
  5205. <short>Sets the root component which is being streamed.</short>
  5206. <descr>
  5207. Sets the root component.
  5208. The root component is the initial component which is being streamed.
  5209. </descr>
  5210. <seealso>
  5211. </seealso>
  5212. </element>
  5213. <element name="TFiler.DefineProperty"> <!-- Procedure -->
  5214. <short></short>
  5215. <descr>
  5216. </descr>
  5217. <seealso>
  5218. </seealso>
  5219. </element>
  5220. <element name="TFiler.DefineBinaryProperty"> <!-- Procedure -->
  5221. <short></short>
  5222. <descr>
  5223. </descr>
  5224. <seealso>
  5225. </seealso>
  5226. </element>
  5227. <element name="TFiler.Root"> <!-- Property -->
  5228. <short>The root component is the initial component which is being streamed.
  5229. </short>
  5230. <descr>
  5231. The streaming process will stream a component and all the components which
  5232. it owns. The <var>Root</var> component is the component which is initially
  5233. streamed.
  5234. </descr>
  5235. <seealso>
  5236. <link id="TFiler.LookupRoot">LookupRoot</link>
  5237. </seealso>
  5238. </element>
  5239. <element name="TFiler.LookupRoot"> <!-- Property -->
  5240. <short>Component used to look up ancestor components.</short>
  5241. <descr>
  5242. When comparing inherited component's values against parent values, the
  5243. values are compared with the component in <var>LookupRoot</var>. Initially,
  5244. it is set to <link id="TFiler.Root">Root</link>.
  5245. </descr>
  5246. <seealso>
  5247. <link id="TFiler.Root">Root</link>
  5248. </seealso>
  5249. </element>
  5250. <element name="TFiler.Ancestor"> <!-- Property -->
  5251. <short>Ancestor component from which an inherited component is streamed.</short>
  5252. <descr>
  5253. When streaming a component, this is the parent component. Only properties
  5254. that differ from the parent's property value will be streamed.
  5255. </descr>
  5256. <seealso>
  5257. <link id="TFiler.Root">Root</link>
  5258. <link id="TFiler.LookupRoot">LookupRoot</link>
  5259. </seealso>
  5260. </element>
  5261. <element name="TFiler.IgnoreChildren"> <!-- Property -->
  5262. <short>Determines whether children will be streamed as well.</short>
  5263. <descr>
  5264. By default, all children (i.e. owned objects) will also be streamed when
  5265. streaming a component. This property can be used to prevent owned objects
  5266. from being streamed.
  5267. </descr>
  5268. </element>
  5269. <element name="TComponentClass"> <!-- "class of" type -->
  5270. <short>Class of TComponent</short>
  5271. <descr>
  5272. The <var>TComponentClass</var> type is used when constructing
  5273. <link id="TComponent"/> descendent instances and when registering
  5274. components.
  5275. </descr>
  5276. <seealso>
  5277. <link id="TComponent"/>
  5278. </seealso>
  5279. </element>
  5280. <!--
  5281. *********************************************************************
  5282. TAbstractObjectReader
  5283. *********************************************************************
  5284. -->
  5285. <element name="TAbstractObjectReader"> <!-- Class -->
  5286. <short>Abstract driver class to read stored component data.</short>
  5287. <descr>
  5288. <p>
  5289. The Free Pascal streaming mechanism, while compatible with Delphi's
  5290. mechanism, differs from it in the sense that the streaming mechanism uses
  5291. a driver class when streaming components. The <var>TAbstractObjectReader</var>
  5292. class is the base driver class for reading property values from streams.
  5293. It consists entirely of abstract methods, which must be implemented by
  5294. descendent classes.
  5295. </p>
  5296. <p>
  5297. Different streaming mechanisms can be implemented by making a descendent
  5298. from <var>TAbstractObjectReader</var>. The <link id="TBinaryObjectReader"/>
  5299. class is such a descendent class, which streams data in binary (Delphi
  5300. compatible) format.
  5301. </p>
  5302. <p>
  5303. All methods described in this class, mustbe implemented by descendent
  5304. classes.
  5305. </p>
  5306. </descr>
  5307. <seealso>
  5308. <link id="TBinaryObjectReader"/>
  5309. </seealso>
  5310. </element>
  5311. <element name="TAbstractObjectReader.NextValue"> <!-- Function -->
  5312. <short>Returns the type of the next value in the stream.</short>
  5313. <descr>
  5314. <p>
  5315. This function should return the type of the next value in the stream,
  5316. but should not read it, i.e. the stream position should not be altered by
  5317. this method. This is used to 'peek' in the stream what value is next.
  5318. </p>
  5319. </descr>
  5320. <seealso>
  5321. <link id="TAbstractObjectReader.ReadValue"/>
  5322. </seealso>
  5323. </element>
  5324. <element name="TAbstractObjectReader.ReadValue"> <!-- Function -->
  5325. <short>Reads the type of the next value.</short>
  5326. <descr>
  5327. This function returns the type of the next value in the stream and reads it.
  5328. i.e. after the call to this method, the stream is positioned to read the
  5329. value of the type returned by this function.
  5330. </descr>
  5331. <seealso>
  5332. <link id="TAbstractObjectReader.ReadValue"/>
  5333. </seealso>
  5334. </element>
  5335. <element name="TAbstractObjectReader.BeginRootComponent"> <!-- Procedure -->
  5336. <short>Starts the reading of the root component.</short>
  5337. <descr>
  5338. This function can be used to initialize the driver class for reading a
  5339. component. It is called once at the beginning of the read process, and
  5340. is immediatly followed by a call to <link
  5341. id="TAbstractObjectReader.BeginComponent">BeginComponent</link>.
  5342. </descr>
  5343. <seealso>
  5344. <link id="TAbstractObjectReader.BeginComponent"/>
  5345. </seealso>
  5346. </element>
  5347. <element name="TAbstractObjectReader.BeginComponent"> <!-- Procedure -->
  5348. <short>Marks the reading of a new component. </short>
  5349. <descr>
  5350. <p>
  5351. This method is called when the streaming process wants to start reading a
  5352. new component.
  5353. </p>
  5354. <p>
  5355. Descendent classes should override this method to read the start of a
  5356. component new component definition and return the needed arguments.
  5357. <var>Flags</var> should be filled with any flags that were found at the
  5358. component definition, as well as <var>AChildPos</var>. The
  5359. <var>CompClassName</var> should be filled with the class name of the
  5360. streamed component, and the <var>CompName</var> argument should be filled
  5361. with the name of the component.
  5362. </p>
  5363. </descr>
  5364. <seealso>
  5365. <link id="TAbstractObjectReader.BeginRootComponent"/>
  5366. <link id="TAbstractObjectReader.BeginProperty"/>
  5367. </seealso>
  5368. </element>
  5369. <element name="TAbstractObjectReader.BeginProperty"> <!-- Function -->
  5370. <short>Marks the reading of a property value.</short>
  5371. <descr>
  5372. <var>BeginProperty</var> is called by the streaming system when it wants to
  5373. read a new property. The return value of the function is the name of the
  5374. property which can be read from the stream.
  5375. </descr>
  5376. <seealso>
  5377. <link id="TAbstractObjectReader.BeginComponent"/>
  5378. </seealso>
  5379. </element>
  5380. <element name="TAbstractObjectReader.ReadBinary"> <!-- Procedure -->
  5381. <short>Read binary data from the stream.</short>
  5382. <descr>
  5383. <var>ReadBinary</var> is called when binary data should be read from the
  5384. stream
  5385. (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5386. returned a valuetype of <var>vaBinary</var>). The data should be stored in the <var>DestData</var> memory stream
  5387. by descendent classes.
  5388. </descr>
  5389. <seealso>
  5390. <link id="TAbstractObjectReader.ReadFloat"/>
  5391. <link id="TAbstractObjectReader.ReadDate"/>
  5392. <link id="TAbstractObjectReader.ReadSingle"/>
  5393. <link id="TAbstractObjectReader.ReadIdent"/>
  5394. <link id="TAbstractObjectReader.ReadInt8"/>
  5395. <link id="TAbstractObjectReader.ReadInt16"/>
  5396. <link id="TAbstractObjectReader.ReadInt32"/>
  5397. <link id="TAbstractObjectReader.ReadInt64"/>
  5398. <link id="TabstractObjectReader.ReadSet"/>
  5399. <link id="TabstractObjectReader.ReadStr"/>
  5400. <link id="TabstractObjectReader.ReadString"/>
  5401. </seealso>
  5402. </element>
  5403. <element name="TAbstractObjectReader.ReadFloat"> <!-- Function -->
  5404. <short>Read a float value from the stream.</short>
  5405. <descr>
  5406. <var>ReadFloat</var> is called by the streaming system when it wants to read
  5407. a float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5408. returned a valuetype of <var>vaExtended</var>). The return value should be the value of the float.
  5409. </descr>
  5410. <seealso>
  5411. <link id="TAbstractObjectReader.ReadFloat"/>
  5412. <link id="TAbstractObjectReader.ReadDate"/>
  5413. <link id="TAbstractObjectReader.ReadSingle"/>
  5414. <link id="TAbstractObjectReader.ReadIdent"/>
  5415. <link id="TAbstractObjectReader.ReadInt8"/>
  5416. <link id="TAbstractObjectReader.ReadInt16"/>
  5417. <link id="TAbstractObjectReader.ReadInt32"/>
  5418. <link id="TAbstractObjectReader.ReadInt64"/>
  5419. <link id="TabstractObjectReader.ReadSet"/>
  5420. <link id="TabstractObjectReader.ReadStr"/>
  5421. <link id="TabstractObjectReader.ReadString"/>
  5422. </seealso>
  5423. </element>
  5424. <element name="TAbstractObjectReader.ReadSingle"> <!-- Function -->
  5425. <short>Read a single (real-type) value from the stream.</short>
  5426. <descr>
  5427. <var>ReadSingle</var> is called by the streaming system when it wants to read
  5428. a single-type float from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5429. returned a valuetype of <var>vaSingle</var>). The return value should be the value of
  5430. the float.
  5431. </descr>
  5432. <seealso>
  5433. <link id="TAbstractObjectReader.ReadFloat"/>
  5434. <link id="TAbstractObjectReader.ReadDate"/>
  5435. <link id="TAbstractObjectReader.ReadSingle"/>
  5436. <link id="TAbstractObjectReader.ReadIdent"/>
  5437. <link id="TAbstractObjectReader.ReadInt8"/>
  5438. <link id="TAbstractObjectReader.ReadInt16"/>
  5439. <link id="TAbstractObjectReader.ReadInt32"/>
  5440. <link id="TAbstractObjectReader.ReadInt64"/>
  5441. <link id="TabstractObjectReader.ReadSet"/>
  5442. <link id="TabstractObjectReader.ReadStr"/>
  5443. <link id="TabstractObjectReader.ReadString"/>
  5444. </seealso>
  5445. </element>
  5446. <element name="TAbstractObjectReader.ReadDate"> <!-- Function -->
  5447. <short>Read a date value from the stream.</short>
  5448. <descr>
  5449. <var>ReadDate</var> is called by the streaming system when it wants to read
  5450. a date/time value from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5451. returned a valuetype of <var>vaDate</var>). The return value should be the date/time
  5452. value. (This value can be stored as a float, since <var>TDateTime</var> is
  5453. nothing but a float.)
  5454. </descr>
  5455. <seealso>
  5456. <link id="TAbstractObjectReader.ReadFloat"/>
  5457. <link id="TAbstractObjectReader.ReadSingle"/>
  5458. <link id="TAbstractObjectReader.ReadIdent"/>
  5459. <link id="TAbstractObjectReader.ReadInt8"/>
  5460. <link id="TAbstractObjectReader.ReadInt16"/>
  5461. <link id="TAbstractObjectReader.ReadInt32"/>
  5462. <link id="TAbstractObjectReader.ReadInt64"/>
  5463. <link id="TabstractObjectReader.ReadSet"/>
  5464. <link id="TabstractObjectReader.ReadStr"/>
  5465. <link id="TabstractObjectReader.ReadString"/>
  5466. </seealso>
  5467. </element>
  5468. <element name="TAbstractObjectReader.ReadIdent"> <!-- Function -->
  5469. <short>Read an identifier from the stream.</short>
  5470. <descr>
  5471. <p>
  5472. <var>ReadIdent</var> is called by the streaming system if it expects to read
  5473. an identifier of type <var>ValueType</var> from the stream after a call to
  5474. <link id="TAbstractObjectReader.Readvalue">ReadValue</link> returned
  5475. <var>vaIdent</var>. The identifier
  5476. should be returned as a string. Note that in some cases the identifier does
  5477. not actually have to be in the stream;
  5478. </p>
  5479. <table>
  5480. <tr><td>ValueType</td><td>Expected value</td></tr>
  5481. <tr><td>vaIdent</td><td>Read from stream.</td></tr>
  5482. <tr><td>vaNil</td><td>'Nil'. This does not have to be read from the stream.</td></tr>
  5483. <tr><td>vaFalse</td><td>'False'. This does not have to be read from the stream.</td></tr>
  5484. <tr><td>vaTrue</td><td>'True'. This does not have to be read from the stream.</td></tr>
  5485. <tr><td>vaNull</td><td>'Null'. This does not have to be read from the stream.</td></tr>
  5486. </table>
  5487. </descr>
  5488. <seealso>
  5489. <link id="TAbstractObjectReader.ReadFloat"/>
  5490. <link id="TAbstractObjectReader.ReadDate"/>
  5491. <link id="TAbstractObjectReader.ReadSingle"/>
  5492. <link id="TAbstractObjectReader.ReadInt8"/>
  5493. <link id="TAbstractObjectReader.ReadInt16"/>
  5494. <link id="TAbstractObjectReader.ReadInt32"/>
  5495. <link id="TAbstractObjectReader.ReadInt64"/>
  5496. <link id="TabstractObjectReader.ReadSet"/>
  5497. <link id="TabstractObjectReader.ReadStr"/>
  5498. <link id="TabstractObjectReader.ReadString"/>
  5499. </seealso>
  5500. </element>
  5501. <element name="TAbstractObjectReader.ReadInt8"> <!-- Function -->
  5502. <short>Read an 8-bit integer from the stream.</short>
  5503. <descr>
  5504. <var>ReadInt8</var> is called by the streaming process if it expects to
  5505. read an integer value with a size of 8 bits (1 byte) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5506. returned a valuetype of <var>vaInt8</var>).
  5507. The return value is the value if the integer. Note that the size of the
  5508. value in the stream does not actually have to be 1 byte.
  5509. </descr>
  5510. <seealso>
  5511. <link id="TAbstractObjectReader.ReadFloat"/>
  5512. <link id="TAbstractObjectReader.ReadDate"/>
  5513. <link id="TAbstractObjectReader.ReadSingle"/>
  5514. <link id="TAbstractObjectReader.ReadIdent"/>
  5515. <link id="TAbstractObjectReader.ReadInt16"/>
  5516. <link id="TAbstractObjectReader.ReadInt32"/>
  5517. <link id="TAbstractObjectReader.ReadInt64"/>
  5518. <link id="TabstractObjectReader.ReadSet"/>
  5519. <link id="TabstractObjectReader.ReadStr"/>
  5520. <link id="TabstractObjectReader.ReadString"/>
  5521. </seealso>
  5522. </element>
  5523. <element name="TAbstractObjectReader.ReadInt16"> <!-- Function -->
  5524. <short>Read a 16-bit integer from the stream.</short>
  5525. <descr>
  5526. <var>ReadInt16</var> is called by the streaming process if it expects to
  5527. read an integer value with a size of 16 bits (2 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5528. returned a valuetype of <var>vaInt16</var>).
  5529. The return value is the value if the integer. Note that the size of the
  5530. value in the stream does not actually have to be 2 bytes.
  5531. </descr>
  5532. <seealso>
  5533. <link id="TAbstractObjectReader.ReadFloat"/>
  5534. <link id="TAbstractObjectReader.ReadDate"/>
  5535. <link id="TAbstractObjectReader.ReadSingle"/>
  5536. <link id="TAbstractObjectReader.ReadIdent"/>
  5537. <link id="TAbstractObjectReader.ReadInt8"/>
  5538. <link id="TAbstractObjectReader.ReadInt32"/>
  5539. <link id="TAbstractObjectReader.ReadInt64"/>
  5540. <link id="TabstractObjectReader.ReadSet"/>
  5541. <link id="TabstractObjectReader.ReadStr"/>
  5542. <link id="TabstractObjectReader.ReadString"/>
  5543. </seealso>
  5544. </element>
  5545. <element name="TAbstractObjectReader.ReadInt32"> <!-- Function -->
  5546. <short>Read a 32-bit integer from the stream.</short>
  5547. <descr>
  5548. <var>ReadInt32</var> is called by the streaming process if it expects to
  5549. read an integer value with a size of 32 bits (4 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5550. returned a valuetype of <var>vaInt32</var>).
  5551. The return value is the value of the integer. Note that the size of the
  5552. value in the stream does not actually have to be 4 bytes.
  5553. </descr>
  5554. <seealso>
  5555. <link id="TAbstractObjectReader.ReadFloat"/>
  5556. <link id="TAbstractObjectReader.ReadDate"/>
  5557. <link id="TAbstractObjectReader.ReadSingle"/>
  5558. <link id="TAbstractObjectReader.ReadIdent"/>
  5559. <link id="TAbstractObjectReader.ReadInt8"/>
  5560. <link id="TAbstractObjectReader.ReadInt16"/>
  5561. <link id="TAbstractObjectReader.ReadInt64"/>
  5562. <link id="TabstractObjectReader.ReadSet"/>
  5563. <link id="TabstractObjectReader.ReadStr"/>
  5564. <link id="TabstractObjectReader.ReadString"/>
  5565. </seealso>
  5566. </element>
  5567. <element name="TAbstractObjectReader.ReadInt64"> <!-- Function -->
  5568. <short>Read a 64-bit integer from the stream.</short>
  5569. <descr>
  5570. <var>ReadInt64</var> is called by the streaming process if it expects to
  5571. read an int64 value with a size of 64 bits (8 bytes) from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5572. returned a valuetype of <var>vaInt64</var>).
  5573. The return value is the value if the integer. Note that the size of the
  5574. value in the stream does not actually have to be 8 bytes.
  5575. </descr>
  5576. <seealso>
  5577. <link id="TAbstractObjectReader.ReadFloat"/>
  5578. <link id="TAbstractObjectReader.ReadDate"/>
  5579. <link id="TAbstractObjectReader.ReadSingle"/>
  5580. <link id="TAbstractObjectReader.ReadIdent"/>
  5581. <link id="TAbstractObjectReader.ReadInt8"/>
  5582. <link id="TAbstractObjectReader.ReadInt16"/>
  5583. <link id="TAbstractObjectReader.ReadInt32"/>
  5584. <link id="TabstractObjectReader.ReadSet"/>
  5585. <link id="TabstractObjectReader.ReadStr"/>
  5586. <link id="TabstractObjectReader.ReadString"/>
  5587. </seealso>
  5588. </element>
  5589. <element name="TAbstractObjectReader.ReadSet"> <!-- Function -->
  5590. <short>Reads a set from the stream.</short>
  5591. <descr>
  5592. <p>
  5593. This method is called by the streaming system if it expects to read a
  5594. set from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5595. returned a valuetype of <var>vaSet</var>). The return value is the contents of the
  5596. set, encoded in a bitmask the following way:
  5597. </p>
  5598. <p>
  5599. For each (enumerated) value in the set, the bit corresponding to the
  5600. ordinal value of the enumerated value should be set. i.e.
  5601. as <var>1 shl ord(value)</var>.
  5602. </p>
  5603. </descr>
  5604. <seealso>
  5605. <link id="TAbstractObjectReader.ReadFloat"/>
  5606. <link id="TAbstractObjectReader.ReadDate"/>
  5607. <link id="TAbstractObjectReader.ReadSingle"/>
  5608. <link id="TAbstractObjectReader.ReadIdent"/>
  5609. <link id="TAbstractObjectReader.ReadInt8"/>
  5610. <link id="TAbstractObjectReader.ReadInt16"/>
  5611. <link id="TAbstractObjectReader.ReadInt32"/>
  5612. <link id="TAbstractObjectReader.ReadInt64"/>
  5613. <link id="TabstractObjectReader.ReadStr"/>
  5614. <link id="TabstractObjectReader.ReadString"/>
  5615. </seealso>
  5616. </element>
  5617. <element name="TAbstractObjectReader.ReadStr"> <!-- Function -->
  5618. <short>Read a shortstring from the stream</short>
  5619. <descr>
  5620. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5621. shortstring from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5622. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5623. <var>vaString</var>). The return value is the string.
  5624. </descr>
  5625. <seealso>
  5626. <link id="TAbstractObjectReader.ReadFloat"/>
  5627. <link id="TAbstractObjectReader.ReadDate"/>
  5628. <link id="TAbstractObjectReader.ReadSingle"/>
  5629. <link id="TAbstractObjectReader.ReadIdent"/>
  5630. <link id="TAbstractObjectReader.ReadInt8"/>
  5631. <link id="TAbstractObjectReader.ReadInt16"/>
  5632. <link id="TAbstractObjectReader.ReadInt32"/>
  5633. <link id="TAbstractObjectReader.ReadInt64"/>
  5634. <link id="TabstractObjectReader.ReadSet"/>
  5635. <link id="TabstractObjectReader.ReadString"/>
  5636. </seealso>
  5637. </element>
  5638. <element name="TAbstractObjectReader.ReadString"> <!-- Function -->
  5639. <short>Read a string of type <var>StringType</var> from the stream.</short>
  5640. <descr>
  5641. <var>ReadStr</var> is called by the streaming system if it expects to read a
  5642. string from the stream (i.e. after <link id="TAbstractObjectReader.ReadValue">ReadValue</link>
  5643. returned a valuetype of <var>vaLString</var>,<var>vaWstring</var> or
  5644. <var>vaString</var>). The return value is the string.
  5645. </descr>
  5646. <seealso>
  5647. <link id="TAbstractObjectReader.ReadFloat"/>
  5648. <link id="TAbstractObjectReader.ReadDate"/>
  5649. <link id="TAbstractObjectReader.ReadSingle"/>
  5650. <link id="TAbstractObjectReader.ReadIdent"/>
  5651. <link id="TAbstractObjectReader.ReadInt8"/>
  5652. <link id="TAbstractObjectReader.ReadInt16"/>
  5653. <link id="TAbstractObjectReader.ReadInt32"/>
  5654. <link id="TAbstractObjectReader.ReadInt64"/>
  5655. <link id="TabstractObjectReader.ReadSet"/>
  5656. <link id="TabstractObjectReader.ReadStr"/>
  5657. </seealso>
  5658. </element>
  5659. <element name="TAbstractObjectReader.SkipComponent"> <!-- Procedure -->
  5660. <short>Skip till the end of the component.</short>
  5661. <descr>
  5662. This method is used to skip the entire declaration of a component in the
  5663. stream. Each descendent of <var>TAbstractObjectReader</var> should implement
  5664. this in a way which is optimal for the implemented stream format.
  5665. </descr>
  5666. <seealso>
  5667. <link id="TAbstractObjectReader.BeginComponent"/>
  5668. <link id="TAbstractObjectReader.SkipValue"/>
  5669. </seealso>
  5670. </element>
  5671. <element name="TAbstractObjectReader.SkipValue"> <!-- Procedure -->
  5672. <short>Skip the current value.</short>
  5673. <descr>
  5674. <var>SkipValue</var> should be used when skipping a value in the stream;
  5675. The method should determine the type of the value which should be skipped
  5676. by itself, if this is necessary.
  5677. </descr>
  5678. <seealso>
  5679. <link id="TAbstractObjectReader.SkipComponent"/>
  5680. </seealso>
  5681. </element>
  5682. <!--
  5683. *********************************************************************
  5684. TBinaryObjectReader
  5685. *********************************************************************
  5686. -->
  5687. <element name="TBinaryObjectReader"> <!-- Class -->
  5688. <short>Driver class descendent which reads component data stored in binary format.</short>
  5689. <descr>
  5690. The <var>TBinaryObjectReader</var> class reads component data stored in
  5691. binary form in a file. For this, it overrides or implements all abstract
  5692. methods from <link id="TAbstractObjectReader"/>. No new functionality is
  5693. added by this class, it is a driver class for the streaming system.
  5694. </descr>
  5695. <seealso>
  5696. <link id="TAbstractObjectReader"/>
  5697. <link id="TBinaryObjectWriter"/>
  5698. </seealso>
  5699. </element>
  5700. <element name="TBinaryObjectReader.Create"> <!-- Constructor -->
  5701. <short>Creates a new binary data reader instance.</short>
  5702. <descr>
  5703. <var>Create</var> instantiates a new binary component data reader. The
  5704. <var>Stream</var> stream is the stream from which data will be read. The
  5705. <var>BufSize</var> argument is the size of the internal buffer that will be
  5706. used by the reader. This can be used to optimize the reading process.
  5707. </descr>
  5708. <seealso>
  5709. <link id="TAbstractObjectReader"/>
  5710. </seealso>
  5711. </element>
  5712. <element name="TBinaryObjectReader.Destroy"> <!-- Destructor -->
  5713. <short>Destroys the binary data reader.</short>
  5714. <descr>
  5715. <var>Destroy</var> frees the buffer allocated when the instance was created.
  5716. It also positions the stream on the last used position in the stream (the
  5717. buffering may cause the reader to read more bytes than were actually used.)
  5718. </descr>
  5719. <seealso>
  5720. <link id="TBinaryObjectReader.Create"/>
  5721. </seealso>
  5722. </element>
  5723. <element name="TFindMethodEvent"> <!-- Procedure type -->
  5724. <short>Occurs when the streaming process needs to locate a method</short>
  5725. <descr>
  5726. If a <link id="TReader"/> instance needs to locate a method and it doesn't
  5727. find it in the streamed form, then the <link
  5728. id="TReader.OnFindMethod">OnFindMethod</link> event handler will be called,
  5729. if one is installed. This event can be assigned in order to use different
  5730. locating methods. If a method is found, then its address should be returned
  5731. in <var>Address</var>. The <var>Error</var> should be set to <var>True</var>
  5732. if the reader should raise an exception after the event was handled. If it
  5733. is set to <var>False</var> no exception will be raised, even if no method
  5734. was found. On entry, <var>Error</var> will be set to <var>True</var>.
  5735. </descr>
  5736. </element>
  5737. <element name="TSetNameEvent"> <!-- Procedure type -->
  5738. <short>Occurs when the reader needs to set a component's name.</short>
  5739. <descr>
  5740. </descr>
  5741. <seealso>
  5742. </seealso>
  5743. </element>
  5744. <element name="TReferenceNameEvent"> <!-- Procedure type -->
  5745. <short>Occurs when a named object needs to be looked up.</short>
  5746. <descr>
  5747. </descr>
  5748. <seealso>
  5749. </seealso>
  5750. </element>
  5751. <element name="TAncestorNotFoundEvent"> <!-- Procedure type -->
  5752. <short>This event occurs when an ancestor component cannot be found.</short>
  5753. <descr>
  5754. </descr>
  5755. <seealso>
  5756. </seealso>
  5757. </element>
  5758. <element name="TReadComponentsProc"> <!-- Procedure type -->
  5759. <short>Callback type when reading a component from a stream</short>
  5760. <descr>
  5761. </descr>
  5762. <seealso>
  5763. </seealso>
  5764. </element>
  5765. <element name="TReaderError"> <!-- Procedure type -->
  5766. <short>Event handler type, called when an error occurs during the streaming.</short>
  5767. <descr>
  5768. </descr>
  5769. <seealso>
  5770. </seealso>
  5771. </element>
  5772. <element name="TFindComponentClassEvent"> <!-- Procedure type -->
  5773. <short>Event handler type, occurs when a component class pointer must be
  5774. found when reading a component from a stream.</short>
  5775. <descr>
  5776. </descr>
  5777. <seealso>
  5778. </seealso>
  5779. </element>
  5780. <element name="TCreateComponentEvent"> <!-- Procedure type -->
  5781. <short>Event handler type, occurs when a component instance must be created
  5782. when a component is read from a stream.</short>
  5783. <descr>
  5784. </descr>
  5785. <seealso>
  5786. </seealso>
  5787. </element>
  5788. <!--
  5789. *********************************************************************
  5790. TReader
  5791. *********************************************************************
  5792. -->
  5793. <element name="TReader"> <!-- Class -->
  5794. <short>Generic reader object which reads component data from any given source.</short>
  5795. <descr>
  5796. The <var>TReader</var> class is a reader class that implements generic
  5797. component streaming capabilities, independent of the format of the data in
  5798. the stream. It uses a driver class <link id="TAbstractObjectReader"/> to
  5799. do the actual reading of data. The interface of the <var>TReader</var> class
  5800. should be identical to the interface in Delphi.
  5801. </descr>
  5802. <seealso>
  5803. <link id="TFiler"/>
  5804. <link id="TWriter"/>
  5805. <link id="TAbstractObjectReader"/>
  5806. </seealso>
  5807. </element>
  5808. <element name="TReader.Error"> <!-- Function -->
  5809. <short>Calls an installed error handler and passes it <var>Message</var></short>
  5810. <descr>
  5811. <p>
  5812. <var>Error</var> returns <var>False</var> if no <link id="TReader.OnError"/>
  5813. handler is installed. If one is installed, then it will be called, passing
  5814. the reader instance, message, and function return value as parameters.
  5815. </p>
  5816. <p>
  5817. If the function result <var>False</var>, i.e. when there is no handler
  5818. installed or the handler restured <var>False</var>, then the calling code
  5819. will raise an exception.
  5820. </p>
  5821. </descr>
  5822. <seealso>
  5823. <link id="TReader.FindMethod"/>
  5824. </seealso>
  5825. </element>
  5826. <element name="TReader.FindMethod"> <!-- Function -->
  5827. <short>Return the address of a published method.</short>
  5828. <descr>
  5829. <p>
  5830. <var>FindMethod</var> will search for the method in <var>ARoot</var>. If it
  5831. isn't found there, then it will call a <var>OnFindMethod</var> handler, if
  5832. one is installed, passing it the method name <var>AMethodName</var>, the
  5833. result pointer and a variable which says whether an exception should be
  5834. raised if no method with name <var>AMethodName</var> is found.
  5835. </p>
  5836. <p>
  5837. If the method cannot be found and the <link
  5838. id="TReader.OnFindMethod">OnFindMethod</link> returns <var>True</var>, then
  5839. an exception will be raised.
  5840. </p>
  5841. </descr>
  5842. <seealso>
  5843. <link id="TReader.OnFindMethod"/>
  5844. <link id="TFindMethodEvent"/>
  5845. </seealso>
  5846. </element>
  5847. <element name="TReader.ReadProperty"> <!-- Procedure -->
  5848. <short>Read and process a property name</short>
  5849. <descr>
  5850. </descr>
  5851. <seealso>
  5852. </seealso>
  5853. </element>
  5854. <element name="TReader.ReadPropValue"> <!-- Procedure -->
  5855. <short>Reads a property value for <var>PropInfo</var>.</short>
  5856. <descr>
  5857. </descr>
  5858. <seealso>
  5859. </seealso>
  5860. </element>
  5861. <element name="TReader.PropertyError"> <!-- Procedure -->
  5862. <short>Skips a property value and raises an exception.</short>
  5863. <descr>
  5864. </descr>
  5865. <seealso>
  5866. </seealso>
  5867. </element>
  5868. <element name="TReader.ReadData"> <!-- Procedure -->
  5869. <short>Reads the components data after it has been created.</short>
  5870. <descr>
  5871. </descr>
  5872. <seealso>
  5873. </seealso>
  5874. </element>
  5875. <element name="TReader.PropName"> <!-- Property -->
  5876. <short>Name of the property being read at this moment.</short>
  5877. <descr>
  5878. </descr>
  5879. <seealso>
  5880. </seealso>
  5881. </element>
  5882. <element name="TReader.CanHandleExceptions"> <!-- Property -->
  5883. <short>Indicates whether the reader is handling exceptions at this stage.</short>
  5884. <descr>
  5885. </descr>
  5886. <seealso>
  5887. </seealso>
  5888. </element>
  5889. <element name="TReader.Create"> <!-- Constructor -->
  5890. <short>Creates a new reader class</short>
  5891. <descr>
  5892. </descr>
  5893. <seealso>
  5894. </seealso>
  5895. </element>
  5896. <element name="TReader.Destroy"> <!-- Destructor -->
  5897. <short>Destroys a reader class.</short>
  5898. <descr>
  5899. </descr>
  5900. <seealso>
  5901. </seealso>
  5902. </element>
  5903. <element name="TReader.BeginReferences"> <!-- Procedure -->
  5904. <short>Initializes the component referencing mechanism.</short>
  5905. <descr>
  5906. </descr>
  5907. <seealso>
  5908. </seealso>
  5909. </element>
  5910. <element name="TReader.CheckValue"> <!-- Procedure -->
  5911. <short>Raises an exception if the next value in the stream is not of type
  5912. <var>Value</var></short>
  5913. <descr>
  5914. </descr>
  5915. <seealso>
  5916. </seealso>
  5917. </element>
  5918. <element name="TReader.DefineProperty"> <!-- Procedure -->
  5919. <short>Reads a user-defined property from the stream.</short>
  5920. <descr>
  5921. </descr>
  5922. <seealso>
  5923. </seealso>
  5924. </element>
  5925. <element name="TReader.DefineBinaryProperty"> <!-- Procedure -->
  5926. <short>Reads a user-defined binary property from the stream.</short>
  5927. <descr>
  5928. </descr>
  5929. <seealso>
  5930. </seealso>
  5931. </element>
  5932. <element name="TReader.EndOfList"> <!-- Function -->
  5933. <short>Returns true if the stream contains an end-of-list marker.</short>
  5934. <descr>
  5935. </descr>
  5936. <seealso>
  5937. </seealso>
  5938. </element>
  5939. <element name="TReader.EndReferences"> <!-- Procedure -->
  5940. <short>Finalizes the component referencing mechanism.</short>
  5941. <descr>
  5942. </descr>
  5943. <seealso>
  5944. </seealso>
  5945. </element>
  5946. <element name="TReader.FixupReferences"> <!-- Procedure -->
  5947. <short>Tries to resolve all unresolved component references.</short>
  5948. <descr>
  5949. </descr>
  5950. <seealso>
  5951. </seealso>
  5952. </element>
  5953. <element name="TReader.NextValue"> <!-- Function -->
  5954. <short>Returns the type of the next value.</short>
  5955. <descr>
  5956. </descr>
  5957. <seealso>
  5958. </seealso>
  5959. </element>
  5960. <element name="TReader.ReadBoolean"> <!-- Function -->
  5961. <short>Reads a boolean from the stream.</short>
  5962. <descr>
  5963. </descr>
  5964. <seealso>
  5965. </seealso>
  5966. </element>
  5967. <element name="TReader.ReadChar"> <!-- Function -->
  5968. <short>Reads a character from the stream.</short>
  5969. <descr>
  5970. </descr>
  5971. <seealso>
  5972. </seealso>
  5973. </element>
  5974. <element name="TReader.ReadCollection"> <!-- Procedure -->
  5975. <short>Reads a collection from the stream.</short>
  5976. <descr>
  5977. </descr>
  5978. <seealso>
  5979. </seealso>
  5980. </element>
  5981. <element name="TReader.ReadComponent"> <!-- Function -->
  5982. <short>Starts reading a component from the stream.</short>
  5983. <descr>
  5984. </descr>
  5985. <seealso>
  5986. </seealso>
  5987. </element>
  5988. <element name="TReader.ReadComponents"> <!-- Procedure -->
  5989. <short>Starts reading child components from the stream.</short>
  5990. <descr>
  5991. </descr>
  5992. <seealso>
  5993. </seealso>
  5994. </element>
  5995. <element name="TReader.ReadFloat"> <!-- Function -->
  5996. <short>Reads a float from the stream.</short>
  5997. <descr>
  5998. </descr>
  5999. <seealso>
  6000. </seealso>
  6001. </element>
  6002. <element name="TReader.ReadSingle"> <!-- Function -->
  6003. <short>Reads a single-type real from the stream.</short>
  6004. <descr>
  6005. </descr>
  6006. <seealso>
  6007. </seealso>
  6008. </element>
  6009. <element name="TReader.ReadDate"> <!-- Function -->
  6010. <short>Reads a date from the stream</short>
  6011. <descr>
  6012. </descr>
  6013. <seealso>
  6014. </seealso>
  6015. </element>
  6016. <element name="TReader.ReadIdent"> <!-- Function -->
  6017. <short>Reads an identifier from the stream.</short>
  6018. <descr>
  6019. </descr>
  6020. <seealso>
  6021. </seealso>
  6022. </element>
  6023. <element name="TReader.ReadInteger"> <!-- Function -->
  6024. <short>Reads an integer from the stream</short>
  6025. <descr>
  6026. </descr>
  6027. <seealso>
  6028. </seealso>
  6029. </element>
  6030. <element name="TReader.ReadInt64"> <!-- Function -->
  6031. <short>Reads a 64-bit integer from the stream.</short>
  6032. <descr>
  6033. </descr>
  6034. <seealso>
  6035. </seealso>
  6036. </element>
  6037. <element name="TReader.ReadListBegin"> <!-- Procedure -->
  6038. <short>Checks for the beginning of a list.</short>
  6039. <descr>
  6040. </descr>
  6041. <seealso>
  6042. </seealso>
  6043. </element>
  6044. <element name="TReader.ReadListEnd"> <!-- Procedure -->
  6045. <short>Checks for the end of a list.</short>
  6046. <descr>
  6047. </descr>
  6048. <seealso>
  6049. </seealso>
  6050. </element>
  6051. <element name="TReader.ReadRootComponent"> <!-- Function -->
  6052. <short>Starts reading a root component.</short>
  6053. <descr>
  6054. </descr>
  6055. <seealso>
  6056. </seealso>
  6057. </element>
  6058. <element name="TReader.ReadString"> <!-- Function -->
  6059. <short>Reads a string from the stream.</short>
  6060. <descr>
  6061. </descr>
  6062. <seealso>
  6063. </seealso>
  6064. </element>
  6065. <element name="TReader.ReadValue"> <!-- Function -->
  6066. <short>Reads the next value type from the stream.</short>
  6067. <descr>
  6068. </descr>
  6069. <seealso>
  6070. </seealso>
  6071. </element>
  6072. <element name="TReader.CopyValue"> <!-- Procedure -->
  6073. <short>Copy a value to a writer.</short>
  6074. <descr>
  6075. </descr>
  6076. <seealso>
  6077. </seealso>
  6078. </element>
  6079. <element name="TReader.Owner"> <!-- Property -->
  6080. <short>Owner of the component being read</short>
  6081. <descr>
  6082. </descr>
  6083. <seealso>
  6084. </seealso>
  6085. </element>
  6086. <element name="TReader.Parent"> <!-- Property -->
  6087. <short>Parent of the component being read.</short>
  6088. <descr>
  6089. </descr>
  6090. <seealso>
  6091. </seealso>
  6092. </element>
  6093. <element name="TReader.Driver"> <!-- Property -->
  6094. <short>The driver in use for streaming the data.</short>
  6095. <descr>
  6096. </descr>
  6097. <seealso>
  6098. </seealso>
  6099. </element>
  6100. <element name="TReader.OnError"> <!-- Property -->
  6101. <short>Handler called when an error occurs.</short>
  6102. <descr>
  6103. </descr>
  6104. <seealso>
  6105. </seealso>
  6106. </element>
  6107. <element name="TReader.OnFindMethod"> <!-- Property -->
  6108. <short>Handler to find or change a method address.</short>
  6109. <descr>
  6110. </descr>
  6111. <seealso>
  6112. </seealso>
  6113. </element>
  6114. <element name="TReader.OnSetName"> <!-- Property -->
  6115. <short>Handler called when setting a component name.</short>
  6116. <descr>
  6117. </descr>
  6118. <seealso>
  6119. </seealso>
  6120. </element>
  6121. <element name="TReader.OnReferenceName"> <!-- Property -->
  6122. <short>Handler called when another component is referenced.</short>
  6123. <descr>
  6124. </descr>
  6125. <seealso>
  6126. </seealso>
  6127. </element>
  6128. <element name="TReader.OnAncestorNotFound"> <!-- Property -->
  6129. <short>Handler called when the ancestor component cannot be found.</short>
  6130. <descr>
  6131. </descr>
  6132. <seealso>
  6133. </seealso>
  6134. </element>
  6135. <element name="TReader.OnCreateComponent"> <!-- Property -->
  6136. <short>Handler called when a component needs to be created.</short>
  6137. <descr>
  6138. </descr>
  6139. <seealso>
  6140. </seealso>
  6141. </element>
  6142. <element name="TReader.OnFindComponentClass"> <!-- Property -->
  6143. <short>Handler called when a component class reference needs to be found.</short>
  6144. <descr>
  6145. </descr>
  6146. <seealso>
  6147. </seealso>
  6148. </element>
  6149. <!--
  6150. *********************************************************************
  6151. TAbstractObjectWriter
  6152. *********************************************************************
  6153. -->
  6154. <element name="TAbstractObjectWriter"> <!-- Class -->
  6155. <short>Abstract driver class for writing component data.</short>
  6156. <descr>
  6157. </descr>
  6158. <seealso>
  6159. </seealso>
  6160. </element>
  6161. <element name="TAbstractObjectWriter.BeginCollection"> <!-- Procedure -->
  6162. <short>Start writing a collection.</short>
  6163. <descr>
  6164. </descr>
  6165. <seealso>
  6166. </seealso>
  6167. </element>
  6168. <element name="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6169. <short>Start writing a component</short>
  6170. <descr>
  6171. </descr>
  6172. <seealso>
  6173. </seealso>
  6174. </element>
  6175. <element name="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6176. <short>Start writing a list.</short>
  6177. <descr>
  6178. </descr>
  6179. <seealso>
  6180. </seealso>
  6181. </element>
  6182. <element name="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6183. <short>Mark the end of a list.</short>
  6184. <descr>
  6185. </descr>
  6186. <seealso>
  6187. </seealso>
  6188. </element>
  6189. <element name="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6190. <short>Start writing a property</short>
  6191. <descr>
  6192. </descr>
  6193. <seealso>
  6194. </seealso>
  6195. </element>
  6196. <element name="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6197. <short>Marks the end of writing of a property.</short>
  6198. <descr>
  6199. </descr>
  6200. <seealso>
  6201. </seealso>
  6202. </element>
  6203. <element name="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6204. <short>Writes binary data to the stream.</short>
  6205. <descr>
  6206. </descr>
  6207. <seealso>
  6208. </seealso>
  6209. </element>
  6210. <element name="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6211. <short>Writes a boolean value to the stream.</short>
  6212. <descr>
  6213. </descr>
  6214. <seealso>
  6215. </seealso>
  6216. </element>
  6217. <element name="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6218. <short>Writes a float value to the stream.</short>
  6219. <descr>
  6220. </descr>
  6221. <seealso>
  6222. </seealso>
  6223. </element>
  6224. <element name="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6225. <short>Writes a single-type real value to the stream.</short>
  6226. <descr>
  6227. </descr>
  6228. <seealso>
  6229. </seealso>
  6230. </element>
  6231. <element name="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6232. <short>Writes a date type to the stream.</short>
  6233. <descr>
  6234. </descr>
  6235. <seealso>
  6236. </seealso>
  6237. </element>
  6238. <element name="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6239. <short>Writes an identifier to the stream.</short>
  6240. <descr>
  6241. </descr>
  6242. <seealso>
  6243. </seealso>
  6244. </element>
  6245. <element name="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6246. <short>Writes an integer value to the stream</short>
  6247. <descr>
  6248. </descr>
  6249. <seealso>
  6250. </seealso>
  6251. </element>
  6252. <element name="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6253. <short>Writes a methodname to the stream.</short>
  6254. <descr>
  6255. </descr>
  6256. <seealso>
  6257. </seealso>
  6258. </element>
  6259. <element name="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6260. <short>Writes a set value to the stream.</short>
  6261. <descr>
  6262. </descr>
  6263. <seealso>
  6264. </seealso>
  6265. </element>
  6266. <element name="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6267. <short>Writes a string value to the stream.</short>
  6268. <descr>
  6269. </descr>
  6270. <seealso>
  6271. </seealso>
  6272. </element>
  6273. <!--
  6274. *********************************************************************
  6275. TBinaryObjectWriter
  6276. *********************************************************************
  6277. -->
  6278. <element name="TBinaryObjectWriter"> <!-- Class -->
  6279. <short>Driver class which stores component data in binary form.</short>
  6280. <descr>
  6281. </descr>
  6282. <seealso>
  6283. </seealso>
  6284. </element>
  6285. <element name="TBinaryObjectWriter.Create"> <!-- Constructor -->
  6286. <short>Creates a new instance of a binary object writer.</short>
  6287. <descr>
  6288. </descr>
  6289. <seealso>
  6290. </seealso>
  6291. </element>
  6292. <element name="TBinaryObjectWriter.Destroy"> <!-- Destructor -->
  6293. <short>Destroys an instance of the binary object writer.</short>
  6294. <descr>
  6295. </descr>
  6296. <seealso>
  6297. </seealso>
  6298. </element>
  6299. <element name="TBinaryObjectWriter.BeginCollection"
  6300. link="TAbstractObjectWriter.BeginCollection">
  6301. <short>Start writing a collection.</short>
  6302. </element>
  6303. <element name="TBinaryObjectWriter.BeginComponent"
  6304. link="TAbstractObjectWriter.BeginComponent"> <!-- Procedure -->
  6305. <short>Start writing a component</short>
  6306. </element>
  6307. <element name="TBinaryObjectWriter.BeginList"
  6308. link="TAbstractObjectWriter.BeginList"> <!-- Procedure -->
  6309. <short>Start writing a list.</short>
  6310. </element>
  6311. <element name="TBinaryObjectWriter.EndList"
  6312. link="TAbstractObjectWriter.EndList"> <!-- Procedure -->
  6313. <short>Mark the end of a list.</short>
  6314. </element>
  6315. <element name="TBinaryObjectWriter.BeginProperty"
  6316. link="TAbstractObjectWriter.BeginProperty"> <!-- Procedure -->
  6317. <short>Start writing a property</short>
  6318. </element>
  6319. <element name="TBinaryObjectWriter.EndProperty"
  6320. link="TAbstractObjectWriter.EndProperty"> <!-- Procedure -->
  6321. <short>Marks the end of writing of a property.</short>
  6322. </element>
  6323. <element name="TBinaryObjectWriter.WriteBinary"
  6324. link="TAbstractObjectWriter.WriteBinary"> <!-- Procedure -->
  6325. <short>Writes binary data to the stream.</short>
  6326. </element>
  6327. <element name="TBinaryObjectWriter.WriteBoolean"
  6328. link="TAbstractObjectWriter.WriteBoolean"> <!-- Procedure -->
  6329. <short>Writes a boolean value to the stream.</short>
  6330. </element>
  6331. <element name="TBinaryObjectWriter.WriteFloat"
  6332. link="TAbstractObjectWriter.WriteFloat"> <!-- Procedure -->
  6333. <short>Writes a float value to the stream.</short>
  6334. </element>
  6335. <element name="TBinaryObjectWriter.WriteSingle"
  6336. link="TAbstractObjectWriter.WriteSingle"> <!-- Procedure -->
  6337. <short>Writes a single-type real value to the stream.</short>
  6338. </element>
  6339. <element name="TBinaryObjectWriter.WriteDate"
  6340. link="TAbstractObjectWriter.WriteDate"> <!-- Procedure -->
  6341. <short>Writes a date type to the stream.</short>
  6342. </element>
  6343. <element name="TBinaryObjectWriter.WriteIdent"
  6344. link="TAbstractObjectWriter.WriteIdent"> <!-- Procedure -->
  6345. <short>Writes an identifier to the stream.</short>
  6346. </element>
  6347. <element name="TBinaryObjectWriter.WriteInteger"
  6348. link="TAbstractObjectWriter.WriteInteger"> <!-- Procedure -->
  6349. <short>Writes an integer value to the stream.</short>
  6350. </element>
  6351. <element name="TBinaryObjectWriter.WriteMethodName"
  6352. link="TAbstractObjectWriter.WriteMethodName"> <!-- Procedure -->
  6353. <short>Writes a methodname to the stream.</short>
  6354. </element>
  6355. <element name="TBinaryObjectWriter.WriteSet"
  6356. link="TAbstractObjectWriter.WriteSet"> <!-- Procedure -->
  6357. <short>Writes a set value to the stream.</short>
  6358. </element>
  6359. <element name="TBinaryObjectWriter.WriteString"
  6360. link="TAbstractObjectWriter.WriteString"> <!-- Procedure -->
  6361. <short>Writes a string value to the stream.</short>
  6362. </element>
  6363. <!--
  6364. *********************************************************************
  6365. TTextObjectWriter
  6366. *********************************************************************
  6367. -->
  6368. <element name="TTextObjectWriter"> <!-- Class -->
  6369. <short>Driver class which stores component data in text format.</short>
  6370. <descr>
  6371. Not yet implemented.
  6372. </descr>
  6373. <seealso>
  6374. </seealso>
  6375. </element>
  6376. <element name="TFindAncestorEvent"> <!-- Procedure type -->
  6377. <short>Event that occurs w</short>
  6378. <descr>
  6379. </descr>
  6380. <seealso>
  6381. </seealso>
  6382. </element>
  6383. <!--
  6384. *********************************************************************
  6385. TWriter
  6386. *********************************************************************
  6387. -->
  6388. <element name="TWriter"> <!-- Class -->
  6389. <short>Object to write component data to an arbitrary format.</short>
  6390. <descr>
  6391. </descr>
  6392. <seealso>
  6393. </seealso>
  6394. </element>
  6395. <element name="TWriter.SetRoot" link="TFiler.SetRoot"> <!-- Procedure -->
  6396. <short>Sets the root component</short>
  6397. </element>
  6398. <element name="TWriter.WriteBinary"> <!-- Procedure -->
  6399. <short>Writes binary data to the stream.</short>
  6400. <descr>
  6401. </descr>
  6402. <seealso>
  6403. </seealso>
  6404. </element>
  6405. <element name="TWriter.WriteProperty"> <!-- Procedure -->
  6406. <short>Writes one property to the stream.</short>
  6407. <descr>
  6408. </descr>
  6409. <seealso>
  6410. </seealso>
  6411. </element>
  6412. <element name="TWriter.WriteProperties"> <!-- Procedure -->
  6413. <short>Writes the published properties to the stream.</short>
  6414. <descr>
  6415. </descr>
  6416. <seealso>
  6417. </seealso>
  6418. </element>
  6419. <element name="TWriter.Create"> <!-- Constructor -->
  6420. <short>Creates a new Writer instance with a driver.</short>
  6421. <descr>
  6422. </descr>
  6423. <seealso>
  6424. </seealso>
  6425. </element>
  6426. <element name="TWriter.Create"> <!-- Constructor -->
  6427. <short>Creates a new Writer with a stream and bufsize.</short>
  6428. <descr>
  6429. </descr>
  6430. <seealso>
  6431. </seealso>
  6432. </element>
  6433. <element name="TWriter.Destroy"> <!-- Destructor -->
  6434. <short>Destroys the writer instance.</short>
  6435. <descr>
  6436. </descr>
  6437. <seealso>
  6438. </seealso>
  6439. </element>
  6440. <element name="TWriter.DefineProperty"> <!-- Procedure -->
  6441. <short>Callback used when defining and streaming custom properties.</short>
  6442. <descr>
  6443. </descr>
  6444. <seealso>
  6445. </seealso>
  6446. </element>
  6447. <element name="TWriter.DefineBinaryProperty"> <!-- Procedure -->
  6448. <short>Callback used when defining and streaming custom properties.</short>
  6449. <descr>
  6450. </descr>
  6451. <seealso>
  6452. </seealso>
  6453. </element>
  6454. <element name="TWriter.WriteBoolean"> <!-- Procedure -->
  6455. <short>Write boolean value to the stream.</short>
  6456. <descr>
  6457. </descr>
  6458. <seealso>
  6459. </seealso>
  6460. </element>
  6461. <element name="TWriter.WriteCollection"> <!-- Procedure -->
  6462. <short>Write a collection to the stream.</short>
  6463. <descr>
  6464. </descr>
  6465. <seealso>
  6466. </seealso>
  6467. </element>
  6468. <element name="TWriter.WriteComponent"> <!-- Procedure -->
  6469. <short>Stream a component to the stream.</short>
  6470. <descr>
  6471. </descr>
  6472. <seealso>
  6473. </seealso>
  6474. </element>
  6475. <element name="TWriter.WriteChar"> <!-- Procedure -->
  6476. <short>Write a character to the stream.</short>
  6477. <descr>
  6478. </descr>
  6479. <seealso>
  6480. </seealso>
  6481. </element>
  6482. <element name="TWriter.WriteDescendent"> <!-- Procedure -->
  6483. <short>Write a descendent component to the stream.</short>
  6484. <descr>
  6485. </descr>
  6486. <seealso>
  6487. </seealso>
  6488. </element>
  6489. <element name="TWriter.WriteFloat"> <!-- Procedure -->
  6490. <short>Write a float to the stream.</short>
  6491. <descr>
  6492. </descr>
  6493. <seealso>
  6494. </seealso>
  6495. </element>
  6496. <element name="TWriter.WriteSingle"> <!-- Procedure -->
  6497. <short>Write a single-type real to the stream.</short>
  6498. <descr>
  6499. </descr>
  6500. <seealso>
  6501. </seealso>
  6502. </element>
  6503. <element name="TWriter.WriteDate"> <!-- Procedure -->
  6504. <short>Write a date to the stream.</short>
  6505. <descr>
  6506. </descr>
  6507. <seealso>
  6508. </seealso>
  6509. </element>
  6510. <element name="TWriter.WriteIdent"> <!-- Procedure -->
  6511. <short>Write an identifier to the stream.</short>
  6512. <descr>
  6513. </descr>
  6514. <seealso>
  6515. </seealso>
  6516. </element>
  6517. <element name="TWriter.WriteInteger"> <!-- Procedure -->
  6518. <short>Write an integer to the stream.</short>
  6519. <descr>
  6520. </descr>
  6521. <seealso>
  6522. </seealso>
  6523. </element>
  6524. <element name="TWriter.WriteListBegin"> <!-- Procedure -->
  6525. <short>Write a start-of-list marker to the stream.</short>
  6526. <descr>
  6527. </descr>
  6528. <seealso>
  6529. </seealso>
  6530. </element>
  6531. <element name="TWriter.WriteListEnd"> <!-- Procedure -->
  6532. <short>Write an end-of-list marker to the stream.</short>
  6533. <descr>
  6534. </descr>
  6535. <seealso>
  6536. </seealso>
  6537. </element>
  6538. <element name="TWriter.WriteRootComponent"> <!-- Procedure -->
  6539. <short>Write a root component to the stream.</short>
  6540. <descr>
  6541. </descr>
  6542. <seealso>
  6543. </seealso>
  6544. </element>
  6545. <element name="TWriter.WriteString"> <!-- Procedure -->
  6546. <short>Write a string to the stream.</short>
  6547. <descr>
  6548. </descr>
  6549. <seealso>
  6550. </seealso>
  6551. </element>
  6552. <element name="TWriter.RootAncestor"> <!-- Property -->
  6553. <short>Ancestor of root component.</short>
  6554. <descr>
  6555. </descr>
  6556. <seealso>
  6557. </seealso>
  6558. </element>
  6559. <element name="TWriter.OnFindAncestor"> <!-- Property -->
  6560. <short>Event occurring when an ancestor component must be found.</short>
  6561. <descr>
  6562. </descr>
  6563. <seealso>
  6564. </seealso>
  6565. </element>
  6566. <element name="TWriter.Driver"> <!-- Property -->
  6567. <short>Driver used when writing to the stream.</short>
  6568. <descr>
  6569. </descr>
  6570. <seealso>
  6571. </seealso>
  6572. </element>
  6573. <!--
  6574. *********************************************************************
  6575. TParser
  6576. *********************************************************************
  6577. -->
  6578. <element name="TParser"> <!-- Class -->
  6579. <short>Class to parse the contents of a stream containing text data.</short>
  6580. <descr>
  6581. </descr>
  6582. <seealso>
  6583. </seealso>
  6584. </element>
  6585. <element name="TParser.Create"> <!-- Constructor -->
  6586. <short>Creates a new parser instance.</short>
  6587. <descr>
  6588. </descr>
  6589. <seealso>
  6590. </seealso>
  6591. </element>
  6592. <element name="TParser.Destroy"> <!-- Destructor -->
  6593. <short>Destroys the parser instance.</short>
  6594. <descr>
  6595. </descr>
  6596. <seealso>
  6597. </seealso>
  6598. </element>
  6599. <element name="TParser.CheckToken"> <!-- Procedure -->
  6600. <short>Checks whether the token if of the given type.</short>
  6601. <descr>
  6602. </descr>
  6603. <seealso>
  6604. </seealso>
  6605. </element>
  6606. <element name="TParser.CheckTokenSymbol"> <!-- Procedure -->
  6607. <short>Checks whether the token equals the given symbol</short>
  6608. <descr>
  6609. </descr>
  6610. <seealso>
  6611. </seealso>
  6612. </element>
  6613. <element name="TParser.Error"> <!-- Procedure -->
  6614. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6615. <descr>
  6616. </descr>
  6617. <seealso>
  6618. </seealso>
  6619. </element>
  6620. <element name="TParser.ErrorFmt"> <!-- Procedure -->
  6621. <short>Raises an <link id="EParserError"/> exception and formats the message.</short>
  6622. <descr>
  6623. </descr>
  6624. <seealso>
  6625. </seealso>
  6626. </element>
  6627. <element name="TParser.ErrorStr"> <!-- Procedure -->
  6628. <short>Raises an <link id="EParserError"/> exception with the given message</short>
  6629. <descr>
  6630. </descr>
  6631. <seealso>
  6632. </seealso>
  6633. </element>
  6634. <element name="TParser.HexToBinary"> <!-- Procedure -->
  6635. <short>Writes hexadecimal data to the stream.</short>
  6636. <descr>
  6637. </descr>
  6638. <seealso>
  6639. </seealso>
  6640. </element>
  6641. <element name="TParser.NextToken"> <!-- Function -->
  6642. <short>Reads the next token and returns its type.</short>
  6643. <descr>
  6644. </descr>
  6645. <seealso>
  6646. </seealso>
  6647. </element>
  6648. <element name="TParser.SourcePos"> <!-- Function -->
  6649. <short>Returns the current position in the stream.</short>
  6650. <descr>
  6651. </descr>
  6652. <seealso>
  6653. </seealso>
  6654. </element>
  6655. <element name="TParser.TokenComponentIdent"> <!-- Function -->
  6656. <short>Checks whether the current token is a component identifier.</short>
  6657. <descr>
  6658. </descr>
  6659. <seealso>
  6660. </seealso>
  6661. </element>
  6662. <element name="TParser.TokenFloat"> <!-- Function -->
  6663. <short>Returns the current token as a float.</short>
  6664. <descr>
  6665. </descr>
  6666. <seealso>
  6667. </seealso>
  6668. </element>
  6669. <element name="TParser.TokenInt"> <!-- Function -->
  6670. <short>Returns the current token as an integer.</short>
  6671. <descr>
  6672. </descr>
  6673. <seealso>
  6674. </seealso>
  6675. </element>
  6676. <element name="TParser.TokenString"> <!-- Function -->
  6677. <short>Returns the current token as a string.</short>
  6678. <descr>
  6679. </descr>
  6680. <seealso>
  6681. </seealso>
  6682. </element>
  6683. <element name="TParser.TokenSymbolIs"> <!-- Function -->
  6684. <short>Returns <var>True</var> if the current token is a symbol.</short>
  6685. <descr>
  6686. </descr>
  6687. <seealso>
  6688. </seealso>
  6689. </element>
  6690. <element name="TParser.SourceLine"> <!-- Property -->
  6691. <short>Current source linenumber.</short>
  6692. <descr>
  6693. </descr>
  6694. <seealso>
  6695. </seealso>
  6696. </element>
  6697. <element name="TParser.Token"> <!-- Property -->
  6698. <short>Contents of the current token.</short>
  6699. <descr>
  6700. </descr>
  6701. <seealso>
  6702. </seealso>
  6703. </element>
  6704. <!--
  6705. *********************************************************************
  6706. EThread
  6707. *********************************************************************
  6708. -->
  6709. <element name="EThread"> <!-- Class -->
  6710. <short>Thread error exception.</short>
  6711. <descr>
  6712. </descr>
  6713. <seealso>
  6714. </seealso>
  6715. </element>
  6716. <element name="TThreadMethod"> <!-- Procedure type -->
  6717. <short>Procedure variable used when synchronizing threads.</short>
  6718. <descr>
  6719. </descr>
  6720. <seealso>
  6721. </seealso>
  6722. </element>
  6723. <element name="TThreadPriority"> <!-- Enumeration type -->
  6724. <short>Enumeration specifying the priority at which a thread runs.</short>
  6725. <descr>
  6726. </descr>
  6727. <seealso>
  6728. </seealso>
  6729. </element>
  6730. <element name="TThreadPriority.tpIdle"> <!-- Enumeration value -->
  6731. <short>Thread only runs when other processes are idle.</short>
  6732. <descr>
  6733. </descr>
  6734. <seealso>
  6735. </seealso>
  6736. </element>
  6737. <element name="TThreadPriority.tpLowest"> <!-- Enumeration value -->
  6738. <short>Thread runs at the lowest priority.</short>
  6739. <descr>
  6740. </descr>
  6741. <seealso>
  6742. </seealso>
  6743. </element>
  6744. <element name="TThreadPriority.tpLower"> <!-- Enumeration value -->
  6745. <short>Thread runs at a lower priority.</short>
  6746. <descr>
  6747. </descr>
  6748. <seealso>
  6749. </seealso>
  6750. </element>
  6751. <element name="TThreadPriority.tpNormal"> <!-- Enumeration value -->
  6752. <short>Thread runs at normal process priority.</short>
  6753. <descr>
  6754. </descr>
  6755. <seealso>
  6756. </seealso>
  6757. </element>
  6758. <element name="TThreadPriority.tpHigher"> <!-- Enumeration value -->
  6759. <short>Thread runs at high priority</short>
  6760. <descr>
  6761. </descr>
  6762. <seealso>
  6763. </seealso>
  6764. </element>
  6765. <element name="TThreadPriority.tpHighest"> <!-- Enumeration value -->
  6766. <short>Thread runs at highest possible priority.</short>
  6767. <descr>
  6768. </descr>
  6769. <seealso>
  6770. </seealso>
  6771. </element>
  6772. <element name="TThreadPriority.tpTimeCritical"> <!-- Enumeration value -->
  6773. <short>Thread runs at realtime priority.</short>
  6774. <descr>
  6775. </descr>
  6776. <seealso>
  6777. </seealso>
  6778. </element>
  6779. <!--
  6780. *********************************************************************
  6781. TThread
  6782. *********************************************************************
  6783. -->
  6784. <element name="TThread"> <!-- Class -->
  6785. <short>Abstract Thread class.</short>
  6786. <descr>
  6787. The <var>TThread</var> class encapsulates the native thread support of the
  6788. operating system. To create a thread, declare a descendent of the
  6789. <var>TThread</var> object and override the <link
  6790. id="TThread.Execute">Execute</link> method. In this method, the thhread's
  6791. code should be executed. To run a thread, create an instance of the tthread
  6792. descendent, and call it's execute method.
  6793. </descr>
  6794. <seealso>
  6795. <link id="EThread"/>
  6796. <link id="TThread.Execute"/>
  6797. </seealso>
  6798. </element>
  6799. <element name="TThread.DoTerminate"> <!-- Procedure -->
  6800. <short>Terminates the thread.</short>
  6801. <descr>
  6802. </descr>
  6803. <seealso>
  6804. </seealso>
  6805. </element>
  6806. <element name="TThread.Execute"> <!-- Procedure -->
  6807. <short>Execute method. Should be overridden in a descendent thread.</short>
  6808. <descr>
  6809. </descr>
  6810. <seealso>
  6811. </seealso>
  6812. </element>
  6813. <element name="TThread.Synchronize"> <!-- Procedure -->
  6814. <short>Synchronizes the thread by executing the method in the main thread.</short>
  6815. <descr>
  6816. </descr>
  6817. <seealso>
  6818. </seealso>
  6819. </element>
  6820. <element name="TThread.ReturnValue"> <!-- Property -->
  6821. <short>Return value of the thread when it stops executing.</short>
  6822. <descr>
  6823. </descr>
  6824. <seealso>
  6825. </seealso>
  6826. </element>
  6827. <element name="TThread.Terminated"> <!-- Property -->
  6828. <short>Indicates whether the <link id="TThread.Terminate">Terminate</link>method was called by the user.</short>
  6829. <descr>
  6830. </descr>
  6831. <seealso>
  6832. </seealso>
  6833. </element>
  6834. <element name="TThread.FStackPointer"> <!-- Variable -->
  6835. <short></short>
  6836. <descr>
  6837. </descr>
  6838. <seealso>
  6839. </seealso>
  6840. </element>
  6841. <element name="TThread.FStackSize"> <!-- Variable -->
  6842. <short></short>
  6843. <descr>
  6844. </descr>
  6845. <seealso>
  6846. </seealso>
  6847. </element>
  6848. <element name="TThread.FCallExitProcess"> <!-- Variable -->
  6849. <short></short>
  6850. <descr>
  6851. </descr>
  6852. <seealso>
  6853. </seealso>
  6854. </element>
  6855. <element name="TThread.Create"> <!-- Constructor -->
  6856. <short>Creates a new thread.</short>
  6857. <descr>
  6858. </descr>
  6859. <seealso>
  6860. </seealso>
  6861. </element>
  6862. <element name="TThread.Destroy"> <!-- Destructor -->
  6863. <short>Destroys the thread object.</short>
  6864. <descr>
  6865. </descr>
  6866. <seealso>
  6867. </seealso>
  6868. </element>
  6869. <element name="TThread.Resume"> <!-- Procedure -->
  6870. <short>Resumes the thread's execution.</short>
  6871. <descr>
  6872. </descr>
  6873. <seealso>
  6874. </seealso>
  6875. </element>
  6876. <element name="TThread.Suspend"> <!-- Procedure -->
  6877. <short>Suspends the thread's execution.</short>
  6878. <descr>
  6879. </descr>
  6880. <seealso>
  6881. </seealso>
  6882. </element>
  6883. <element name="TThread.Terminate"> <!-- Procedure -->
  6884. <short>Signals the thread it should terminate.</short>
  6885. <descr>
  6886. </descr>
  6887. <seealso>
  6888. </seealso>
  6889. </element>
  6890. <element name="TThread.WaitFor"> <!-- Function -->
  6891. <short>Waits for the thread to terminate and returns the exit status.</short>
  6892. <descr>
  6893. </descr>
  6894. <seealso>
  6895. </seealso>
  6896. </element>
  6897. <element name="TThread.FreeOnTerminate"> <!-- Property -->
  6898. <short>Indicates whether the thread should free itself when it stops executing.</short>
  6899. <descr>
  6900. </descr>
  6901. <seealso>
  6902. </seealso>
  6903. </element>
  6904. <element name="TThread.Handle"> <!-- Property -->
  6905. <short>Returns the thread handle.</short>
  6906. <descr>
  6907. </descr>
  6908. <seealso>
  6909. </seealso>
  6910. </element>
  6911. <element name="TThread.Priority"> <!-- Property -->
  6912. <short>Returns the thread priority.</short>
  6913. <descr>
  6914. </descr>
  6915. <seealso>
  6916. </seealso>
  6917. </element>
  6918. <element name="TThread.Suspended"> <!-- Property -->
  6919. <short>Indicates whether the thread is suspended.</short>
  6920. <descr>
  6921. </descr>
  6922. <seealso>
  6923. </seealso>
  6924. </element>
  6925. <element name="TThread.ThreadID"> <!-- Property -->
  6926. <short>Returns the thread ID.</short>
  6927. <descr>
  6928. </descr>
  6929. <seealso>
  6930. </seealso>
  6931. </element>
  6932. <element name="TThread.OnTerminate"> <!-- Property -->
  6933. <short>Event called when the thread terminates.</short>
  6934. <descr>
  6935. </descr>
  6936. <seealso>
  6937. </seealso>
  6938. </element>
  6939. <element name="TOperation"> <!-- Enumeration type -->
  6940. <short>Operation of which a component is notified.</short>
  6941. <descr>
  6942. </descr>
  6943. <seealso>
  6944. </seealso>
  6945. </element>
  6946. <element name="TOperation.opInsert"> <!-- Enumeration value -->
  6947. <short>A new component is being inserted in the child component list.</short>
  6948. <descr>
  6949. </descr>
  6950. <seealso>
  6951. </seealso>
  6952. </element>
  6953. <element name="TOperation.opRemove"> <!-- Enumeration value -->
  6954. <short>A component is being removed from the child component list.</short>
  6955. <descr>
  6956. </descr>
  6957. <seealso>
  6958. </seealso>
  6959. </element>
  6960. <element name="TComponentState"> <!-- Set type -->
  6961. <short>Indicates the state of the component during the streaming process.</short>
  6962. <descr>
  6963. </descr>
  6964. <seealso>
  6965. </seealso>
  6966. </element>
  6967. <element name="TComponentState.csLoading"> <!-- Enumeration value -->
  6968. <short>The component is being loaded from the stream.</short>
  6969. <descr>
  6970. </descr>
  6971. <seealso>
  6972. </seealso>
  6973. </element>
  6974. <element name="TComponentState.csReading"> <!-- Enumeration value -->
  6975. <short>Properties are being read from the stream.</short>
  6976. <descr>
  6977. </descr>
  6978. <seealso>
  6979. </seealso>
  6980. </element>
  6981. <element name="TComponentState.csWriting"> <!-- Enumeration value -->
  6982. <short>Properties are being written to the stream.</short>
  6983. <descr>
  6984. </descr>
  6985. <seealso>
  6986. </seealso>
  6987. </element>
  6988. <element name="TComponentState.csDestroying"> <!-- Enumeration value -->
  6989. <short>The component is being destroyed.</short>
  6990. <descr>
  6991. </descr>
  6992. <seealso>
  6993. </seealso>
  6994. </element>
  6995. <element name="TComponentState.csDesigning"> <!-- Enumeration value -->
  6996. <short>The component is being designed in an IDE.</short>
  6997. <descr>
  6998. </descr>
  6999. <seealso>
  7000. </seealso>
  7001. </element>
  7002. <element name="TComponentState.csAncestor"> <!-- Enumeration value -->
  7003. <short>The component is being streamed as part of a frame (?) </short>
  7004. <descr>
  7005. </descr>
  7006. <seealso>
  7007. </seealso>
  7008. </element>
  7009. <element name="TComponentState.csUpdating"> <!-- Enumeration value -->
  7010. <short>The component is being updated.</short>
  7011. <descr>
  7012. </descr>
  7013. <seealso>
  7014. </seealso>
  7015. </element>
  7016. <element name="TComponentState.csFixups"> <!-- Enumeration value -->
  7017. <short>The component's references to other components are being fixed.</short>
  7018. <descr>
  7019. </descr>
  7020. <seealso>
  7021. </seealso>
  7022. </element>
  7023. <element name="TComponentState.csFreeNotification"> <!-- Enumeration value -->
  7024. <short>Indicates whether the component has freenotifications</short>
  7025. <descr>
  7026. </descr>
  7027. <seealso>
  7028. </seealso>
  7029. </element>
  7030. <element name="TComponentState.csInline"> <!-- Enumeration value -->
  7031. <short>Component is part of a frame (?).</short>
  7032. <descr>
  7033. </descr>
  7034. <seealso>
  7035. </seealso>
  7036. </element>
  7037. <element name="TComponentState.csDesignInstance"> <!-- Enumeration value -->
  7038. <short>??</short>
  7039. <descr>
  7040. </descr>
  7041. <seealso>
  7042. </seealso>
  7043. </element>
  7044. <element name="TComponentStyle"> <!-- Set type -->
  7045. <short>Describes the style of the component.</short>
  7046. <descr>
  7047. </descr>
  7048. <seealso>
  7049. </seealso>
  7050. </element>
  7051. <element name="TComponentStyle.csInheritable"> <!-- Enumeration value -->
  7052. <short>The component can be on inherited forms.</short>
  7053. <descr>
  7054. </descr>
  7055. <seealso>
  7056. </seealso>
  7057. </element>
  7058. <element name="TComponentStyle.csCheckPropAvail"> <!-- Enumeration value -->
  7059. <short>??</short>
  7060. <descr>
  7061. </descr>
  7062. <seealso>
  7063. </seealso>
  7064. </element>
  7065. <element name="TGetChildProc"> <!-- Procedure type -->
  7066. <short>Callback used when obtaining child components.</short>
  7067. <descr>
  7068. </descr>
  7069. <seealso>
  7070. </seealso>
  7071. </element>
  7072. <!--
  7073. *********************************************************************
  7074. TComponent
  7075. *********************************************************************
  7076. -->
  7077. <element name="TComponent"> <!-- Class -->
  7078. <short>Base class for all components that need owner-owned functionality.</short>
  7079. <descr>
  7080. <p>
  7081. <var>TComponent</var> is the base class for any set of classes that needs
  7082. owner-owned functionality, and which needs support for property streaming.
  7083. All classes that should be handled by an IDE (Integrated Development
  7084. Environment) must descend from <var>TComponent</var>, as it includes all
  7085. support for streaming all its published properties.
  7086. </p>
  7087. <p>
  7088. Components can 'own' other components. <var>TComponent</var> introduces
  7089. methods for enumerating the child components. It also allows to name the
  7090. owned components with a unique name. Furthermore, functionality for
  7091. sending notifications when a component is removed from the list or
  7092. removed from memory alltogether is also introduced in <var>TComponent</var>
  7093. </p>
  7094. <p>
  7095. <var>TComponent</var> introduces a form of automatic memory management: When
  7096. a component is destroyed, all its child components will be destroyed first.
  7097. </p>
  7098. </descr>
  7099. </element>
  7100. <element name="TComponent.FComponentStyle"> <!-- Variable -->
  7101. <short>Contains the component's style.</short>
  7102. <descr>
  7103. <var>FComponentStyle</var> is the location where the <link
  7104. id="TComponent.ComponentStyle">ComponentStyle</link> property is read from.
  7105. </descr>
  7106. <seealso>
  7107. </seealso>
  7108. <link id="TComponent.ComponentStyle">ComponentStyle</link>
  7109. </element>
  7110. <element name="TComponent.ChangeName"> <!-- Procedure -->
  7111. <short>Actually sets the component name.</short>
  7112. <descr>
  7113. <p>
  7114. <var>ChangeName</var> is called by the <link
  7115. id="TComponent.SetName">SetName</link> procedure when the component name is
  7116. set and the name has been verified. It actually sets the name of the
  7117. component to <var>NewName</var>, and can be used to bypass the name checks which are done when the
  7118. <link id="TComponent.Name">Name</link> property is set.
  7119. </p>
  7120. <p>
  7121. Application programmers should never use <var>SetName</var> directly.
  7122. </p>
  7123. </descr>
  7124. <seealso>
  7125. <link id="TComponent.SetName">SetName</link>
  7126. <link id="TComponent.Name">Name</link>
  7127. </seealso>
  7128. </element>
  7129. <element name="TComponent.DefineProperties"> <!-- Procedure -->
  7130. <short>Defines fake top,left properties for handling in the IDE.</short>
  7131. <descr>
  7132. <var>DefineProperties</var> overrides the standard <link
  7133. id="TPersistent.DefineProperties"/> to store the top/left properties used to
  7134. display an icon for a non-visual component in an IDE.
  7135. </descr>
  7136. <seealso>
  7137. <link id="TPersistent.DefineProperties"/>
  7138. </seealso>
  7139. </element>
  7140. <element name="TComponent.GetChildren"> <!-- Procedure -->
  7141. <short>Must be overridden by descendents to return all child components that must be streamed.</short>
  7142. <descr>
  7143. <p>
  7144. <var>GetChildren</var> is called by the streaming system to determine which
  7145. child components should be streamed as well when the component is being
  7146. streamed.
  7147. By default, no child components are streamed, i.e. the <var>TComponent</var>
  7148. implementation is empty.
  7149. </p>
  7150. <p>
  7151. <var>TComponent</var> descendents should override this method. For each
  7152. child that needs to be streamed, <var>Proc</var> should be called with as
  7153. an argument the child component that must be streamed. The <var>Root</var>
  7154. argument contains the root component relative to which all streaming is
  7155. done.
  7156. </p>
  7157. </descr>
  7158. <seealso>
  7159. <link id="TComponent.WriteState"/>
  7160. </seealso>
  7161. </element>
  7162. <element name="TComponent.GetChildOwner"> <!-- Function -->
  7163. <short>Returns the owner of any children.</short>
  7164. <descr>
  7165. <p>
  7166. <var>GetChildOwner</var> returns the owner of the children that are read from the stream.
  7167. If the method returns <var>Nil</var> (the default) this means that streamed
  7168. child components are owned by the root component of the streaming process
  7169. (usually a Form or Datamodule)
  7170. </p>
  7171. <p>
  7172. Application programmers should not call <var>GetChildOwner</var> directly,
  7173. it is called by the streaming system when needed.
  7174. </p>
  7175. </descr>
  7176. <seealso>
  7177. <link id="TComponent.WriteState"/>
  7178. <link id="TComponent.ReadState"/>
  7179. <link id="TComponent.Owner"/>
  7180. <link id="TComponent.GetChildParent"/>
  7181. </seealso>
  7182. </element>
  7183. <element name="TComponent.GetChildParent"> <!-- Function -->
  7184. <short>Returns the parent of any children.</short>
  7185. <descr>
  7186. <p>
  7187. <var>GetChildParent</var> returns the parent component of the child
  7188. components being streamed. The parent property is a visual property, which
  7189. is not always meaningful. If there is no parent component, the owner
  7190. of child components that are streamed is returned. If <var>Nil</var> is
  7191. returned, then the root component of the streaming operation is assumed.
  7192. The <var>TComponent</var> implementation of this method returns
  7193. <var>Self</var>.
  7194. </p>
  7195. <p>
  7196. Application programmers should not call this method, it is called
  7197. automatically by the streaming mechanism.
  7198. </p>
  7199. </descr>
  7200. <seealso>
  7201. <link id="TComponent.GetChildOwner"/>
  7202. </seealso>
  7203. </element>
  7204. <element name="TComponent.GetNamePath"> <!-- Function -->
  7205. <short>Returns the name path of this component.</short>
  7206. <descr>
  7207. <p>
  7208. <var>GetNamePath</var> returns the name of the component as it will be
  7209. shown in the object inspector.
  7210. </p>
  7211. <p>
  7212. <var>TComponent</var> overrides <var>GetNamePath</var> so it returns the
  7213. <link id="TComponent.Name">Name</link> property of the component.
  7214. </p>
  7215. </descr>
  7216. <seealso>
  7217. <link id="TComponent.Name">Name</link>
  7218. <link id="TPersistent.GetNamePath"/>
  7219. </seealso>
  7220. </element>
  7221. <element name="TComponent.GetOwner"> <!-- Function -->
  7222. <short>Returns the owner of this component.</short>
  7223. <descr>
  7224. <var>GetOwner</var> returns the owner of this component as indicated by the
  7225. <link id="TComponent.Owner">Owner</link> property. The
  7226. <var>GetOwner</var> call is introduced in <link id="TPersistent"/>
  7227. and is used by the streaming system to determine the 'owner' of a component.
  7228. </descr>
  7229. <seealso>
  7230. <link id="TPersistent.GetOwner"/>
  7231. <link id="TComponent.Owner"/>
  7232. </seealso>
  7233. </element>
  7234. <element name="TComponent.Loaded"> <!-- Procedure -->
  7235. <short>Called when the component has finished loading.</short>
  7236. <descr>
  7237. <p>
  7238. <var>Loaded</var> is called by the streaming system when a root
  7239. component was completely read from a stream and all properties and
  7240. references to other objects have been resolved by the streaming
  7241. system. Descendents of <var>TComponent</var> should override this method to
  7242. do some additional processing of properties after all published
  7243. properties have been set from values obtained from the stream.
  7244. </p>
  7245. <p>
  7246. Application programmers should never call <var>Loaded</var> directly, this
  7247. is done automatically by the streaming system.
  7248. </p>
  7249. </descr>
  7250. <seealso>
  7251. <link id="TComponent.ReadState"/>
  7252. <link id="TComponent.ComponentState"/>
  7253. </seealso>
  7254. </element>
  7255. <element name="TComponent.Notification"> <!-- Procedure -->
  7256. <short>Called by components that are freed and which received a FreeNotification.</short>
  7257. <descr>
  7258. <p>
  7259. <var>Notification</var> is called whenever a child component is destroyed,
  7260. inserted or removed from the list of owned component. Components that
  7261. were requested to send a notification when they are freed
  7262. ((with <link id="TComponent.FreeNotification">FreeNotification</link>)
  7263. will also call <var>Notification</var> when they are freed.
  7264. </p>
  7265. <p>The <var>AComponent</var> parameter specifies which component sends the
  7266. notification, and <var>Operation</var> specifies whether the component is
  7267. being inserted into or removed from the child component list, or whether it
  7268. is being destroyed.
  7269. </p>
  7270. <p>
  7271. Descendents of <var>TComponent</var> can use <link
  7272. id="TComponent.FreeNotification">FreeNotification</link> to request
  7273. notification of the destruction of another object. By overriding the
  7274. <var>Notification</var> method, they can do special processing (typically,
  7275. set a reference to this component to <var>Nil</var>)
  7276. when this component is destroyed. The <var>Notification</var> method is
  7277. called quite often in the streaming process, so speed should be a
  7278. consideration when overriding this method.
  7279. </p>
  7280. </descr>
  7281. <seealso>
  7282. <link id="TOperation"/>
  7283. <link id="TComponent.FreeNotification"/>
  7284. </seealso>
  7285. </element>
  7286. <element name="TComponent.ReadState"> <!-- Procedure -->
  7287. <short>Read the component's state from a stream.</short>
  7288. <descr>
  7289. <p>
  7290. <var>ReadState</var> reads the component's state from a stream through the
  7291. reader object <var>reader</var>. Values for all published properties of
  7292. the component can be read from the stream. Normally there is no need to
  7293. call <var>ReadState</var> directly. The streaming system calls
  7294. <var>ReadState</var> itself.
  7295. </p>
  7296. <p>
  7297. The <link id="TComponent"/> implementation of <var>ReadState</var> simply
  7298. calls <link id="TReader.ReadData"/> Descendent classes can, however,
  7299. override <var>ReadState</var>to provide additional processing of stream
  7300. data.
  7301. </p>
  7302. </descr>
  7303. <seealso>
  7304. <link id="TComponent.WriteState">WriteState</link>
  7305. <link id="TStream.ReadComponent"/>
  7306. <link id="TReader.ReadData"/>
  7307. </seealso>
  7308. </element>
  7309. <element name="TComponent.SetAncestor"> <!-- Procedure -->
  7310. <short>Sets the <var>csAncestor</var> state of the component.</short>
  7311. <descr>
  7312. <p>
  7313. <var>SetAncestor</var> includes or excludes the <var>csAncestor</var> flag
  7314. in the <link id="TComponent.ComponentState">ComponentState</link> set property,
  7315. depending on the boolean <var>Value</var>. The flag is set recursively for
  7316. all owned components as well.
  7317. </p>
  7318. <p>
  7319. This is normally only done during the streaming system, and should not be called
  7320. directly by an application programmer.
  7321. </p>
  7322. </descr>
  7323. <seealso>
  7324. <link id="TComponent.ComponentState">ComponentState</link>
  7325. </seealso>
  7326. </element>
  7327. <element name="TComponent.SetDesigning"> <!-- Procedure -->
  7328. <short>Sets the <var>csDesigning</var> state of the component.</short>
  7329. <descr>
  7330. <p>
  7331. <var>SetDesigning</var> includes or excludes the <var>csDesigning</var> flag
  7332. in the <link id="TComponent.ComponentState">ComponentState</link> set property,
  7333. depending on the boolean <var>Value</var>. The flag is set recursively for
  7334. all owned components as well.
  7335. </p>
  7336. <p>
  7337. This is normally only done during the streaming system, and should not be called
  7338. directly by an application programmer.
  7339. </p>
  7340. </descr>
  7341. <seealso>
  7342. </seealso>
  7343. </element>
  7344. <element name="TComponent.SetName"> <!-- Procedure -->
  7345. <short>Write handler for <link id="TComponent.Name">Name</link> property.</short>
  7346. <descr>
  7347. <var>SetName</var> is the write handler for the <link
  7348. id="TComponent.Name">Name</link> property. It checks whether the desired
  7349. name is valid (i.e is a valid identifier) and is unique among the children
  7350. of the owner component. If either conditions is not satisfied, an exception
  7351. is raised.
  7352. </descr>
  7353. <seealso>
  7354. <link id="TComponent.Name">Name</link>
  7355. <link id="TComponent.ValidateRename">ValidateRename</link>
  7356. </seealso>
  7357. </element>
  7358. <element name="TComponent.SetChildOrder"> <!-- Procedure -->
  7359. <short>Determines the order in which children are streamed/created.</short>
  7360. <descr>
  7361. This method does nothing. It can be used to change the order in which child
  7362. components are streamed and created. This can be used by descendent classes
  7363. to optimize or correct the order in which child components are streamed.
  7364. </descr>
  7365. <seealso>
  7366. <link id="TComponent.ReadState"/>
  7367. </seealso>
  7368. </element>
  7369. <element name="TComponent.SetParentComponent"> <!-- Procedure -->
  7370. <short>Set the parent component.</short>
  7371. <descr>
  7372. <var>SetParentComponent</var> does nothing, but is called by the streaming
  7373. system to set the parent component of the current component. This method
  7374. can be overridden by descendent components to set the parent component of
  7375. the current component.
  7376. </descr>
  7377. <seealso>
  7378. <link id="TComponent.Owner">Owner</link>
  7379. </seealso>
  7380. </element>
  7381. <element name="TComponent.Updating"> <!-- Procedure -->
  7382. <short>Sets the state to <var>csUpdating</var></short>
  7383. <descr>
  7384. <p>
  7385. <var>Updating</var> includes <var>csUpdating</var> in the <link
  7386. id="TComponent.ComponentState">ComponentState</link> property of the
  7387. component.
  7388. </p>
  7389. <p>
  7390. Normally, an application programmer should not call this method directly, it
  7391. is called automatically by the streaming system.
  7392. </p>
  7393. </descr>
  7394. <seealso>
  7395. <link id="TComponent.Updated">Updated</link>
  7396. <link id="TComponent.ComponentState">ComponentState</link>
  7397. </seealso>
  7398. </element>
  7399. <element name="TComponent.Updated"> <!-- Procedure -->
  7400. <short>Ends the <var>csUpdating</var> state.</short>
  7401. <descr>
  7402. <p>
  7403. <var>Updated</var> excludes <var>csUpdating</var> from the <link
  7404. id="TComponent.ComponentState">ComponentState</link> property of the
  7405. component.
  7406. </p>
  7407. <p>
  7408. Normally, an application programmer should not call this method directly, it
  7409. is called automatically by the streaming system.
  7410. </p>
  7411. </descr>
  7412. <seealso>
  7413. <link id="TComponent.Updating">Updating</link>
  7414. <link id="TComponent.ComponentState">ComponentState</link>
  7415. </seealso>
  7416. </element>
  7417. <element name="TComponent.UpdateRegistry"> <!-- Procedure -->
  7418. <short>For compatibilty only.</short>
  7419. <descr>
  7420. This method does nothing, and is provided for compatibility only.
  7421. </descr>
  7422. <seealso>
  7423. </seealso>
  7424. </element>
  7425. <element name="TComponent.ValidateRename"> <!-- Procedure -->
  7426. <short>Called when a name change must be validated</short>
  7427. <descr>
  7428. <var>ValidateRename</var> checks whether <var>NewName</var> is a valid
  7429. replacement for <var>CurName</var> for component <var>AComponent</var>.
  7430. Two owned components of a component can not have the same name.
  7431. If a child component with the same name is found, then an exception
  7432. is raised.
  7433. </descr>
  7434. <seealso>
  7435. <link id="TComponent.SetName">SetName</link>
  7436. <link id="TComponent.Name">Name</link>
  7437. </seealso>
  7438. </element>
  7439. <element name="TComponent.ValidateContainer"> <!-- Procedure -->
  7440. <short>??</short>
  7441. <descr>
  7442. <var>ValidateContainer</var> is provided for compatibility only.
  7443. It doesn't do anything in Free Pascal.
  7444. </descr>
  7445. </element>
  7446. <element name="TComponent.ValidateInsert"> <!-- Procedure -->
  7447. <short>Called when an insert must be validated.</short>
  7448. <descr>
  7449. <p>
  7450. <var>ValidateInsert</var> should be implemented by descendent components to
  7451. see whether the <var>AComponent</var> component may be inserted in the list
  7452. of owned components.
  7453. </p>
  7454. <p>
  7455. This procedure does nothing in the <var>TComponent</var> implementation, it
  7456. should be overridden by descendant components.
  7457. </p>
  7458. </descr>
  7459. <seealso>
  7460. <link id="TComponent.Insert">Insert</link>
  7461. </seealso>
  7462. </element>
  7463. <element name="TComponent.WriteState"> <!-- Procedure -->
  7464. <short>Writes the component to a stream.</short>
  7465. <descr>
  7466. <p>
  7467. <var>WriteState</var> writes the component's current state to a stream
  7468. through the <link id="TWriter">writer</link> object <var>writer</var>.
  7469. Values for all published properties of the component can be written to
  7470. the stream. Normally there is no need to call <var>WriteState</var> directly.
  7471. The streaming system calls <var>WriteState</var> itself.
  7472. </p>
  7473. <p>
  7474. The <link id="TComponent"/> implementation of <var>WriteState</var> simply
  7475. calls <link id="TWriter.WriteData"/>. Descendent classes can, however,
  7476. override <var>WriteState</var>to provide additional processing of stream
  7477. data.
  7478. </p>
  7479. </descr>
  7480. <seealso>
  7481. <link id="TComponent.ReadState">ReadState</link>
  7482. <link id="TStream.WriteComponent"/>
  7483. <link id="TWriter.WriteData"/>
  7484. </seealso>
  7485. </element>
  7486. <element name="TComponent.Create"> <!-- Constructor -->
  7487. <short>Creates a new instance of the component.</short>
  7488. <descr>
  7489. <var>Create</var> creates a new instance of a <var>TComponent</var> class.
  7490. If <var>AOwner</var> is not <var>Nil</var>, the new component attempts to
  7491. insert itself in the list of owned components of the owner.
  7492. </descr>
  7493. <seealso>
  7494. <link id="TComponent.Insert">Insert</link>
  7495. <link id="TComponent.Owner">Owner</link>
  7496. </seealso>
  7497. </element>
  7498. <element name="TComponent.Destroy"> <!-- Destructor -->
  7499. <short>Destroys the instance of the component.</short>
  7500. <descr>
  7501. <var>Destroy</var> sends a <var>opRemove</var> notification to all components
  7502. in the free-notification list. After that, all owned components are
  7503. destroyed by calling <link id="TComponent.DestroyComponents">DestroyComponents</link>
  7504. (and hence removed from the list of owned components). When this
  7505. is done, the component removes itself from its owner's child component list.
  7506. After that, the parent's destroy method is called.
  7507. </descr>
  7508. <seealso>
  7509. <link id="TComponent.Notification">Notification</link>
  7510. <link id="TComponent.Owner">Owner</link>
  7511. <link id="TComponent.DestroyComponents">DestroyComponents</link>
  7512. <link id="TComponent.Components">Components</link>
  7513. </seealso>
  7514. </element>
  7515. <element name="TComponent.DestroyComponents"> <!-- Procedure -->
  7516. <short>Destroy child components.</short>
  7517. <descr>
  7518. <p>
  7519. <var>DestroyComponents</var> calls the destructor of all owned components,
  7520. till no more components are left in the <link id="TComponent.Components">Components</link> array.
  7521. </p>
  7522. <p>
  7523. Calling the destructor of an owned component has as the effect that the
  7524. component will remove itself from the list of owned components, if nothing
  7525. has disrupted the sequence of destructors.
  7526. </p>
  7527. </descr>
  7528. <errors>
  7529. If an overridden 'destroy' method does not call it's intherited
  7530. destructor or raises an exception, it's <link id="TComponent.Destroy"/>
  7531. destructor will not be called, which may result in an endless loop.
  7532. </errors>
  7533. <seealso>
  7534. <link id="TComponent.Destroy">Destroy</link>
  7535. <link id="TComponent.Components">Components</link>
  7536. </seealso>
  7537. </element>
  7538. <element name="TComponent.Destroying"> <!-- Procedure -->
  7539. <short>Called when the component is being destroyed</short>
  7540. <descr>
  7541. <p>
  7542. <var>Destroying</var> sets the <var>csDestroying</var> flag in the
  7543. component's <link id="TComponent.State">state</link> property, and does the
  7544. same for all owned components.
  7545. </p>
  7546. <p>
  7547. It is not necessary to call <var>Destroying</var> directly, the destructor <link
  7548. id="TComponent.Destroy">Destroy</link> does this automatically.
  7549. </p>
  7550. </descr>
  7551. <seealso>
  7552. <link id="TComponent.State">State</link>
  7553. <link id="TComponent.Destroy">Destroy</link>
  7554. </seealso>
  7555. </element>
  7556. <element name="TComponent.FindComponent"> <!-- Function -->
  7557. <short>Finds and returns the named component in the owned components.</short>
  7558. <descr>
  7559. <var>FindComponent</var> searches the component with name <var>AName</var>
  7560. in the list of owned components. If <var>AName</var> is empty, then
  7561. <var>Nil</var> is returned.
  7562. </descr>
  7563. <seealso>
  7564. <link id="TComponent.Components">Components</link>
  7565. <link id="TComponent.Name">Name</link>
  7566. </seealso>
  7567. </element>
  7568. <element name="TComponent.FreeNotification"> <!-- Procedure -->
  7569. <short>Ask the component to notify called when it is being destroyed.</short>
  7570. <descr>
  7571. <var>FreeNotification</var> inserts <var>AComponent</var> in the
  7572. freenotification list. When the component is destroyed, the <link
  7573. id="TComponent.Notification">Notification</link> method is called for all
  7574. components in the freenotification list.
  7575. </descr>
  7576. <seealso>
  7577. <link id="TComponent.Components">Components</link>
  7578. <link id="TComponent.Notification">Notification</link>
  7579. </seealso>
  7580. </element>
  7581. <element name="TComponent.FreeOnRelease"> <!-- Procedure -->
  7582. <short>Part of the <var>IVCLComObject</var> interface.</short>
  7583. <descr>
  7584. Provided for Delphi compatibility, but is not yet impltmentedd.
  7585. </descr>
  7586. </element>
  7587. <element name="TComponent.GetParentComponent"> <!-- Function -->
  7588. <short>Returns the parent component.</short>
  7589. <descr>
  7590. <var>GetParentComponent</var> can be implemented to return the parent
  7591. component of this component. The implementation of this method in
  7592. <var>TComponent</var> always returns <var>Nil</var>. Descendent classes must
  7593. override this method to return the visual parent of the component.
  7594. </descr>
  7595. <seealso>
  7596. <link id="TComponent.HasParent">HasParent</link>
  7597. <link id="TComponent.Owner">Owner</link>
  7598. </seealso>
  7599. </element>
  7600. <element name="TComponent.HasParent"> <!-- Function -->
  7601. <short>Does the component have a parent ?</short>
  7602. <descr>
  7603. <var>HasParent</var> can be implemented to return whether the parent of the
  7604. component exists. The implementation of this method in TComponent always
  7605. returns <var>False</var>, and should be overridden by descendent classes to
  7606. return <var>True</var> when a parent is available. If <var>HasParent</var>
  7607. returns <var>True</var>, then <link
  7608. id="TComponent.GetParentComponent">GetParentComponent</link> will return the
  7609. parent component.
  7610. </descr>
  7611. <seealso>
  7612. <link id="TComponent.HasParent">HasParent</link>
  7613. <link id="TComponent.Owner">Owner</link>
  7614. </seealso>
  7615. </element>
  7616. <element name="TComponent.InsertComponent"> <!-- Procedure -->
  7617. <short>Insert the given component in the list of owned components.</short>
  7618. <descr>
  7619. <var>InsertComponent</var> attempts to insert <var>AComponent</var> in the
  7620. list with owned components. It first calls <link
  7621. id="TComponent">ValidateComponent</link> to see whether the component can be
  7622. inserted. It then checks whether there are no name conflicts by calling
  7623. <link id="TComponent.ValidateRename">ValidateRename</link>. If neither of
  7624. these checks have raised an exception the component is inserted, and
  7625. notified of the insert.
  7626. </descr>
  7627. <seealso>
  7628. <link id="TComponent.RemoveComponent">RemoveComponent</link>
  7629. <link id="TComponent.Insert">Insert</link>
  7630. <link id="TComponent.ValidateContainer">ValidateContainer</link>
  7631. <link id="TComponent.ValidateRename">ValidateRename</link>
  7632. <link id="TComponent.Notification">Notification</link>
  7633. </seealso>
  7634. </element>
  7635. <element name="TComponent.RemoveComponent"> <!-- Procedure -->
  7636. <short>Remove the given component from the list of owned components.</short>
  7637. <descr>
  7638. <var>RemoveComponent</var> will send an <var>opRemove</var> notification to
  7639. <var>AComponent</var> and will then proceed to remove <var>AComponent</var>
  7640. from the list of owned components.
  7641. </descr>
  7642. <seealso>
  7643. <link id="TComponent.InsertComponent">InsertComponent</link>
  7644. <link id="TComponent.Remove">Remove</link>
  7645. <link id="TComponent.ValidateRename">ValidateRename</link>
  7646. <link id="TComponent.Notification">Notification</link>
  7647. </seealso>
  7648. </element>
  7649. <element name="TComponent.SafeCallException"> <!-- Function -->
  7650. <short>Part of the <var>IVCLComObject</var> Interface.</short>
  7651. <descr>
  7652. Provided for Delphi compatibility, but not implemented.
  7653. </descr>
  7654. <seealso>
  7655. </seealso>
  7656. </element>
  7657. <element name="TComponent.Components"> <!-- Property -->
  7658. <short>Indexed list (zero-based) of all owned components.</short>
  7659. <descr>
  7660. <var>Components</var> provides indexed access to the list of owned
  7661. components. <var>Index</var> can range from 0 to <link
  7662. id="TComponent.ComponentCount">ComponentCount-1</link>.
  7663. </descr>
  7664. <seealso>
  7665. <link id="TComponent.ComponentCount">ComponentCount</link>
  7666. <link id="TComponent.Owner">Owner</link>
  7667. </seealso>
  7668. </element>
  7669. <element name="TComponent.ComponentCount"> <!-- Property -->
  7670. <short>Count of owned components</short>
  7671. <descr>
  7672. <var>ComponentCount</var> returns the number of components that the current
  7673. component owns. It can be used to determine the valid index range in the
  7674. <link id="TComponent.Components">Component</link> array.
  7675. </descr>
  7676. <seealso>
  7677. <link id="TComponent.Components">Components</link>
  7678. <link id="TComponent.Owner">Owner</link>
  7679. </seealso>
  7680. </element>
  7681. <element name="TComponent.ComponentIndex"> <!-- Property -->
  7682. <short>Index of component in it's owner's list.</short>
  7683. <descr>
  7684. <var>ComponentIndex</var> is the index of the current component in its
  7685. owner's list of components. If the component has no owner, the value of this
  7686. property is -1.
  7687. </descr>
  7688. <seealso>
  7689. <link id="TComponent.Components">Components</link>
  7690. <link id="TComponent.ComponentCount">ComponentCount</link>
  7691. <link id="TComponent.Owner">Owner</link>
  7692. </seealso>
  7693. </element>
  7694. <element name="TComponent.ComponentState"> <!-- Property -->
  7695. <short>Current component's state.</short>
  7696. <descr>
  7697. <p>
  7698. <var>ComponentState</var> indicates the current state of the component. It
  7699. is a set of flags which indicate the various stages in the lifetime of a
  7700. component. The following values can occur in this set:
  7701. </p>
  7702. <table>
  7703. <caption>Component states</caption>
  7704. <th><td>Flag</td><td>Meaning</td></th>
  7705. <tr><td>csLoading</td><td>The component is being loaded from stream</td></tr>
  7706. <tr><td>csReading</td><td>Component properties are being read from stream.</td></tr>
  7707. <tr><td>csWriting</td><td>Component properties are weing written to stream.</td></tr>
  7708. <tr><td>csDestroying</td><td>The component or one of it's owners is being destoyed.</td></tr>
  7709. <tr><td>csAncestor</td><td>The component is being streamed as part of a frame </td></tr>
  7710. <tr><td>csUpdating</td><td>The component is being updated</td></tr>
  7711. <tr><td>csFixups</td><td>References to other components are being resolved</td></tr>
  7712. <tr><td>csFreeNotification</td><td>The component has freenotifications.</td></tr>
  7713. <tr><td>csInline</td><td>The component is being loaded as part of a frame</td></tr>
  7714. <tr><td>csDesignInstance</td><td>? not used.</td></tr>
  7715. </table>
  7716. <p>
  7717. The component state is set by various actions such as reading it from stream,
  7718. destroying it etc.
  7719. </p>
  7720. </descr>
  7721. <seealso>
  7722. <link id="TComponent.SetAncestor">SetAncestor</link>
  7723. <link id="TComponent.SetDesigning">SetDesigning</link>
  7724. <link id="TComponent.SetInline">SetInline</link>
  7725. <link id="TComponent.SetDesignInstance">SetDesignInstance</link>
  7726. <link id="TComponent.Updating">Updating</link>
  7727. <link id="TComponent.Updated">Updated</link>
  7728. <link id="TComponent.Loaded">Loaded</link>
  7729. </seealso>
  7730. </element>
  7731. <element name="TComponent.ComponentStyle"> <!-- Property -->
  7732. <short>Current component's style.</short>
  7733. <descr>
  7734. </descr>
  7735. <seealso>
  7736. </seealso>
  7737. </element>
  7738. <element name="TComponent.DesignInfo"> <!-- Property -->
  7739. <short>Information for IDE designer.</short>
  7740. <descr>
  7741. <var>DesignInformation</var> can be used by an IDE to store design
  7742. information in the component. It should not be used by an application
  7743. programmer.
  7744. </descr>
  7745. <seealso>
  7746. <link id="TComponent.Tag">Tag</link>
  7747. </seealso>
  7748. </element>
  7749. <element name="TComponent.Owner"> <!-- Property -->
  7750. <short>Owner of this component.</short>
  7751. <descr>
  7752. <var>Owner</var> returns the owner of this component. The owner cannot be
  7753. set except by explicitly inserting the component in another component's
  7754. owned components list using that component's <link
  7755. id="TComponent.InsertComponent">InsertComponent</link> method, or by
  7756. removing the component from it's owner's owned component list using the
  7757. <link id="TComponent.RemoveComponent">RemoveComponent</link> method.
  7758. </descr>
  7759. <seealso>
  7760. <link id="TComponent.Components">Components</link>
  7761. <link id="TComponent.InsertComponent">InsertComponent</link>
  7762. <link id="TComponent.RemoveComponent">RemoveComponent</link>
  7763. </seealso>
  7764. </element>
  7765. <element name="TComponent.VCLComObject"> <!-- Property -->
  7766. <short>Not implemented.</short>
  7767. <descr>
  7768. <var>VCLComObject</var> is not yet implemented in Free Pascal.
  7769. </descr>
  7770. </element>
  7771. <element name="TComponent.Name"> <!-- Property -->
  7772. <short>Name of the component.</short>
  7773. <descr>
  7774. <var>Name</var> is the name of the component. This name should be a valid
  7775. identifier, i.e. must start with a letter, and can contain only letters,
  7776. numbers and the underscore character. When attempting to set the name of a
  7777. component, the name will be checked for validity. Furthermore, when a
  7778. component is owned by another component, the name must be either empty
  7779. or must be unique among the child component names.
  7780. </descr>
  7781. <errors>
  7782. Attempting to set the name to an invalid value will result in an exception
  7783. being raised.
  7784. </errors>
  7785. <seealso>
  7786. <link id="TComponent.ValidateRename">ValidateRename</link>
  7787. <link id="TComponent.Owner">Owner</link>
  7788. </seealso>
  7789. </element>
  7790. <element name="TComponent.Tag"> <!-- Property -->
  7791. <short>Tag value of the component.</short>
  7792. <descr>
  7793. <var>Tag</var> can be used to store an integer value in the component. This
  7794. value is streamed together with all other published properties. It can be
  7795. used for instance to quickly identify a component in an event handler.
  7796. </descr>
  7797. <seealso>
  7798. <link id="TComponent.Name">Name</link>
  7799. </seealso>
  7800. </element>
  7801. <!--
  7802. *********************************************************************
  7803. TBasicAction
  7804. *********************************************************************
  7805. -->
  7806. <element name="TBasicAction">
  7807. <short>Abstract base class for all Actions.</short>
  7808. <descr>
  7809. <p>
  7810. <var>TBasicAction</var> implements a basic action class from which all
  7811. actions are derived. It introduces all basic methods of an action, and
  7812. implements functionality to maintain a list of clients, i.e. components that
  7813. are connected with this action.
  7814. </p>
  7815. <p>
  7816. Do not create instances of <var>TBasicAction</var>. Instead, create a
  7817. descendent class and create an instance of this class instead.
  7818. </p>
  7819. </descr>
  7820. <seealso>
  7821. <link id="TBasicActionLink"/>
  7822. <link id="TComponent"/>
  7823. </seealso>
  7824. </element>
  7825. <element name="TBasicAction.FClients">
  7826. <short>List with components linked to this action.
  7827. </short>
  7828. <descr>
  7829. <var>FClients</var> is a list of <link id="TBasicActionLink"/> classes which
  7830. represent links to various components that are connected to this action.
  7831. The elements in this list should not be manipulated directly, but should be
  7832. managed with the
  7833. <link id="TBasicAction.RegisterChanges">RegisterChanges</link> and
  7834. <link id="TBasicAction.UnRegisterChanges">UnRegisterChanges</link> methods.
  7835. </descr>
  7836. <seealso>
  7837. <link id="TBasicAction.RegisterChanges">RegisterChanges</link>
  7838. <link id="TBasicAction.UnRegisterChanges">UnRegisterChanges</link>
  7839. <link id="TBasicActionLink"/>
  7840. </seealso>
  7841. </element>
  7842. <element name="TBasicAction.Change">
  7843. <short>Calls the <link id="TBasicAction.OnChange">OnChange</link> handler.</short>
  7844. <descr>
  7845. <p>
  7846. <var>Change</var> calls the <link id="TBasicAction.OnChange">OnChange</link>
  7847. handler if one is assigned.
  7848. </p>
  7849. <p>
  7850. Application programmers should not call <var>Change</var> directly.
  7851. It is called automatically if a property of an action component changes.
  7852. </p>
  7853. <p>
  7854. Descendent classes of <var>TBasicAction</var> should call explicitly call
  7855. <var>Change</var> if one of their properties that affect client controls
  7856. changes its value.
  7857. </p>
  7858. </descr>
  7859. </element>
  7860. <element name="TBasicAction.SetOnExecute">
  7861. <short>Assigns an <link id="TBasicAction.OnExecute">OnExecute</link> event
  7862. handler</short>
  7863. <descr>
  7864. <var>SetOnExecute</var> sets the
  7865. <link id="TBasicAction.OnExecute">OnExecute</link> handler of the component.
  7866. It also propagates this event to all client controls, and finally triggers
  7867. the <link id="TBasicAction.OnChange">OnChange</link> event.
  7868. </descr>
  7869. <seealso>
  7870. <link id="TBasicAction.OnExecute">OnExecute</link>
  7871. <link id="TBasicAction.OnChange">OnChange</link>
  7872. </seealso>
  7873. </element>
  7874. <element name="TBasicAction.OnChange">
  7875. <short>Occurs when one of the action's properties changes.
  7876. </short>
  7877. <descr>
  7878. <p>
  7879. <var>OnChange</var> is the event that is triggered when one of the
  7880. action's properties changes. This event should be used by client
  7881. controls or descendent classes to respond to these changes in the properties
  7882. of the action.
  7883. </p>
  7884. <p>
  7885. Application programmers should never use the <var>OnChange</var> event
  7886. directly.
  7887. </p>
  7888. </descr>
  7889. </element>
  7890. <element name="TBasicAction.Create">
  7891. <short>Creates a new instance of a <link id="TBasicAction"/> class.
  7892. </short>
  7893. <descr>
  7894. <p>
  7895. <var>Create</var> calls the inherited constructor, and then initializes the
  7896. list of clients controls (or action lists) by adding the <var>AClient</var>
  7897. argument to the list of client controls.
  7898. </p>
  7899. <p>
  7900. Under normal circumstances it should not be necessary to create a
  7901. <var>TBasicAction</var> descendent manually, actions are created in an IDE.
  7902. </p>
  7903. </descr>
  7904. <seealso>
  7905. <link id="TBasicAction.Destroy">Destroy</link>
  7906. <link id="TBasicAction.AssignClient">AssignClient</link>
  7907. </seealso>
  7908. </element>
  7909. <element name="TBasicAction.Destroy">
  7910. <short>Destroys the action.</short>
  7911. <descr>
  7912. <p>
  7913. <var>Destroy</var> cleans up the list of client controls and then calls the
  7914. inherited destructor.
  7915. </p>
  7916. <p>
  7917. An application programmer should not call <var>Destroy</var> directly;
  7918. Instead <var>Free</var> should be called, if it needs to be called at all.
  7919. Normally the controlling class (e.g. a TActionList) will destroy the action.
  7920. </p>
  7921. </descr>
  7922. </element>
  7923. <element name="TBasicAction.HandlesTarget">
  7924. <short>Determines whether <var>Target</var> can be handled by this action
  7925. </short>
  7926. <descr>
  7927. <p>
  7928. <var>HandlesTarget</var> returns <var>True</var> if <var>Target</var> is
  7929. a valid client for this action and if so, if it is in a suitable state to
  7930. execute the action. An application programmer should never need to call
  7931. <var>HandlesTarget</var> directly, it will be called by the action itself
  7932. when needed.
  7933. </p>
  7934. <p>
  7935. In <var>TBasicAction</var> this method is empty; descendent classes should
  7936. override this method to implement appropriate checks.
  7937. </p>
  7938. </descr>
  7939. <seealso>
  7940. <link id="TBasicAction.UpdateTarget">UpdateTarget</link>
  7941. <link id="TBasicAction.ExecuteTarget">ExecuteTarget</link>
  7942. </seealso>
  7943. </element>
  7944. <element name="TBasicAction.UpdateTarget">
  7945. <short>Notify client controls when the action updates itself.</short>
  7946. <descr>
  7947. <p>
  7948. <var>UpdateTarget</var> should update the client control specified by
  7949. <var>Target</var> when the action updates itself.
  7950. In <var>TBasicAction</var>, the implementation of <var>UpdateTarget</var>
  7951. is empty. Descendent classes should override and implement
  7952. <var>UpdateTarget</var> to actually update the <var>Target</var> object.
  7953. </p>
  7954. <p>
  7955. An application programmer should never need to call
  7956. <var>HandlesTarget</var> directly, it will be called by the action itself
  7957. when needed.
  7958. </p>
  7959. </descr>
  7960. <seealso>
  7961. <link id="TBasicAction.HandlesTarget">HandlesTarget</link>
  7962. <link id="TBasicAction.ExecuteTarget">ExecuteTarget</link>
  7963. </seealso>
  7964. </element>
  7965. <element name="TBasicAction.ExecuteTarget">
  7966. <short>Executes the action on the <var>Target</var> object</short>
  7967. <descr>
  7968. <p>
  7969. <var>ExecuteTarget</var> performs the action on the <var>Target</var>
  7970. object. In <var>TBasicAction</var> this method does nothing. Descendent
  7971. classes should implement the action to be performed. For instance an action
  7972. to post data in a dataset could call the <var>Post</var> method of the
  7973. dataset.
  7974. </p>
  7975. <p>
  7976. An application programmer should never call <var>ExecuteTarget</var>
  7977. directly.
  7978. </p>
  7979. </descr>
  7980. <seealso>
  7981. <link id="TBasicAction.HandlesTarget">HandlesTarget</link>
  7982. <link id="TBasicAction.ExecuteTarget">UpdateTarget</link>
  7983. <link id="TBasicAction.Execute">Execute</link>
  7984. </seealso>
  7985. </element>
  7986. <element name="TBasicAction.Execute">
  7987. <short>Triggers the <link id="TBasicAction.OnExecute">OnExecute</link> event</short>
  7988. <descr>
  7989. <var>Execute</var> triggers the <var>OnExecute</var> event, if one is
  7990. assigned. It returns <var>True</var> if the event handler was called,
  7991. <var>False</var> otherwise.
  7992. </descr>
  7993. </element>
  7994. <element name="TBasicAction.RegisterChanges">
  7995. <short>Registers a new client with the action.</short>
  7996. <descr>
  7997. <var>RegisterChanges</var> adds <var>Value</var> to the list of clients.
  7998. </descr>
  7999. <seealso>
  8000. <link id="TBasicAction.UnregisterChanges">UnregisterChanges</link>
  8001. </seealso>
  8002. </element>
  8003. <element name="TBasicAction.UnregisterChanges">
  8004. <short>Unregisters a client from the list of clients</short>
  8005. <descr>
  8006. <var>UnregisterChanges</var> removes <var>Value</var> from the list of clients.
  8007. This is called for instance when the action is destroyed, or when the client
  8008. is assigned a new action.
  8009. </descr>
  8010. <seealso>
  8011. <link id="TBasicAction.UnregisterChanges">UnregisterChanges</link>
  8012. <link id="TBasicAction.Destroy">Destroy</link>
  8013. </seealso>
  8014. </element>
  8015. <element name="TBasicAction.Update">
  8016. <short>Triggers the <link id="TBasicAction.OnUpdate">OnUpdate</link> event</short>
  8017. <descr>
  8018. <p>
  8019. <var>Update</var> triggers the <var>OnUpdate</var> event, if one is
  8020. assigned. It returns <var>True</var> if the event was triggered, or
  8021. <var>False</var> if no event was assigned.
  8022. </p>
  8023. <p>
  8024. Application programmers should never run <var>Update</var> directly. The
  8025. <var>Update</var> method is called automatically by the action mechanism;
  8026. Normally this is in the Idle time of an application. An application
  8027. programmer should assign the <link id="TBasicAction.OnUpdate">OnUpdate</link>
  8028. event, and perform any checks in that handler.
  8029. </p>
  8030. </descr>
  8031. <seealso>
  8032. <link id="TBasicAction.OnUpdate">OnUpdate</link>
  8033. <link id="TBasicAction.Execute">Execute</link>
  8034. <link id="TBAsicAction.UpdateTarget">UpdateTarget</link>
  8035. </seealso>
  8036. </element>
  8037. <element name="TBasicAction.ActionComponent">
  8038. <short>Returns the component that initiated the action.</short>
  8039. <descr>
  8040. <var>ActionComponent</var> is set to the component that caused the action to
  8041. execute, e.g. a toolbutton or a menu item.
  8042. The property is set just before the action executes, and is reset to nil
  8043. after the action was executed.
  8044. </descr>
  8045. <seealso>
  8046. <link id="TBasicAction.Execute">Execute</link>
  8047. <link id="TBasicAction.OnExecute">OnExecute</link>
  8048. </seealso>
  8049. </element>
  8050. <element name="TBasicAction.OnExecute">
  8051. <short>Event triggered when the action executes.</short>
  8052. <descr>
  8053. <p>
  8054. <var>OnExecute</var> is the event triggered when the action is activated
  8055. (executed). The event is triggered e.g. when the user clicks e.g. on a menu
  8056. item or a button associated to the action. The application programmer
  8057. should provide a <var>OnExecute</var> event handler to execute whatever code
  8058. is necessary when the button is pressed or the menu item is chosen.
  8059. </p>
  8060. <p>
  8061. Note that assigning an <var>OnExecute</var> handler will result in the
  8062. <link id="TBasicAction.Execute">Execute</link> method returning a
  8063. <var>True</var> value. Predefined actions (such as dataset actions)
  8064. will check the result of <var>Execute</var> and will not perform their
  8065. normal task if the <var>OnExecute</var> handler was called.
  8066. </p>
  8067. </descr>
  8068. <seealso>
  8069. <link id="TBasicAction.Execute">Execute</link>
  8070. <link id="TBasicAction.OnUpdate">OnUpdate</link>
  8071. </seealso>
  8072. </element>
  8073. <element name="TBasicAction.OnUpdate">
  8074. <short>Event trigged when the application is idle.</short>
  8075. <descr>
  8076. <var>OnUpdate</var> is the event triggered when the application is idle, and
  8077. the action is being updated. The <var>OnUpdate</var> event can be used to
  8078. set the state of the action, for instance disable it if the action cannot be
  8079. executed at this point in time.
  8080. </descr>
  8081. <seealso>
  8082. <link id="TBasicAction.Update">Update</link>
  8083. <link id="TBasicAction.OnExecute">OnExecute</link>
  8084. </seealso>
  8085. </element>
  8086. <!--
  8087. *********************************************************************
  8088. TBasicActionLink
  8089. *********************************************************************
  8090. -->
  8091. <element name="TBasicActionLink">
  8092. <short>Link between actions and action clients (e.g. controls)</short>
  8093. <descr>
  8094. <p>
  8095. <var>TBasicActionLink</var> links an Action to its clients. With each client
  8096. for an action, a <var>TBasicActionLink</var> class is instantiated to handle
  8097. the communication between the action and the client. It passes events
  8098. between the action and its clients, and thus presents the action with a
  8099. uniform interface to the clients.
  8100. </p>
  8101. <p>An application programmer should never use a <var>TBasicActionLink</var>
  8102. instance directly; They are created automatically when an action is
  8103. associated with a component. Component programmers should create specialized
  8104. descendents of <var>TBasicActionLink</var> which communicate changes in the
  8105. action to the component.
  8106. </p>
  8107. </descr>
  8108. <seealso>
  8109. <link id="TBasicAction"/>
  8110. </seealso>
  8111. </element>
  8112. <element name="TBasicActionLink.FAction">
  8113. <short>The action with which this link is associated</short>
  8114. <descr>
  8115. <var>FAction</var> contains a reference to the action with which this link
  8116. is associated. It should never be manipulated directly. It will be set
  8117. automatically by the <link id="TBasicActionLink.SetAction">SetAction</link> write method
  8118. for the <link id="TBasicActionLink.Action">Action</link> property.
  8119. </descr>
  8120. <seealso>
  8121. <link id="TBasicActionLink.SetAction">SetAction</link>
  8122. <link id="TBasicActionLink.Action">Action</link>
  8123. </seealso>
  8124. </element>
  8125. <element name="TBasicActionLink.AssignClient">
  8126. <short>Assigns a control (client) to the action link.</short>
  8127. <descr>
  8128. <var>AssignClient</var> assigns a control to the actionlink and hence to the
  8129. action. Descendent classes can override <var>AssignClient</var> to check
  8130. whether the new client is a suitable client for this action.
  8131. </descr>
  8132. <seealso>
  8133. <link id="TBasicActionLink.Action">Action</link>
  8134. </seealso>
  8135. </element>
  8136. <element name="TBasicActionLink.Change">
  8137. <short>Executed whenever the Action is changed.</short>
  8138. <descr>
  8139. <p>
  8140. <var>Change</var> is executed whenever the action changes.
  8141. It executes the <link id="TBasicActionLink.OnChange">OnChange</link>
  8142. handler, if one is assigned.
  8143. </p>
  8144. <p>
  8145. Component programmers may decide to override the <var>Change</var>
  8146. procedure in descendent classes to perform aditional actions when
  8147. the properties of the action changes.
  8148. </p>
  8149. </descr>
  8150. <seealso>
  8151. <link id="TBasicActionLink.OnChange">OnChange</link>
  8152. <link id="TBasicAction.Change"/>
  8153. </seealso>
  8154. </element>
  8155. <element name="TBasicActionLink.IsOnExecuteLinked">
  8156. <short>Returns whether the client has it's OnExecute property linked.</short>
  8157. <descr>
  8158. <var>IsOnExecuteLinked</var> always returns true in <var>TBasicActionLink</var>.
  8159. Descendent classes can override this method to provide a different result.
  8160. </descr>
  8161. <link id="TBasicActionLink.OnExecute">OnExecute</link>
  8162. </element>
  8163. <element name="TBasicActionLink.SetAction">
  8164. <short>Sets the action with which the actionlink is associated.</short>
  8165. <descr>
  8166. <var>SetAction</var> is the write handler for the <link
  8167. id="TBasicActionLink.Action">Action</link> property. It sets the
  8168. <var>Action</var> property to it's new value, after unregistering itself
  8169. with the old action, if there was one.
  8170. </descr>
  8171. <seealso>
  8172. <link id="TBasicActionLink.Action">Action</link>
  8173. <link id="TBasicAction"/>
  8174. </seealso>
  8175. </element>
  8176. <element name="TBasicActionLink.SetOnExecute">
  8177. <short>Assigns the <link id="TBasicAction.OnExecute">OnExecute</link> handler
  8178. to the client</short>
  8179. <descr>
  8180. <var>SetOnExecute</var> must be overridden by descendent classes to pass the
  8181. <var>OnExecute</var> handler of the associated action to the client control.
  8182. It will attach the <var>OnExecute</var> handler to whatever handler is
  8183. appropriate for the client control.
  8184. </descr>
  8185. <seealso>
  8186. <link id="TBasicAction.OnExecute">OnExecute</link>
  8187. <link id="TBasicAction"/>
  8188. </seealso>
  8189. </element>
  8190. <element name="TBasicActionLink.Create">
  8191. <short>Creates a new instance of the TBasicActionLink class</short>
  8192. <descr>
  8193. <p>
  8194. <var>Create</var> creates a new instance of a <var>TBasicActionLink</var>
  8195. and assigns <var>AClient</var> as the client of the link.
  8196. </p>
  8197. <p>
  8198. Application programmers should never instantiate <var>TBasicActionLink</var>
  8199. classes directly. An instance is created automatically when an action is
  8200. assigned to a control (client).
  8201. </p>
  8202. <p>
  8203. Component programmers can override the create constructor to initialize
  8204. further properties.
  8205. </p>
  8206. </descr>
  8207. <seealso>
  8208. <link id="TBasicActionLink.Destroy">Destroy</link>
  8209. </seealso>
  8210. </element>
  8211. <element name="TBasicActionLink.Destroy">
  8212. <short>Destroys the TBasicActionLink instance.</short>
  8213. <descr>
  8214. <p>
  8215. <var>Destroy</var> unregisters the <var>TBasicActionLink</var> with the
  8216. action, and then calls the inherited destructor.
  8217. </p>
  8218. <p>
  8219. Application programmers should never call <var>Destroy</var> directly. If a
  8220. link should be destroyed at all, the <var>Free</var> method should be called
  8221. instead.
  8222. </p>
  8223. </descr>
  8224. <seealso>
  8225. <link id="TBasicActionLink.Create">Create</link>
  8226. </seealso>
  8227. </element>
  8228. <element name="TBasicActionLink.Execute">
  8229. <short>Calls the action's Execute method.</short>
  8230. <descr>
  8231. <p>
  8232. <var>Execute</var> sets the <link
  8233. id="TBasicAction.ActionComponent">ActionComponent</link>
  8234. property of the associated <link id="TBasicActionLink.Action">Action</link> to
  8235. <var>AComponent</var> and then calls the Action's <link
  8236. id="TBasicAction.Execute">execute</link> method. After the action has
  8237. executed, the <var>ActionComponent</var> property is cleared again.
  8238. </p>
  8239. <p>
  8240. The return value of the function is the return value of the Action's execute
  8241. method.
  8242. </p>
  8243. <p>
  8244. Application programmers should never call <var>Execute</var> directly. This
  8245. method will be called automatically when the associated control is
  8246. activated. (e.g. a button is clicked on)
  8247. </p>
  8248. <p>
  8249. Component programmers should call <var>Execute</var> whenever the action
  8250. should be activated.
  8251. </p>
  8252. </descr>
  8253. <seealso>
  8254. <link id="TBasicActionLink.Action">Action</link>
  8255. <link id="TBasicAction.ActionComponent"/>
  8256. <link id="TBasicAction.Execute"/>
  8257. <link id="TBasicAction.onExecute"/>
  8258. </seealso>
  8259. </element>
  8260. <element name="TBasicActionLink.Update">
  8261. <short>Calls the action's Update method</short>
  8262. <descr>
  8263. <p>
  8264. <var>Update</var> calls the associated Action's <link
  8265. id="TBasicAction.Update">Update</link> methoda.
  8266. </p>
  8267. <p>
  8268. Component programmers can override the <var>Update</var> method to provide
  8269. additional processing when the <var>Update</var> method occurs.
  8270. </p>
  8271. </descr>
  8272. </element>
  8273. <element name="TBasicActionLink.Action">
  8274. <short>The action to which the link was assigned.</short>
  8275. <descr>
  8276. <var>Action</var> represents the <link id="TBasicAction">Action</link> which
  8277. was assigned to the client. Setting this property will unregister the client
  8278. at the old action (if one existed) and registers the client at the new
  8279. action.
  8280. </descr>
  8281. <seealso>
  8282. <link id="TBasicAction"/>
  8283. </seealso>
  8284. </element>
  8285. <element name="TBasicActionLink.OnChange">
  8286. <short>Event handler triggered when the action's properties change</short>
  8287. <descr>
  8288. <p>
  8289. <var>OnChange</var> is the event triggered when the action's properties
  8290. change.
  8291. </p>
  8292. <p>
  8293. Application programmers should never need to assign this event. Component
  8294. programmers can assign this event to have a client control reflect any
  8295. changes in an Action's properties.
  8296. </p>
  8297. </descr>
  8298. <seealso>
  8299. <link id="TBasicActionLink.Change">Change</link>
  8300. <link id="TBasicAction.Change"/>
  8301. </seealso>
  8302. </element>
  8303. <!--
  8304. *********************************************************************
  8305. Various calls
  8306. *********************************************************************
  8307. -->
  8308. <element name="TActiveXRegType"> <!-- Enumeration type -->
  8309. <short>Used when registering ActveX component types.</short>
  8310. <descr>
  8311. This type is provided for compatibility only, and is currently not used in
  8312. Free Pascal.
  8313. </descr>
  8314. <seealso>
  8315. </seealso>
  8316. </element>
  8317. <element name="TActiveXRegType.axrComponentOnly"> <!-- Enumeration value -->
  8318. <short></short>
  8319. </element>
  8320. <element name="TActiveXRegType.axrIncludeDescendants"> <!-- Enumeration value -->
  8321. <short></short>
  8322. </element>
  8323. <element name="RegisterComponentsProc"> <!-- Variable -->
  8324. <short>Callback procedure used when handling component registration.</short>
  8325. <descr>
  8326. <var>RegisterComponentsProc</var> can be set by an IDE to be notified when
  8327. new components are being registered. Application programmers should never
  8328. have to set <var>RegisterComponentsProc</var>
  8329. </descr>
  8330. <seealso>
  8331. <link id="RegisterNoIconProc"/>
  8332. <link id="RegisterComponents"/>
  8333. </seealso>
  8334. </element>
  8335. <element name="RegisterNoIconProc"> <!-- Variable -->
  8336. <short>Callback procedure used when handling iconless component registration.</short>
  8337. <descr>
  8338. <var>RegisterNoIconProc</var> can be set by an IDE to be notified when
  8339. new components are being registered, and which do not need an Icon in the
  8340. component palette. Application programmers should never
  8341. have to set <var>RegisterComponentsProc</var>
  8342. </descr>
  8343. <seealso>
  8344. </seealso>
  8345. </element>
  8346. <element name="Point"> <!-- Function -->
  8347. <short>Returns a <var>TPoint</var> record with the given coordinates.</short>
  8348. <descr>
  8349. <var>Point</var> returns a <link id="TPoint"/> record with the given
  8350. coordinates <var>AX</var> and <var>AY</var> filled in.
  8351. </descr>
  8352. <seealso>
  8353. <link id="TPoint"/>
  8354. <link id="SmallPoint"/>
  8355. <link id="Rect"/>
  8356. <link id="Bounds"/>
  8357. </seealso>
  8358. </element>
  8359. <element name="SmallPoint"> <!-- Function -->
  8360. <short>Returns a <var>TSmallPoint</var> record with the given coordinates.</short>
  8361. <descr>
  8362. <var>SmallPoint</var> returns a <link id="TSmallPoint"/> record with the given
  8363. coordinates <var>AX</var> and <var>AY</var> filled in.
  8364. </descr>
  8365. <seealso>
  8366. <link id="TSmallPoint"/>
  8367. <link id="Point"/>
  8368. <link id="Rect"/>
  8369. <link id="Bounds"/>
  8370. </seealso>
  8371. </element>
  8372. <element name="Rect"> <!-- Function -->
  8373. <short>Returns a <var>TRect</var> record with the given coordinates.</short>
  8374. <descr>
  8375. <p>
  8376. <var>Rect</var> returns a <link id="TRect"/> record with the given
  8377. top-left <var>(ALeft,ATop)</var> and bottom-right <var>(ABottom,ARight)</var>
  8378. corners filled in.
  8379. </p>
  8380. <p>
  8381. No checking is done to see whether the coordinates are valid.
  8382. </p>
  8383. </descr>
  8384. <seealso>
  8385. <link id="TRect"/>
  8386. <link id="Point"/>
  8387. <link id="SmallPoint"/>
  8388. <link id="Bounds"/>
  8389. </seealso>
  8390. </element>
  8391. <element name="Bounds"> <!-- Function -->
  8392. <short>Returns a <var>TRect</var> structure with the bounding rect of the
  8393. given location and size.</short>
  8394. <descr>
  8395. <var>Bounds</var> returns a <link id="TRect"/> record with the given
  8396. origin <var>(ALeft,ATop)</var> and dimensions <var>(AWidth,AHeight)</var>
  8397. filled in.
  8398. </descr>
  8399. <seealso>
  8400. </seealso>
  8401. </element>
  8402. <element name="RegisterClass"> <!-- Procedure -->
  8403. <short>Registers a class with the streaming system.</short>
  8404. <descr>
  8405. <var>RegisterClass</var> registers the class <var>AClass</var> in the
  8406. streaming system. After the class has been registered, it can be read from
  8407. a stream when a reference to this class is encountered.
  8408. </descr>
  8409. <seealso>
  8410. <link id="RegisterClasses"/>
  8411. <link id="RegisterClassAlias"/>
  8412. <link id="RegisterComponents"/>
  8413. <link id="UnregisterClass"/>
  8414. </seealso>
  8415. </element>
  8416. <element name="RegisterClasses"> <!-- Procedure -->
  8417. <short>Registers multiple classes with the streaming system.</short>
  8418. <descr>
  8419. <var>RegisterClasses</var> registers the specified classes <var>AClass</var> in the
  8420. streaming system. After the classes have been registered, they can be read from
  8421. a stream when a reference to this class is encountered.
  8422. </descr>
  8423. <seealso>
  8424. <link id="RegisterClass"/>
  8425. <link id="RegisterClassAlias"/>
  8426. <link id="RegisterComponents"/>
  8427. <link id="UnregisterClass"/>
  8428. </seealso>
  8429. </element>
  8430. <element name="RegisterClassAlias"> <!-- Procedure -->
  8431. <short>Registers a class alias with the streaming system.</short>
  8432. <descr>
  8433. <var>RegisterClassAlias</var> registers a class alias in the streaming
  8434. system. If a reference to a class <var>Alias</var> is encountered in a
  8435. stream, then an instance of the class <var>AClass</var> will be created
  8436. instead by the streaming code.
  8437. </descr>
  8438. <seealso>
  8439. <link id="RegisterClass"/>
  8440. <link id="RegisterClasses"/>
  8441. <link id="RegisterComponents"/>
  8442. <link id="UnregisterClass"/>
  8443. </seealso>
  8444. </element>
  8445. <element name="UnRegisterClass"> <!-- Procedure -->
  8446. <short>Unregisters a class from the streaming system.</short>
  8447. <descr>
  8448. <var>UnregisterClass</var> removes the class <var>AClass</var> from the
  8449. class definitions in the streaming system.
  8450. </descr>
  8451. <seealso>
  8452. <link id="UnRegisterClasses"/>
  8453. <link id="UnRegisterModuleClasses"/>
  8454. <link id="RegisterClass"/>
  8455. </seealso>
  8456. </element>
  8457. <element name="UnRegisterClasses"> <!-- Procedure -->
  8458. <short>Unregisters multiple classes from the streaming system.</short>
  8459. <descr>
  8460. <var>UnregisterClasses</var> removes the classes in <var>AClasses</var> from the
  8461. class definitions in the streaming system.
  8462. </descr>
  8463. <link id="UnRegisterClass"/>
  8464. <link id="UnRegisterModuleClasses"/>
  8465. <link id="RegisterClasses"/>
  8466. <seealso>
  8467. </seealso>
  8468. </element>
  8469. <element name="UnRegisterModuleClasses"> <!-- Procedure -->
  8470. <short>Unregisters classes registered by module.</short>
  8471. <descr>
  8472. <var>UnRegisterModuleClasses</var> unregisters all classes which reside in
  8473. the module <var>Module</var>. For each registered class, the definition
  8474. pointer is checked to see whether it resides in the module, and if it does,
  8475. the definition is removed.
  8476. </descr>
  8477. <seealso>
  8478. <link id="UnRegisterClass"/>
  8479. <link id="UnRegisterClasses"/>
  8480. <link id="RegisterClasses"/>
  8481. </seealso>
  8482. </element>
  8483. <element name="FindClass"> <!-- Function -->
  8484. <short>Returns the class pointer of a class with given name.</short>
  8485. <descr>
  8486. <p>
  8487. <var>FindClass</var> searches for the class named <var>ClassName</var>
  8488. in the list of registered classes and returns a class pointer to the
  8489. definition. If no class with the given name could be found, an exception is
  8490. raised.
  8491. </p>
  8492. <p>The <link id="GetClass"/> function does not raise an exception when it
  8493. does not find the class, but returns a <var>Nil</var> pointer instead.
  8494. </p>
  8495. </descr>
  8496. <seealso>
  8497. <link id="RegisterClass"/>
  8498. <link id="GetClass"/>
  8499. </seealso>
  8500. </element>
  8501. <element name="GetClass"> <!-- Function -->
  8502. <short>Returns the class pointer of a class with given name.</short>
  8503. <descr>
  8504. <p>
  8505. <var>GetClass</var> searches for the class named <var>ClassName</var>
  8506. in the list of registered classes and returns a class pointer to the
  8507. definition. If no class with the given name could be found, <var>Nil</var>
  8508. is returned.
  8509. </p>
  8510. <p>The <link id="FindClass"/> function will raise an exception if the
  8511. does not find the class.
  8512. </p>
  8513. </descr>
  8514. <seealso>
  8515. <link id="RegisterClass"/>
  8516. <link id="GetClass"/>
  8517. </seealso>
  8518. </element>
  8519. <element name="RegisterComponents"> <!-- Procedure -->
  8520. <short>Registers components for the component palette.</short>
  8521. <descr>
  8522. <p>
  8523. <var>RegisterComponents</var> registers the component on the appropriate
  8524. component page. The component pages can be used by an IDE to display the
  8525. known components so an application programmer may pick and use the
  8526. components in his programs.
  8527. </p>
  8528. <p>
  8529. Registercomponents inserts the component class in the correct component
  8530. page. If the <var>RegisterComponentsProc</var> procedure is set, this is
  8531. called as well. Note that this behaviour is different from Delphi's
  8532. behaviour where an exception will be raised if the procedural variable is
  8533. not set.
  8534. </p>
  8535. </descr>
  8536. <seealso>
  8537. <link id="RegisterClass"/>
  8538. <link id="RegisterNoIcon"/>
  8539. </seealso>
  8540. </element>
  8541. <element name="RegisterNoIcon"> <!-- Procedure -->
  8542. <short>Registers components that have no icon on the component palette.</short>
  8543. <descr>
  8544. <var>RegisterNoIcon</var> performs the same function as <link
  8545. id="RegisterComponents"/> except that it calls <link
  8546. id="RegisterNoIconProc"/>
  8547. instead of <link id="RegisterComponentsProc"/>
  8548. </descr>
  8549. <seealso>
  8550. <link id="RegisterNoIconProc"/>
  8551. <link id="RegisterComponents"/>
  8552. </seealso>
  8553. </element>
  8554. <element name="RegisterNonActiveX"> <!-- Procedure -->
  8555. <short>Register non-activex component.</short>
  8556. <descr>
  8557. Not yet implemented in Free Pascal
  8558. </descr>
  8559. <seealso>
  8560. </seealso>
  8561. </element>
  8562. <element name="TIdentMapEntry"> <!-- Record type -->
  8563. <short>Record used when associating names with integer values.</short>
  8564. <descr>
  8565. <var>TIdentMapEntry</var> is used internally by the <link id="IdentToInt"/>
  8566. and <link id="IntToIdent"/> calls to store the mapping between the
  8567. identifiers and the integers they represent.
  8568. </descr>
  8569. <seealso>
  8570. <link id="IntToIdent"/>
  8571. <link id="IdentToInt"/>
  8572. </seealso>
  8573. </element>
  8574. <element name="TIdentMapEntry.Value"> <!-- Variable -->
  8575. <short>Integer value</short>
  8576. </element>
  8577. <element name="TIdentMapEntry.Name"> <!-- Variable -->
  8578. <short>Name of the integer value.</short>
  8579. </element>
  8580. <element name="TIdentToInt"> <!-- Function type -->
  8581. <short>Callback for converting identifiers to integers.</short>
  8582. <descr>
  8583. <p>
  8584. <var>TIdentToInt</var> is a callback used to look up identifiers
  8585. (<var>Ident</var>) and return an integer value corresponding to this
  8586. identifier (<var>Int</var>). The callback should return <var>True</var> if a
  8587. value corresponding to integer <var>Ident</var> was found, <var>False</var>
  8588. if not.
  8589. </p>
  8590. <p>
  8591. A callback of type <var>TIdentToInt</var> should be specified when an
  8592. integer is registered using the <link id="RegisterIntegerConsts"/> call.
  8593. </p>
  8594. </descr>
  8595. <seealso>
  8596. <link id="RegisterIntegerConsts"/>
  8597. <link id="TIntToIdent"/>
  8598. </seealso>
  8599. </element>
  8600. <element name="TIntToIdent"> <!-- Function type -->
  8601. <short>Callback for converting integers to identifiers.</short>
  8602. <descr>
  8603. <p>
  8604. <var>TIdentToInt</var> is a callback used to look up integers
  8605. (<var>Ident</var>) and return an identifier (<var>Ident</var>)
  8606. that can be used to represent this integer value in an IDE.
  8607. The callback should return <var>True</var> if a value corresponding
  8608. to integer <var>Ident</var> was found, <var>False</var> if not.
  8609. </p>
  8610. <p>
  8611. A callback of type <var>TIntToIdent</var> should be specified when an
  8612. integer is registered using the <link id="RegisterIntegerConsts"/> call.
  8613. </p>
  8614. </descr>
  8615. <seealso>
  8616. <link id="RegisterIntegerConsts"/>
  8617. <link id="TIdentToInt"/>
  8618. </seealso>
  8619. </element>
  8620. <element name="TFindGlobalComponent"> <!-- Function type -->
  8621. <short>Callback type to search for a component.</short>
  8622. <descr>
  8623. <p>
  8624. <var>TFindGlobalComponent</var> is a callback used to find a component in a
  8625. global scope. It is used when the streaming system needs to find a component
  8626. which is not part of the component which is currently being streamed. It
  8627. should return the component with name <var>Name</var>, or <var>Nil</var> if
  8628. none is found.
  8629. </p>
  8630. <p>
  8631. The variable <link id="FindGlobalComponent"/> is a callback of type
  8632. <var>TFindGlobalComponent</var>. It can be set by the IDE when an unknown
  8633. reference is found, to offer the designer to redirect the link to a new
  8634. component.
  8635. </p>
  8636. </descr>
  8637. <seealso>
  8638. <link id="FindGlobalComponent"/>
  8639. </seealso>
  8640. </element>
  8641. <element name="MainThreadID"> <!-- Variable -->
  8642. <short>ID of main thread. Unused at this point.</short>
  8643. <descr>
  8644. </descr>
  8645. <seealso>
  8646. </seealso>
  8647. </element>
  8648. <element name="FindGlobalComponent"> <!-- Variable -->
  8649. <short>Callback used when a component must be found.</short>
  8650. <descr>
  8651. <p>
  8652. <var>FindGlobalComponent</var> is a callback of type
  8653. <link id="TFindGlobalComponent"/>. It can be set by the IDE when an unknown
  8654. reference is found, to offer the user to redirect the link to a new
  8655. component.
  8656. </p>
  8657. <p>
  8658. It is a callback used to find a component in a
  8659. global scope. It is used when the streaming system needs to find a component
  8660. which is not part of the component which is currently being streamed. It
  8661. should return the component with name <var>Name</var>, or <var>Nil</var> if
  8662. none is found.
  8663. </p>
  8664. </descr>
  8665. <seealso>
  8666. <link id="TFindGlobalComponent"/>
  8667. </seealso>
  8668. </element>
  8669. <element name="RegisterIntegerConsts"> <!-- Procedure -->
  8670. <short>Registers some integer-to-identifier mappings.</short>
  8671. <descr>
  8672. <p>
  8673. <var>RegisterIntegerConsts</var> registers a pair of callbacks to be used
  8674. when an integer of type <var>IntegerType</var> must be mapped to an
  8675. identifier (using <var>IntToIdentFn</var>) or when an identifier must be
  8676. mapper to an integer (using <var>IdentToIntFn</var>).
  8677. </p>
  8678. <p>
  8679. Component programmers can use <var>RegisterIntegerConsts</var> to associate
  8680. a series of identifier strings with integer values for a property. A
  8681. necessary condition is that the property should have a separate type
  8682. declared using the <var>type integer</var> syntax. If a type of integer is
  8683. defined in this way, an IDE can show symbolic names for the values of these
  8684. properties.
  8685. </p>
  8686. <p>
  8687. The <var>IntegerType</var> should be a pointer to the type information of
  8688. the integer type. The <var>IntToIdentFn</var> and <var>IdentToIntFn</var>
  8689. are two callbacks that will be used when converting between the identifier
  8690. and integer value and vice versa. The functions <link id="IdentToInt"/>
  8691. and <link id="IntToIdent"/> can be used to implement these callback
  8692. functions.
  8693. </p>
  8694. </descr>
  8695. <seealso>
  8696. <link id="TIdentToInt"/>
  8697. <link id="TIntToIdent"/>
  8698. <link id="IdentToInt"/>
  8699. <link id="IntToIdent"/>
  8700. </seealso>
  8701. </element>
  8702. <element name="IdentToInt"> <!-- Function -->
  8703. <short>Looks up an integer value in a integer-to-identifier map list.</short>
  8704. <descr>
  8705. <var>IdentToInt</var> searches <var>Map</var> for an entry whose
  8706. <var>Name</var> field matches <var>Ident</var> and returns the corresponding
  8707. integer value in <var>Int</var>. If a match was found, the function returns
  8708. <var>True</var>, otherwise, <var>False</var> is returned.
  8709. </descr>
  8710. <seealso>
  8711. <link id="TIdentToInt"/>
  8712. <link id="TIntToIdent"/>
  8713. <link id="IntToIdent"/>
  8714. <link id="TIdentMapEntry"/>
  8715. </seealso>
  8716. </element>
  8717. <element name="IntToIdent"> <!-- Function -->
  8718. <short>Looks up an identifier for an integer value in a identifier-to-integer map list.</short>
  8719. <descr>
  8720. <var>IdentToInt</var> searches <var>Map</var> for an entry whose
  8721. <var>Value</var> field matches <var>Int</var> and returns the corresponding
  8722. identifier in <var>Ident</var>. If a match was found, the function returns
  8723. <var>True</var>, otherwise, <var>False</var> is returned.
  8724. </descr>
  8725. <seealso>
  8726. <link id="TIdentToInt"/>
  8727. <link id="TintToIdent"/>
  8728. <link id="IdentToInt"/>
  8729. <link id="TIdentMapEntry"/>
  8730. </seealso>
  8731. </element>
  8732. <element name="InitInheritedComponent"> <!-- Function -->
  8733. <short>Initializes a component descending from <var>RootAncestor</var></short>
  8734. <descr>
  8735. <p>
  8736. <var>InitInheritedComponent</var> should be called from a constructor to
  8737. read properties of the component <var>Instance</var> from the streaming
  8738. system. The <var>RootAncestor</var> class is the root class from which
  8739. <var>Instance</var> is a descendent. This must be one of
  8740. <var>TDatamodule</var>, <var>TCustomForm</var> or <var>TFrame</var>.
  8741. </p>
  8742. <p>
  8743. The function returns <var>True</var> if the properties were successfully
  8744. read from a stream or <var>False</var> if some error occurred.
  8745. </p>
  8746. </descr>
  8747. <seealso>
  8748. <link id="ReadComponentRes"/>
  8749. <link id="ReadComponentResEx"/>
  8750. <link id="ReadComponentResFile"/>
  8751. </seealso>
  8752. </element>
  8753. <element name="InitComponentRes"> <!-- Function -->
  8754. <short>Provided for Delphi compatibility only</short>
  8755. <descr>
  8756. This function is provided for Delphi compatibility.
  8757. It always returns <var>false</var>.
  8758. </descr>
  8759. <seealso>
  8760. <link id="ReadComponentRes"/>
  8761. </seealso>
  8762. </element>
  8763. <element name="ReadComponentRes"> <!-- Function -->
  8764. <short>Read component properties from a resource in the current module</short>
  8765. <descr>
  8766. This function is provided for Delphi compatibility.
  8767. It always returns <var>Nil</var>.
  8768. </descr>
  8769. </element>
  8770. <element name="ReadComponentResEx"> <!-- Function -->
  8771. <short>Read component properties from a resource in the specified module</short>
  8772. <descr>
  8773. This function is provided for Delphi compatibility.
  8774. It always returns <var>Nil</var>.
  8775. </descr>
  8776. </element>
  8777. <element name="ReadComponentResFile"> <!-- Function -->
  8778. <short>Read component properties from a specified resource file</short>
  8779. <descr>
  8780. <var>ReadComponentResFile</var> starts reading properties for
  8781. <var>Instance</var> from the file <var>FileName</var>. It creates a
  8782. filestream from <var>FileName</var> and then calls the <link
  8783. id="TStream.ReadComponentRes"/> method to read the state of the component from the
  8784. stream.
  8785. </descr>
  8786. <seealso>
  8787. <link id="TStream.ReadComponentRes"/>
  8788. <link id="WriteComponentResFile"/>
  8789. </seealso>
  8790. </element>
  8791. <element name="WriteComponentResFile"> <!-- Procedure -->
  8792. <short>Write component properties to a specified resource file</short>
  8793. <descr>
  8794. <var>WriteComponentResFile</var> starts writing properties of
  8795. <var>Instance</var> to the file <var>FileName</var>. It creates a
  8796. filestream from <var>FileName</var> and then calls <link
  8797. id="TStream.WriteComponentRes"/> method to write the state of
  8798. the component to the stream.
  8799. </descr>
  8800. <seealso>
  8801. <link id="TStream.WriteComponentRes"/>
  8802. <link id="ReadComponentResFile"/>
  8803. </seealso>
  8804. </element>
  8805. <element name="GlobalFixupReferences"> <!-- Procedure -->
  8806. <short>Called to resolve unresolved references after forms are loaded.</short>
  8807. <descr>
  8808. <var>GlobalFixupReferences</var> runs over the list of unresolved references
  8809. and tries to resolve them. This routine should under normal circumstances
  8810. not be called in an application programmer's code. It is called
  8811. automatically by the streaming system after a component has been
  8812. instantiated and its properties read from a stream. It will attempt to
  8813. resolve references to other global components.
  8814. </descr>
  8815. <seealso>
  8816. <link id="GetFixupReferenceNames"/>
  8817. <link id="GetFixupInstanceNames"/>
  8818. </seealso>
  8819. </element>
  8820. <element name="GetFixupReferenceNames"> <!-- Procedure -->
  8821. <short>Returns the names of elements that need to be resolved for the
  8822. <var>root</var> component.</short>
  8823. <descr>
  8824. <var>GetFixupReferenceNames</var> examines the list of unresolved references
  8825. and returns the names of properties that must be resolved for the
  8826. component <var>Root</var> in the list <var>Names</var>. The list is not
  8827. cleared prior to filling it.
  8828. </descr>
  8829. <seealso>
  8830. <link id="GetFixupInstanceNames"/>
  8831. <link id="GlobalFixupReferences"/>
  8832. </seealso>
  8833. </element>
  8834. <element name="GetFixupInstanceNames"> <!-- Procedure -->
  8835. <short>Returns the names of elements that need to be resolved for the
  8836. <var>root</var> component, whose reference contains <var>ReferenceRootName</var></short>
  8837. <descr>
  8838. <var>GetFixupInstanceNames</var> examines the list of unresolved references
  8839. and returns the names of classes that contain unresolved references to the
  8840. <var>Root</var> component in the list <var>Names</var>. The list is not
  8841. cleared prior to filling it.
  8842. </descr>
  8843. <seealso>
  8844. <link id="GetFixupReferenceNames"/>
  8845. <link id="GlobalFixupReferences"/>
  8846. </seealso>
  8847. </element>
  8848. <element name="RedirectFixupReferences"> <!-- Procedure -->
  8849. <short>Redirects references under the <var>root</var> object from
  8850. <var>OldRootName</var> to <var>NewRootName</var></short>
  8851. <descr>
  8852. <p>
  8853. <var>RedirectFixupReferences</var> examines the list of unresolved
  8854. references and replaces references to a root object named
  8855. <var>OldRootName</var> with references to root object
  8856. <var>NewRootName</var>.
  8857. </p>
  8858. <p>
  8859. An application programmer should never need to call
  8860. <var>RedirectFixupReferences</var>.
  8861. This function can be used by an IDE to support redirection of broken
  8862. component links.
  8863. </p>
  8864. </descr>
  8865. <seealso>
  8866. <link id="RemoveFixupReferences"/>
  8867. </seealso>
  8868. </element>
  8869. <element name="RemoveFixupReferences"> <!-- Procedure -->
  8870. <short>Removes references to rootname from the fixup list.</short>
  8871. <descr>
  8872. <p>
  8873. <var>RemoveFixupReferences</var> examines the list of unresolved
  8874. references and removes references to a root object pointing at
  8875. <var>Root</var> or a root component named <var>RootName</var>.
  8876. </p>
  8877. <p>
  8878. An application programmer should never need to call
  8879. <var>RemoveFixupReferences</var>.
  8880. This function can be used by an IDE to support removal of broken
  8881. component links.
  8882. </p>
  8883. </descr>
  8884. <seealso>
  8885. <link id="RedirectFixupReferences"/>
  8886. </seealso>
  8887. </element>
  8888. <element name="RemoveFixups"> <!-- Procedure -->
  8889. <short>Removes <var>Instance</var> from the fixup list.</short>
  8890. <descr>
  8891. <var>RemoveFixups</var> removes all entries for component
  8892. <var>Instance</var> from the list of unresolved references.a
  8893. </descr>
  8894. <seealso>
  8895. <link id="RedirectFixupReferences"/>
  8896. <link id="RemoveFixupReferences"/>
  8897. </seealso>
  8898. </element>
  8899. <element name="FindNestedComponent"> <!-- Function -->
  8900. <short>Finds the component with name path starting at the indicated root
  8901. component.</short>
  8902. <descr>
  8903. <var>FindNestedComponent</var> will descend through the list of owned
  8904. components (starting at <var>Root</var>) and will return the component whose
  8905. name path matches <var>NamePath</var>. As a path separator the characters .
  8906. (dot), - (dash) and > (greater than) can be used
  8907. </descr>
  8908. <seealso>
  8909. <link id="GlobalFixupReferences"/>
  8910. </seealso>
  8911. </element>
  8912. <element name="BeginGlobalLoading"> <!-- Procedure -->
  8913. <short>Not yet implemented</short>
  8914. <descr>
  8915. </descr>
  8916. <seealso>
  8917. </seealso>
  8918. </element>
  8919. <element name="NotifyGlobalLoading"> <!-- Procedure -->
  8920. <short>Not yet implemented.</short>
  8921. <descr>
  8922. </descr>
  8923. <seealso>
  8924. </seealso>
  8925. </element>
  8926. <element name="EndGlobalLoading"> <!-- Procedure -->
  8927. <short>Not yet implemented.</short>
  8928. <descr>
  8929. </descr>
  8930. <seealso>
  8931. </seealso>
  8932. </element>
  8933. <element name="CollectionsEqual"> <!-- Function -->
  8934. <short>Returns <var>True</var> if two collections are equal.</short>
  8935. <descr>
  8936. <var>CollectionsEqual</var> is not yet implemented. It simply returns
  8937. <var>False</var>
  8938. </descr>
  8939. </element>
  8940. <element name="ObjectBinaryToText"> <!-- Procedure -->
  8941. <short>Converts an object stream from a binary to a text format.</short>
  8942. <descr>
  8943. <var>ObjectBinaryToText</var> reads an object stream in binary format from
  8944. <var>Input</var> and writes the object stream in text format to
  8945. <var>Output</var>. No components are instantiated during the process,
  8946. this is a pure conversion routine.
  8947. </descr>
  8948. <seealso>
  8949. <link id="ObjectTextToBinary"/>
  8950. </seealso>
  8951. </element>
  8952. <element name="ObjectTextToBinary"> <!-- Procedure -->
  8953. <short>Converts an object stream from a text to a binary format.</short>
  8954. <descr>
  8955. </descr>
  8956. <seealso>
  8957. </seealso>
  8958. </element>
  8959. <element name="ObjectResourceToText"> <!-- Procedure -->
  8960. <short>Converts an object stream from a (windows) resource to a text format.</short>
  8961. <descr>
  8962. <var>ObjectResourceToText</var> reads the resource header from the
  8963. <var>Input</var> stream and then passes the streams to
  8964. <link id="ObjectBinaryToText"/>
  8965. </descr>
  8966. <seealso>
  8967. <link id="ObjectBinaryToText"/>
  8968. <link id="ObjectTextToResource"/>
  8969. </seealso>
  8970. </element>
  8971. <element name="ObjectTextToResource"> <!-- Procedure -->
  8972. <short>Converts an object stream from a text to a (windows) resource format.</short>
  8973. <descr>
  8974. <p>
  8975. <var>ObjectTextToResource</var> reads an object stream in text format from
  8976. <var>Input</var> and writes a resource stream to <var>Output</var>.
  8977. </p>
  8978. <p>
  8979. Note that for the current implementation of this method in Free Pascal,
  8980. the output stream should support positioning. (e.g. it should not be a pipe)
  8981. </p>
  8982. </descr>
  8983. <seealso>
  8984. <link id="ObjectBinaryToText"/>
  8985. <link id="ObjectResourceToText"/>
  8986. </seealso>
  8987. </element>
  8988. <element name="LineStart"> <!-- Function -->
  8989. <short>Finds the start of a line in <var>Buffer</var> before
  8990. <var>BufPos</var>.</short>
  8991. <descr>
  8992. <var>LineStart</var> reversely scans <var>Buffer</var> starting at
  8993. <var>BufPos</var> for a linefeed character. It returns a pointer at the
  8994. linefeed character.
  8995. </descr>
  8996. </element>
  8997. <element name="TPointerList">
  8998. <short>Type for an Array of pointers.</short>
  8999. </element>
  9000. <element name="PPointerList">
  9001. <short>Pointer to an array of pointers.</short>
  9002. </element>
  9003. <element name="THelpContext">
  9004. <short>Range type to specify help contexts.</short>
  9005. </element>
  9006. <element name="THelptype">
  9007. <short>Enumeration type specifying the kind of help requested.</short>
  9008. </element>
  9009. <element name="PStringItemList">
  9010. <short>Pointer to a <link id="TStringItemList"/>.</short>
  9011. </element>
  9012. <element name="TBasicActionClass">
  9013. <short><link id="TBasicAction"/> class reference.</short>
  9014. </element>
  9015. <element name="TBAsicActionLinkClass">
  9016. <short><link id="TBasicActionLink"/> class reference.</short>
  9017. </element>
  9018. <element name="TListNotification">
  9019. <short>Kind of list notification event.</short>
  9020. </element>
  9021. <element name="TListSortCompare">
  9022. <short>Callback type for the list sort algorithm.</short>
  9023. </element>
  9024. <element name="TSeekOrigin">
  9025. <short>Specifies the origin of the <link id="TStream.Seek"/> method.</short>
  9026. </element>
  9027. <element name="TSeekOrigin.soBeginning">
  9028. <short>Offset is interpreted relative to the start of the stream.</short>
  9029. </element>
  9030. <element name="TSeekOrigin.SoEnd">
  9031. <short>Offset is interpreted relative to the end of the stream.</short>
  9032. </element>
  9033. <element name="TSeekOrigin.soCurrent">
  9034. <short>Offset is interpreted relative to the current position in the stream.</short>
  9035. </element>
  9036. <element name="TShortCut">
  9037. <short>Enumeration type to identify shortcut key combinations.</short>
  9038. </element>
  9039. <element name="TStringListSortCompare">
  9040. <short>Callback type used in stringlist compares.</short>
  9041. </element>
  9042. <!-- unresolved type reference Visibility: default -->
  9043. <element name="sysutils">
  9044. <short>System routines</short>
  9045. </element>
  9046. <!-- unresolved type reference Visibility: default -->
  9047. <element name="types">
  9048. <short>System types</short>
  9049. </element>
  9050. <!-- unresolved type reference Visibility: default -->
  9051. <element name="typinfo">
  9052. <short>RTTI information</short>
  9053. </element>
  9054. <!-- unresolved type reference Visibility: default -->
  9055. <element name="rtlconsts">
  9056. <short>Resource strings with messages</short>
  9057. </element>
  9058. <!-- enumeration type Visibility: default -->
  9059. <element name="TShiftStateEnum">
  9060. <short>Keyboard/Mouse shift state enumerator</short>
  9061. </element>
  9062. <!-- enumeration value Visibility: default -->
  9063. <element name="TShiftStateEnum.ssShift">
  9064. <short>Shift key pressed</short>
  9065. </element>
  9066. <!-- enumeration value Visibility: default -->
  9067. <element name="TShiftStateEnum.ssAlt">
  9068. <short>Alt key pressed</short>
  9069. </element>
  9070. <!-- enumeration value Visibility: default -->
  9071. <element name="TShiftStateEnum.ssCtrl">
  9072. <short>Ctrl key pressed</short>
  9073. </element>
  9074. <!-- enumeration value Visibility: default -->
  9075. <element name="TShiftStateEnum.ssLeft">
  9076. <short>Left mouse button pressed.</short>
  9077. </element>
  9078. <!-- enumeration value Visibility: default -->
  9079. <element name="TShiftStateEnum.ssRight">
  9080. <short>Right mouse button pressed.</short>
  9081. </element>
  9082. <!-- enumeration value Visibility: default -->
  9083. <element name="TShiftStateEnum.ssMiddle">
  9084. <short>Middle mouse button pressed.</short>
  9085. </element>
  9086. <!-- enumeration value Visibility: default -->
  9087. <element name="TShiftStateEnum.ssDouble">
  9088. <short>Double mouse click.</short>
  9089. </element>
  9090. <!-- enumeration value Visibility: default -->
  9091. <element name="TShiftStateEnum.ssMeta">
  9092. <short>Meta key pressed.</short>
  9093. </element>
  9094. <!-- enumeration value Visibility: default -->
  9095. <element name="TShiftStateEnum.ssSuper">
  9096. <short>Super key pressed.</short>
  9097. </element>
  9098. <!-- enumeration value Visibility: default -->
  9099. <element name="TShiftStateEnum.ssHyper">
  9100. <short>Hyper key pressed.</short>
  9101. </element>
  9102. <!-- enumeration value Visibility: default -->
  9103. <element name="TShiftStateEnum.ssAltGr">
  9104. <short>Alt-GR key pressed.</short>
  9105. </element>
  9106. <!-- enumeration value Visibility: default -->
  9107. <element name="TShiftStateEnum.ssCaps">
  9108. <short>Caps lock key pressed</short>
  9109. </element>
  9110. <!-- enumeration value Visibility: default -->
  9111. <element name="TShiftStateEnum.ssNum">
  9112. <short>Num lock key pressed</short>
  9113. </element>
  9114. <!-- enumeration value Visibility: default -->
  9115. <element name="TShiftStateEnum.ssScroll">
  9116. <short>Scroll lock key pressed</short>
  9117. </element>
  9118. <!-- enumeration value Visibility: default -->
  9119. <element name="TShiftStateEnum.ssTriple">
  9120. <short>Triple mouse click</short>
  9121. </element>
  9122. <!-- enumeration value Visibility: default -->
  9123. <element name="TShiftStateEnum.ssQuad">
  9124. <short>Quadruple mouse click</short>
  9125. </element>
  9126. <!-- enumeration value Visibility: default -->
  9127. <element name="THelpType.htKeyword">
  9128. <short>Help type: Keyword help</short>
  9129. </element>
  9130. <!-- enumeration value Visibility: default -->
  9131. <element name="THelpType.htContext">
  9132. <short>Help type: Context ID help.</short>
  9133. </element>
  9134. <!-- enumeration value Visibility: default -->
  9135. <element name="TListNotification.lnAdded">
  9136. <short>List change notification: Element added to the list.</short>
  9137. </element>
  9138. <!-- enumeration value Visibility: default -->
  9139. <element name="TListNotification.lnExtracted">
  9140. <short>List change notification: Element extracted from the list.</short>
  9141. </element>
  9142. <!-- enumeration value Visibility: default -->
  9143. <element name="TListNotification.lnDeleted">
  9144. <short>List change notification: Element deleted from the list.</short>
  9145. </element>
  9146. <!-- function Visibility: public -->
  9147. <element name="TList.Extract">
  9148. <short>Remove the first occurrence of a pointer from the list.</short>
  9149. <descr>
  9150. <var>Extract</var> searched for an occurence of <var>item</var>, and if a
  9151. match is found, the match is deleted from the list. If no match is found,
  9152. nothing is deleted. If <var>Item</var> was found, the result is
  9153. <var>Item</var>. If <var>Item</var> was not found, the result is
  9154. <var>Nil</var>. A <var>lnExtracted</var> notification event is triggered if
  9155. an element is extracted from the list. Note that a <var>lnDeleted</var>
  9156. event will also occur.
  9157. </descr>
  9158. <seealso>
  9159. <link id="TList.Delete"/>
  9160. <link id="TList.IndexOf"/>
  9161. <link id="TList.Remove"/>
  9162. </seealso>
  9163. </element>
  9164. <!-- procedure Visibility: public -->
  9165. <element name="TList.Assign">
  9166. <short>Copy the contents of another list.</short>
  9167. <descr>
  9168. <var>Assign</var> copies the pointers of the <var>Obj</var> list to the list.
  9169. The list is cleared prior to copying.
  9170. </descr>
  9171. <seealso>
  9172. <link id="TList.Clear"/>
  9173. </seealso>
  9174. </element>
  9175. <!-- object Visibility: default -->
  9176. <element name="TRecall">
  9177. <short>Helper class for storing published properties</short>
  9178. <descr>
  9179. <p>
  9180. <var>TRecall</var> is a helper class used to copy published
  9181. properties of a class (the reference object) in another class
  9182. (the storage object). The reference object and storage object must be
  9183. assignable to each other.
  9184. </p>
  9185. <p>
  9186. The <var>TRecall</var> can be used to store the state of a persistent class,
  9187. and restore it at a later time.
  9188. </p>
  9189. <p>When a <var>TRecall</var> object is created, it gets passed a reference
  9190. instance and a storage instance. It immediatly stores the properties of
  9191. the reference object in the storage object.
  9192. </p>
  9193. <p>
  9194. The <link id="TRecall.Store">Store</link> method can be called throughout
  9195. the lifetime of the reference object to update the stored properties.
  9196. </p>
  9197. <p>When the <var>TRecall</var> instance is destroyed then the properties are
  9198. copied from the storage object to the reference object. The storage object
  9199. is freed automatically.
  9200. </p>
  9201. <p>
  9202. If the properties should not be copied back from the storage to the
  9203. reference object, the <link id="TRecall.Forget">Forget</link> can be called.
  9204. </p>
  9205. </descr>
  9206. <seealso>
  9207. <link id="TRecall.Create"/>
  9208. <link id="TRecall.Destroy"/>
  9209. <link id="TRecall.Forget"/>
  9210. <link id="TRecall.Store"/>
  9211. <link id="TPersistent.Assign"/>
  9212. </seealso>
  9213. </element>
  9214. <!-- constructor Visibility: public -->
  9215. <element name="TRecall.Create">
  9216. <short>Creates a new instance of <var>TRecall</var>.</short>
  9217. <descr>
  9218. <var>Create</var> creates a new instance of <var>TRecall</var> and
  9219. initializes the Reference and Storage instances. It calls <link
  9220. id="TRecall.Store">Store</link> to assign the reference object properties to
  9221. the storage instance.
  9222. </descr>
  9223. <seealso>
  9224. <link id="TRecall.Store"/>
  9225. <link id="TRecall.Destroy"/>
  9226. </seealso>
  9227. </element>
  9228. <!-- destructor Visibility: public -->
  9229. <element name="TRecall.Destroy">
  9230. <short>Copies the stored properties to the reference object and destroys the
  9231. <var>TRecall</var> instance.</short>
  9232. <descr>
  9233. <var>Destroy</var> assigns the storage instance to the reference instance,
  9234. if the latter is still valid. After this, it frees the storage and calls the
  9235. inherited destroy.
  9236. </descr>
  9237. <errors>
  9238. <var>Destroy</var> does not check whether the <link
  9239. id="TRecall.Reference">reference</link> instance is still valid. If the
  9240. reference pointer was invalidated, call <link id="TRecall.Forget"/> to clear
  9241. the reference instance.
  9242. </errors>
  9243. <seealso>
  9244. <link id="TRecall.Store"/>
  9245. <link id="TRecall.Forget"/>
  9246. </seealso>
  9247. </element>
  9248. <!-- procedure Visibility: public -->
  9249. <element name="TRecall.Store">
  9250. <short>Assigns the reference instance to the storage instance.</short>
  9251. <descr>
  9252. <p>
  9253. <var>Store</var> assigns the reference instance to the storage instance.
  9254. This will only work if the two classes can be assigned to each other.
  9255. </p>
  9256. <p>
  9257. This method can be used to refresh the storage.
  9258. </p>
  9259. </descr>
  9260. <errors>
  9261. <var>Store</var> does not check whether the <link
  9262. id="TRecall.Reference">reference</link> instance is still valid. If the
  9263. reference pointer was invalidated, call <link id="TRecall.Forget"/> to clear
  9264. the reference instance.
  9265. </errors>
  9266. <seealso>
  9267. </seealso>
  9268. </element>
  9269. <!-- procedure Visibility: public -->
  9270. <element name="TRecall.Forget">
  9271. <short>Clear the reference property.</short>
  9272. <descr>
  9273. <p>
  9274. <var>Forget</var> sets the <link id="Reference">Reference</link> property to
  9275. <var>Nil</var>. When the <var>TRecall</var> instance is destroyed, the
  9276. reference instance will not be restored.
  9277. </p>
  9278. <p>
  9279. Note that after a call to <var>Forget</var>, a call to <link
  9280. id="TRecall.Store">Store</link> has no effect.
  9281. </p>
  9282. </descr>
  9283. <errors>
  9284. None.
  9285. </errors>
  9286. <seealso>
  9287. <link id="TRecall.Reference"/>
  9288. <link id="TRecall.Store"/>
  9289. <link id="TRecall.Destroy"/>
  9290. </seealso>
  9291. </element>
  9292. <!-- property Visibility: public -->
  9293. <element name="TRecall.Reference">
  9294. <short>The reference object.</short>
  9295. <descr>
  9296. <var>Reference</var> is the instance of the reference object. Do not free
  9297. the reference directly.
  9298. Call <link id="TRecall.Forget">Forget</link> to clear the reference and then
  9299. free the reference object.
  9300. </descr>
  9301. <seealso>
  9302. <link id="TRecall.Forget"/>
  9303. </seealso>
  9304. </element>
  9305. <!-- enumeration type Visibility: default -->
  9306. <element name="TCollectionNotification">
  9307. <short>Collection change notifcation enumeration.</short>
  9308. <descr>
  9309. <var>TCollectionNotification</var> is used in the <link id="TCollection"/>
  9310. class to send notifications about changes to the collection.
  9311. </descr>
  9312. </element>
  9313. <!-- enumeration value Visibility: default -->
  9314. <element name="TCollectionNotification.cnAdded">
  9315. <short>An item is added to the collection.</short>
  9316. </element>
  9317. <!-- enumeration value Visibility: default -->
  9318. <element name="TCollectionNotification.cnExtracting">
  9319. <short>An item is extracted from the collection.</short>
  9320. </element>
  9321. <!-- enumeration value Visibility: default -->
  9322. <element name="TCollectionNotification.cnDeleting">
  9323. <short>An item is deleted from the collection.</short>
  9324. </element>
  9325. <!-- function Visibility: public -->
  9326. <element name="TCollection.Owner">
  9327. <short>Owner of the collection.</short>
  9328. <descr>
  9329. <var>Owner</var> returns a reference to the owner of the collection. This
  9330. property is required by the object inspector to be able to show the
  9331. collection.
  9332. </descr>
  9333. </element>
  9334. <!-- procedure Visibility: public -->
  9335. <element name="TCollection.Delete">
  9336. <short>Delete an item from the collection.</short>
  9337. <descr>
  9338. <var>Delete</var> deletes the item at (zero based) position
  9339. <var>Index</var> from the collection. This will result in a
  9340. <var>cnDeleted</var> notification.
  9341. </descr>
  9342. <errors>
  9343. If an invalid index is specified, an exception is raised.
  9344. </errors>
  9345. <seealso>
  9346. <link id="TCollection.Items"/>
  9347. <link id="TCollection.Insert"/>
  9348. <link id="TCollection.Clear"/>
  9349. </seealso>
  9350. </element>
  9351. <!-- function Visibility: public -->
  9352. <element name="TCollection.Insert">
  9353. <short>Insert an item in the collection.</short>
  9354. <descr>
  9355. <p>
  9356. <var>Insert</var> creates a new item instance and inserts it in
  9357. the collection at position <var>Index</var>, and returns the new instance.
  9358. </p>
  9359. <p>
  9360. In contrast, <link id="TCollection.Add"/> adds a new item at the end.
  9361. </p>
  9362. </descr>
  9363. <errors>
  9364. None.
  9365. </errors>
  9366. <seealso>
  9367. <link id="TCollection.Add"/>
  9368. <link id="TCollection.Delete"/>
  9369. <link id="TCollection.Items"/>
  9370. </seealso>
  9371. </element>
  9372. <!-- object Visibility: default -->
  9373. <element name="TOwnedCollection">
  9374. <short><link id="#rtl.classes.TCollection">TCollection</link> descendent
  9375. which maintains owner information.</short>
  9376. <descr>
  9377. <var>TOwnedCollection</var> automatically maintains owner information, so it
  9378. can be displayed in an IDE. Collections that should be displayed in an
  9379. IDE should descend from <var>TOwnedCollection</var> or must implement a
  9380. <var>GetOwner</var> function.
  9381. </descr>
  9382. <seealso>
  9383. <link id="TCollection"/>
  9384. </seealso>
  9385. </element>
  9386. <!-- constructor Visibility: public -->
  9387. <element name="TOwnedCollection.Create">
  9388. <short>Create a new <var>TOwnerCollection</var> instance.</short>
  9389. <descr>
  9390. <var>Create</var> creates a new instance of <var>TOwnedCollection</var> and
  9391. stores the <var>AOwner</var> references. It will the value returned in the <link
  9392. id="TCollection.Owner"/> property of the collection. The
  9393. <var>ItemClass</var> class reference is passed on to the inherited
  9394. constructor, and will be used to create new instances in the <link
  9395. id="TCollection.Insert">Insert</link> and <link
  9396. id="TCollection.Add">Add</link> methods.
  9397. </descr>
  9398. <seealso>
  9399. <link id="TCollection.Create"/>
  9400. <link id="TCollection.Owner"/>
  9401. </seealso>
  9402. </element>
  9403. <!-- object Visibility: default -->
  9404. <element name="TOwnerStream">
  9405. <short>Stream which uses a second stream as a source</short>
  9406. <descr>
  9407. <var>TOwnerStream</var> can be used when creating stream chains
  9408. such as when using encryption and compression streams. It keeps a reference
  9409. to the source stream and will automatically free the source stream when
  9410. ready (if the <link id="TOwnerStream.SourceOwner">SourceOwner</link>
  9411. property is set to <var>True</var>).
  9412. </descr>
  9413. <seealso>
  9414. <link id="TStream"/>
  9415. <link id="TOwnerStream.Source"/>
  9416. <link id="TOwnerStream.SourceOwner"/>
  9417. </seealso>
  9418. </element>
  9419. <!-- constructor Visibility: public -->
  9420. <element name="TOwnerStream.Create">
  9421. <short>Create a new instance of <var>TOwnerStream</var>. </short>
  9422. <descr>
  9423. <var>Create</var> instantiates a new instance of <var>TOwnerStream</var> and
  9424. stores the reference to <var>AStream</var>. If <var>SourceOwner</var> is
  9425. <var>True</var>, the soure stream will also be freed when the instance is
  9426. destroyed.
  9427. </descr>
  9428. <seealso>
  9429. <link id="TOwnerStream.Destroy"/>
  9430. <link id="TOwnerStream.Source"/>
  9431. <link id="TOwnerStream.SourceOwner"/>
  9432. </seealso>
  9433. </element>
  9434. <!-- destructor Visibility: public -->
  9435. <element name="TOwnerStream.Destroy">
  9436. <short>Destroys the <var>TOwnerStream</var> instance and the source stream.</short>
  9437. <descr>
  9438. <var>Destroy</var> frees the source stream if the <var>SourceOwner</var>
  9439. property is <var>True</var>.
  9440. </descr>
  9441. <errors>
  9442. </errors>
  9443. <seealso>
  9444. <link id="TOwnerStream.Create"/>
  9445. <link id="TOwnerStream.Source"/>
  9446. <link id="TOwnerStream.SourceOwner"/>
  9447. </seealso>
  9448. </element>
  9449. <!-- property Visibility: public -->
  9450. <element name="TOwnerStream.Source">
  9451. <short>Reference to the source stream.</short>
  9452. <descr>
  9453. <p>
  9454. <var>Source</var> is the source stream. It should be uses by descendent
  9455. streams to access the source stream to read from or write to.
  9456. </p>
  9457. <p>
  9458. Do not free the <var>Source</var> reference directly. Either the owner
  9459. stream instance should free the source stream or
  9460. </p>
  9461. </descr>
  9462. <seealso>
  9463. <link id="TOwnerStream.Create"/>
  9464. </seealso>
  9465. </element>
  9466. <!-- property Visibility: public -->
  9467. <element name="TOwnerStream.SourceOwner">
  9468. <short>Indicates whether the ownerstream owns it's source</short>
  9469. <descr>
  9470. <var>SourceOwner</var> indicates whether the <var>TOwnerStream</var> owns
  9471. it's <var>Source</var> stream or not. If this property is <var>True</var>
  9472. then the <var>Source</var> stream is freed when the <var>TOwnerStream</var>
  9473. instance is freed.
  9474. </descr>
  9475. <seealso>
  9476. <link id="TOwnerStream.Source"/>
  9477. <link id="TOwnerStream.Destroy"/>
  9478. </seealso>
  9479. </element>
  9480. <!-- function Visibility: public -->
  9481. <element name="THandleStream.Seek">
  9482. <short>Overrides the Seek method.</short>
  9483. <descr>
  9484. <var>seek</var> uses the <link id="#rtl.SysUtils.FileSeek">FileSeek</link>
  9485. method to position the stream on the desired position. Note that handle
  9486. stream descendents (notably pipes) can override the method to prevent the
  9487. seek.
  9488. </descr>
  9489. </element>
  9490. <!-- function Visibility: public -->
  9491. <element name="TCustomMemoryStream.GetSize">
  9492. <short>return the size of the stream.</short>
  9493. <descr>
  9494. <var>GetSize</var> returns the size of the reseved memory. It should not be
  9495. used directly.
  9496. </descr>
  9497. <seealso>
  9498. <link id="TStream.Size"/>
  9499. </seealso>
  9500. </element>
  9501. <!-- enumeration value Visibility: default -->
  9502. <element name="TValueType.vaUTF8String">
  9503. <short>UTF8 encoded unicode string.</short>
  9504. </element>
  9505. <!-- function Visibility: public -->
  9506. <element name="TBinaryObjectReader.NextValue">
  9507. <short>Return the type of the next value.</short>
  9508. <descr>
  9509. <p>
  9510. <var>NextValue</var> returns the type of the next value in a binary stream,
  9511. but does not read the value.
  9512. </p>
  9513. <p>
  9514. This method is simply the implementation for a binary stream of the abstract method introduced
  9515. in <link id="TAbstractObjectReader"/>
  9516. </p>
  9517. </descr>
  9518. </element>
  9519. <!-- function Visibility: public -->
  9520. <element name="TBinaryObjectReader.ReadValue">
  9521. <short>Read the next value in the stream</short>
  9522. <descr>
  9523. <p>
  9524. <var>NextValue</var> reads the next value in a binary stream and returns
  9525. the type of the read value.
  9526. </p>
  9527. <p>
  9528. This method is simply the implementation for a binary stream of the abstract method introduced
  9529. in <link id="TAbstractObjectReader"/>
  9530. </p>
  9531. </descr>
  9532. </element>
  9533. <!-- procedure Visibility: public -->
  9534. <element name="TBinaryObjectReader.BeginRootComponent">
  9535. <short>Start reading the root component.</short>
  9536. <descr>
  9537. <p>
  9538. <var>BeginRootComponent</var> starts reading the root component in a binary
  9539. stream.
  9540. </p>
  9541. <p>
  9542. This method is simply the implementation for a binary stream of the abstract method introduced
  9543. in <link id="TAbstractObjectReader"/>
  9544. </p>
  9545. </descr>
  9546. </element>
  9547. <!-- procedure Visibility: public -->
  9548. <element name="TBinaryObjectReader.BeginComponent">
  9549. <short>Start reading a component.</short>
  9550. <descr>
  9551. <p>
  9552. </p>
  9553. <p>
  9554. This method is simply the implementation for a binary stream of the abstract method introduced
  9555. in <link id="TAbstractObjectReader"/>
  9556. </p>
  9557. </descr>
  9558. </element>
  9559. <!-- function Visibility: public -->
  9560. <element name="TBinaryObjectReader.BeginProperty">
  9561. <short>Start reading a property.</short>
  9562. <descr>
  9563. <p>
  9564. </p>
  9565. <p>
  9566. This method is simply the implementation for a binary stream of the abstract method introduced
  9567. in <link id="TAbstractObjectReader"/>
  9568. </p>
  9569. </descr>
  9570. </element>
  9571. <!-- procedure Visibility: public -->
  9572. <element name="TBinaryObjectReader.ReadBinary">
  9573. <short>Start reading a binary value.</short>
  9574. <descr>
  9575. <p>
  9576. <var>ReadBinary</var> reads a binary valye from a binary stream.
  9577. </p>
  9578. <p>
  9579. This method is simply the implementation for a binary stream of the abstract method introduced
  9580. in <link id="TAbstractObjectReader"/>
  9581. </p>
  9582. </descr>
  9583. </element>
  9584. <!-- function Visibility: public -->
  9585. <element name="TBinaryObjectReader.ReadFloat">
  9586. <short>Read a float value</short>
  9587. <descr>
  9588. <p>
  9589. <var>ReadFloat</var> reads a float value from a binary stream.
  9590. </p>
  9591. <p>
  9592. This method is simply the implementation for a binary stream of the abstract method introduced
  9593. in <link id="TAbstractObjectReader"/>
  9594. </p>
  9595. </descr>
  9596. </element>
  9597. <!-- function Visibility: public -->
  9598. <element name="TBinaryObjectReader.ReadSingle">
  9599. <short>Read a single-size float value</short>
  9600. <descr>
  9601. <p>
  9602. <var>ReadSingle</var> reads a single-sized float value from a binary stream.
  9603. </p>
  9604. <p>
  9605. This method is simply the implementation for a binary stream of the abstract method introduced
  9606. in <link id="TAbstractObjectReader"/>
  9607. </p>
  9608. </descr>
  9609. </element>
  9610. <!-- function Visibility: public -->
  9611. <element name="TBinaryObjectReader.ReadDate">
  9612. <short>Read a date.</short>
  9613. <descr>
  9614. <p>
  9615. <var>ReadDate</var> reads a date value from a binary stream.
  9616. </p>
  9617. <p>
  9618. This method is simply the implementation for a binary stream of the abstract method introduced
  9619. in <link id="TAbstractObjectReader"/>
  9620. </p>
  9621. </descr>
  9622. </element>
  9623. <!-- function Visibility: public -->
  9624. <element name="TBinaryObjectReader.ReadIdent">
  9625. <short>Read an identifier</short>
  9626. <descr>
  9627. <p>
  9628. <var>ReadIdent</var> reads an identifier from a binary stream.
  9629. </p>
  9630. <p>
  9631. This method is simply the implementation for a binary stream of the abstract method introduced
  9632. in <link id="TAbstractObjectReader"/>
  9633. </p>
  9634. </descr>
  9635. </element>
  9636. <!-- function Visibility: public -->
  9637. <element name="TBinaryObjectReader.ReadInt8">
  9638. <short>Read an 8-bits integer.</short>
  9639. <descr>
  9640. <p>
  9641. <var>Read8Int</var> reads an 8-bits signed integer from a binary stream.
  9642. </p>
  9643. <p>
  9644. This method is simply the implementation for a binary stream of the abstract method introduced
  9645. in <link id="TAbstractObjectReader"/>
  9646. </p>
  9647. </descr>
  9648. </element>
  9649. <!-- function Visibility: public -->
  9650. <element name="TBinaryObjectReader.ReadInt16">
  9651. <short>Read a 16-bits integer.</short>
  9652. <descr>
  9653. <p>
  9654. <var>Read16Int</var> reads a 16-bits signed integer from a binary stream.
  9655. </p>
  9656. <p>
  9657. This method is simply the implementation for a binary stream of the abstract method introduced
  9658. in <link id="TAbstractObjectReader"/>
  9659. </p>
  9660. </descr>
  9661. </element>
  9662. <!-- function Visibility: public -->
  9663. <element name="TBinaryObjectReader.ReadInt32">
  9664. <short>Read a 32-bits integer.</short>
  9665. <descr>
  9666. <p>
  9667. <var>Read32Int</var> reads a 32-bits signed integer from a binary stream.
  9668. </p>
  9669. <p>
  9670. This method is simply the implementation for a binary stream of the abstract method introduced
  9671. in <link id="TAbstractObjectReader"/>
  9672. </p>
  9673. </descr>
  9674. </element>
  9675. <!-- function Visibility: public -->
  9676. <element name="TBinaryObjectReader.ReadInt64">
  9677. <short>Read a 64-bits integer.</short>
  9678. <descr>
  9679. <p>
  9680. <var>Read64Int</var> reads a 64-bits signed integer from a binary stream.
  9681. </p>
  9682. <p>
  9683. This method is simply the implementation for a binary stream of the abstract method introduced
  9684. in <link id="TAbstractObjectReader"/>
  9685. </p>
  9686. </descr>
  9687. </element>
  9688. <!-- function Visibility: public -->
  9689. <element name="TBinaryObjectReader.ReadSet">
  9690. <short>Read a set</short>
  9691. <descr>
  9692. <p>
  9693. <var>ReadSet</var> reads a set from a binary stream.
  9694. </p>
  9695. <p>
  9696. This method is simply the implementation for a binary stream of the abstract method introduced
  9697. in <link id="TAbstractObjectReader"/>
  9698. </p>
  9699. </descr>
  9700. </element>
  9701. <!-- function Visibility: public -->
  9702. <element name="TBinaryObjectReader.ReadStr">
  9703. <short>Read a short string</short>
  9704. <descr>
  9705. <p>
  9706. <var>ReadStr</var> reads a short string from a binary stream.
  9707. </p>
  9708. <p>
  9709. This method is simply the implementation for a binary stream of the abstract method introduced
  9710. in <link id="TAbstractObjectReader"/>
  9711. </p>
  9712. </descr>
  9713. </element>
  9714. <!-- function Visibility: public -->
  9715. <element name="TBinaryObjectReader.ReadString">
  9716. <short>Read a string</short>
  9717. <descr>
  9718. <p>
  9719. <var>ReadStr</var> reads a string of type <var>StringType</var> from a binary stream.
  9720. </p>
  9721. <p>
  9722. This method is simply the implementation for a binary stream of the abstract method introduced
  9723. in <link id="TAbstractObjectReader"/>
  9724. </p>
  9725. </descr>
  9726. </element>
  9727. <!-- procedure Visibility: public -->
  9728. <element name="TBinaryObjectReader.SkipComponent">
  9729. <short>Skip a component's data</short>
  9730. <descr>
  9731. <p>
  9732. <var>SkipComponent</var> skips the data of a component in a binary stream.
  9733. </p>
  9734. <p>
  9735. This method is simply the implementation for a binary stream of the abstract method introduced
  9736. in <link id="TAbstractObjectReader"/>.
  9737. </p>
  9738. </descr>
  9739. </element>
  9740. <!-- procedure Visibility: public -->
  9741. <element name="TBinaryObjectReader.SkipValue">
  9742. <short>Skip a value's data</short>
  9743. <descr>
  9744. <p>
  9745. <var>SkipComponent</var> skips the data of the next value in a binary stream.
  9746. </p>
  9747. <p>
  9748. This method is simply the implementation for a binary stream of the abstract method introduced
  9749. in <link id="TAbstractObjectReader"/>
  9750. </p>
  9751. </descr>
  9752. </element>
  9753. <!-- procedure type Visibility: default -->
  9754. <element name="TSetMethodPropertyEvent">
  9755. <short>Callback for the <link id="TReader.OnSetMethodProperty"/> event.</short>
  9756. <descr>
  9757. <var>TSetMethodPropertyEvent</var> is the prototype for the <link
  9758. id="TReader.OnSetMethodProperty"/> event. <var>Reader</var> is the sender of
  9759. the event, <var>Instance</var> is the instance that is being streamed.
  9760. <var>PropInfo</var> is a pointer to the RTTI information for the property
  9761. being read, and <var>TheMethodName</var> is the name of the method that
  9762. the property should be set to. <var>Handled</var> should be set to
  9763. <var>True</var> if the handler set the property succesfully.
  9764. </descr>
  9765. </element>
  9766. <!-- procedure type Visibility: default -->
  9767. <element name="TPropertyNotFoundEvent">
  9768. <short>Callback for the <link id="TReader.OnPropertyNotFound"/> event.</short>
  9769. <descr>
  9770. <var>TPropertyNotFoundEvent</var> is the prototype for the <link
  9771. id="TReader.OnPropertyNotFound"/> event. <var>Reader</var> is the sender of
  9772. the event, <var>Instance</var> is the instance that is being streamed.
  9773. <var>PropInfo</var> is a pointer to the RTTI information for the property
  9774. being read. <var>Handled</var> should be set to <var>True</var> if
  9775. the handler redirected the unknown property succesfully, and <var>Skip</var>
  9776. should be set to <var>True</var> if the value should be skipped.
  9777. <var>IsPath</var> determines whether the property refers to a sub-property.
  9778. </descr>
  9779. <seealso>
  9780. <link id="TReader.OnPropertyNotFound"/>
  9781. </seealso>
  9782. </element>
  9783. <!-- procedure type Visibility: default -->
  9784. <element name="TReadWriteStringPropertyEvent">
  9785. <short>Callback for the <link id="TReader.OnReadStringProperty"/> event handler</short>
  9786. <descr>
  9787. <var>TReadWriteStringPropertyEvent</var> is the prototype for the <link
  9788. id="TReader.OnReadStringProperty"/> event handler. <var>Reader</var> is the
  9789. sender of
  9790. the event, <var>Instance</var> is the instance that is being streamed.
  9791. <var>PropInfo</var> is a pointer to the RTTI information for the property
  9792. being read. <var>Content</var> is the string as it was read from the stream.
  9793. </descr>
  9794. <seealso>
  9795. <link id="TReader.OnReadStringProperty"/>
  9796. </seealso>
  9797. </element>
  9798. <!-- property Visibility: public -->
  9799. <element name="TReader.OnPropertyNotFound">
  9800. <short>Handler for treating missing properties.</short>
  9801. <descr>
  9802. <p>
  9803. <var>OnPropertyNotFound</var> can be used to take appropriate action when a
  9804. property is read from a stream and no such property is found in the RTTI
  9805. information of the Instance that is being read from the stream. It can be
  9806. set at runtime, or at designtime by an IDE.
  9807. </p>
  9808. <p>
  9809. For more information about the meaning of the various arguments to the event
  9810. handler, see <link id="TPropertyNotFoundEvent"/>.
  9811. </p>
  9812. </descr>
  9813. <seealso>
  9814. <link id="TPropertyNotFoundEvent"/>
  9815. <link id="TReader.OnSetMethodProperty"/>
  9816. <link id="TReader.OnReadStringProperty"/>
  9817. </seealso>
  9818. </element>
  9819. <!-- property Visibility: public -->
  9820. <element name="TReader.OnSetMethodProperty">
  9821. <short>Handler for setting method properties.</short>
  9822. <descr>
  9823. <var>OnSetMethodProperty</var> can be set to handle the setting of method
  9824. properties. This handler can be used by an IDE to prevent methods from
  9825. actually being when an object is being streamed in the designer.
  9826. </descr>
  9827. <seealso>
  9828. <link id="TReader.OnReadStringProperty"/>
  9829. <link id="TReader.OnPropertyNotFound"/>
  9830. </seealso>
  9831. </element>
  9832. <!-- property Visibility: public -->
  9833. <element name="TReader.OnReadStringProperty">
  9834. <short>Handler for translating strings when read from the stream.</short>
  9835. <descr>
  9836. <var>OnReadStringProperty</var> is called whenever a string property is read
  9837. from the stream. It can be used e.g. by a translation mechanism to translate the
  9838. strings on the fly, when a form is loaded. See <link
  9839. id="TReadWriteStringPropertyEvent"/> for a description of the various
  9840. parameters.
  9841. </descr>
  9842. <seealso>
  9843. <link id="TReader.OnPropertyNotFound"/>
  9844. <link id="TReader.OnSetMethodProperty"/>
  9845. <link id="TReadWriteStringPropertyEvent"/>
  9846. </seealso>
  9847. </element>
  9848. <!-- procedure type Visibility: default -->
  9849. <element name="TWriteMethodPropertyEvent">
  9850. <short>Callback for the <link id="TWriter.OnWriteMethodProperty"/> event.</short>
  9851. <descr>
  9852. <var>TWriteMethodPropertyEvent</var> is the prototype for the <link
  9853. id="TWriter.OnWriteMethodProperty"/> event. <var>Writer</var> is the sender of
  9854. the event, <var>Instance</var> is the instance that is being streamed.
  9855. <var>PropInfo</var> is a pointer to the RTTI information for the property
  9856. being written, and <var>MethodValue</var> is the value of the method that
  9857. the property was set to. <var>DefMethodCodeValue</var> is set to the default
  9858. value of the property (Nil or the parent value).
  9859. <var>Handled</var> should be set to <var>True</var> if the handler set the property succesfully.
  9860. </descr>
  9861. <seealso>
  9862. <link id="TWriter.OnWriteMethodProperty"/>
  9863. </seealso>
  9864. </element>
  9865. <!-- property Visibility: public -->
  9866. <element name="TWriter.OnWriteMethodProperty">
  9867. <short>Handler from writing method properties.</short>
  9868. <descr>
  9869. <var>OnWriteMethodProperty</var> can be set by an IDE or some streaming
  9870. mechanism which handles dummy values for method properties; It can be used
  9871. to write a real value to the stream which will be interpreted correctly when
  9872. the stream is read. See <link id="TWriteMethodPropertyEvent"/> for a description of the arguments.
  9873. </descr>
  9874. <seealso>
  9875. <link id="TWriteMethodPropertyEvent"/>
  9876. <link id="TReader.OnSetMethodProperty"/>
  9877. </seealso>
  9878. </element>
  9879. <!-- property Visibility: public -->
  9880. <element name="TWriter.OnWriteStringProperty">
  9881. <short>Event handler for translating strings written to stream.</short>
  9882. <descr>
  9883. <var>OnWriteStringProperty</var> is called whenever a string property is
  9884. written to the stream. It can be used e.g. by a translation mechanism to
  9885. translate the strings on the fly, when a form is written. See <link
  9886. id="TReadWriteStringPropertyEvent"/> for a description of the various
  9887. parameters.
  9888. </descr>
  9889. <seealso>
  9890. <link id="TReader.OnPropertyNotFound"/>
  9891. <link id="TReader.OnSetMethodProperty"/>
  9892. <link id="TReadWriteStringPropertyEvent"/>
  9893. </seealso>
  9894. </element>
  9895. <!-- object Visibility: default -->
  9896. <element name="EThreadDestroyCalled">
  9897. <short>Exception raised when a thread is destroyed illegally.</short>
  9898. </element>
  9899. <!-- procedure type Visibility: default -->
  9900. <element name="TSynchronizeProcVar">
  9901. <short>Synchronize callback type</short>
  9902. </element>
  9903. <!-- property Visibility: public -->
  9904. <element name="TThread.FatalException">
  9905. <short>Exception that occured during thread execution</short>
  9906. <descr>
  9907. <var>FatalException</var> contains the exception that occurred during the
  9908. thread's execution.
  9909. </descr>
  9910. </element>
  9911. <!-- procedure Visibility: public -->
  9912. <element name="TComponent.BeforeDestruction">
  9913. <short>Overrides standard BeforeDestruction.</short>
  9914. <descr>
  9915. <var>BeforeDestruction</var> is overridden by <var>TComponent</var> to set
  9916. the <var>csDestroying</var> flag in <link id="ComponentState"/>
  9917. </descr>
  9918. <seealso>
  9919. <link id="ComponentState"/>
  9920. </seealso>
  9921. </element>
  9922. <!-- function Visibility: public -->
  9923. <element name="TComponent.ExecuteAction">
  9924. <short>Standard action execution method.</short>
  9925. <descr>
  9926. <var>ExecuteAction</var> checks whether <var>Action</var> handles the
  9927. current component, and if yes, calls the <var>ExecuteAction</var> method,
  9928. passing itself as a parameter. The function returns <var>True</var> if the
  9929. action handles the current component.
  9930. </descr>
  9931. <seealso>
  9932. <link id="TBasicAction"/>
  9933. <link id="TBasicAction.ExecuteAction"/>
  9934. <link id="TBasicAction.HandlesTarget"/>
  9935. <link id="UpdateAction"/>
  9936. </seealso>
  9937. </element>
  9938. <!-- procedure Visibility: public -->
  9939. <element name="TComponent.RemoveFreeNotification">
  9940. <short>Remove a component from the Free Notification list.</short>
  9941. <descr>
  9942. <var>RemoveFreeNotification</var> removes <var>AComponent</var> from the
  9943. freenotification list.
  9944. </descr>
  9945. <seealso>
  9946. <link id="FreeNotification"/>
  9947. </seealso>
  9948. </element>
  9949. <!-- function Visibility: public -->
  9950. <element name="TComponent.UpdateAction">
  9951. <short>Updates the state of an action.</short>
  9952. <descr>
  9953. <var>UpdateAction</var> checks whether <var>Action</var> handles the
  9954. current component, and if yes, calls the <var>UpdateTarget</var> method,
  9955. passing itself as a parameter. The function returns <var>True</var> if the
  9956. action handles the current component.
  9957. </descr>
  9958. <seealso>
  9959. <link id="TBasicAction"/>
  9960. <link id="TBasicAction.UpdateTarget"/>
  9961. <link id="TBasicAction.HandlesTarget"/>
  9962. <link id="ExecuteAction"/>
  9963. </seealso>
  9964. </element>
  9965. <!-- object Visibility: default -->
  9966. <element name="TDataModule">
  9967. <short>Container for non-visual components.</short>
  9968. <descr>
  9969. <p>
  9970. <var>TDataModule</var> is a container for non-visual objects which can be
  9971. used in an IDE to group non-visual objects which can be used by various
  9972. other containers (forms) in a project. Notably, data access components are
  9973. typically stored on a datamodule. Web components and services can also be
  9974. implemented as descendents of datamodules.
  9975. </p>
  9976. <p>
  9977. <var>TDataModule</var> introduces some events which make it easier to
  9978. program, and provides the needed streaming capabilities for persistent
  9979. storage.
  9980. </p>
  9981. <p>
  9982. An IDE will typically allow to create a descendent of <var>TDataModule</var>
  9983. which contains non-visual components in it's published property list.
  9984. </p>
  9985. </descr>
  9986. <seealso>
  9987. <link id="TDataModule.OnCreate"/>
  9988. </seealso>
  9989. </element>
  9990. <!-- constructor Visibility: public -->
  9991. <element name="TDataModule.Create">
  9992. <short>Create a new instance of a <var>TDataModule</var>.</short>
  9993. <descr>
  9994. <var>Create</var> creates a new instance of the <var>TDatamodule</var>
  9995. and calls <link id="TDatamodule.CreateNew"/>. After that it reads the
  9996. published properties from a stream using <link id="InitInheritedComponent"/>
  9997. if a descendent class is instantiated. If the <link id="TDataModule.OldCreateOrder">OldCreateOrder</link>
  9998. property is <var>True</var>, the <link id="OnCreate"/> event is called.
  9999. </descr>
  10000. <errors>
  10001. An exception can be raised during the streaming operation.
  10002. </errors>
  10003. <seealso>
  10004. <link id="TDataModule.CreateNew"/>
  10005. </seealso>
  10006. </element>
  10007. <!-- constructor Visibility: public -->
  10008. <element name="TDataModule.CreateNew">
  10009. <short></short>
  10010. <descr>
  10011. <var>CreateNew</var> creates a new instance of the class, but bypasses the
  10012. streaming mechanism. The <var>CreateMode</var> parameter (by default zero)
  10013. is not used in <var>TDataModule</var>. If the <link id="AddDataModule"/>
  10014. handler is set, then it is called, with the newly created instance as an
  10015. argument.
  10016. </descr>
  10017. <seealso>
  10018. <link id="TDataModule.Create"/>
  10019. <link id="AddDataModule"/>
  10020. <link id="TDataModule.OnCreate"/>
  10021. </seealso>
  10022. </element>
  10023. <!-- destructor Visibility: public -->
  10024. <element name="TDataModule.Destroy">
  10025. <short>Destroys the <var>TDataModule</var> instance.</short>
  10026. <descr>
  10027. <p>
  10028. <var>Destroy</var> destroys the <var>TDataModule</var> instance. If the
  10029. <link id="TDataModule.OldCreateOrder">OldCreateOrder</link> property is
  10030. <var>True</var> the <link id="TDataModule.OnDestroy">OnDestroy</link> event
  10031. handler is called prior to destroying the data module.
  10032. </p>
  10033. <p>
  10034. Before calling the inherited destroy, the <link id="RemoveDataModule"/>
  10035. handler is called if it is set, and <var>Self</var> is passed as a
  10036. parameter.
  10037. </p>
  10038. </descr>
  10039. <errors>
  10040. An event can be raised during the <var>OnDestroy</var> event handler.
  10041. </errors>
  10042. <seealso>
  10043. <link id="TDataModule.OnDestroy"/>
  10044. <link id="RemoveDataModule"/>
  10045. </seealso>
  10046. </element>
  10047. <!-- procedure Visibility: public -->
  10048. <element name="TDataModule.AfterConstruction">
  10049. <short>Overrides standard <link id="rtl.objpas.TObject">TObject</link> behaviour.</short>
  10050. <descr>
  10051. <var>AfterConstruction</var> calls the <link
  10052. id="TDataModule.OnCreate">OnCreate</link> handler if the <link
  10053. id="TDataModule.OldCreateOrder">OldCreateOrder</link> property is
  10054. <var>False</var>.
  10055. </descr>
  10056. <seealso>
  10057. <link id="TDataModule.OldCreateOrder"/>
  10058. <link id="TDataModule.OnCreate"/>
  10059. </seealso>
  10060. </element>
  10061. <!-- procedure Visibility: public -->
  10062. <element name="TDataModule.BeforeDestruction">
  10063. <short></short>
  10064. <descr>
  10065. <var>BeforeDestruction</var> calls the <link id="TDataModule.OnCreate">OnDestroy</link>
  10066. handler if the <link id="TDataModule.OldCreateOrder">OldCreateOrder</link> property is
  10067. <var>False</var>.
  10068. </descr>
  10069. <seealso>
  10070. <link id="TDataModule.OldCreateOrder"/>
  10071. <link id="TDataModule.OnDestroy"/>
  10072. </seealso>
  10073. </element>
  10074. <!-- property Visibility: public -->
  10075. <element name="TDataModule.DesignOffset">
  10076. <short>Position property needed for manipulation in an IDE.</short>
  10077. <descr>
  10078. <var>DesignOffset</var> is the position of the datamodule when displayed in
  10079. an IDE. It is streamed to the form file, and should not be used at run-time.
  10080. </descr>
  10081. <seealso>
  10082. <link id="TDataModule.DesignSize"/>
  10083. </seealso>
  10084. </element>
  10085. <!-- property Visibility: public -->
  10086. <element name="TDataModule.DesignSize">
  10087. <short>Size property needed for manipulation in an IDE.</short>
  10088. <descr>
  10089. <var>DesignSize</var> is the size of the datamodule when displayed in
  10090. an IDE. It is streamed to the form file, and should not be used at run-time.
  10091. </descr>
  10092. <seealso>
  10093. <link id="TDataModule.DesignOffset"/>
  10094. </seealso>
  10095. </element>
  10096. <!-- property Visibility: published -->
  10097. <element name="TDataModule.OnCreate">
  10098. <short>Event handler, called when the datamodule is created.</short>
  10099. <descr>
  10100. The <var>OnCreate</var> event is triggered when the datamodule is created
  10101. and streamed. The exact moment of triggering is dependent on the value of
  10102. the <link id="TDataModule.OldCreateOrder">OldCreateOrder</link> property.
  10103. </descr>
  10104. <seealso>
  10105. <link id="TDataModule.Create"/>
  10106. <link id="TDataModule.CreateNew"/>
  10107. <link id="TDataModule.OldCreateOrder"/>
  10108. </seealso>
  10109. </element>
  10110. <!-- property Visibility: published -->
  10111. <element name="TDataModule.OnDestroy">
  10112. <short>Event handler, called when the datamodule is destroyed.</short>
  10113. <descr>
  10114. The <var>OnDestroy</var> event is triggered when the datamodule is destroyed
  10115. The exact moment of triggering is dependent on the value of the
  10116. <link id="TDataModule.OldCreateOrder">OldCreateOrder</link> property.
  10117. </descr>
  10118. <seealso>
  10119. <link id="TDataModule.Destroy"/>
  10120. <link id="TDataModule.OnCreate"/>
  10121. <link id="TDataModule.Create"/>
  10122. <link id="TDataModule.CreateNew"/>
  10123. <link id="TDataModule.OldCreateOrder"/>
  10124. </seealso>
  10125. </element>
  10126. <!-- property Visibility: published -->
  10127. <element name="TDataModule.OldCreateOrder">
  10128. <short>Determines when <var>OnCreate</var> and <var>OnDestroy</var> are
  10129. triggered.</short>
  10130. <descr>
  10131. <var>OldCreateOrder</var> determines when exactly the <link
  10132. id="TDataModule.OnCreate">OnCreate</link> and <link
  10133. id="TDataModule.OnDestroy">OnDestroy</link> event handlers are called:
  10134. </descr>
  10135. <seealso>
  10136. <link id="TDataModule.OnDestroy"/>
  10137. <link id="TDataModule.OnCreate"/>
  10138. <link id="TDataModule.Destroy"/>
  10139. <link id="TDataModule.Create"/>
  10140. <link id="TDataModule.CreateNew"/>
  10141. <link id="TDataModule.OldCreateOrder"/>
  10142. </seealso>
  10143. </element>
  10144. <!-- variable Visibility: default -->
  10145. <element name="AddDataModule">
  10146. <short>Handler called when a new <link id="#rtl.classes.TDataModule">TDataModule</link> instance is created.</short>
  10147. <descr>
  10148. <var>AddDataModule</var> can be set by an IDE or a streaming mechanism to
  10149. receive notification when a new instance of a <link id="TDataModule"/>
  10150. descendent is created.
  10151. </descr>
  10152. <seealso>
  10153. <link id="RemoveDataModule"/>
  10154. <link id="TDataModule"/>
  10155. </seealso>
  10156. </element>
  10157. <!-- variable Visibility: default -->
  10158. <element name="RemoveDataModule">
  10159. <short>Handler called when a <link id="#rtl.classes.TDataModule">TDataModule</link> instance is freed.</short>
  10160. <descr>
  10161. <var>RemoveDataModule</var> can be set by an IDE or a streaming mechanism to
  10162. receive notification when an instance of a <link id="TDataModule"/>
  10163. descendent is freed.
  10164. </descr>
  10165. <seealso>
  10166. <link id="AddDataModule"/>
  10167. <link id="TDataModule"/>
  10168. </seealso>
  10169. </element>
  10170. <!-- variable Visibility: default -->
  10171. <element name="ApplicationHandleException">
  10172. <short>Handler for exceptions when a <link
  10173. id="#rtl.classes.TDataModule">TDataModule</link> streaming error occurs.</short>
  10174. <descr>
  10175. <var>ApplicationHandleException</var> can be set by an application object to
  10176. handle any exceptions that may occur when a <link id="TDataModule"/> is
  10177. created.
  10178. </descr>
  10179. <seealso>
  10180. <link id="TDataModule"/>
  10181. </seealso>
  10182. </element>
  10183. <!-- variable Visibility: default -->
  10184. <element name="ApplicationShowException">
  10185. <short>Unused.</short>
  10186. <descr>
  10187. </descr>
  10188. <seealso>
  10189. </seealso>
  10190. </element>
  10191. <!-- procedure Visibility: default -->
  10192. <element name="CheckSynchronize">
  10193. <short>Check whether there are any synchronize calls in the synchronize queue.</short>
  10194. <descr>
  10195. <var>CheckSynchronize</var> should be called regularly by the main application
  10196. thread to handle any <link id="TThread.synchronize"/> calls that may be waiting for
  10197. execution by the main thread.
  10198. </descr>
  10199. <seealso>
  10200. <link id="TThread.synchronize"/>
  10201. </seealso>
  10202. </element>
  10203. <!-- variable Visibility: default -->
  10204. <element name="WakeMainThread">
  10205. <short>Handler which is called if a thread wants to synchronize with the main application thread.</short>
  10206. <descr>
  10207. <var>WakeMainThread</var> is called by the <link id="TThread.synchronize"/> call.
  10208. It should alert the main program thread that a thread is waiting for
  10209. synchronization. The call is executed by the thread, and should therefore
  10210. NOT synchronize the thread, but should somehow signal the main thread that a
  10211. thread is waiting for synchronization. For example, by sending a message.
  10212. </descr>
  10213. <seealso>
  10214. <link id="CheckSynchronize"/>
  10215. <link id="TThread.synchronize"/>
  10216. </seealso>
  10217. </element>
  10218. <!-- procedure Visibility: default -->
  10219. <element name="StartClassGroup">
  10220. <short>Start new class group.</short>
  10221. <descr>
  10222. <p>
  10223. <var>StartClassGroup</var> starts a new class group and adds <var>AClass</var> to
  10224. it.
  10225. </p>
  10226. <p>
  10227. The class registration and streaming mechanism allows to organize the classes in
  10228. groups. This allows an IDE to form groups of classes, which can be enabled
  10229. or disabled. It is not needed at Run-Time.
  10230. </p>
  10231. </descr>
  10232. <seealso>
  10233. <link id="GroupDescendentsWith"/>
  10234. <link id="ActivateClassGroup"/>
  10235. <link id="ClassGroupOf"/>
  10236. </seealso>
  10237. </element>
  10238. <!-- procedure Visibility: default -->
  10239. <element name="GroupDescendentsWith">
  10240. <short>Add class to the group of another class.</short>
  10241. <descr>
  10242. <p>
  10243. <var>GroupDescendentsWith</var> adds <var>AClass</var> to the group that
  10244. <var>AClassGroup</var> belongs to. If <var>AClassGroup</var> belongs to more
  10245. than 1 group, then it is added to the group which contains the nearest
  10246. ancestor.
  10247. </p>
  10248. <p>
  10249. The class registration and streaming mechanism allows to organize the classes in
  10250. groups. This allows an IDE to form groups of classes, which can be enabled
  10251. or disabled. It is not needed at Run-Time.
  10252. </p>
  10253. </descr>
  10254. <errors>
  10255. </errors>
  10256. <seealso>
  10257. <link id="StartClassGroup"/>
  10258. <link id="ActivateClassGroup"/>
  10259. <link id="ClassGroupOf"/>
  10260. </seealso>
  10261. </element>
  10262. <!-- function Visibility: default -->
  10263. <element name="ActivateClassGroup">
  10264. <short>Activates a class group</short>
  10265. <descr>
  10266. <p>
  10267. <var>ActivateClassGroup</var> activates the group of classes to which
  10268. <var>AClass</var> belongs. The function returns the class that was last used
  10269. to activate the class group.
  10270. </p>
  10271. <p>
  10272. The class registration and streaming mechanism allows to organize the classes in
  10273. groups. This allows an IDE to form groups of classes, which can be enabled
  10274. or disabled. It is not needed at Run-Time.
  10275. </p>
  10276. </descr>
  10277. <errors>
  10278. If <var>AClass</var> does not belong to a class group, an exception is
  10279. raised.
  10280. </errors>
  10281. <seealso>
  10282. <link id="StartClassGroup"/>
  10283. <link id="GroupDescendentsWith"/>
  10284. <link id="ClassGroupOf"/>
  10285. </seealso>
  10286. </element>
  10287. <!-- function Visibility: default -->
  10288. <element name="ClassGroupOf">
  10289. <short>Returns the class group to which an instance or class belongs</short>
  10290. <descr>
  10291. <var>ClassGroupOf</var> returns the class group to which <var>AClass</var>
  10292. or <var>Instance</var> belongs.
  10293. </descr>
  10294. <errors>
  10295. The result is <var>Nil</var> if no matching class group is found.
  10296. </errors>
  10297. <seealso>
  10298. <link id="StartClassGroup"/>
  10299. <link id="ActivateClassGroup"/>
  10300. <link id="GroupDescendentsWith"/>
  10301. </seealso>
  10302. </element>
  10303. <!-- function type Visibility: default -->
  10304. <element name="TInitComponentHandler">
  10305. <short>Callback type for <link id="rtl.classes.RegisterInitComponentHandler">RegisterInitComponentHandler</link></short>
  10306. <descr>
  10307. <var>TInitComponentHandler</var> is a callback type. It is used in the
  10308. <link>InitInheritedComponent</link> call to initialize a component.
  10309. Callbacks of this type are registered with the <link
  10310. id="RegisterInitComponentHandler"/> call.
  10311. </descr>
  10312. </element>
  10313. <!-- procedure Visibility: default -->
  10314. <element name="RegisterFindGlobalComponentProc">
  10315. <short>Register a component searching handler</short>
  10316. <descr>
  10317. <var>RegisterFindGlobalComponentProc</var> registers a global component
  10318. search callback <var>AFindGlobalComponent</var>. When <link
  10319. id="FindGlobalComponent"/> is called, then this callback will be used to
  10320. search for the component.
  10321. </descr>
  10322. <errors>
  10323. None.
  10324. </errors>
  10325. <seealso>
  10326. <link id="FindGlobalComponent"/>
  10327. <link id="UnRegisterFindGlobalComponentProc"/>
  10328. </seealso>
  10329. </element>
  10330. <!-- procedure Visibility: default -->
  10331. <element name="UnregisterFindGlobalComponentProc">
  10332. <short>Remove a previously registered component searching handler.</short>
  10333. <descr>
  10334. <var>UnRegisterFindGlobalComponentProc</var> unregisters the previously
  10335. registered global component search callback <var>AFindGlobalComponent</var>.
  10336. After this call, when <link id="FindGlobalComponent"/> is called, then this
  10337. callback will be no longer be used to search for the component.
  10338. </descr>
  10339. <errors>
  10340. None.
  10341. </errors>
  10342. <seealso>
  10343. <link id="FindGlobalComponent"/>
  10344. <link id="RegisterFindGlobalComponentProc"/>
  10345. </seealso>
  10346. </element>
  10347. <!-- procedure Visibility: default -->
  10348. <element name="RegisterInitComponentHandler">
  10349. <short>Register a component initialization handler</short>
  10350. <descr>
  10351. <var>RegisterInitComponentHandler</var> registers a component initialization
  10352. handler <var>Handler</var> for the component <var>ComponentClass</var>. This
  10353. handler will be used to initialize descendents of
  10354. <var>ComponentClass</var> in the <link id="InitInheritedComponent"/> call.
  10355. </descr>
  10356. <seealso>
  10357. <link id="InitInheritedComponent"/>
  10358. <link id="TInitComponentHandler"/>
  10359. </seealso>
  10360. </element>
  10361. <!-- procedure Visibility: default -->
  10362. <element name="BinToHex">
  10363. <short>Convert a binary buffer to a hexadecimal string</short>
  10364. <descr>
  10365. <p>
  10366. <var>BinToHex</var> converts the byte values in <var>BinValue</var>
  10367. to a string consisting of 2-charachter hexadecimal strings in
  10368. <var>HexValue</var>.
  10369. <var>BufSize</var> specifies the length of <var>BinValue</var>, which means
  10370. that <var>HexValue</var> must have size <var>2*BufSize</var>.
  10371. </p>
  10372. <p>
  10373. For example a buffer containing the byte values 255 and 0 will be converted to
  10374. FF00.
  10375. </p>
  10376. </descr>
  10377. <errors>
  10378. No length checking is done, so if an invalid size is specified, an exception
  10379. may follow.
  10380. </errors>
  10381. <seealso>
  10382. <link id="HexToBin"/>
  10383. </seealso>
  10384. </element>
  10385. <!-- function Visibility: default -->
  10386. <element name="HexToBin">
  10387. <short>Convert a hexadecimal string to a binary buffer</short>
  10388. <descr>
  10389. <var>HexToBin</var> scans the hexadecimal string representation in
  10390. <var>HexValue</var> and transforms every 2 character hexadecimal
  10391. number to a byte and stores it in <var>BinValue</var>. The buffer size is
  10392. the size of the binary buffer. Scanning will stop if the size of the binary
  10393. buffer is reached or when an invalid character is encountered. The return
  10394. value is the number of stored bytes.
  10395. </descr>
  10396. <errors>
  10397. No length checking is done, so if an invalid size is specified, an exception
  10398. may follow.
  10399. </errors>
  10400. <seealso>
  10401. <link id="BinToHex"/>
  10402. </seealso>
  10403. </element>
  10404. <!-- Template for copy&paste:
  10405. <element name="">
  10406. <short>
  10407. </short>
  10408. <descr>
  10409. </descr>
  10410. </element>
  10411. -->
  10412. </module>
  10413. </package>
  10414. </fpdoc-descriptions>