googlesheets.pp 273 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330
  1. unit googlesheets;
  2. {$MODE objfpc}
  3. {$H+}
  4. interface
  5. uses sysutils, classes, googleservice, restbase, googlebase;
  6. type
  7. //Top-level schema types
  8. TAddNamedRangeResponse = Class;
  9. TUpdateProtectedRangeRequest = Class;
  10. TPadding = Class;
  11. TMergeCellsRequest = Class;
  12. TAddSheetResponse = Class;
  13. TPivotGroupValueMetadata = Class;
  14. TUpdateEmbeddedObjectPositionResponse = Class;
  15. TUpdateConditionalFormatRuleRequest = Class;
  16. TTextFormat = Class;
  17. TUpdateChartSpecRequest = Class;
  18. TGridCoordinate = Class;
  19. TDeleteFilterViewRequest = Class;
  20. TBatchUpdateValuesResponse = Class;
  21. TUpdateNamedRangeRequest = Class;
  22. TUpdateValuesResponse = Class;
  23. TSpreadsheetProperties = Class;
  24. TCellData = Class;
  25. TUnmergeCellsRequest = Class;
  26. TTextToColumnsRequest = Class;
  27. TAddProtectedRangeResponse = Class;
  28. TBooleanCondition = Class;
  29. TDeleteProtectedRangeRequest = Class;
  30. TBasicChartDomain = Class;
  31. TDimensionRange = Class;
  32. TResponse = Class;
  33. TAddConditionalFormatRuleRequest = Class;
  34. TFilterView = Class;
  35. TSortRangeRequest = Class;
  36. TTextFormatRun = Class;
  37. TUpdateFilterViewRequest = Class;
  38. TUpdateConditionalFormatRuleResponse = Class;
  39. TFilterCriteria = Class;
  40. TDeleteDimensionRequest = Class;
  41. TPivotTable = Class;
  42. TDataValidationRule = Class;
  43. TUpdateSpreadsheetPropertiesRequest = Class;
  44. TChartSourceRange = Class;
  45. TBatchUpdateValuesRequest = Class;
  46. TClearBasicFilterRequest = Class;
  47. TConditionalFormatRule = Class;
  48. TUpdateBordersRequest = Class;
  49. TPivotFilterCriteria = Class;
  50. TBorders = Class;
  51. TEmbeddedChart = Class;
  52. TColor = Class;
  53. TAddSheetRequest = Class;
  54. TAddProtectedRangeRequest = Class;
  55. TValueRange = Class;
  56. TFindReplaceResponse = Class;
  57. TCellFormat = Class;
  58. TMoveDimensionRequest = Class;
  59. TBasicChartAxis = Class;
  60. TPivotGroupSortValueBucket = Class;
  61. TDimensionProperties = Class;
  62. TEmbeddedObjectPosition = Class;
  63. TInterpolationPoint = Class;
  64. TErrorValue = Class;
  65. TDuplicateFilterViewRequest = Class;
  66. TBatchUpdateSpreadsheetRequest = Class;
  67. TSheetProperties = Class;
  68. TProtectedRange = Class;
  69. TDeleteConditionalFormatRuleRequest = Class;
  70. TChartSpec = Class;
  71. TSourceAndDestination = Class;
  72. TConditionValue = Class;
  73. TPasteDataRequest = Class;
  74. TFindReplaceRequest = Class;
  75. TSortSpec = Class;
  76. TCopySheetToAnotherSpreadsheetRequest = Class;
  77. TNumberFormat = Class;
  78. TUpdateDimensionPropertiesRequest = Class;
  79. TEditors = Class;
  80. TSpreadsheet = Class;
  81. TGridData = Class;
  82. TPivotValue = Class;
  83. TBasicFilter = Class;
  84. TDuplicateSheetRequest = Class;
  85. TAddFilterViewResponse = Class;
  86. TDuplicateSheetResponse = Class;
  87. TBorder = Class;
  88. TAddNamedRangeRequest = Class;
  89. TAddChartResponse = Class;
  90. TAppendCellsRequest = Class;
  91. TRowData = Class;
  92. TBasicChartSeries = Class;
  93. TRepeatCellRequest = Class;
  94. TBasicChartSpec = Class;
  95. TNamedRange = Class;
  96. TSetBasicFilterRequest = Class;
  97. TUpdateEmbeddedObjectPositionRequest = Class;
  98. TAutoResizeDimensionsRequest = Class;
  99. TDuplicateFilterViewResponse = Class;
  100. TPivotGroup = Class;
  101. TGridRange = Class;
  102. TDeleteSheetRequest = Class;
  103. TChartData = Class;
  104. TSheet = Class;
  105. TCopyPasteRequest = Class;
  106. TUpdateCellsRequest = Class;
  107. TExtendedValue = Class;
  108. TBatchUpdateSpreadsheetResponse = Class;
  109. TGradientRule = Class;
  110. TCutPasteRequest = Class;
  111. TOverlayPosition = Class;
  112. TAutoFillRequest = Class;
  113. TPieChartSpec = Class;
  114. TUpdateSheetPropertiesRequest = Class;
  115. TBooleanRule = Class;
  116. TAppendDimensionRequest = Class;
  117. TAddFilterViewRequest = Class;
  118. TGridProperties = Class;
  119. TDeleteNamedRangeRequest = Class;
  120. TAddChartRequest = Class;
  121. TSetDataValidationRequest = Class;
  122. TRequest = Class;
  123. TBatchGetValuesResponse = Class;
  124. TInsertDimensionRequest = Class;
  125. TDeleteEmbeddedObjectRequest = Class;
  126. TDeleteConditionalFormatRuleResponse = Class;
  127. TAddNamedRangeResponseArray = Array of TAddNamedRangeResponse;
  128. TUpdateProtectedRangeRequestArray = Array of TUpdateProtectedRangeRequest;
  129. TPaddingArray = Array of TPadding;
  130. TMergeCellsRequestArray = Array of TMergeCellsRequest;
  131. TAddSheetResponseArray = Array of TAddSheetResponse;
  132. TPivotGroupValueMetadataArray = Array of TPivotGroupValueMetadata;
  133. TUpdateEmbeddedObjectPositionResponseArray = Array of TUpdateEmbeddedObjectPositionResponse;
  134. TUpdateConditionalFormatRuleRequestArray = Array of TUpdateConditionalFormatRuleRequest;
  135. TTextFormatArray = Array of TTextFormat;
  136. TUpdateChartSpecRequestArray = Array of TUpdateChartSpecRequest;
  137. TGridCoordinateArray = Array of TGridCoordinate;
  138. TDeleteFilterViewRequestArray = Array of TDeleteFilterViewRequest;
  139. TBatchUpdateValuesResponseArray = Array of TBatchUpdateValuesResponse;
  140. TUpdateNamedRangeRequestArray = Array of TUpdateNamedRangeRequest;
  141. TUpdateValuesResponseArray = Array of TUpdateValuesResponse;
  142. TSpreadsheetPropertiesArray = Array of TSpreadsheetProperties;
  143. TCellDataArray = Array of TCellData;
  144. TUnmergeCellsRequestArray = Array of TUnmergeCellsRequest;
  145. TTextToColumnsRequestArray = Array of TTextToColumnsRequest;
  146. TAddProtectedRangeResponseArray = Array of TAddProtectedRangeResponse;
  147. TBooleanConditionArray = Array of TBooleanCondition;
  148. TDeleteProtectedRangeRequestArray = Array of TDeleteProtectedRangeRequest;
  149. TBasicChartDomainArray = Array of TBasicChartDomain;
  150. TDimensionRangeArray = Array of TDimensionRange;
  151. TResponseArray = Array of TResponse;
  152. TAddConditionalFormatRuleRequestArray = Array of TAddConditionalFormatRuleRequest;
  153. TFilterViewArray = Array of TFilterView;
  154. TSortRangeRequestArray = Array of TSortRangeRequest;
  155. TTextFormatRunArray = Array of TTextFormatRun;
  156. TUpdateFilterViewRequestArray = Array of TUpdateFilterViewRequest;
  157. TUpdateConditionalFormatRuleResponseArray = Array of TUpdateConditionalFormatRuleResponse;
  158. TFilterCriteriaArray = Array of TFilterCriteria;
  159. TDeleteDimensionRequestArray = Array of TDeleteDimensionRequest;
  160. TPivotTableArray = Array of TPivotTable;
  161. TDataValidationRuleArray = Array of TDataValidationRule;
  162. TUpdateSpreadsheetPropertiesRequestArray = Array of TUpdateSpreadsheetPropertiesRequest;
  163. TChartSourceRangeArray = Array of TChartSourceRange;
  164. TBatchUpdateValuesRequestArray = Array of TBatchUpdateValuesRequest;
  165. TClearBasicFilterRequestArray = Array of TClearBasicFilterRequest;
  166. TConditionalFormatRuleArray = Array of TConditionalFormatRule;
  167. TUpdateBordersRequestArray = Array of TUpdateBordersRequest;
  168. TPivotFilterCriteriaArray = Array of TPivotFilterCriteria;
  169. TBordersArray = Array of TBorders;
  170. TEmbeddedChartArray = Array of TEmbeddedChart;
  171. TColorArray = Array of TColor;
  172. TAddSheetRequestArray = Array of TAddSheetRequest;
  173. TAddProtectedRangeRequestArray = Array of TAddProtectedRangeRequest;
  174. TValueRangeArray = Array of TValueRange;
  175. TFindReplaceResponseArray = Array of TFindReplaceResponse;
  176. TCellFormatArray = Array of TCellFormat;
  177. TMoveDimensionRequestArray = Array of TMoveDimensionRequest;
  178. TBasicChartAxisArray = Array of TBasicChartAxis;
  179. TPivotGroupSortValueBucketArray = Array of TPivotGroupSortValueBucket;
  180. TDimensionPropertiesArray = Array of TDimensionProperties;
  181. TEmbeddedObjectPositionArray = Array of TEmbeddedObjectPosition;
  182. TInterpolationPointArray = Array of TInterpolationPoint;
  183. TErrorValueArray = Array of TErrorValue;
  184. TDuplicateFilterViewRequestArray = Array of TDuplicateFilterViewRequest;
  185. TBatchUpdateSpreadsheetRequestArray = Array of TBatchUpdateSpreadsheetRequest;
  186. TSheetPropertiesArray = Array of TSheetProperties;
  187. TProtectedRangeArray = Array of TProtectedRange;
  188. TDeleteConditionalFormatRuleRequestArray = Array of TDeleteConditionalFormatRuleRequest;
  189. TChartSpecArray = Array of TChartSpec;
  190. TSourceAndDestinationArray = Array of TSourceAndDestination;
  191. TConditionValueArray = Array of TConditionValue;
  192. TPasteDataRequestArray = Array of TPasteDataRequest;
  193. TFindReplaceRequestArray = Array of TFindReplaceRequest;
  194. TSortSpecArray = Array of TSortSpec;
  195. TCopySheetToAnotherSpreadsheetRequestArray = Array of TCopySheetToAnotherSpreadsheetRequest;
  196. TNumberFormatArray = Array of TNumberFormat;
  197. TUpdateDimensionPropertiesRequestArray = Array of TUpdateDimensionPropertiesRequest;
  198. TEditorsArray = Array of TEditors;
  199. TSpreadsheetArray = Array of TSpreadsheet;
  200. TGridDataArray = Array of TGridData;
  201. TPivotValueArray = Array of TPivotValue;
  202. TBasicFilterArray = Array of TBasicFilter;
  203. TDuplicateSheetRequestArray = Array of TDuplicateSheetRequest;
  204. TAddFilterViewResponseArray = Array of TAddFilterViewResponse;
  205. TDuplicateSheetResponseArray = Array of TDuplicateSheetResponse;
  206. TBorderArray = Array of TBorder;
  207. TAddNamedRangeRequestArray = Array of TAddNamedRangeRequest;
  208. TAddChartResponseArray = Array of TAddChartResponse;
  209. TAppendCellsRequestArray = Array of TAppendCellsRequest;
  210. TRowDataArray = Array of TRowData;
  211. TBasicChartSeriesArray = Array of TBasicChartSeries;
  212. TRepeatCellRequestArray = Array of TRepeatCellRequest;
  213. TBasicChartSpecArray = Array of TBasicChartSpec;
  214. TNamedRangeArray = Array of TNamedRange;
  215. TSetBasicFilterRequestArray = Array of TSetBasicFilterRequest;
  216. TUpdateEmbeddedObjectPositionRequestArray = Array of TUpdateEmbeddedObjectPositionRequest;
  217. TAutoResizeDimensionsRequestArray = Array of TAutoResizeDimensionsRequest;
  218. TDuplicateFilterViewResponseArray = Array of TDuplicateFilterViewResponse;
  219. TPivotGroupArray = Array of TPivotGroup;
  220. TGridRangeArray = Array of TGridRange;
  221. TDeleteSheetRequestArray = Array of TDeleteSheetRequest;
  222. TChartDataArray = Array of TChartData;
  223. TSheetArray = Array of TSheet;
  224. TCopyPasteRequestArray = Array of TCopyPasteRequest;
  225. TUpdateCellsRequestArray = Array of TUpdateCellsRequest;
  226. TExtendedValueArray = Array of TExtendedValue;
  227. TBatchUpdateSpreadsheetResponseArray = Array of TBatchUpdateSpreadsheetResponse;
  228. TGradientRuleArray = Array of TGradientRule;
  229. TCutPasteRequestArray = Array of TCutPasteRequest;
  230. TOverlayPositionArray = Array of TOverlayPosition;
  231. TAutoFillRequestArray = Array of TAutoFillRequest;
  232. TPieChartSpecArray = Array of TPieChartSpec;
  233. TUpdateSheetPropertiesRequestArray = Array of TUpdateSheetPropertiesRequest;
  234. TBooleanRuleArray = Array of TBooleanRule;
  235. TAppendDimensionRequestArray = Array of TAppendDimensionRequest;
  236. TAddFilterViewRequestArray = Array of TAddFilterViewRequest;
  237. TGridPropertiesArray = Array of TGridProperties;
  238. TDeleteNamedRangeRequestArray = Array of TDeleteNamedRangeRequest;
  239. TAddChartRequestArray = Array of TAddChartRequest;
  240. TSetDataValidationRequestArray = Array of TSetDataValidationRequest;
  241. TRequestArray = Array of TRequest;
  242. TBatchGetValuesResponseArray = Array of TBatchGetValuesResponse;
  243. TInsertDimensionRequestArray = Array of TInsertDimensionRequest;
  244. TDeleteEmbeddedObjectRequestArray = Array of TDeleteEmbeddedObjectRequest;
  245. TDeleteConditionalFormatRuleResponseArray = Array of TDeleteConditionalFormatRuleResponse;
  246. //Anonymous types, using auto-generated names
  247. TFilterViewTypecriteria = Class;
  248. TPivotTableTypecriteria = Class;
  249. TBasicFilterTypecriteria = Class;
  250. TBatchUpdateValuesResponseTyperesponsesArray = Array of TUpdateValuesResponse;
  251. TCellDataTypetextFormatRunsArray = Array of TTextFormatRun;
  252. TBooleanConditionTypevaluesArray = Array of TConditionValue;
  253. TFilterViewTypesortSpecsArray = Array of TSortSpec;
  254. TSortRangeRequestTypesortSpecsArray = Array of TSortSpec;
  255. TPivotTableTypecolumnsArray = Array of TPivotGroup;
  256. TPivotTableTyperowsArray = Array of TPivotGroup;
  257. TPivotTableTypevaluesArray = Array of TPivotValue;
  258. TChartSourceRangeTypesourcesArray = Array of TGridRange;
  259. TBatchUpdateValuesRequestTypedataArray = Array of TValueRange;
  260. TConditionalFormatRuleTyperangesArray = Array of TGridRange;
  261. TValueRangeTypevaluesArray = Array of TTJSONSchemaArray;
  262. TPivotGroupSortValueBucketTypebucketsArray = Array of TExtendedValue;
  263. TBatchUpdateSpreadsheetRequestTyperequestsArray = Array of TRequest;
  264. TProtectedRangeTypeunprotectedRangesArray = Array of TGridRange;
  265. TSpreadsheetTypesheetsArray = Array of TSheet;
  266. TSpreadsheetTypenamedRangesArray = Array of TNamedRange;
  267. TGridDataTypecolumnMetadataArray = Array of TDimensionProperties;
  268. TGridDataTyperowDataArray = Array of TRowData;
  269. TGridDataTyperowMetadataArray = Array of TDimensionProperties;
  270. TBasicFilterTypesortSpecsArray = Array of TSortSpec;
  271. TAppendCellsRequestTyperowsArray = Array of TRowData;
  272. TRowDataTypevaluesArray = Array of TCellData;
  273. TBasicChartSpecTypedomainsArray = Array of TBasicChartDomain;
  274. TBasicChartSpecTypeseriesArray = Array of TBasicChartSeries;
  275. TBasicChartSpecTypeaxisArray = Array of TBasicChartAxis;
  276. TPivotGroupTypevalueMetadataArray = Array of TPivotGroupValueMetadata;
  277. TSheetTypechartsArray = Array of TEmbeddedChart;
  278. TSheetTypefilterViewsArray = Array of TFilterView;
  279. TSheetTypeconditionalFormatsArray = Array of TConditionalFormatRule;
  280. TSheetTypeprotectedRangesArray = Array of TProtectedRange;
  281. TSheetTypemergesArray = Array of TGridRange;
  282. TSheetTypedataArray = Array of TGridData;
  283. TUpdateCellsRequestTyperowsArray = Array of TRowData;
  284. TBatchUpdateSpreadsheetResponseTyperepliesArray = Array of TResponse;
  285. TBatchGetValuesResponseTypevalueRangesArray = Array of TValueRange;
  286. { --------------------------------------------------------------------
  287. TAddNamedRangeResponse
  288. --------------------------------------------------------------------}
  289. TAddNamedRangeResponse = Class(TGoogleBaseObject)
  290. Private
  291. FnamedRange : TNamedRange;
  292. Protected
  293. //Property setters
  294. Procedure SetnamedRange(AIndex : Integer; const AValue : TNamedRange); virtual;
  295. Public
  296. Published
  297. Property namedRange : TNamedRange Index 0 Read FnamedRange Write SetnamedRange;
  298. end;
  299. TAddNamedRangeResponseClass = Class of TAddNamedRangeResponse;
  300. { --------------------------------------------------------------------
  301. TUpdateProtectedRangeRequest
  302. --------------------------------------------------------------------}
  303. TUpdateProtectedRangeRequest = Class(TGoogleBaseObject)
  304. Private
  305. FprotectedRange : TProtectedRange;
  306. Ffields : String;
  307. Protected
  308. //Property setters
  309. Procedure SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange); virtual;
  310. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  311. Public
  312. Published
  313. Property protectedRange : TProtectedRange Index 0 Read FprotectedRange Write SetprotectedRange;
  314. Property fields : String Index 8 Read Ffields Write Setfields;
  315. end;
  316. TUpdateProtectedRangeRequestClass = Class of TUpdateProtectedRangeRequest;
  317. { --------------------------------------------------------------------
  318. TPadding
  319. --------------------------------------------------------------------}
  320. TPadding = Class(TGoogleBaseObject)
  321. Private
  322. Fright : integer;
  323. Fleft : integer;
  324. Ftop : integer;
  325. Fbottom : integer;
  326. Protected
  327. //Property setters
  328. Procedure Setright(AIndex : Integer; const AValue : integer); virtual;
  329. Procedure Setleft(AIndex : Integer; const AValue : integer); virtual;
  330. Procedure Settop(AIndex : Integer; const AValue : integer); virtual;
  331. Procedure Setbottom(AIndex : Integer; const AValue : integer); virtual;
  332. Public
  333. Published
  334. Property right : integer Index 0 Read Fright Write Setright;
  335. Property left : integer Index 8 Read Fleft Write Setleft;
  336. Property top : integer Index 16 Read Ftop Write Settop;
  337. Property bottom : integer Index 24 Read Fbottom Write Setbottom;
  338. end;
  339. TPaddingClass = Class of TPadding;
  340. { --------------------------------------------------------------------
  341. TMergeCellsRequest
  342. --------------------------------------------------------------------}
  343. TMergeCellsRequest = Class(TGoogleBaseObject)
  344. Private
  345. FmergeType : String;
  346. Frange : TGridRange;
  347. Protected
  348. //Property setters
  349. Procedure SetmergeType(AIndex : Integer; const AValue : String); virtual;
  350. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  351. Public
  352. Published
  353. Property mergeType : String Index 0 Read FmergeType Write SetmergeType;
  354. Property range : TGridRange Index 8 Read Frange Write Setrange;
  355. end;
  356. TMergeCellsRequestClass = Class of TMergeCellsRequest;
  357. { --------------------------------------------------------------------
  358. TAddSheetResponse
  359. --------------------------------------------------------------------}
  360. TAddSheetResponse = Class(TGoogleBaseObject)
  361. Private
  362. Fproperties : TSheetProperties;
  363. Protected
  364. //Property setters
  365. Procedure Setproperties(AIndex : Integer; const AValue : TSheetProperties); virtual;
  366. Public
  367. Published
  368. Property properties : TSheetProperties Index 0 Read Fproperties Write Setproperties;
  369. end;
  370. TAddSheetResponseClass = Class of TAddSheetResponse;
  371. { --------------------------------------------------------------------
  372. TPivotGroupValueMetadata
  373. --------------------------------------------------------------------}
  374. TPivotGroupValueMetadata = Class(TGoogleBaseObject)
  375. Private
  376. Fvalue : TExtendedValue;
  377. Fcollapsed : boolean;
  378. Protected
  379. //Property setters
  380. Procedure Setvalue(AIndex : Integer; const AValue : TExtendedValue); virtual;
  381. Procedure Setcollapsed(AIndex : Integer; const AValue : boolean); virtual;
  382. Public
  383. Published
  384. Property value : TExtendedValue Index 0 Read Fvalue Write Setvalue;
  385. Property collapsed : boolean Index 8 Read Fcollapsed Write Setcollapsed;
  386. end;
  387. TPivotGroupValueMetadataClass = Class of TPivotGroupValueMetadata;
  388. { --------------------------------------------------------------------
  389. TUpdateEmbeddedObjectPositionResponse
  390. --------------------------------------------------------------------}
  391. TUpdateEmbeddedObjectPositionResponse = Class(TGoogleBaseObject)
  392. Private
  393. Fposition : TEmbeddedObjectPosition;
  394. Protected
  395. //Property setters
  396. Procedure Setposition(AIndex : Integer; const AValue : TEmbeddedObjectPosition); virtual;
  397. Public
  398. Published
  399. Property position : TEmbeddedObjectPosition Index 0 Read Fposition Write Setposition;
  400. end;
  401. TUpdateEmbeddedObjectPositionResponseClass = Class of TUpdateEmbeddedObjectPositionResponse;
  402. { --------------------------------------------------------------------
  403. TUpdateConditionalFormatRuleRequest
  404. --------------------------------------------------------------------}
  405. TUpdateConditionalFormatRuleRequest = Class(TGoogleBaseObject)
  406. Private
  407. FsheetId : integer;
  408. Frule : TConditionalFormatRule;
  409. Findex : integer;
  410. FnewIndex : integer;
  411. Protected
  412. //Property setters
  413. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  414. Procedure Setrule(AIndex : Integer; const AValue : TConditionalFormatRule); virtual;
  415. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  416. Procedure SetnewIndex(AIndex : Integer; const AValue : integer); virtual;
  417. Public
  418. Published
  419. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  420. Property rule : TConditionalFormatRule Index 8 Read Frule Write Setrule;
  421. Property index : integer Index 16 Read Findex Write Setindex;
  422. Property newIndex : integer Index 24 Read FnewIndex Write SetnewIndex;
  423. end;
  424. TUpdateConditionalFormatRuleRequestClass = Class of TUpdateConditionalFormatRuleRequest;
  425. { --------------------------------------------------------------------
  426. TTextFormat
  427. --------------------------------------------------------------------}
  428. TTextFormat = Class(TGoogleBaseObject)
  429. Private
  430. Fbold : boolean;
  431. Fitalic : boolean;
  432. FforegroundColor : TColor;
  433. FfontFamily : String;
  434. Fstrikethrough : boolean;
  435. FfontSize : integer;
  436. Funderline : boolean;
  437. Protected
  438. //Property setters
  439. Procedure Setbold(AIndex : Integer; const AValue : boolean); virtual;
  440. Procedure Setitalic(AIndex : Integer; const AValue : boolean); virtual;
  441. Procedure SetforegroundColor(AIndex : Integer; const AValue : TColor); virtual;
  442. Procedure SetfontFamily(AIndex : Integer; const AValue : String); virtual;
  443. Procedure Setstrikethrough(AIndex : Integer; const AValue : boolean); virtual;
  444. Procedure SetfontSize(AIndex : Integer; const AValue : integer); virtual;
  445. Procedure Setunderline(AIndex : Integer; const AValue : boolean); virtual;
  446. Public
  447. Published
  448. Property bold : boolean Index 0 Read Fbold Write Setbold;
  449. Property italic : boolean Index 8 Read Fitalic Write Setitalic;
  450. Property foregroundColor : TColor Index 16 Read FforegroundColor Write SetforegroundColor;
  451. Property fontFamily : String Index 24 Read FfontFamily Write SetfontFamily;
  452. Property strikethrough : boolean Index 32 Read Fstrikethrough Write Setstrikethrough;
  453. Property fontSize : integer Index 40 Read FfontSize Write SetfontSize;
  454. Property underline : boolean Index 48 Read Funderline Write Setunderline;
  455. end;
  456. TTextFormatClass = Class of TTextFormat;
  457. { --------------------------------------------------------------------
  458. TUpdateChartSpecRequest
  459. --------------------------------------------------------------------}
  460. TUpdateChartSpecRequest = Class(TGoogleBaseObject)
  461. Private
  462. FchartId : integer;
  463. Fspec : TChartSpec;
  464. Protected
  465. //Property setters
  466. Procedure SetchartId(AIndex : Integer; const AValue : integer); virtual;
  467. Procedure Setspec(AIndex : Integer; const AValue : TChartSpec); virtual;
  468. Public
  469. Published
  470. Property chartId : integer Index 0 Read FchartId Write SetchartId;
  471. Property spec : TChartSpec Index 8 Read Fspec Write Setspec;
  472. end;
  473. TUpdateChartSpecRequestClass = Class of TUpdateChartSpecRequest;
  474. { --------------------------------------------------------------------
  475. TGridCoordinate
  476. --------------------------------------------------------------------}
  477. TGridCoordinate = Class(TGoogleBaseObject)
  478. Private
  479. FsheetId : integer;
  480. FrowIndex : integer;
  481. FcolumnIndex : integer;
  482. Protected
  483. //Property setters
  484. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  485. Procedure SetrowIndex(AIndex : Integer; const AValue : integer); virtual;
  486. Procedure SetcolumnIndex(AIndex : Integer; const AValue : integer); virtual;
  487. Public
  488. Published
  489. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  490. Property rowIndex : integer Index 8 Read FrowIndex Write SetrowIndex;
  491. Property columnIndex : integer Index 16 Read FcolumnIndex Write SetcolumnIndex;
  492. end;
  493. TGridCoordinateClass = Class of TGridCoordinate;
  494. { --------------------------------------------------------------------
  495. TDeleteFilterViewRequest
  496. --------------------------------------------------------------------}
  497. TDeleteFilterViewRequest = Class(TGoogleBaseObject)
  498. Private
  499. FfilterId : integer;
  500. Protected
  501. //Property setters
  502. Procedure SetfilterId(AIndex : Integer; const AValue : integer); virtual;
  503. Public
  504. Published
  505. Property filterId : integer Index 0 Read FfilterId Write SetfilterId;
  506. end;
  507. TDeleteFilterViewRequestClass = Class of TDeleteFilterViewRequest;
  508. { --------------------------------------------------------------------
  509. TBatchUpdateValuesResponse
  510. --------------------------------------------------------------------}
  511. TBatchUpdateValuesResponse = Class(TGoogleBaseObject)
  512. Private
  513. FtotalUpdatedSheets : integer;
  514. FtotalUpdatedColumns : integer;
  515. Fresponses : TBatchUpdateValuesResponseTyperesponsesArray;
  516. FtotalUpdatedCells : integer;
  517. FspreadsheetId : String;
  518. FtotalUpdatedRows : integer;
  519. Protected
  520. //Property setters
  521. Procedure SettotalUpdatedSheets(AIndex : Integer; const AValue : integer); virtual;
  522. Procedure SettotalUpdatedColumns(AIndex : Integer; const AValue : integer); virtual;
  523. Procedure Setresponses(AIndex : Integer; const AValue : TBatchUpdateValuesResponseTyperesponsesArray); virtual;
  524. Procedure SettotalUpdatedCells(AIndex : Integer; const AValue : integer); virtual;
  525. Procedure SetspreadsheetId(AIndex : Integer; const AValue : String); virtual;
  526. Procedure SettotalUpdatedRows(AIndex : Integer; const AValue : integer); virtual;
  527. //2.6.4. bug workaround
  528. {$IFDEF VER2_6}
  529. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  530. {$ENDIF VER2_6}
  531. Public
  532. Published
  533. Property totalUpdatedSheets : integer Index 0 Read FtotalUpdatedSheets Write SettotalUpdatedSheets;
  534. Property totalUpdatedColumns : integer Index 8 Read FtotalUpdatedColumns Write SettotalUpdatedColumns;
  535. Property responses : TBatchUpdateValuesResponseTyperesponsesArray Index 16 Read Fresponses Write Setresponses;
  536. Property totalUpdatedCells : integer Index 24 Read FtotalUpdatedCells Write SettotalUpdatedCells;
  537. Property spreadsheetId : String Index 32 Read FspreadsheetId Write SetspreadsheetId;
  538. Property totalUpdatedRows : integer Index 40 Read FtotalUpdatedRows Write SettotalUpdatedRows;
  539. end;
  540. TBatchUpdateValuesResponseClass = Class of TBatchUpdateValuesResponse;
  541. { --------------------------------------------------------------------
  542. TUpdateNamedRangeRequest
  543. --------------------------------------------------------------------}
  544. TUpdateNamedRangeRequest = Class(TGoogleBaseObject)
  545. Private
  546. Ffields : String;
  547. FnamedRange : TNamedRange;
  548. Protected
  549. //Property setters
  550. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  551. Procedure SetnamedRange(AIndex : Integer; const AValue : TNamedRange); virtual;
  552. Public
  553. Published
  554. Property fields : String Index 0 Read Ffields Write Setfields;
  555. Property namedRange : TNamedRange Index 8 Read FnamedRange Write SetnamedRange;
  556. end;
  557. TUpdateNamedRangeRequestClass = Class of TUpdateNamedRangeRequest;
  558. { --------------------------------------------------------------------
  559. TUpdateValuesResponse
  560. --------------------------------------------------------------------}
  561. TUpdateValuesResponse = Class(TGoogleBaseObject)
  562. Private
  563. FupdatedRange : String;
  564. FupdatedColumns : integer;
  565. FspreadsheetId : String;
  566. FupdatedRows : integer;
  567. FupdatedCells : integer;
  568. Protected
  569. //Property setters
  570. Procedure SetupdatedRange(AIndex : Integer; const AValue : String); virtual;
  571. Procedure SetupdatedColumns(AIndex : Integer; const AValue : integer); virtual;
  572. Procedure SetspreadsheetId(AIndex : Integer; const AValue : String); virtual;
  573. Procedure SetupdatedRows(AIndex : Integer; const AValue : integer); virtual;
  574. Procedure SetupdatedCells(AIndex : Integer; const AValue : integer); virtual;
  575. Public
  576. Published
  577. Property updatedRange : String Index 0 Read FupdatedRange Write SetupdatedRange;
  578. Property updatedColumns : integer Index 8 Read FupdatedColumns Write SetupdatedColumns;
  579. Property spreadsheetId : String Index 16 Read FspreadsheetId Write SetspreadsheetId;
  580. Property updatedRows : integer Index 24 Read FupdatedRows Write SetupdatedRows;
  581. Property updatedCells : integer Index 32 Read FupdatedCells Write SetupdatedCells;
  582. end;
  583. TUpdateValuesResponseClass = Class of TUpdateValuesResponse;
  584. { --------------------------------------------------------------------
  585. TSpreadsheetProperties
  586. --------------------------------------------------------------------}
  587. TSpreadsheetProperties = Class(TGoogleBaseObject)
  588. Private
  589. FtimeZone : String;
  590. FautoRecalc : String;
  591. Flocale : String;
  592. Ftitle : String;
  593. FdefaultFormat : TCellFormat;
  594. Protected
  595. //Property setters
  596. Procedure SettimeZone(AIndex : Integer; const AValue : String); virtual;
  597. Procedure SetautoRecalc(AIndex : Integer; const AValue : String); virtual;
  598. Procedure Setlocale(AIndex : Integer; const AValue : String); virtual;
  599. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  600. Procedure SetdefaultFormat(AIndex : Integer; const AValue : TCellFormat); virtual;
  601. Public
  602. Published
  603. Property timeZone : String Index 0 Read FtimeZone Write SettimeZone;
  604. Property autoRecalc : String Index 8 Read FautoRecalc Write SetautoRecalc;
  605. Property locale : String Index 16 Read Flocale Write Setlocale;
  606. Property title : String Index 24 Read Ftitle Write Settitle;
  607. Property defaultFormat : TCellFormat Index 32 Read FdefaultFormat Write SetdefaultFormat;
  608. end;
  609. TSpreadsheetPropertiesClass = Class of TSpreadsheetProperties;
  610. { --------------------------------------------------------------------
  611. TCellData
  612. --------------------------------------------------------------------}
  613. TCellData = Class(TGoogleBaseObject)
  614. Private
  615. Fhyperlink : String;
  616. FeffectiveFormat : TCellFormat;
  617. Fnote : String;
  618. FformattedValue : String;
  619. FuserEnteredValue : TExtendedValue;
  620. FdataValidation : TDataValidationRule;
  621. FuserEnteredFormat : TCellFormat;
  622. FpivotTable : TPivotTable;
  623. FtextFormatRuns : TCellDataTypetextFormatRunsArray;
  624. FeffectiveValue : TExtendedValue;
  625. Protected
  626. //Property setters
  627. Procedure Sethyperlink(AIndex : Integer; const AValue : String); virtual;
  628. Procedure SeteffectiveFormat(AIndex : Integer; const AValue : TCellFormat); virtual;
  629. Procedure Setnote(AIndex : Integer; const AValue : String); virtual;
  630. Procedure SetformattedValue(AIndex : Integer; const AValue : String); virtual;
  631. Procedure SetuserEnteredValue(AIndex : Integer; const AValue : TExtendedValue); virtual;
  632. Procedure SetdataValidation(AIndex : Integer; const AValue : TDataValidationRule); virtual;
  633. Procedure SetuserEnteredFormat(AIndex : Integer; const AValue : TCellFormat); virtual;
  634. Procedure SetpivotTable(AIndex : Integer; const AValue : TPivotTable); virtual;
  635. Procedure SettextFormatRuns(AIndex : Integer; const AValue : TCellDataTypetextFormatRunsArray); virtual;
  636. Procedure SeteffectiveValue(AIndex : Integer; const AValue : TExtendedValue); virtual;
  637. //2.6.4. bug workaround
  638. {$IFDEF VER2_6}
  639. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  640. {$ENDIF VER2_6}
  641. Public
  642. Published
  643. Property hyperlink : String Index 0 Read Fhyperlink Write Sethyperlink;
  644. Property effectiveFormat : TCellFormat Index 8 Read FeffectiveFormat Write SeteffectiveFormat;
  645. Property note : String Index 16 Read Fnote Write Setnote;
  646. Property formattedValue : String Index 24 Read FformattedValue Write SetformattedValue;
  647. Property userEnteredValue : TExtendedValue Index 32 Read FuserEnteredValue Write SetuserEnteredValue;
  648. Property dataValidation : TDataValidationRule Index 40 Read FdataValidation Write SetdataValidation;
  649. Property userEnteredFormat : TCellFormat Index 48 Read FuserEnteredFormat Write SetuserEnteredFormat;
  650. Property pivotTable : TPivotTable Index 56 Read FpivotTable Write SetpivotTable;
  651. Property textFormatRuns : TCellDataTypetextFormatRunsArray Index 64 Read FtextFormatRuns Write SettextFormatRuns;
  652. Property effectiveValue : TExtendedValue Index 72 Read FeffectiveValue Write SeteffectiveValue;
  653. end;
  654. TCellDataClass = Class of TCellData;
  655. { --------------------------------------------------------------------
  656. TUnmergeCellsRequest
  657. --------------------------------------------------------------------}
  658. TUnmergeCellsRequest = Class(TGoogleBaseObject)
  659. Private
  660. Frange : TGridRange;
  661. Protected
  662. //Property setters
  663. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  664. Public
  665. Published
  666. Property range : TGridRange Index 0 Read Frange Write Setrange;
  667. end;
  668. TUnmergeCellsRequestClass = Class of TUnmergeCellsRequest;
  669. { --------------------------------------------------------------------
  670. TTextToColumnsRequest
  671. --------------------------------------------------------------------}
  672. TTextToColumnsRequest = Class(TGoogleBaseObject)
  673. Private
  674. Fsource : TGridRange;
  675. Fdelimiter : String;
  676. FdelimiterType : String;
  677. Protected
  678. //Property setters
  679. Procedure Setsource(AIndex : Integer; const AValue : TGridRange); virtual;
  680. Procedure Setdelimiter(AIndex : Integer; const AValue : String); virtual;
  681. Procedure SetdelimiterType(AIndex : Integer; const AValue : String); virtual;
  682. Public
  683. Published
  684. Property source : TGridRange Index 0 Read Fsource Write Setsource;
  685. Property delimiter : String Index 8 Read Fdelimiter Write Setdelimiter;
  686. Property delimiterType : String Index 16 Read FdelimiterType Write SetdelimiterType;
  687. end;
  688. TTextToColumnsRequestClass = Class of TTextToColumnsRequest;
  689. { --------------------------------------------------------------------
  690. TAddProtectedRangeResponse
  691. --------------------------------------------------------------------}
  692. TAddProtectedRangeResponse = Class(TGoogleBaseObject)
  693. Private
  694. FprotectedRange : TProtectedRange;
  695. Protected
  696. //Property setters
  697. Procedure SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange); virtual;
  698. Public
  699. Published
  700. Property protectedRange : TProtectedRange Index 0 Read FprotectedRange Write SetprotectedRange;
  701. end;
  702. TAddProtectedRangeResponseClass = Class of TAddProtectedRangeResponse;
  703. { --------------------------------------------------------------------
  704. TBooleanCondition
  705. --------------------------------------------------------------------}
  706. TBooleanCondition = Class(TGoogleBaseObject)
  707. Private
  708. Fvalues : TBooleanConditionTypevaluesArray;
  709. F_type : String;
  710. Protected
  711. Class Function ExportPropertyName(Const AName : String) : string; override;
  712. //Property setters
  713. Procedure Setvalues(AIndex : Integer; const AValue : TBooleanConditionTypevaluesArray); virtual;
  714. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  715. //2.6.4. bug workaround
  716. {$IFDEF VER2_6}
  717. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  718. {$ENDIF VER2_6}
  719. Public
  720. Published
  721. Property values : TBooleanConditionTypevaluesArray Index 0 Read Fvalues Write Setvalues;
  722. Property _type : String Index 8 Read F_type Write Set_type;
  723. end;
  724. TBooleanConditionClass = Class of TBooleanCondition;
  725. { --------------------------------------------------------------------
  726. TDeleteProtectedRangeRequest
  727. --------------------------------------------------------------------}
  728. TDeleteProtectedRangeRequest = Class(TGoogleBaseObject)
  729. Private
  730. FprotectedRangeId : integer;
  731. Protected
  732. //Property setters
  733. Procedure SetprotectedRangeId(AIndex : Integer; const AValue : integer); virtual;
  734. Public
  735. Published
  736. Property protectedRangeId : integer Index 0 Read FprotectedRangeId Write SetprotectedRangeId;
  737. end;
  738. TDeleteProtectedRangeRequestClass = Class of TDeleteProtectedRangeRequest;
  739. { --------------------------------------------------------------------
  740. TBasicChartDomain
  741. --------------------------------------------------------------------}
  742. TBasicChartDomain = Class(TGoogleBaseObject)
  743. Private
  744. Fdomain : TChartData;
  745. Protected
  746. //Property setters
  747. Procedure Setdomain(AIndex : Integer; const AValue : TChartData); virtual;
  748. Public
  749. Published
  750. Property domain : TChartData Index 0 Read Fdomain Write Setdomain;
  751. end;
  752. TBasicChartDomainClass = Class of TBasicChartDomain;
  753. { --------------------------------------------------------------------
  754. TDimensionRange
  755. --------------------------------------------------------------------}
  756. TDimensionRange = Class(TGoogleBaseObject)
  757. Private
  758. FsheetId : integer;
  759. FendIndex : integer;
  760. FstartIndex : integer;
  761. Fdimension : String;
  762. Protected
  763. //Property setters
  764. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  765. Procedure SetendIndex(AIndex : Integer; const AValue : integer); virtual;
  766. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  767. Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
  768. Public
  769. Published
  770. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  771. Property endIndex : integer Index 8 Read FendIndex Write SetendIndex;
  772. Property startIndex : integer Index 16 Read FstartIndex Write SetstartIndex;
  773. Property dimension : String Index 24 Read Fdimension Write Setdimension;
  774. end;
  775. TDimensionRangeClass = Class of TDimensionRange;
  776. { --------------------------------------------------------------------
  777. TResponse
  778. --------------------------------------------------------------------}
  779. TResponse = Class(TGoogleBaseObject)
  780. Private
  781. FupdateEmbeddedObjectPosition : TUpdateEmbeddedObjectPositionResponse;
  782. FaddFilterView : TAddFilterViewResponse;
  783. FaddSheet : TAddSheetResponse;
  784. FfindReplace : TFindReplaceResponse;
  785. FaddProtectedRange : TAddProtectedRangeResponse;
  786. FupdateConditionalFormatRule : TUpdateConditionalFormatRuleResponse;
  787. FaddChart : TAddChartResponse;
  788. FdeleteConditionalFormatRule : TDeleteConditionalFormatRuleResponse;
  789. FduplicateSheet : TDuplicateSheetResponse;
  790. FduplicateFilterView : TDuplicateFilterViewResponse;
  791. FaddNamedRange : TAddNamedRangeResponse;
  792. Protected
  793. //Property setters
  794. Procedure SetupdateEmbeddedObjectPosition(AIndex : Integer; const AValue : TUpdateEmbeddedObjectPositionResponse); virtual;
  795. Procedure SetaddFilterView(AIndex : Integer; const AValue : TAddFilterViewResponse); virtual;
  796. Procedure SetaddSheet(AIndex : Integer; const AValue : TAddSheetResponse); virtual;
  797. Procedure SetfindReplace(AIndex : Integer; const AValue : TFindReplaceResponse); virtual;
  798. Procedure SetaddProtectedRange(AIndex : Integer; const AValue : TAddProtectedRangeResponse); virtual;
  799. Procedure SetupdateConditionalFormatRule(AIndex : Integer; const AValue : TUpdateConditionalFormatRuleResponse); virtual;
  800. Procedure SetaddChart(AIndex : Integer; const AValue : TAddChartResponse); virtual;
  801. Procedure SetdeleteConditionalFormatRule(AIndex : Integer; const AValue : TDeleteConditionalFormatRuleResponse); virtual;
  802. Procedure SetduplicateSheet(AIndex : Integer; const AValue : TDuplicateSheetResponse); virtual;
  803. Procedure SetduplicateFilterView(AIndex : Integer; const AValue : TDuplicateFilterViewResponse); virtual;
  804. Procedure SetaddNamedRange(AIndex : Integer; const AValue : TAddNamedRangeResponse); virtual;
  805. Public
  806. Published
  807. Property updateEmbeddedObjectPosition : TUpdateEmbeddedObjectPositionResponse Index 0 Read FupdateEmbeddedObjectPosition Write SetupdateEmbeddedObjectPosition;
  808. Property addFilterView : TAddFilterViewResponse Index 8 Read FaddFilterView Write SetaddFilterView;
  809. Property addSheet : TAddSheetResponse Index 16 Read FaddSheet Write SetaddSheet;
  810. Property findReplace : TFindReplaceResponse Index 24 Read FfindReplace Write SetfindReplace;
  811. Property addProtectedRange : TAddProtectedRangeResponse Index 32 Read FaddProtectedRange Write SetaddProtectedRange;
  812. Property updateConditionalFormatRule : TUpdateConditionalFormatRuleResponse Index 40 Read FupdateConditionalFormatRule Write SetupdateConditionalFormatRule;
  813. Property addChart : TAddChartResponse Index 48 Read FaddChart Write SetaddChart;
  814. Property deleteConditionalFormatRule : TDeleteConditionalFormatRuleResponse Index 56 Read FdeleteConditionalFormatRule Write SetdeleteConditionalFormatRule;
  815. Property duplicateSheet : TDuplicateSheetResponse Index 64 Read FduplicateSheet Write SetduplicateSheet;
  816. Property duplicateFilterView : TDuplicateFilterViewResponse Index 72 Read FduplicateFilterView Write SetduplicateFilterView;
  817. Property addNamedRange : TAddNamedRangeResponse Index 80 Read FaddNamedRange Write SetaddNamedRange;
  818. end;
  819. TResponseClass = Class of TResponse;
  820. { --------------------------------------------------------------------
  821. TAddConditionalFormatRuleRequest
  822. --------------------------------------------------------------------}
  823. TAddConditionalFormatRuleRequest = Class(TGoogleBaseObject)
  824. Private
  825. Frule : TConditionalFormatRule;
  826. Findex : integer;
  827. Protected
  828. //Property setters
  829. Procedure Setrule(AIndex : Integer; const AValue : TConditionalFormatRule); virtual;
  830. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  831. Public
  832. Published
  833. Property rule : TConditionalFormatRule Index 0 Read Frule Write Setrule;
  834. Property index : integer Index 8 Read Findex Write Setindex;
  835. end;
  836. TAddConditionalFormatRuleRequestClass = Class of TAddConditionalFormatRuleRequest;
  837. { --------------------------------------------------------------------
  838. TFilterViewTypecriteria
  839. --------------------------------------------------------------------}
  840. TFilterViewTypecriteria = Class(TGoogleBaseObject)
  841. Private
  842. Protected
  843. //Property setters
  844. Public
  845. Class Function AllowAdditionalProperties : Boolean; override;
  846. Published
  847. end;
  848. TFilterViewTypecriteriaClass = Class of TFilterViewTypecriteria;
  849. { --------------------------------------------------------------------
  850. TFilterView
  851. --------------------------------------------------------------------}
  852. TFilterView = Class(TGoogleBaseObject)
  853. Private
  854. Ftitle : String;
  855. FnamedRangeId : String;
  856. FsortSpecs : TFilterViewTypesortSpecsArray;
  857. Frange : TGridRange;
  858. Fcriteria : TFilterViewTypecriteria;
  859. FfilterViewId : integer;
  860. Protected
  861. //Property setters
  862. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  863. Procedure SetnamedRangeId(AIndex : Integer; const AValue : String); virtual;
  864. Procedure SetsortSpecs(AIndex : Integer; const AValue : TFilterViewTypesortSpecsArray); virtual;
  865. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  866. Procedure Setcriteria(AIndex : Integer; const AValue : TFilterViewTypecriteria); virtual;
  867. Procedure SetfilterViewId(AIndex : Integer; const AValue : integer); virtual;
  868. //2.6.4. bug workaround
  869. {$IFDEF VER2_6}
  870. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  871. {$ENDIF VER2_6}
  872. Public
  873. Published
  874. Property title : String Index 0 Read Ftitle Write Settitle;
  875. Property namedRangeId : String Index 8 Read FnamedRangeId Write SetnamedRangeId;
  876. Property sortSpecs : TFilterViewTypesortSpecsArray Index 16 Read FsortSpecs Write SetsortSpecs;
  877. Property range : TGridRange Index 24 Read Frange Write Setrange;
  878. Property criteria : TFilterViewTypecriteria Index 32 Read Fcriteria Write Setcriteria;
  879. Property filterViewId : integer Index 40 Read FfilterViewId Write SetfilterViewId;
  880. end;
  881. TFilterViewClass = Class of TFilterView;
  882. { --------------------------------------------------------------------
  883. TSortRangeRequest
  884. --------------------------------------------------------------------}
  885. TSortRangeRequest = Class(TGoogleBaseObject)
  886. Private
  887. Frange : TGridRange;
  888. FsortSpecs : TSortRangeRequestTypesortSpecsArray;
  889. Protected
  890. //Property setters
  891. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  892. Procedure SetsortSpecs(AIndex : Integer; const AValue : TSortRangeRequestTypesortSpecsArray); virtual;
  893. //2.6.4. bug workaround
  894. {$IFDEF VER2_6}
  895. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  896. {$ENDIF VER2_6}
  897. Public
  898. Published
  899. Property range : TGridRange Index 0 Read Frange Write Setrange;
  900. Property sortSpecs : TSortRangeRequestTypesortSpecsArray Index 8 Read FsortSpecs Write SetsortSpecs;
  901. end;
  902. TSortRangeRequestClass = Class of TSortRangeRequest;
  903. { --------------------------------------------------------------------
  904. TTextFormatRun
  905. --------------------------------------------------------------------}
  906. TTextFormatRun = Class(TGoogleBaseObject)
  907. Private
  908. FstartIndex : integer;
  909. Fformat : TTextFormat;
  910. Protected
  911. //Property setters
  912. Procedure SetstartIndex(AIndex : Integer; const AValue : integer); virtual;
  913. Procedure Setformat(AIndex : Integer; const AValue : TTextFormat); virtual;
  914. Public
  915. Published
  916. Property startIndex : integer Index 0 Read FstartIndex Write SetstartIndex;
  917. Property format : TTextFormat Index 8 Read Fformat Write Setformat;
  918. end;
  919. TTextFormatRunClass = Class of TTextFormatRun;
  920. { --------------------------------------------------------------------
  921. TUpdateFilterViewRequest
  922. --------------------------------------------------------------------}
  923. TUpdateFilterViewRequest = Class(TGoogleBaseObject)
  924. Private
  925. Ffilter : TFilterView;
  926. Ffields : String;
  927. Protected
  928. //Property setters
  929. Procedure Setfilter(AIndex : Integer; const AValue : TFilterView); virtual;
  930. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  931. Public
  932. Published
  933. Property filter : TFilterView Index 0 Read Ffilter Write Setfilter;
  934. Property fields : String Index 8 Read Ffields Write Setfields;
  935. end;
  936. TUpdateFilterViewRequestClass = Class of TUpdateFilterViewRequest;
  937. { --------------------------------------------------------------------
  938. TUpdateConditionalFormatRuleResponse
  939. --------------------------------------------------------------------}
  940. TUpdateConditionalFormatRuleResponse = Class(TGoogleBaseObject)
  941. Private
  942. FoldIndex : integer;
  943. FnewRule : TConditionalFormatRule;
  944. FoldRule : TConditionalFormatRule;
  945. FnewIndex : integer;
  946. Protected
  947. //Property setters
  948. Procedure SetoldIndex(AIndex : Integer; const AValue : integer); virtual;
  949. Procedure SetnewRule(AIndex : Integer; const AValue : TConditionalFormatRule); virtual;
  950. Procedure SetoldRule(AIndex : Integer; const AValue : TConditionalFormatRule); virtual;
  951. Procedure SetnewIndex(AIndex : Integer; const AValue : integer); virtual;
  952. Public
  953. Published
  954. Property oldIndex : integer Index 0 Read FoldIndex Write SetoldIndex;
  955. Property newRule : TConditionalFormatRule Index 8 Read FnewRule Write SetnewRule;
  956. Property oldRule : TConditionalFormatRule Index 16 Read FoldRule Write SetoldRule;
  957. Property newIndex : integer Index 24 Read FnewIndex Write SetnewIndex;
  958. end;
  959. TUpdateConditionalFormatRuleResponseClass = Class of TUpdateConditionalFormatRuleResponse;
  960. { --------------------------------------------------------------------
  961. TFilterCriteria
  962. --------------------------------------------------------------------}
  963. TFilterCriteria = Class(TGoogleBaseObject)
  964. Private
  965. Fcondition : TBooleanCondition;
  966. FhiddenValues : TStringArray;
  967. Protected
  968. //Property setters
  969. Procedure Setcondition(AIndex : Integer; const AValue : TBooleanCondition); virtual;
  970. Procedure SethiddenValues(AIndex : Integer; const AValue : TStringArray); virtual;
  971. //2.6.4. bug workaround
  972. {$IFDEF VER2_6}
  973. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  974. {$ENDIF VER2_6}
  975. Public
  976. Published
  977. Property condition : TBooleanCondition Index 0 Read Fcondition Write Setcondition;
  978. Property hiddenValues : TStringArray Index 8 Read FhiddenValues Write SethiddenValues;
  979. end;
  980. TFilterCriteriaClass = Class of TFilterCriteria;
  981. { --------------------------------------------------------------------
  982. TDeleteDimensionRequest
  983. --------------------------------------------------------------------}
  984. TDeleteDimensionRequest = Class(TGoogleBaseObject)
  985. Private
  986. Frange : TDimensionRange;
  987. Protected
  988. //Property setters
  989. Procedure Setrange(AIndex : Integer; const AValue : TDimensionRange); virtual;
  990. Public
  991. Published
  992. Property range : TDimensionRange Index 0 Read Frange Write Setrange;
  993. end;
  994. TDeleteDimensionRequestClass = Class of TDeleteDimensionRequest;
  995. { --------------------------------------------------------------------
  996. TPivotTableTypecriteria
  997. --------------------------------------------------------------------}
  998. TPivotTableTypecriteria = Class(TGoogleBaseObject)
  999. Private
  1000. Protected
  1001. //Property setters
  1002. Public
  1003. Class Function AllowAdditionalProperties : Boolean; override;
  1004. Published
  1005. end;
  1006. TPivotTableTypecriteriaClass = Class of TPivotTableTypecriteria;
  1007. { --------------------------------------------------------------------
  1008. TPivotTable
  1009. --------------------------------------------------------------------}
  1010. TPivotTable = Class(TGoogleBaseObject)
  1011. Private
  1012. FvalueLayout : String;
  1013. Fcolumns : TPivotTableTypecolumnsArray;
  1014. Fsource : TGridRange;
  1015. Frows : TPivotTableTyperowsArray;
  1016. Fvalues : TPivotTableTypevaluesArray;
  1017. Fcriteria : TPivotTableTypecriteria;
  1018. Protected
  1019. //Property setters
  1020. Procedure SetvalueLayout(AIndex : Integer; const AValue : String); virtual;
  1021. Procedure Setcolumns(AIndex : Integer; const AValue : TPivotTableTypecolumnsArray); virtual;
  1022. Procedure Setsource(AIndex : Integer; const AValue : TGridRange); virtual;
  1023. Procedure Setrows(AIndex : Integer; const AValue : TPivotTableTyperowsArray); virtual;
  1024. Procedure Setvalues(AIndex : Integer; const AValue : TPivotTableTypevaluesArray); virtual;
  1025. Procedure Setcriteria(AIndex : Integer; const AValue : TPivotTableTypecriteria); virtual;
  1026. //2.6.4. bug workaround
  1027. {$IFDEF VER2_6}
  1028. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1029. {$ENDIF VER2_6}
  1030. Public
  1031. Published
  1032. Property valueLayout : String Index 0 Read FvalueLayout Write SetvalueLayout;
  1033. Property columns : TPivotTableTypecolumnsArray Index 8 Read Fcolumns Write Setcolumns;
  1034. Property source : TGridRange Index 16 Read Fsource Write Setsource;
  1035. Property rows : TPivotTableTyperowsArray Index 24 Read Frows Write Setrows;
  1036. Property values : TPivotTableTypevaluesArray Index 32 Read Fvalues Write Setvalues;
  1037. Property criteria : TPivotTableTypecriteria Index 40 Read Fcriteria Write Setcriteria;
  1038. end;
  1039. TPivotTableClass = Class of TPivotTable;
  1040. { --------------------------------------------------------------------
  1041. TDataValidationRule
  1042. --------------------------------------------------------------------}
  1043. TDataValidationRule = Class(TGoogleBaseObject)
  1044. Private
  1045. Fcondition : TBooleanCondition;
  1046. FinputMessage : String;
  1047. FshowCustomUi : boolean;
  1048. Fstrict : boolean;
  1049. Protected
  1050. //Property setters
  1051. Procedure Setcondition(AIndex : Integer; const AValue : TBooleanCondition); virtual;
  1052. Procedure SetinputMessage(AIndex : Integer; const AValue : String); virtual;
  1053. Procedure SetshowCustomUi(AIndex : Integer; const AValue : boolean); virtual;
  1054. Procedure Setstrict(AIndex : Integer; const AValue : boolean); virtual;
  1055. Public
  1056. Published
  1057. Property condition : TBooleanCondition Index 0 Read Fcondition Write Setcondition;
  1058. Property inputMessage : String Index 8 Read FinputMessage Write SetinputMessage;
  1059. Property showCustomUi : boolean Index 16 Read FshowCustomUi Write SetshowCustomUi;
  1060. Property strict : boolean Index 24 Read Fstrict Write Setstrict;
  1061. end;
  1062. TDataValidationRuleClass = Class of TDataValidationRule;
  1063. { --------------------------------------------------------------------
  1064. TUpdateSpreadsheetPropertiesRequest
  1065. --------------------------------------------------------------------}
  1066. TUpdateSpreadsheetPropertiesRequest = Class(TGoogleBaseObject)
  1067. Private
  1068. Ffields : String;
  1069. Fproperties : TSpreadsheetProperties;
  1070. Protected
  1071. //Property setters
  1072. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  1073. Procedure Setproperties(AIndex : Integer; const AValue : TSpreadsheetProperties); virtual;
  1074. Public
  1075. Published
  1076. Property fields : String Index 0 Read Ffields Write Setfields;
  1077. Property properties : TSpreadsheetProperties Index 8 Read Fproperties Write Setproperties;
  1078. end;
  1079. TUpdateSpreadsheetPropertiesRequestClass = Class of TUpdateSpreadsheetPropertiesRequest;
  1080. { --------------------------------------------------------------------
  1081. TChartSourceRange
  1082. --------------------------------------------------------------------}
  1083. TChartSourceRange = Class(TGoogleBaseObject)
  1084. Private
  1085. Fsources : TChartSourceRangeTypesourcesArray;
  1086. Protected
  1087. //Property setters
  1088. Procedure Setsources(AIndex : Integer; const AValue : TChartSourceRangeTypesourcesArray); virtual;
  1089. //2.6.4. bug workaround
  1090. {$IFDEF VER2_6}
  1091. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1092. {$ENDIF VER2_6}
  1093. Public
  1094. Published
  1095. Property sources : TChartSourceRangeTypesourcesArray Index 0 Read Fsources Write Setsources;
  1096. end;
  1097. TChartSourceRangeClass = Class of TChartSourceRange;
  1098. { --------------------------------------------------------------------
  1099. TBatchUpdateValuesRequest
  1100. --------------------------------------------------------------------}
  1101. TBatchUpdateValuesRequest = Class(TGoogleBaseObject)
  1102. Private
  1103. FvalueInputOption : String;
  1104. Fdata : TBatchUpdateValuesRequestTypedataArray;
  1105. Protected
  1106. //Property setters
  1107. Procedure SetvalueInputOption(AIndex : Integer; const AValue : String); virtual;
  1108. Procedure Setdata(AIndex : Integer; const AValue : TBatchUpdateValuesRequestTypedataArray); virtual;
  1109. //2.6.4. bug workaround
  1110. {$IFDEF VER2_6}
  1111. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1112. {$ENDIF VER2_6}
  1113. Public
  1114. Published
  1115. Property valueInputOption : String Index 0 Read FvalueInputOption Write SetvalueInputOption;
  1116. Property data : TBatchUpdateValuesRequestTypedataArray Index 8 Read Fdata Write Setdata;
  1117. end;
  1118. TBatchUpdateValuesRequestClass = Class of TBatchUpdateValuesRequest;
  1119. { --------------------------------------------------------------------
  1120. TClearBasicFilterRequest
  1121. --------------------------------------------------------------------}
  1122. TClearBasicFilterRequest = Class(TGoogleBaseObject)
  1123. Private
  1124. FsheetId : integer;
  1125. Protected
  1126. //Property setters
  1127. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  1128. Public
  1129. Published
  1130. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  1131. end;
  1132. TClearBasicFilterRequestClass = Class of TClearBasicFilterRequest;
  1133. { --------------------------------------------------------------------
  1134. TConditionalFormatRule
  1135. --------------------------------------------------------------------}
  1136. TConditionalFormatRule = Class(TGoogleBaseObject)
  1137. Private
  1138. FgradientRule : TGradientRule;
  1139. FbooleanRule : TBooleanRule;
  1140. Franges : TConditionalFormatRuleTyperangesArray;
  1141. Protected
  1142. //Property setters
  1143. Procedure SetgradientRule(AIndex : Integer; const AValue : TGradientRule); virtual;
  1144. Procedure SetbooleanRule(AIndex : Integer; const AValue : TBooleanRule); virtual;
  1145. Procedure Setranges(AIndex : Integer; const AValue : TConditionalFormatRuleTyperangesArray); virtual;
  1146. //2.6.4. bug workaround
  1147. {$IFDEF VER2_6}
  1148. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1149. {$ENDIF VER2_6}
  1150. Public
  1151. Published
  1152. Property gradientRule : TGradientRule Index 0 Read FgradientRule Write SetgradientRule;
  1153. Property booleanRule : TBooleanRule Index 8 Read FbooleanRule Write SetbooleanRule;
  1154. Property ranges : TConditionalFormatRuleTyperangesArray Index 16 Read Franges Write Setranges;
  1155. end;
  1156. TConditionalFormatRuleClass = Class of TConditionalFormatRule;
  1157. { --------------------------------------------------------------------
  1158. TUpdateBordersRequest
  1159. --------------------------------------------------------------------}
  1160. TUpdateBordersRequest = Class(TGoogleBaseObject)
  1161. Private
  1162. Fright : TBorder;
  1163. FinnerVertical : TBorder;
  1164. Ftop : TBorder;
  1165. FinnerHorizontal : TBorder;
  1166. Frange : TGridRange;
  1167. Fbottom : TBorder;
  1168. Fleft : TBorder;
  1169. Protected
  1170. //Property setters
  1171. Procedure Setright(AIndex : Integer; const AValue : TBorder); virtual;
  1172. Procedure SetinnerVertical(AIndex : Integer; const AValue : TBorder); virtual;
  1173. Procedure Settop(AIndex : Integer; const AValue : TBorder); virtual;
  1174. Procedure SetinnerHorizontal(AIndex : Integer; const AValue : TBorder); virtual;
  1175. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  1176. Procedure Setbottom(AIndex : Integer; const AValue : TBorder); virtual;
  1177. Procedure Setleft(AIndex : Integer; const AValue : TBorder); virtual;
  1178. Public
  1179. Published
  1180. Property right : TBorder Index 0 Read Fright Write Setright;
  1181. Property innerVertical : TBorder Index 8 Read FinnerVertical Write SetinnerVertical;
  1182. Property top : TBorder Index 16 Read Ftop Write Settop;
  1183. Property innerHorizontal : TBorder Index 24 Read FinnerHorizontal Write SetinnerHorizontal;
  1184. Property range : TGridRange Index 32 Read Frange Write Setrange;
  1185. Property bottom : TBorder Index 40 Read Fbottom Write Setbottom;
  1186. Property left : TBorder Index 48 Read Fleft Write Setleft;
  1187. end;
  1188. TUpdateBordersRequestClass = Class of TUpdateBordersRequest;
  1189. { --------------------------------------------------------------------
  1190. TPivotFilterCriteria
  1191. --------------------------------------------------------------------}
  1192. TPivotFilterCriteria = Class(TGoogleBaseObject)
  1193. Private
  1194. FvisibleValues : TStringArray;
  1195. Protected
  1196. //Property setters
  1197. Procedure SetvisibleValues(AIndex : Integer; const AValue : TStringArray); virtual;
  1198. //2.6.4. bug workaround
  1199. {$IFDEF VER2_6}
  1200. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1201. {$ENDIF VER2_6}
  1202. Public
  1203. Published
  1204. Property visibleValues : TStringArray Index 0 Read FvisibleValues Write SetvisibleValues;
  1205. end;
  1206. TPivotFilterCriteriaClass = Class of TPivotFilterCriteria;
  1207. { --------------------------------------------------------------------
  1208. TBorders
  1209. --------------------------------------------------------------------}
  1210. TBorders = Class(TGoogleBaseObject)
  1211. Private
  1212. Fleft : TBorder;
  1213. Fright : TBorder;
  1214. Ftop : TBorder;
  1215. Fbottom : TBorder;
  1216. Protected
  1217. //Property setters
  1218. Procedure Setleft(AIndex : Integer; const AValue : TBorder); virtual;
  1219. Procedure Setright(AIndex : Integer; const AValue : TBorder); virtual;
  1220. Procedure Settop(AIndex : Integer; const AValue : TBorder); virtual;
  1221. Procedure Setbottom(AIndex : Integer; const AValue : TBorder); virtual;
  1222. Public
  1223. Published
  1224. Property left : TBorder Index 0 Read Fleft Write Setleft;
  1225. Property right : TBorder Index 8 Read Fright Write Setright;
  1226. Property top : TBorder Index 16 Read Ftop Write Settop;
  1227. Property bottom : TBorder Index 24 Read Fbottom Write Setbottom;
  1228. end;
  1229. TBordersClass = Class of TBorders;
  1230. { --------------------------------------------------------------------
  1231. TEmbeddedChart
  1232. --------------------------------------------------------------------}
  1233. TEmbeddedChart = Class(TGoogleBaseObject)
  1234. Private
  1235. FchartId : integer;
  1236. Fposition : TEmbeddedObjectPosition;
  1237. Fspec : TChartSpec;
  1238. Protected
  1239. //Property setters
  1240. Procedure SetchartId(AIndex : Integer; const AValue : integer); virtual;
  1241. Procedure Setposition(AIndex : Integer; const AValue : TEmbeddedObjectPosition); virtual;
  1242. Procedure Setspec(AIndex : Integer; const AValue : TChartSpec); virtual;
  1243. Public
  1244. Published
  1245. Property chartId : integer Index 0 Read FchartId Write SetchartId;
  1246. Property position : TEmbeddedObjectPosition Index 8 Read Fposition Write Setposition;
  1247. Property spec : TChartSpec Index 16 Read Fspec Write Setspec;
  1248. end;
  1249. TEmbeddedChartClass = Class of TEmbeddedChart;
  1250. { --------------------------------------------------------------------
  1251. TColor
  1252. --------------------------------------------------------------------}
  1253. TColor = Class(TGoogleBaseObject)
  1254. Private
  1255. Fgreen : integer;
  1256. Fblue : integer;
  1257. Fred : integer;
  1258. Falpha : integer;
  1259. Protected
  1260. //Property setters
  1261. Procedure Setgreen(AIndex : Integer; const AValue : integer); virtual;
  1262. Procedure Setblue(AIndex : Integer; const AValue : integer); virtual;
  1263. Procedure Setred(AIndex : Integer; const AValue : integer); virtual;
  1264. Procedure Setalpha(AIndex : Integer; const AValue : integer); virtual;
  1265. Public
  1266. Published
  1267. Property green : integer Index 0 Read Fgreen Write Setgreen;
  1268. Property blue : integer Index 8 Read Fblue Write Setblue;
  1269. Property red : integer Index 16 Read Fred Write Setred;
  1270. Property alpha : integer Index 24 Read Falpha Write Setalpha;
  1271. end;
  1272. TColorClass = Class of TColor;
  1273. { --------------------------------------------------------------------
  1274. TAddSheetRequest
  1275. --------------------------------------------------------------------}
  1276. TAddSheetRequest = Class(TGoogleBaseObject)
  1277. Private
  1278. Fproperties : TSheetProperties;
  1279. Protected
  1280. //Property setters
  1281. Procedure Setproperties(AIndex : Integer; const AValue : TSheetProperties); virtual;
  1282. Public
  1283. Published
  1284. Property properties : TSheetProperties Index 0 Read Fproperties Write Setproperties;
  1285. end;
  1286. TAddSheetRequestClass = Class of TAddSheetRequest;
  1287. { --------------------------------------------------------------------
  1288. TAddProtectedRangeRequest
  1289. --------------------------------------------------------------------}
  1290. TAddProtectedRangeRequest = Class(TGoogleBaseObject)
  1291. Private
  1292. FprotectedRange : TProtectedRange;
  1293. Protected
  1294. //Property setters
  1295. Procedure SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange); virtual;
  1296. Public
  1297. Published
  1298. Property protectedRange : TProtectedRange Index 0 Read FprotectedRange Write SetprotectedRange;
  1299. end;
  1300. TAddProtectedRangeRequestClass = Class of TAddProtectedRangeRequest;
  1301. { --------------------------------------------------------------------
  1302. TValueRange
  1303. --------------------------------------------------------------------}
  1304. TValueRange = Class(TGoogleBaseObject)
  1305. Private
  1306. Fvalues : TValueRangeTypevaluesArray;
  1307. Frange : String;
  1308. FmajorDimension : String;
  1309. Protected
  1310. //Property setters
  1311. Procedure Setvalues(AIndex : Integer; const AValue : TValueRangeTypevaluesArray); virtual;
  1312. Procedure Setrange(AIndex : Integer; const AValue : String); virtual;
  1313. Procedure SetmajorDimension(AIndex : Integer; const AValue : String); virtual;
  1314. //2.6.4. bug workaround
  1315. {$IFDEF VER2_6}
  1316. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1317. {$ENDIF VER2_6}
  1318. Public
  1319. Published
  1320. Property values : TValueRangeTypevaluesArray Index 0 Read Fvalues Write Setvalues;
  1321. Property range : String Index 8 Read Frange Write Setrange;
  1322. Property majorDimension : String Index 16 Read FmajorDimension Write SetmajorDimension;
  1323. end;
  1324. TValueRangeClass = Class of TValueRange;
  1325. { --------------------------------------------------------------------
  1326. TFindReplaceResponse
  1327. --------------------------------------------------------------------}
  1328. TFindReplaceResponse = Class(TGoogleBaseObject)
  1329. Private
  1330. FvaluesChanged : integer;
  1331. FrowsChanged : integer;
  1332. FoccurrencesChanged : integer;
  1333. FformulasChanged : integer;
  1334. FsheetsChanged : integer;
  1335. Protected
  1336. //Property setters
  1337. Procedure SetvaluesChanged(AIndex : Integer; const AValue : integer); virtual;
  1338. Procedure SetrowsChanged(AIndex : Integer; const AValue : integer); virtual;
  1339. Procedure SetoccurrencesChanged(AIndex : Integer; const AValue : integer); virtual;
  1340. Procedure SetformulasChanged(AIndex : Integer; const AValue : integer); virtual;
  1341. Procedure SetsheetsChanged(AIndex : Integer; const AValue : integer); virtual;
  1342. Public
  1343. Published
  1344. Property valuesChanged : integer Index 0 Read FvaluesChanged Write SetvaluesChanged;
  1345. Property rowsChanged : integer Index 8 Read FrowsChanged Write SetrowsChanged;
  1346. Property occurrencesChanged : integer Index 16 Read FoccurrencesChanged Write SetoccurrencesChanged;
  1347. Property formulasChanged : integer Index 24 Read FformulasChanged Write SetformulasChanged;
  1348. Property sheetsChanged : integer Index 32 Read FsheetsChanged Write SetsheetsChanged;
  1349. end;
  1350. TFindReplaceResponseClass = Class of TFindReplaceResponse;
  1351. { --------------------------------------------------------------------
  1352. TCellFormat
  1353. --------------------------------------------------------------------}
  1354. TCellFormat = Class(TGoogleBaseObject)
  1355. Private
  1356. FhorizontalAlignment : String;
  1357. FhyperlinkDisplayType : String;
  1358. Fborders : TBorders;
  1359. FtextDirection : String;
  1360. FtextFormat : TTextFormat;
  1361. Fpadding : TPadding;
  1362. FnumberFormat : TNumberFormat;
  1363. FwrapStrategy : String;
  1364. FbackgroundColor : TColor;
  1365. FverticalAlignment : String;
  1366. Protected
  1367. //Property setters
  1368. Procedure SethorizontalAlignment(AIndex : Integer; const AValue : String); virtual;
  1369. Procedure SethyperlinkDisplayType(AIndex : Integer; const AValue : String); virtual;
  1370. Procedure Setborders(AIndex : Integer; const AValue : TBorders); virtual;
  1371. Procedure SettextDirection(AIndex : Integer; const AValue : String); virtual;
  1372. Procedure SettextFormat(AIndex : Integer; const AValue : TTextFormat); virtual;
  1373. Procedure Setpadding(AIndex : Integer; const AValue : TPadding); virtual;
  1374. Procedure SetnumberFormat(AIndex : Integer; const AValue : TNumberFormat); virtual;
  1375. Procedure SetwrapStrategy(AIndex : Integer; const AValue : String); virtual;
  1376. Procedure SetbackgroundColor(AIndex : Integer; const AValue : TColor); virtual;
  1377. Procedure SetverticalAlignment(AIndex : Integer; const AValue : String); virtual;
  1378. Public
  1379. Published
  1380. Property horizontalAlignment : String Index 0 Read FhorizontalAlignment Write SethorizontalAlignment;
  1381. Property hyperlinkDisplayType : String Index 8 Read FhyperlinkDisplayType Write SethyperlinkDisplayType;
  1382. Property borders : TBorders Index 16 Read Fborders Write Setborders;
  1383. Property textDirection : String Index 24 Read FtextDirection Write SettextDirection;
  1384. Property textFormat : TTextFormat Index 32 Read FtextFormat Write SettextFormat;
  1385. Property padding : TPadding Index 40 Read Fpadding Write Setpadding;
  1386. Property numberFormat : TNumberFormat Index 48 Read FnumberFormat Write SetnumberFormat;
  1387. Property wrapStrategy : String Index 56 Read FwrapStrategy Write SetwrapStrategy;
  1388. Property backgroundColor : TColor Index 64 Read FbackgroundColor Write SetbackgroundColor;
  1389. Property verticalAlignment : String Index 72 Read FverticalAlignment Write SetverticalAlignment;
  1390. end;
  1391. TCellFormatClass = Class of TCellFormat;
  1392. { --------------------------------------------------------------------
  1393. TMoveDimensionRequest
  1394. --------------------------------------------------------------------}
  1395. TMoveDimensionRequest = Class(TGoogleBaseObject)
  1396. Private
  1397. Fsource : TDimensionRange;
  1398. FdestinationIndex : integer;
  1399. Protected
  1400. //Property setters
  1401. Procedure Setsource(AIndex : Integer; const AValue : TDimensionRange); virtual;
  1402. Procedure SetdestinationIndex(AIndex : Integer; const AValue : integer); virtual;
  1403. Public
  1404. Published
  1405. Property source : TDimensionRange Index 0 Read Fsource Write Setsource;
  1406. Property destinationIndex : integer Index 8 Read FdestinationIndex Write SetdestinationIndex;
  1407. end;
  1408. TMoveDimensionRequestClass = Class of TMoveDimensionRequest;
  1409. { --------------------------------------------------------------------
  1410. TBasicChartAxis
  1411. --------------------------------------------------------------------}
  1412. TBasicChartAxis = Class(TGoogleBaseObject)
  1413. Private
  1414. Fposition : String;
  1415. Ftitle : String;
  1416. Fformat : TTextFormat;
  1417. Protected
  1418. //Property setters
  1419. Procedure Setposition(AIndex : Integer; const AValue : String); virtual;
  1420. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1421. Procedure Setformat(AIndex : Integer; const AValue : TTextFormat); virtual;
  1422. Public
  1423. Published
  1424. Property position : String Index 0 Read Fposition Write Setposition;
  1425. Property title : String Index 8 Read Ftitle Write Settitle;
  1426. Property format : TTextFormat Index 16 Read Fformat Write Setformat;
  1427. end;
  1428. TBasicChartAxisClass = Class of TBasicChartAxis;
  1429. { --------------------------------------------------------------------
  1430. TPivotGroupSortValueBucket
  1431. --------------------------------------------------------------------}
  1432. TPivotGroupSortValueBucket = Class(TGoogleBaseObject)
  1433. Private
  1434. Fbuckets : TPivotGroupSortValueBucketTypebucketsArray;
  1435. FvaluesIndex : integer;
  1436. Protected
  1437. //Property setters
  1438. Procedure Setbuckets(AIndex : Integer; const AValue : TPivotGroupSortValueBucketTypebucketsArray); virtual;
  1439. Procedure SetvaluesIndex(AIndex : Integer; const AValue : integer); virtual;
  1440. //2.6.4. bug workaround
  1441. {$IFDEF VER2_6}
  1442. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1443. {$ENDIF VER2_6}
  1444. Public
  1445. Published
  1446. Property buckets : TPivotGroupSortValueBucketTypebucketsArray Index 0 Read Fbuckets Write Setbuckets;
  1447. Property valuesIndex : integer Index 8 Read FvaluesIndex Write SetvaluesIndex;
  1448. end;
  1449. TPivotGroupSortValueBucketClass = Class of TPivotGroupSortValueBucket;
  1450. { --------------------------------------------------------------------
  1451. TDimensionProperties
  1452. --------------------------------------------------------------------}
  1453. TDimensionProperties = Class(TGoogleBaseObject)
  1454. Private
  1455. FhiddenByUser : boolean;
  1456. FpixelSize : integer;
  1457. FhiddenByFilter : boolean;
  1458. Protected
  1459. //Property setters
  1460. Procedure SethiddenByUser(AIndex : Integer; const AValue : boolean); virtual;
  1461. Procedure SetpixelSize(AIndex : Integer; const AValue : integer); virtual;
  1462. Procedure SethiddenByFilter(AIndex : Integer; const AValue : boolean); virtual;
  1463. Public
  1464. Published
  1465. Property hiddenByUser : boolean Index 0 Read FhiddenByUser Write SethiddenByUser;
  1466. Property pixelSize : integer Index 8 Read FpixelSize Write SetpixelSize;
  1467. Property hiddenByFilter : boolean Index 16 Read FhiddenByFilter Write SethiddenByFilter;
  1468. end;
  1469. TDimensionPropertiesClass = Class of TDimensionProperties;
  1470. { --------------------------------------------------------------------
  1471. TEmbeddedObjectPosition
  1472. --------------------------------------------------------------------}
  1473. TEmbeddedObjectPosition = Class(TGoogleBaseObject)
  1474. Private
  1475. FsheetId : integer;
  1476. FoverlayPosition : TOverlayPosition;
  1477. FnewSheet : boolean;
  1478. Protected
  1479. //Property setters
  1480. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  1481. Procedure SetoverlayPosition(AIndex : Integer; const AValue : TOverlayPosition); virtual;
  1482. Procedure SetnewSheet(AIndex : Integer; const AValue : boolean); virtual;
  1483. Public
  1484. Published
  1485. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  1486. Property overlayPosition : TOverlayPosition Index 8 Read FoverlayPosition Write SetoverlayPosition;
  1487. Property newSheet : boolean Index 16 Read FnewSheet Write SetnewSheet;
  1488. end;
  1489. TEmbeddedObjectPositionClass = Class of TEmbeddedObjectPosition;
  1490. { --------------------------------------------------------------------
  1491. TInterpolationPoint
  1492. --------------------------------------------------------------------}
  1493. TInterpolationPoint = Class(TGoogleBaseObject)
  1494. Private
  1495. Fvalue : String;
  1496. Fcolor : TColor;
  1497. F_type : String;
  1498. Protected
  1499. Class Function ExportPropertyName(Const AName : String) : string; override;
  1500. //Property setters
  1501. Procedure Setvalue(AIndex : Integer; const AValue : String); virtual;
  1502. Procedure Setcolor(AIndex : Integer; const AValue : TColor); virtual;
  1503. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1504. Public
  1505. Published
  1506. Property value : String Index 0 Read Fvalue Write Setvalue;
  1507. Property color : TColor Index 8 Read Fcolor Write Setcolor;
  1508. Property _type : String Index 16 Read F_type Write Set_type;
  1509. end;
  1510. TInterpolationPointClass = Class of TInterpolationPoint;
  1511. { --------------------------------------------------------------------
  1512. TErrorValue
  1513. --------------------------------------------------------------------}
  1514. TErrorValue = Class(TGoogleBaseObject)
  1515. Private
  1516. F_type : String;
  1517. Fmessage : String;
  1518. Protected
  1519. Class Function ExportPropertyName(Const AName : String) : string; override;
  1520. //Property setters
  1521. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1522. Procedure Setmessage(AIndex : Integer; const AValue : String); virtual;
  1523. Public
  1524. Published
  1525. Property _type : String Index 0 Read F_type Write Set_type;
  1526. Property message : String Index 8 Read Fmessage Write Setmessage;
  1527. end;
  1528. TErrorValueClass = Class of TErrorValue;
  1529. { --------------------------------------------------------------------
  1530. TDuplicateFilterViewRequest
  1531. --------------------------------------------------------------------}
  1532. TDuplicateFilterViewRequest = Class(TGoogleBaseObject)
  1533. Private
  1534. FfilterId : integer;
  1535. Protected
  1536. //Property setters
  1537. Procedure SetfilterId(AIndex : Integer; const AValue : integer); virtual;
  1538. Public
  1539. Published
  1540. Property filterId : integer Index 0 Read FfilterId Write SetfilterId;
  1541. end;
  1542. TDuplicateFilterViewRequestClass = Class of TDuplicateFilterViewRequest;
  1543. { --------------------------------------------------------------------
  1544. TBatchUpdateSpreadsheetRequest
  1545. --------------------------------------------------------------------}
  1546. TBatchUpdateSpreadsheetRequest = Class(TGoogleBaseObject)
  1547. Private
  1548. Frequests : TBatchUpdateSpreadsheetRequestTyperequestsArray;
  1549. Protected
  1550. //Property setters
  1551. Procedure Setrequests(AIndex : Integer; const AValue : TBatchUpdateSpreadsheetRequestTyperequestsArray); virtual;
  1552. //2.6.4. bug workaround
  1553. {$IFDEF VER2_6}
  1554. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1555. {$ENDIF VER2_6}
  1556. Public
  1557. Published
  1558. Property requests : TBatchUpdateSpreadsheetRequestTyperequestsArray Index 0 Read Frequests Write Setrequests;
  1559. end;
  1560. TBatchUpdateSpreadsheetRequestClass = Class of TBatchUpdateSpreadsheetRequest;
  1561. { --------------------------------------------------------------------
  1562. TSheetProperties
  1563. --------------------------------------------------------------------}
  1564. TSheetProperties = Class(TGoogleBaseObject)
  1565. Private
  1566. Ftitle : String;
  1567. Findex : integer;
  1568. Fhidden : boolean;
  1569. FgridProperties : TGridProperties;
  1570. FsheetId : integer;
  1571. FrightToLeft : boolean;
  1572. FtabColor : TColor;
  1573. FsheetType : String;
  1574. Protected
  1575. //Property setters
  1576. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1577. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  1578. Procedure Sethidden(AIndex : Integer; const AValue : boolean); virtual;
  1579. Procedure SetgridProperties(AIndex : Integer; const AValue : TGridProperties); virtual;
  1580. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  1581. Procedure SetrightToLeft(AIndex : Integer; const AValue : boolean); virtual;
  1582. Procedure SettabColor(AIndex : Integer; const AValue : TColor); virtual;
  1583. Procedure SetsheetType(AIndex : Integer; const AValue : String); virtual;
  1584. Public
  1585. Published
  1586. Property title : String Index 0 Read Ftitle Write Settitle;
  1587. Property index : integer Index 8 Read Findex Write Setindex;
  1588. Property hidden : boolean Index 16 Read Fhidden Write Sethidden;
  1589. Property gridProperties : TGridProperties Index 24 Read FgridProperties Write SetgridProperties;
  1590. Property sheetId : integer Index 32 Read FsheetId Write SetsheetId;
  1591. Property rightToLeft : boolean Index 40 Read FrightToLeft Write SetrightToLeft;
  1592. Property tabColor : TColor Index 48 Read FtabColor Write SettabColor;
  1593. Property sheetType : String Index 56 Read FsheetType Write SetsheetType;
  1594. end;
  1595. TSheetPropertiesClass = Class of TSheetProperties;
  1596. { --------------------------------------------------------------------
  1597. TProtectedRange
  1598. --------------------------------------------------------------------}
  1599. TProtectedRange = Class(TGoogleBaseObject)
  1600. Private
  1601. FunprotectedRanges : TProtectedRangeTypeunprotectedRangesArray;
  1602. Fdescription : String;
  1603. FnamedRangeId : String;
  1604. FrequestingUserCanEdit : boolean;
  1605. Feditors : TEditors;
  1606. FprotectedRangeId : integer;
  1607. FwarningOnly : boolean;
  1608. Frange : TGridRange;
  1609. Protected
  1610. //Property setters
  1611. Procedure SetunprotectedRanges(AIndex : Integer; const AValue : TProtectedRangeTypeunprotectedRangesArray); virtual;
  1612. Procedure Setdescription(AIndex : Integer; const AValue : String); virtual;
  1613. Procedure SetnamedRangeId(AIndex : Integer; const AValue : String); virtual;
  1614. Procedure SetrequestingUserCanEdit(AIndex : Integer; const AValue : boolean); virtual;
  1615. Procedure Seteditors(AIndex : Integer; const AValue : TEditors); virtual;
  1616. Procedure SetprotectedRangeId(AIndex : Integer; const AValue : integer); virtual;
  1617. Procedure SetwarningOnly(AIndex : Integer; const AValue : boolean); virtual;
  1618. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  1619. //2.6.4. bug workaround
  1620. {$IFDEF VER2_6}
  1621. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1622. {$ENDIF VER2_6}
  1623. Public
  1624. Published
  1625. Property unprotectedRanges : TProtectedRangeTypeunprotectedRangesArray Index 0 Read FunprotectedRanges Write SetunprotectedRanges;
  1626. Property description : String Index 8 Read Fdescription Write Setdescription;
  1627. Property namedRangeId : String Index 16 Read FnamedRangeId Write SetnamedRangeId;
  1628. Property requestingUserCanEdit : boolean Index 24 Read FrequestingUserCanEdit Write SetrequestingUserCanEdit;
  1629. Property editors : TEditors Index 32 Read Feditors Write Seteditors;
  1630. Property protectedRangeId : integer Index 40 Read FprotectedRangeId Write SetprotectedRangeId;
  1631. Property warningOnly : boolean Index 48 Read FwarningOnly Write SetwarningOnly;
  1632. Property range : TGridRange Index 56 Read Frange Write Setrange;
  1633. end;
  1634. TProtectedRangeClass = Class of TProtectedRange;
  1635. { --------------------------------------------------------------------
  1636. TDeleteConditionalFormatRuleRequest
  1637. --------------------------------------------------------------------}
  1638. TDeleteConditionalFormatRuleRequest = Class(TGoogleBaseObject)
  1639. Private
  1640. FsheetId : integer;
  1641. Findex : integer;
  1642. Protected
  1643. //Property setters
  1644. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  1645. Procedure Setindex(AIndex : Integer; const AValue : integer); virtual;
  1646. Public
  1647. Published
  1648. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  1649. Property index : integer Index 8 Read Findex Write Setindex;
  1650. end;
  1651. TDeleteConditionalFormatRuleRequestClass = Class of TDeleteConditionalFormatRuleRequest;
  1652. { --------------------------------------------------------------------
  1653. TChartSpec
  1654. --------------------------------------------------------------------}
  1655. TChartSpec = Class(TGoogleBaseObject)
  1656. Private
  1657. FhiddenDimensionStrategy : String;
  1658. FbasicChart : TBasicChartSpec;
  1659. Ftitle : String;
  1660. FpieChart : TPieChartSpec;
  1661. Protected
  1662. //Property setters
  1663. Procedure SethiddenDimensionStrategy(AIndex : Integer; const AValue : String); virtual;
  1664. Procedure SetbasicChart(AIndex : Integer; const AValue : TBasicChartSpec); virtual;
  1665. Procedure Settitle(AIndex : Integer; const AValue : String); virtual;
  1666. Procedure SetpieChart(AIndex : Integer; const AValue : TPieChartSpec); virtual;
  1667. Public
  1668. Published
  1669. Property hiddenDimensionStrategy : String Index 0 Read FhiddenDimensionStrategy Write SethiddenDimensionStrategy;
  1670. Property basicChart : TBasicChartSpec Index 8 Read FbasicChart Write SetbasicChart;
  1671. Property title : String Index 16 Read Ftitle Write Settitle;
  1672. Property pieChart : TPieChartSpec Index 24 Read FpieChart Write SetpieChart;
  1673. end;
  1674. TChartSpecClass = Class of TChartSpec;
  1675. { --------------------------------------------------------------------
  1676. TSourceAndDestination
  1677. --------------------------------------------------------------------}
  1678. TSourceAndDestination = Class(TGoogleBaseObject)
  1679. Private
  1680. Fsource : TGridRange;
  1681. FfillLength : integer;
  1682. Fdimension : String;
  1683. Protected
  1684. //Property setters
  1685. Procedure Setsource(AIndex : Integer; const AValue : TGridRange); virtual;
  1686. Procedure SetfillLength(AIndex : Integer; const AValue : integer); virtual;
  1687. Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
  1688. Public
  1689. Published
  1690. Property source : TGridRange Index 0 Read Fsource Write Setsource;
  1691. Property fillLength : integer Index 8 Read FfillLength Write SetfillLength;
  1692. Property dimension : String Index 16 Read Fdimension Write Setdimension;
  1693. end;
  1694. TSourceAndDestinationClass = Class of TSourceAndDestination;
  1695. { --------------------------------------------------------------------
  1696. TConditionValue
  1697. --------------------------------------------------------------------}
  1698. TConditionValue = Class(TGoogleBaseObject)
  1699. Private
  1700. FrelativeDate : String;
  1701. FuserEnteredValue : String;
  1702. Protected
  1703. //Property setters
  1704. Procedure SetrelativeDate(AIndex : Integer; const AValue : String); virtual;
  1705. Procedure SetuserEnteredValue(AIndex : Integer; const AValue : String); virtual;
  1706. Public
  1707. Published
  1708. Property relativeDate : String Index 0 Read FrelativeDate Write SetrelativeDate;
  1709. Property userEnteredValue : String Index 8 Read FuserEnteredValue Write SetuserEnteredValue;
  1710. end;
  1711. TConditionValueClass = Class of TConditionValue;
  1712. { --------------------------------------------------------------------
  1713. TPasteDataRequest
  1714. --------------------------------------------------------------------}
  1715. TPasteDataRequest = Class(TGoogleBaseObject)
  1716. Private
  1717. Fdata : String;
  1718. Fcoordinate : TGridCoordinate;
  1719. Fdelimiter : String;
  1720. F_type : String;
  1721. Fhtml : boolean;
  1722. Protected
  1723. Class Function ExportPropertyName(Const AName : String) : string; override;
  1724. //Property setters
  1725. Procedure Setdata(AIndex : Integer; const AValue : String); virtual;
  1726. Procedure Setcoordinate(AIndex : Integer; const AValue : TGridCoordinate); virtual;
  1727. Procedure Setdelimiter(AIndex : Integer; const AValue : String); virtual;
  1728. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1729. Procedure Sethtml(AIndex : Integer; const AValue : boolean); virtual;
  1730. Public
  1731. Published
  1732. Property data : String Index 0 Read Fdata Write Setdata;
  1733. Property coordinate : TGridCoordinate Index 8 Read Fcoordinate Write Setcoordinate;
  1734. Property delimiter : String Index 16 Read Fdelimiter Write Setdelimiter;
  1735. Property _type : String Index 24 Read F_type Write Set_type;
  1736. Property html : boolean Index 32 Read Fhtml Write Sethtml;
  1737. end;
  1738. TPasteDataRequestClass = Class of TPasteDataRequest;
  1739. { --------------------------------------------------------------------
  1740. TFindReplaceRequest
  1741. --------------------------------------------------------------------}
  1742. TFindReplaceRequest = Class(TGoogleBaseObject)
  1743. Private
  1744. Ffind : String;
  1745. Freplacement : String;
  1746. FsearchByRegex : boolean;
  1747. FsheetId : integer;
  1748. FallSheets : boolean;
  1749. FmatchCase : boolean;
  1750. FincludeFormulas : boolean;
  1751. Frange : TGridRange;
  1752. FmatchEntireCell : boolean;
  1753. Protected
  1754. //Property setters
  1755. Procedure Setfind(AIndex : Integer; const AValue : String); virtual;
  1756. Procedure Setreplacement(AIndex : Integer; const AValue : String); virtual;
  1757. Procedure SetsearchByRegex(AIndex : Integer; const AValue : boolean); virtual;
  1758. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  1759. Procedure SetallSheets(AIndex : Integer; const AValue : boolean); virtual;
  1760. Procedure SetmatchCase(AIndex : Integer; const AValue : boolean); virtual;
  1761. Procedure SetincludeFormulas(AIndex : Integer; const AValue : boolean); virtual;
  1762. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  1763. Procedure SetmatchEntireCell(AIndex : Integer; const AValue : boolean); virtual;
  1764. Public
  1765. Published
  1766. Property find : String Index 0 Read Ffind Write Setfind;
  1767. Property replacement : String Index 8 Read Freplacement Write Setreplacement;
  1768. Property searchByRegex : boolean Index 16 Read FsearchByRegex Write SetsearchByRegex;
  1769. Property sheetId : integer Index 24 Read FsheetId Write SetsheetId;
  1770. Property allSheets : boolean Index 32 Read FallSheets Write SetallSheets;
  1771. Property matchCase : boolean Index 40 Read FmatchCase Write SetmatchCase;
  1772. Property includeFormulas : boolean Index 48 Read FincludeFormulas Write SetincludeFormulas;
  1773. Property range : TGridRange Index 56 Read Frange Write Setrange;
  1774. Property matchEntireCell : boolean Index 64 Read FmatchEntireCell Write SetmatchEntireCell;
  1775. end;
  1776. TFindReplaceRequestClass = Class of TFindReplaceRequest;
  1777. { --------------------------------------------------------------------
  1778. TSortSpec
  1779. --------------------------------------------------------------------}
  1780. TSortSpec = Class(TGoogleBaseObject)
  1781. Private
  1782. FsortOrder : String;
  1783. FdimensionIndex : integer;
  1784. Protected
  1785. //Property setters
  1786. Procedure SetsortOrder(AIndex : Integer; const AValue : String); virtual;
  1787. Procedure SetdimensionIndex(AIndex : Integer; const AValue : integer); virtual;
  1788. Public
  1789. Published
  1790. Property sortOrder : String Index 0 Read FsortOrder Write SetsortOrder;
  1791. Property dimensionIndex : integer Index 8 Read FdimensionIndex Write SetdimensionIndex;
  1792. end;
  1793. TSortSpecClass = Class of TSortSpec;
  1794. { --------------------------------------------------------------------
  1795. TCopySheetToAnotherSpreadsheetRequest
  1796. --------------------------------------------------------------------}
  1797. TCopySheetToAnotherSpreadsheetRequest = Class(TGoogleBaseObject)
  1798. Private
  1799. FdestinationSpreadsheetId : String;
  1800. Protected
  1801. //Property setters
  1802. Procedure SetdestinationSpreadsheetId(AIndex : Integer; const AValue : String); virtual;
  1803. Public
  1804. Published
  1805. Property destinationSpreadsheetId : String Index 0 Read FdestinationSpreadsheetId Write SetdestinationSpreadsheetId;
  1806. end;
  1807. TCopySheetToAnotherSpreadsheetRequestClass = Class of TCopySheetToAnotherSpreadsheetRequest;
  1808. { --------------------------------------------------------------------
  1809. TNumberFormat
  1810. --------------------------------------------------------------------}
  1811. TNumberFormat = Class(TGoogleBaseObject)
  1812. Private
  1813. Fpattern : String;
  1814. F_type : String;
  1815. Protected
  1816. Class Function ExportPropertyName(Const AName : String) : string; override;
  1817. //Property setters
  1818. Procedure Setpattern(AIndex : Integer; const AValue : String); virtual;
  1819. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  1820. Public
  1821. Published
  1822. Property pattern : String Index 0 Read Fpattern Write Setpattern;
  1823. Property _type : String Index 8 Read F_type Write Set_type;
  1824. end;
  1825. TNumberFormatClass = Class of TNumberFormat;
  1826. { --------------------------------------------------------------------
  1827. TUpdateDimensionPropertiesRequest
  1828. --------------------------------------------------------------------}
  1829. TUpdateDimensionPropertiesRequest = Class(TGoogleBaseObject)
  1830. Private
  1831. Ffields : String;
  1832. Frange : TDimensionRange;
  1833. Fproperties : TDimensionProperties;
  1834. Protected
  1835. //Property setters
  1836. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  1837. Procedure Setrange(AIndex : Integer; const AValue : TDimensionRange); virtual;
  1838. Procedure Setproperties(AIndex : Integer; const AValue : TDimensionProperties); virtual;
  1839. Public
  1840. Published
  1841. Property fields : String Index 0 Read Ffields Write Setfields;
  1842. Property range : TDimensionRange Index 8 Read Frange Write Setrange;
  1843. Property properties : TDimensionProperties Index 16 Read Fproperties Write Setproperties;
  1844. end;
  1845. TUpdateDimensionPropertiesRequestClass = Class of TUpdateDimensionPropertiesRequest;
  1846. { --------------------------------------------------------------------
  1847. TEditors
  1848. --------------------------------------------------------------------}
  1849. TEditors = Class(TGoogleBaseObject)
  1850. Private
  1851. Fusers : TStringArray;
  1852. Fgroups : TStringArray;
  1853. FdomainUsersCanEdit : boolean;
  1854. Protected
  1855. //Property setters
  1856. Procedure Setusers(AIndex : Integer; const AValue : TStringArray); virtual;
  1857. Procedure Setgroups(AIndex : Integer; const AValue : TStringArray); virtual;
  1858. Procedure SetdomainUsersCanEdit(AIndex : Integer; const AValue : boolean); virtual;
  1859. //2.6.4. bug workaround
  1860. {$IFDEF VER2_6}
  1861. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1862. {$ENDIF VER2_6}
  1863. Public
  1864. Published
  1865. Property users : TStringArray Index 0 Read Fusers Write Setusers;
  1866. Property groups : TStringArray Index 8 Read Fgroups Write Setgroups;
  1867. Property domainUsersCanEdit : boolean Index 16 Read FdomainUsersCanEdit Write SetdomainUsersCanEdit;
  1868. end;
  1869. TEditorsClass = Class of TEditors;
  1870. { --------------------------------------------------------------------
  1871. TSpreadsheet
  1872. --------------------------------------------------------------------}
  1873. TSpreadsheet = Class(TGoogleBaseObject)
  1874. Private
  1875. FspreadsheetId : String;
  1876. Fproperties : TSpreadsheetProperties;
  1877. Fsheets : TSpreadsheetTypesheetsArray;
  1878. FnamedRanges : TSpreadsheetTypenamedRangesArray;
  1879. Protected
  1880. //Property setters
  1881. Procedure SetspreadsheetId(AIndex : Integer; const AValue : String); virtual;
  1882. Procedure Setproperties(AIndex : Integer; const AValue : TSpreadsheetProperties); virtual;
  1883. Procedure Setsheets(AIndex : Integer; const AValue : TSpreadsheetTypesheetsArray); virtual;
  1884. Procedure SetnamedRanges(AIndex : Integer; const AValue : TSpreadsheetTypenamedRangesArray); virtual;
  1885. //2.6.4. bug workaround
  1886. {$IFDEF VER2_6}
  1887. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1888. {$ENDIF VER2_6}
  1889. Public
  1890. Published
  1891. Property spreadsheetId : String Index 0 Read FspreadsheetId Write SetspreadsheetId;
  1892. Property properties : TSpreadsheetProperties Index 8 Read Fproperties Write Setproperties;
  1893. Property sheets : TSpreadsheetTypesheetsArray Index 16 Read Fsheets Write Setsheets;
  1894. Property namedRanges : TSpreadsheetTypenamedRangesArray Index 24 Read FnamedRanges Write SetnamedRanges;
  1895. end;
  1896. TSpreadsheetClass = Class of TSpreadsheet;
  1897. { --------------------------------------------------------------------
  1898. TGridData
  1899. --------------------------------------------------------------------}
  1900. TGridData = Class(TGoogleBaseObject)
  1901. Private
  1902. FcolumnMetadata : TGridDataTypecolumnMetadataArray;
  1903. FrowData : TGridDataTyperowDataArray;
  1904. FstartRow : integer;
  1905. FrowMetadata : TGridDataTyperowMetadataArray;
  1906. FstartColumn : integer;
  1907. Protected
  1908. //Property setters
  1909. Procedure SetcolumnMetadata(AIndex : Integer; const AValue : TGridDataTypecolumnMetadataArray); virtual;
  1910. Procedure SetrowData(AIndex : Integer; const AValue : TGridDataTyperowDataArray); virtual;
  1911. Procedure SetstartRow(AIndex : Integer; const AValue : integer); virtual;
  1912. Procedure SetrowMetadata(AIndex : Integer; const AValue : TGridDataTyperowMetadataArray); virtual;
  1913. Procedure SetstartColumn(AIndex : Integer; const AValue : integer); virtual;
  1914. //2.6.4. bug workaround
  1915. {$IFDEF VER2_6}
  1916. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1917. {$ENDIF VER2_6}
  1918. Public
  1919. Published
  1920. Property columnMetadata : TGridDataTypecolumnMetadataArray Index 0 Read FcolumnMetadata Write SetcolumnMetadata;
  1921. Property rowData : TGridDataTyperowDataArray Index 8 Read FrowData Write SetrowData;
  1922. Property startRow : integer Index 16 Read FstartRow Write SetstartRow;
  1923. Property rowMetadata : TGridDataTyperowMetadataArray Index 24 Read FrowMetadata Write SetrowMetadata;
  1924. Property startColumn : integer Index 32 Read FstartColumn Write SetstartColumn;
  1925. end;
  1926. TGridDataClass = Class of TGridData;
  1927. { --------------------------------------------------------------------
  1928. TPivotValue
  1929. --------------------------------------------------------------------}
  1930. TPivotValue = Class(TGoogleBaseObject)
  1931. Private
  1932. Fformula : String;
  1933. FsourceColumnOffset : integer;
  1934. FsummarizeFunction : String;
  1935. Fname : String;
  1936. Protected
  1937. //Property setters
  1938. Procedure Setformula(AIndex : Integer; const AValue : String); virtual;
  1939. Procedure SetsourceColumnOffset(AIndex : Integer; const AValue : integer); virtual;
  1940. Procedure SetsummarizeFunction(AIndex : Integer; const AValue : String); virtual;
  1941. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  1942. Public
  1943. Published
  1944. Property formula : String Index 0 Read Fformula Write Setformula;
  1945. Property sourceColumnOffset : integer Index 8 Read FsourceColumnOffset Write SetsourceColumnOffset;
  1946. Property summarizeFunction : String Index 16 Read FsummarizeFunction Write SetsummarizeFunction;
  1947. Property name : String Index 24 Read Fname Write Setname;
  1948. end;
  1949. TPivotValueClass = Class of TPivotValue;
  1950. { --------------------------------------------------------------------
  1951. TBasicFilterTypecriteria
  1952. --------------------------------------------------------------------}
  1953. TBasicFilterTypecriteria = Class(TGoogleBaseObject)
  1954. Private
  1955. Protected
  1956. //Property setters
  1957. Public
  1958. Class Function AllowAdditionalProperties : Boolean; override;
  1959. Published
  1960. end;
  1961. TBasicFilterTypecriteriaClass = Class of TBasicFilterTypecriteria;
  1962. { --------------------------------------------------------------------
  1963. TBasicFilter
  1964. --------------------------------------------------------------------}
  1965. TBasicFilter = Class(TGoogleBaseObject)
  1966. Private
  1967. Fcriteria : TBasicFilterTypecriteria;
  1968. Frange : TGridRange;
  1969. FsortSpecs : TBasicFilterTypesortSpecsArray;
  1970. Protected
  1971. //Property setters
  1972. Procedure Setcriteria(AIndex : Integer; const AValue : TBasicFilterTypecriteria); virtual;
  1973. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  1974. Procedure SetsortSpecs(AIndex : Integer; const AValue : TBasicFilterTypesortSpecsArray); virtual;
  1975. //2.6.4. bug workaround
  1976. {$IFDEF VER2_6}
  1977. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  1978. {$ENDIF VER2_6}
  1979. Public
  1980. Published
  1981. Property criteria : TBasicFilterTypecriteria Index 0 Read Fcriteria Write Setcriteria;
  1982. Property range : TGridRange Index 8 Read Frange Write Setrange;
  1983. Property sortSpecs : TBasicFilterTypesortSpecsArray Index 16 Read FsortSpecs Write SetsortSpecs;
  1984. end;
  1985. TBasicFilterClass = Class of TBasicFilter;
  1986. { --------------------------------------------------------------------
  1987. TDuplicateSheetRequest
  1988. --------------------------------------------------------------------}
  1989. TDuplicateSheetRequest = Class(TGoogleBaseObject)
  1990. Private
  1991. FsourceSheetId : integer;
  1992. FnewSheetId : integer;
  1993. FinsertSheetIndex : integer;
  1994. FnewSheetName : String;
  1995. Protected
  1996. //Property setters
  1997. Procedure SetsourceSheetId(AIndex : Integer; const AValue : integer); virtual;
  1998. Procedure SetnewSheetId(AIndex : Integer; const AValue : integer); virtual;
  1999. Procedure SetinsertSheetIndex(AIndex : Integer; const AValue : integer); virtual;
  2000. Procedure SetnewSheetName(AIndex : Integer; const AValue : String); virtual;
  2001. Public
  2002. Published
  2003. Property sourceSheetId : integer Index 0 Read FsourceSheetId Write SetsourceSheetId;
  2004. Property newSheetId : integer Index 8 Read FnewSheetId Write SetnewSheetId;
  2005. Property insertSheetIndex : integer Index 16 Read FinsertSheetIndex Write SetinsertSheetIndex;
  2006. Property newSheetName : String Index 24 Read FnewSheetName Write SetnewSheetName;
  2007. end;
  2008. TDuplicateSheetRequestClass = Class of TDuplicateSheetRequest;
  2009. { --------------------------------------------------------------------
  2010. TAddFilterViewResponse
  2011. --------------------------------------------------------------------}
  2012. TAddFilterViewResponse = Class(TGoogleBaseObject)
  2013. Private
  2014. Ffilter : TFilterView;
  2015. Protected
  2016. //Property setters
  2017. Procedure Setfilter(AIndex : Integer; const AValue : TFilterView); virtual;
  2018. Public
  2019. Published
  2020. Property filter : TFilterView Index 0 Read Ffilter Write Setfilter;
  2021. end;
  2022. TAddFilterViewResponseClass = Class of TAddFilterViewResponse;
  2023. { --------------------------------------------------------------------
  2024. TDuplicateSheetResponse
  2025. --------------------------------------------------------------------}
  2026. TDuplicateSheetResponse = Class(TGoogleBaseObject)
  2027. Private
  2028. Fproperties : TSheetProperties;
  2029. Protected
  2030. //Property setters
  2031. Procedure Setproperties(AIndex : Integer; const AValue : TSheetProperties); virtual;
  2032. Public
  2033. Published
  2034. Property properties : TSheetProperties Index 0 Read Fproperties Write Setproperties;
  2035. end;
  2036. TDuplicateSheetResponseClass = Class of TDuplicateSheetResponse;
  2037. { --------------------------------------------------------------------
  2038. TBorder
  2039. --------------------------------------------------------------------}
  2040. TBorder = Class(TGoogleBaseObject)
  2041. Private
  2042. Fstyle : String;
  2043. Fwidth : integer;
  2044. Fcolor : TColor;
  2045. Protected
  2046. //Property setters
  2047. Procedure Setstyle(AIndex : Integer; const AValue : String); virtual;
  2048. Procedure Setwidth(AIndex : Integer; const AValue : integer); virtual;
  2049. Procedure Setcolor(AIndex : Integer; const AValue : TColor); virtual;
  2050. Public
  2051. Published
  2052. Property style : String Index 0 Read Fstyle Write Setstyle;
  2053. Property width : integer Index 8 Read Fwidth Write Setwidth;
  2054. Property color : TColor Index 16 Read Fcolor Write Setcolor;
  2055. end;
  2056. TBorderClass = Class of TBorder;
  2057. { --------------------------------------------------------------------
  2058. TAddNamedRangeRequest
  2059. --------------------------------------------------------------------}
  2060. TAddNamedRangeRequest = Class(TGoogleBaseObject)
  2061. Private
  2062. FnamedRange : TNamedRange;
  2063. Protected
  2064. //Property setters
  2065. Procedure SetnamedRange(AIndex : Integer; const AValue : TNamedRange); virtual;
  2066. Public
  2067. Published
  2068. Property namedRange : TNamedRange Index 0 Read FnamedRange Write SetnamedRange;
  2069. end;
  2070. TAddNamedRangeRequestClass = Class of TAddNamedRangeRequest;
  2071. { --------------------------------------------------------------------
  2072. TAddChartResponse
  2073. --------------------------------------------------------------------}
  2074. TAddChartResponse = Class(TGoogleBaseObject)
  2075. Private
  2076. Fchart : TEmbeddedChart;
  2077. Protected
  2078. //Property setters
  2079. Procedure Setchart(AIndex : Integer; const AValue : TEmbeddedChart); virtual;
  2080. Public
  2081. Published
  2082. Property chart : TEmbeddedChart Index 0 Read Fchart Write Setchart;
  2083. end;
  2084. TAddChartResponseClass = Class of TAddChartResponse;
  2085. { --------------------------------------------------------------------
  2086. TAppendCellsRequest
  2087. --------------------------------------------------------------------}
  2088. TAppendCellsRequest = Class(TGoogleBaseObject)
  2089. Private
  2090. FsheetId : integer;
  2091. Frows : TAppendCellsRequestTyperowsArray;
  2092. Ffields : String;
  2093. Protected
  2094. //Property setters
  2095. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  2096. Procedure Setrows(AIndex : Integer; const AValue : TAppendCellsRequestTyperowsArray); virtual;
  2097. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  2098. //2.6.4. bug workaround
  2099. {$IFDEF VER2_6}
  2100. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2101. {$ENDIF VER2_6}
  2102. Public
  2103. Published
  2104. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  2105. Property rows : TAppendCellsRequestTyperowsArray Index 8 Read Frows Write Setrows;
  2106. Property fields : String Index 16 Read Ffields Write Setfields;
  2107. end;
  2108. TAppendCellsRequestClass = Class of TAppendCellsRequest;
  2109. { --------------------------------------------------------------------
  2110. TRowData
  2111. --------------------------------------------------------------------}
  2112. TRowData = Class(TGoogleBaseObject)
  2113. Private
  2114. Fvalues : TRowDataTypevaluesArray;
  2115. Protected
  2116. //Property setters
  2117. Procedure Setvalues(AIndex : Integer; const AValue : TRowDataTypevaluesArray); virtual;
  2118. //2.6.4. bug workaround
  2119. {$IFDEF VER2_6}
  2120. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2121. {$ENDIF VER2_6}
  2122. Public
  2123. Published
  2124. Property values : TRowDataTypevaluesArray Index 0 Read Fvalues Write Setvalues;
  2125. end;
  2126. TRowDataClass = Class of TRowData;
  2127. { --------------------------------------------------------------------
  2128. TBasicChartSeries
  2129. --------------------------------------------------------------------}
  2130. TBasicChartSeries = Class(TGoogleBaseObject)
  2131. Private
  2132. Fseries : TChartData;
  2133. FtargetAxis : String;
  2134. F_type : String;
  2135. Protected
  2136. Class Function ExportPropertyName(Const AName : String) : string; override;
  2137. //Property setters
  2138. Procedure Setseries(AIndex : Integer; const AValue : TChartData); virtual;
  2139. Procedure SettargetAxis(AIndex : Integer; const AValue : String); virtual;
  2140. Procedure Set_type(AIndex : Integer; const AValue : String); virtual;
  2141. Public
  2142. Published
  2143. Property series : TChartData Index 0 Read Fseries Write Setseries;
  2144. Property targetAxis : String Index 8 Read FtargetAxis Write SettargetAxis;
  2145. Property _type : String Index 16 Read F_type Write Set_type;
  2146. end;
  2147. TBasicChartSeriesClass = Class of TBasicChartSeries;
  2148. { --------------------------------------------------------------------
  2149. TRepeatCellRequest
  2150. --------------------------------------------------------------------}
  2151. TRepeatCellRequest = Class(TGoogleBaseObject)
  2152. Private
  2153. Fcell : TCellData;
  2154. Ffields : String;
  2155. Frange : TGridRange;
  2156. Protected
  2157. //Property setters
  2158. Procedure Setcell(AIndex : Integer; const AValue : TCellData); virtual;
  2159. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  2160. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  2161. Public
  2162. Published
  2163. Property cell : TCellData Index 0 Read Fcell Write Setcell;
  2164. Property fields : String Index 8 Read Ffields Write Setfields;
  2165. Property range : TGridRange Index 16 Read Frange Write Setrange;
  2166. end;
  2167. TRepeatCellRequestClass = Class of TRepeatCellRequest;
  2168. { --------------------------------------------------------------------
  2169. TBasicChartSpec
  2170. --------------------------------------------------------------------}
  2171. TBasicChartSpec = Class(TGoogleBaseObject)
  2172. Private
  2173. FchartType : String;
  2174. Fdomains : TBasicChartSpecTypedomainsArray;
  2175. FheaderCount : integer;
  2176. Fseries : TBasicChartSpecTypeseriesArray;
  2177. FlegendPosition : String;
  2178. Faxis : TBasicChartSpecTypeaxisArray;
  2179. Protected
  2180. //Property setters
  2181. Procedure SetchartType(AIndex : Integer; const AValue : String); virtual;
  2182. Procedure Setdomains(AIndex : Integer; const AValue : TBasicChartSpecTypedomainsArray); virtual;
  2183. Procedure SetheaderCount(AIndex : Integer; const AValue : integer); virtual;
  2184. Procedure Setseries(AIndex : Integer; const AValue : TBasicChartSpecTypeseriesArray); virtual;
  2185. Procedure SetlegendPosition(AIndex : Integer; const AValue : String); virtual;
  2186. Procedure Setaxis(AIndex : Integer; const AValue : TBasicChartSpecTypeaxisArray); virtual;
  2187. //2.6.4. bug workaround
  2188. {$IFDEF VER2_6}
  2189. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2190. {$ENDIF VER2_6}
  2191. Public
  2192. Published
  2193. Property chartType : String Index 0 Read FchartType Write SetchartType;
  2194. Property domains : TBasicChartSpecTypedomainsArray Index 8 Read Fdomains Write Setdomains;
  2195. Property headerCount : integer Index 16 Read FheaderCount Write SetheaderCount;
  2196. Property series : TBasicChartSpecTypeseriesArray Index 24 Read Fseries Write Setseries;
  2197. Property legendPosition : String Index 32 Read FlegendPosition Write SetlegendPosition;
  2198. Property axis : TBasicChartSpecTypeaxisArray Index 40 Read Faxis Write Setaxis;
  2199. end;
  2200. TBasicChartSpecClass = Class of TBasicChartSpec;
  2201. { --------------------------------------------------------------------
  2202. TNamedRange
  2203. --------------------------------------------------------------------}
  2204. TNamedRange = Class(TGoogleBaseObject)
  2205. Private
  2206. FnamedRangeId : String;
  2207. Frange : TGridRange;
  2208. Fname : String;
  2209. Protected
  2210. //Property setters
  2211. Procedure SetnamedRangeId(AIndex : Integer; const AValue : String); virtual;
  2212. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  2213. Procedure Setname(AIndex : Integer; const AValue : String); virtual;
  2214. Public
  2215. Published
  2216. Property namedRangeId : String Index 0 Read FnamedRangeId Write SetnamedRangeId;
  2217. Property range : TGridRange Index 8 Read Frange Write Setrange;
  2218. Property name : String Index 16 Read Fname Write Setname;
  2219. end;
  2220. TNamedRangeClass = Class of TNamedRange;
  2221. { --------------------------------------------------------------------
  2222. TSetBasicFilterRequest
  2223. --------------------------------------------------------------------}
  2224. TSetBasicFilterRequest = Class(TGoogleBaseObject)
  2225. Private
  2226. Ffilter : TBasicFilter;
  2227. Protected
  2228. //Property setters
  2229. Procedure Setfilter(AIndex : Integer; const AValue : TBasicFilter); virtual;
  2230. Public
  2231. Published
  2232. Property filter : TBasicFilter Index 0 Read Ffilter Write Setfilter;
  2233. end;
  2234. TSetBasicFilterRequestClass = Class of TSetBasicFilterRequest;
  2235. { --------------------------------------------------------------------
  2236. TUpdateEmbeddedObjectPositionRequest
  2237. --------------------------------------------------------------------}
  2238. TUpdateEmbeddedObjectPositionRequest = Class(TGoogleBaseObject)
  2239. Private
  2240. FnewPosition : TEmbeddedObjectPosition;
  2241. FobjectId : integer;
  2242. Ffields : String;
  2243. Protected
  2244. //Property setters
  2245. Procedure SetnewPosition(AIndex : Integer; const AValue : TEmbeddedObjectPosition); virtual;
  2246. Procedure SetobjectId(AIndex : Integer; const AValue : integer); virtual;
  2247. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  2248. Public
  2249. Published
  2250. Property newPosition : TEmbeddedObjectPosition Index 0 Read FnewPosition Write SetnewPosition;
  2251. Property objectId : integer Index 8 Read FobjectId Write SetobjectId;
  2252. Property fields : String Index 16 Read Ffields Write Setfields;
  2253. end;
  2254. TUpdateEmbeddedObjectPositionRequestClass = Class of TUpdateEmbeddedObjectPositionRequest;
  2255. { --------------------------------------------------------------------
  2256. TAutoResizeDimensionsRequest
  2257. --------------------------------------------------------------------}
  2258. TAutoResizeDimensionsRequest = Class(TGoogleBaseObject)
  2259. Private
  2260. Fdimensions : TDimensionRange;
  2261. Protected
  2262. //Property setters
  2263. Procedure Setdimensions(AIndex : Integer; const AValue : TDimensionRange); virtual;
  2264. Public
  2265. Published
  2266. Property dimensions : TDimensionRange Index 0 Read Fdimensions Write Setdimensions;
  2267. end;
  2268. TAutoResizeDimensionsRequestClass = Class of TAutoResizeDimensionsRequest;
  2269. { --------------------------------------------------------------------
  2270. TDuplicateFilterViewResponse
  2271. --------------------------------------------------------------------}
  2272. TDuplicateFilterViewResponse = Class(TGoogleBaseObject)
  2273. Private
  2274. Ffilter : TFilterView;
  2275. Protected
  2276. //Property setters
  2277. Procedure Setfilter(AIndex : Integer; const AValue : TFilterView); virtual;
  2278. Public
  2279. Published
  2280. Property filter : TFilterView Index 0 Read Ffilter Write Setfilter;
  2281. end;
  2282. TDuplicateFilterViewResponseClass = Class of TDuplicateFilterViewResponse;
  2283. { --------------------------------------------------------------------
  2284. TPivotGroup
  2285. --------------------------------------------------------------------}
  2286. TPivotGroup = Class(TGoogleBaseObject)
  2287. Private
  2288. FsortOrder : String;
  2289. FsourceColumnOffset : integer;
  2290. FshowTotals : boolean;
  2291. FvalueBucket : TPivotGroupSortValueBucket;
  2292. FvalueMetadata : TPivotGroupTypevalueMetadataArray;
  2293. Protected
  2294. //Property setters
  2295. Procedure SetsortOrder(AIndex : Integer; const AValue : String); virtual;
  2296. Procedure SetsourceColumnOffset(AIndex : Integer; const AValue : integer); virtual;
  2297. Procedure SetshowTotals(AIndex : Integer; const AValue : boolean); virtual;
  2298. Procedure SetvalueBucket(AIndex : Integer; const AValue : TPivotGroupSortValueBucket); virtual;
  2299. Procedure SetvalueMetadata(AIndex : Integer; const AValue : TPivotGroupTypevalueMetadataArray); virtual;
  2300. //2.6.4. bug workaround
  2301. {$IFDEF VER2_6}
  2302. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2303. {$ENDIF VER2_6}
  2304. Public
  2305. Published
  2306. Property sortOrder : String Index 0 Read FsortOrder Write SetsortOrder;
  2307. Property sourceColumnOffset : integer Index 8 Read FsourceColumnOffset Write SetsourceColumnOffset;
  2308. Property showTotals : boolean Index 16 Read FshowTotals Write SetshowTotals;
  2309. Property valueBucket : TPivotGroupSortValueBucket Index 24 Read FvalueBucket Write SetvalueBucket;
  2310. Property valueMetadata : TPivotGroupTypevalueMetadataArray Index 32 Read FvalueMetadata Write SetvalueMetadata;
  2311. end;
  2312. TPivotGroupClass = Class of TPivotGroup;
  2313. { --------------------------------------------------------------------
  2314. TGridRange
  2315. --------------------------------------------------------------------}
  2316. TGridRange = Class(TGoogleBaseObject)
  2317. Private
  2318. FsheetId : integer;
  2319. FstartColumnIndex : integer;
  2320. FstartRowIndex : integer;
  2321. FendRowIndex : integer;
  2322. FendColumnIndex : integer;
  2323. Protected
  2324. //Property setters
  2325. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  2326. Procedure SetstartColumnIndex(AIndex : Integer; const AValue : integer); virtual;
  2327. Procedure SetstartRowIndex(AIndex : Integer; const AValue : integer); virtual;
  2328. Procedure SetendRowIndex(AIndex : Integer; const AValue : integer); virtual;
  2329. Procedure SetendColumnIndex(AIndex : Integer; const AValue : integer); virtual;
  2330. Public
  2331. Published
  2332. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  2333. Property startColumnIndex : integer Index 8 Read FstartColumnIndex Write SetstartColumnIndex;
  2334. Property startRowIndex : integer Index 16 Read FstartRowIndex Write SetstartRowIndex;
  2335. Property endRowIndex : integer Index 24 Read FendRowIndex Write SetendRowIndex;
  2336. Property endColumnIndex : integer Index 32 Read FendColumnIndex Write SetendColumnIndex;
  2337. end;
  2338. TGridRangeClass = Class of TGridRange;
  2339. { --------------------------------------------------------------------
  2340. TDeleteSheetRequest
  2341. --------------------------------------------------------------------}
  2342. TDeleteSheetRequest = Class(TGoogleBaseObject)
  2343. Private
  2344. FsheetId : integer;
  2345. Protected
  2346. //Property setters
  2347. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  2348. Public
  2349. Published
  2350. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  2351. end;
  2352. TDeleteSheetRequestClass = Class of TDeleteSheetRequest;
  2353. { --------------------------------------------------------------------
  2354. TChartData
  2355. --------------------------------------------------------------------}
  2356. TChartData = Class(TGoogleBaseObject)
  2357. Private
  2358. FsourceRange : TChartSourceRange;
  2359. Protected
  2360. //Property setters
  2361. Procedure SetsourceRange(AIndex : Integer; const AValue : TChartSourceRange); virtual;
  2362. Public
  2363. Published
  2364. Property sourceRange : TChartSourceRange Index 0 Read FsourceRange Write SetsourceRange;
  2365. end;
  2366. TChartDataClass = Class of TChartData;
  2367. { --------------------------------------------------------------------
  2368. TSheet
  2369. --------------------------------------------------------------------}
  2370. TSheet = Class(TGoogleBaseObject)
  2371. Private
  2372. Fproperties : TSheetProperties;
  2373. Fcharts : TSheetTypechartsArray;
  2374. FfilterViews : TSheetTypefilterViewsArray;
  2375. FconditionalFormats : TSheetTypeconditionalFormatsArray;
  2376. FprotectedRanges : TSheetTypeprotectedRangesArray;
  2377. FbasicFilter : TBasicFilter;
  2378. Fmerges : TSheetTypemergesArray;
  2379. Fdata : TSheetTypedataArray;
  2380. Protected
  2381. //Property setters
  2382. Procedure Setproperties(AIndex : Integer; const AValue : TSheetProperties); virtual;
  2383. Procedure Setcharts(AIndex : Integer; const AValue : TSheetTypechartsArray); virtual;
  2384. Procedure SetfilterViews(AIndex : Integer; const AValue : TSheetTypefilterViewsArray); virtual;
  2385. Procedure SetconditionalFormats(AIndex : Integer; const AValue : TSheetTypeconditionalFormatsArray); virtual;
  2386. Procedure SetprotectedRanges(AIndex : Integer; const AValue : TSheetTypeprotectedRangesArray); virtual;
  2387. Procedure SetbasicFilter(AIndex : Integer; const AValue : TBasicFilter); virtual;
  2388. Procedure Setmerges(AIndex : Integer; const AValue : TSheetTypemergesArray); virtual;
  2389. Procedure Setdata(AIndex : Integer; const AValue : TSheetTypedataArray); virtual;
  2390. //2.6.4. bug workaround
  2391. {$IFDEF VER2_6}
  2392. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2393. {$ENDIF VER2_6}
  2394. Public
  2395. Published
  2396. Property properties : TSheetProperties Index 0 Read Fproperties Write Setproperties;
  2397. Property charts : TSheetTypechartsArray Index 8 Read Fcharts Write Setcharts;
  2398. Property filterViews : TSheetTypefilterViewsArray Index 16 Read FfilterViews Write SetfilterViews;
  2399. Property conditionalFormats : TSheetTypeconditionalFormatsArray Index 24 Read FconditionalFormats Write SetconditionalFormats;
  2400. Property protectedRanges : TSheetTypeprotectedRangesArray Index 32 Read FprotectedRanges Write SetprotectedRanges;
  2401. Property basicFilter : TBasicFilter Index 40 Read FbasicFilter Write SetbasicFilter;
  2402. Property merges : TSheetTypemergesArray Index 48 Read Fmerges Write Setmerges;
  2403. Property data : TSheetTypedataArray Index 56 Read Fdata Write Setdata;
  2404. end;
  2405. TSheetClass = Class of TSheet;
  2406. { --------------------------------------------------------------------
  2407. TCopyPasteRequest
  2408. --------------------------------------------------------------------}
  2409. TCopyPasteRequest = Class(TGoogleBaseObject)
  2410. Private
  2411. FpasteType : String;
  2412. FpasteOrientation : String;
  2413. Fsource : TGridRange;
  2414. Fdestination : TGridRange;
  2415. Protected
  2416. //Property setters
  2417. Procedure SetpasteType(AIndex : Integer; const AValue : String); virtual;
  2418. Procedure SetpasteOrientation(AIndex : Integer; const AValue : String); virtual;
  2419. Procedure Setsource(AIndex : Integer; const AValue : TGridRange); virtual;
  2420. Procedure Setdestination(AIndex : Integer; const AValue : TGridRange); virtual;
  2421. Public
  2422. Published
  2423. Property pasteType : String Index 0 Read FpasteType Write SetpasteType;
  2424. Property pasteOrientation : String Index 8 Read FpasteOrientation Write SetpasteOrientation;
  2425. Property source : TGridRange Index 16 Read Fsource Write Setsource;
  2426. Property destination : TGridRange Index 24 Read Fdestination Write Setdestination;
  2427. end;
  2428. TCopyPasteRequestClass = Class of TCopyPasteRequest;
  2429. { --------------------------------------------------------------------
  2430. TUpdateCellsRequest
  2431. --------------------------------------------------------------------}
  2432. TUpdateCellsRequest = Class(TGoogleBaseObject)
  2433. Private
  2434. Frows : TUpdateCellsRequestTyperowsArray;
  2435. Ffields : String;
  2436. Fstart : TGridCoordinate;
  2437. Frange : TGridRange;
  2438. Protected
  2439. //Property setters
  2440. Procedure Setrows(AIndex : Integer; const AValue : TUpdateCellsRequestTyperowsArray); virtual;
  2441. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  2442. Procedure Setstart(AIndex : Integer; const AValue : TGridCoordinate); virtual;
  2443. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  2444. //2.6.4. bug workaround
  2445. {$IFDEF VER2_6}
  2446. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2447. {$ENDIF VER2_6}
  2448. Public
  2449. Published
  2450. Property rows : TUpdateCellsRequestTyperowsArray Index 0 Read Frows Write Setrows;
  2451. Property fields : String Index 8 Read Ffields Write Setfields;
  2452. Property start : TGridCoordinate Index 16 Read Fstart Write Setstart;
  2453. Property range : TGridRange Index 24 Read Frange Write Setrange;
  2454. end;
  2455. TUpdateCellsRequestClass = Class of TUpdateCellsRequest;
  2456. { --------------------------------------------------------------------
  2457. TExtendedValue
  2458. --------------------------------------------------------------------}
  2459. TExtendedValue = Class(TGoogleBaseObject)
  2460. Private
  2461. FformulaValue : String;
  2462. FerrorValue : TErrorValue;
  2463. FboolValue : boolean;
  2464. FnumberValue : double;
  2465. FstringValue : String;
  2466. Protected
  2467. //Property setters
  2468. Procedure SetformulaValue(AIndex : Integer; const AValue : String); virtual;
  2469. Procedure SeterrorValue(AIndex : Integer; const AValue : TErrorValue); virtual;
  2470. Procedure SetboolValue(AIndex : Integer; const AValue : boolean); virtual;
  2471. Procedure SetnumberValue(AIndex : Integer; const AValue : double); virtual;
  2472. Procedure SetstringValue(AIndex : Integer; const AValue : String); virtual;
  2473. Public
  2474. Published
  2475. Property formulaValue : String Index 0 Read FformulaValue Write SetformulaValue;
  2476. Property errorValue : TErrorValue Index 8 Read FerrorValue Write SeterrorValue;
  2477. Property boolValue : boolean Index 16 Read FboolValue Write SetboolValue;
  2478. Property numberValue : double Index 24 Read FnumberValue Write SetnumberValue;
  2479. Property stringValue : String Index 32 Read FstringValue Write SetstringValue;
  2480. end;
  2481. TExtendedValueClass = Class of TExtendedValue;
  2482. { --------------------------------------------------------------------
  2483. TBatchUpdateSpreadsheetResponse
  2484. --------------------------------------------------------------------}
  2485. TBatchUpdateSpreadsheetResponse = Class(TGoogleBaseObject)
  2486. Private
  2487. FspreadsheetId : String;
  2488. Freplies : TBatchUpdateSpreadsheetResponseTyperepliesArray;
  2489. Protected
  2490. //Property setters
  2491. Procedure SetspreadsheetId(AIndex : Integer; const AValue : String); virtual;
  2492. Procedure Setreplies(AIndex : Integer; const AValue : TBatchUpdateSpreadsheetResponseTyperepliesArray); virtual;
  2493. //2.6.4. bug workaround
  2494. {$IFDEF VER2_6}
  2495. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2496. {$ENDIF VER2_6}
  2497. Public
  2498. Published
  2499. Property spreadsheetId : String Index 0 Read FspreadsheetId Write SetspreadsheetId;
  2500. Property replies : TBatchUpdateSpreadsheetResponseTyperepliesArray Index 8 Read Freplies Write Setreplies;
  2501. end;
  2502. TBatchUpdateSpreadsheetResponseClass = Class of TBatchUpdateSpreadsheetResponse;
  2503. { --------------------------------------------------------------------
  2504. TGradientRule
  2505. --------------------------------------------------------------------}
  2506. TGradientRule = Class(TGoogleBaseObject)
  2507. Private
  2508. Fmaxpoint : TInterpolationPoint;
  2509. Fmidpoint : TInterpolationPoint;
  2510. Fminpoint : TInterpolationPoint;
  2511. Protected
  2512. //Property setters
  2513. Procedure Setmaxpoint(AIndex : Integer; const AValue : TInterpolationPoint); virtual;
  2514. Procedure Setmidpoint(AIndex : Integer; const AValue : TInterpolationPoint); virtual;
  2515. Procedure Setminpoint(AIndex : Integer; const AValue : TInterpolationPoint); virtual;
  2516. Public
  2517. Published
  2518. Property maxpoint : TInterpolationPoint Index 0 Read Fmaxpoint Write Setmaxpoint;
  2519. Property midpoint : TInterpolationPoint Index 8 Read Fmidpoint Write Setmidpoint;
  2520. Property minpoint : TInterpolationPoint Index 16 Read Fminpoint Write Setminpoint;
  2521. end;
  2522. TGradientRuleClass = Class of TGradientRule;
  2523. { --------------------------------------------------------------------
  2524. TCutPasteRequest
  2525. --------------------------------------------------------------------}
  2526. TCutPasteRequest = Class(TGoogleBaseObject)
  2527. Private
  2528. FpasteType : String;
  2529. Fsource : TGridRange;
  2530. Fdestination : TGridCoordinate;
  2531. Protected
  2532. //Property setters
  2533. Procedure SetpasteType(AIndex : Integer; const AValue : String); virtual;
  2534. Procedure Setsource(AIndex : Integer; const AValue : TGridRange); virtual;
  2535. Procedure Setdestination(AIndex : Integer; const AValue : TGridCoordinate); virtual;
  2536. Public
  2537. Published
  2538. Property pasteType : String Index 0 Read FpasteType Write SetpasteType;
  2539. Property source : TGridRange Index 8 Read Fsource Write Setsource;
  2540. Property destination : TGridCoordinate Index 16 Read Fdestination Write Setdestination;
  2541. end;
  2542. TCutPasteRequestClass = Class of TCutPasteRequest;
  2543. { --------------------------------------------------------------------
  2544. TOverlayPosition
  2545. --------------------------------------------------------------------}
  2546. TOverlayPosition = Class(TGoogleBaseObject)
  2547. Private
  2548. FwidthPixels : integer;
  2549. FanchorCell : TGridCoordinate;
  2550. FoffsetXPixels : integer;
  2551. FheightPixels : integer;
  2552. FoffsetYPixels : integer;
  2553. Protected
  2554. //Property setters
  2555. Procedure SetwidthPixels(AIndex : Integer; const AValue : integer); virtual;
  2556. Procedure SetanchorCell(AIndex : Integer; const AValue : TGridCoordinate); virtual;
  2557. Procedure SetoffsetXPixels(AIndex : Integer; const AValue : integer); virtual;
  2558. Procedure SetheightPixels(AIndex : Integer; const AValue : integer); virtual;
  2559. Procedure SetoffsetYPixels(AIndex : Integer; const AValue : integer); virtual;
  2560. Public
  2561. Published
  2562. Property widthPixels : integer Index 0 Read FwidthPixels Write SetwidthPixels;
  2563. Property anchorCell : TGridCoordinate Index 8 Read FanchorCell Write SetanchorCell;
  2564. Property offsetXPixels : integer Index 16 Read FoffsetXPixels Write SetoffsetXPixels;
  2565. Property heightPixels : integer Index 24 Read FheightPixels Write SetheightPixels;
  2566. Property offsetYPixels : integer Index 32 Read FoffsetYPixels Write SetoffsetYPixels;
  2567. end;
  2568. TOverlayPositionClass = Class of TOverlayPosition;
  2569. { --------------------------------------------------------------------
  2570. TAutoFillRequest
  2571. --------------------------------------------------------------------}
  2572. TAutoFillRequest = Class(TGoogleBaseObject)
  2573. Private
  2574. FuseAlternateSeries : boolean;
  2575. Frange : TGridRange;
  2576. FsourceAndDestination : TSourceAndDestination;
  2577. Protected
  2578. //Property setters
  2579. Procedure SetuseAlternateSeries(AIndex : Integer; const AValue : boolean); virtual;
  2580. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  2581. Procedure SetsourceAndDestination(AIndex : Integer; const AValue : TSourceAndDestination); virtual;
  2582. Public
  2583. Published
  2584. Property useAlternateSeries : boolean Index 0 Read FuseAlternateSeries Write SetuseAlternateSeries;
  2585. Property range : TGridRange Index 8 Read Frange Write Setrange;
  2586. Property sourceAndDestination : TSourceAndDestination Index 16 Read FsourceAndDestination Write SetsourceAndDestination;
  2587. end;
  2588. TAutoFillRequestClass = Class of TAutoFillRequest;
  2589. { --------------------------------------------------------------------
  2590. TPieChartSpec
  2591. --------------------------------------------------------------------}
  2592. TPieChartSpec = Class(TGoogleBaseObject)
  2593. Private
  2594. FlegendPosition : String;
  2595. Fseries : TChartData;
  2596. FpieHole : double;
  2597. FthreeDimensional : boolean;
  2598. Fdomain : TChartData;
  2599. Protected
  2600. //Property setters
  2601. Procedure SetlegendPosition(AIndex : Integer; const AValue : String); virtual;
  2602. Procedure Setseries(AIndex : Integer; const AValue : TChartData); virtual;
  2603. Procedure SetpieHole(AIndex : Integer; const AValue : double); virtual;
  2604. Procedure SetthreeDimensional(AIndex : Integer; const AValue : boolean); virtual;
  2605. Procedure Setdomain(AIndex : Integer; const AValue : TChartData); virtual;
  2606. Public
  2607. Published
  2608. Property legendPosition : String Index 0 Read FlegendPosition Write SetlegendPosition;
  2609. Property series : TChartData Index 8 Read Fseries Write Setseries;
  2610. Property pieHole : double Index 16 Read FpieHole Write SetpieHole;
  2611. Property threeDimensional : boolean Index 24 Read FthreeDimensional Write SetthreeDimensional;
  2612. Property domain : TChartData Index 32 Read Fdomain Write Setdomain;
  2613. end;
  2614. TPieChartSpecClass = Class of TPieChartSpec;
  2615. { --------------------------------------------------------------------
  2616. TUpdateSheetPropertiesRequest
  2617. --------------------------------------------------------------------}
  2618. TUpdateSheetPropertiesRequest = Class(TGoogleBaseObject)
  2619. Private
  2620. Ffields : String;
  2621. Fproperties : TSheetProperties;
  2622. Protected
  2623. //Property setters
  2624. Procedure Setfields(AIndex : Integer; const AValue : String); virtual;
  2625. Procedure Setproperties(AIndex : Integer; const AValue : TSheetProperties); virtual;
  2626. Public
  2627. Published
  2628. Property fields : String Index 0 Read Ffields Write Setfields;
  2629. Property properties : TSheetProperties Index 8 Read Fproperties Write Setproperties;
  2630. end;
  2631. TUpdateSheetPropertiesRequestClass = Class of TUpdateSheetPropertiesRequest;
  2632. { --------------------------------------------------------------------
  2633. TBooleanRule
  2634. --------------------------------------------------------------------}
  2635. TBooleanRule = Class(TGoogleBaseObject)
  2636. Private
  2637. Fcondition : TBooleanCondition;
  2638. Fformat : TCellFormat;
  2639. Protected
  2640. //Property setters
  2641. Procedure Setcondition(AIndex : Integer; const AValue : TBooleanCondition); virtual;
  2642. Procedure Setformat(AIndex : Integer; const AValue : TCellFormat); virtual;
  2643. Public
  2644. Published
  2645. Property condition : TBooleanCondition Index 0 Read Fcondition Write Setcondition;
  2646. Property format : TCellFormat Index 8 Read Fformat Write Setformat;
  2647. end;
  2648. TBooleanRuleClass = Class of TBooleanRule;
  2649. { --------------------------------------------------------------------
  2650. TAppendDimensionRequest
  2651. --------------------------------------------------------------------}
  2652. TAppendDimensionRequest = Class(TGoogleBaseObject)
  2653. Private
  2654. FsheetId : integer;
  2655. F_length : integer;
  2656. Fdimension : String;
  2657. Protected
  2658. Class Function ExportPropertyName(Const AName : String) : string; override;
  2659. //Property setters
  2660. Procedure SetsheetId(AIndex : Integer; const AValue : integer); virtual;
  2661. Procedure Set_length(AIndex : Integer; const AValue : integer); virtual;
  2662. Procedure Setdimension(AIndex : Integer; const AValue : String); virtual;
  2663. Public
  2664. Published
  2665. Property sheetId : integer Index 0 Read FsheetId Write SetsheetId;
  2666. Property _length : integer Index 8 Read F_length Write Set_length;
  2667. Property dimension : String Index 16 Read Fdimension Write Setdimension;
  2668. end;
  2669. TAppendDimensionRequestClass = Class of TAppendDimensionRequest;
  2670. { --------------------------------------------------------------------
  2671. TAddFilterViewRequest
  2672. --------------------------------------------------------------------}
  2673. TAddFilterViewRequest = Class(TGoogleBaseObject)
  2674. Private
  2675. Ffilter : TFilterView;
  2676. Protected
  2677. //Property setters
  2678. Procedure Setfilter(AIndex : Integer; const AValue : TFilterView); virtual;
  2679. Public
  2680. Published
  2681. Property filter : TFilterView Index 0 Read Ffilter Write Setfilter;
  2682. end;
  2683. TAddFilterViewRequestClass = Class of TAddFilterViewRequest;
  2684. { --------------------------------------------------------------------
  2685. TGridProperties
  2686. --------------------------------------------------------------------}
  2687. TGridProperties = Class(TGoogleBaseObject)
  2688. Private
  2689. FrowCount : integer;
  2690. FcolumnCount : integer;
  2691. FfrozenRowCount : integer;
  2692. FfrozenColumnCount : integer;
  2693. FhideGridlines : boolean;
  2694. Protected
  2695. //Property setters
  2696. Procedure SetrowCount(AIndex : Integer; const AValue : integer); virtual;
  2697. Procedure SetcolumnCount(AIndex : Integer; const AValue : integer); virtual;
  2698. Procedure SetfrozenRowCount(AIndex : Integer; const AValue : integer); virtual;
  2699. Procedure SetfrozenColumnCount(AIndex : Integer; const AValue : integer); virtual;
  2700. Procedure SethideGridlines(AIndex : Integer; const AValue : boolean); virtual;
  2701. Public
  2702. Published
  2703. Property rowCount : integer Index 0 Read FrowCount Write SetrowCount;
  2704. Property columnCount : integer Index 8 Read FcolumnCount Write SetcolumnCount;
  2705. Property frozenRowCount : integer Index 16 Read FfrozenRowCount Write SetfrozenRowCount;
  2706. Property frozenColumnCount : integer Index 24 Read FfrozenColumnCount Write SetfrozenColumnCount;
  2707. Property hideGridlines : boolean Index 32 Read FhideGridlines Write SethideGridlines;
  2708. end;
  2709. TGridPropertiesClass = Class of TGridProperties;
  2710. { --------------------------------------------------------------------
  2711. TDeleteNamedRangeRequest
  2712. --------------------------------------------------------------------}
  2713. TDeleteNamedRangeRequest = Class(TGoogleBaseObject)
  2714. Private
  2715. FnamedRangeId : String;
  2716. Protected
  2717. //Property setters
  2718. Procedure SetnamedRangeId(AIndex : Integer; const AValue : String); virtual;
  2719. Public
  2720. Published
  2721. Property namedRangeId : String Index 0 Read FnamedRangeId Write SetnamedRangeId;
  2722. end;
  2723. TDeleteNamedRangeRequestClass = Class of TDeleteNamedRangeRequest;
  2724. { --------------------------------------------------------------------
  2725. TAddChartRequest
  2726. --------------------------------------------------------------------}
  2727. TAddChartRequest = Class(TGoogleBaseObject)
  2728. Private
  2729. Fchart : TEmbeddedChart;
  2730. Protected
  2731. //Property setters
  2732. Procedure Setchart(AIndex : Integer; const AValue : TEmbeddedChart); virtual;
  2733. Public
  2734. Published
  2735. Property chart : TEmbeddedChart Index 0 Read Fchart Write Setchart;
  2736. end;
  2737. TAddChartRequestClass = Class of TAddChartRequest;
  2738. { --------------------------------------------------------------------
  2739. TSetDataValidationRequest
  2740. --------------------------------------------------------------------}
  2741. TSetDataValidationRequest = Class(TGoogleBaseObject)
  2742. Private
  2743. Frule : TDataValidationRule;
  2744. Frange : TGridRange;
  2745. Protected
  2746. //Property setters
  2747. Procedure Setrule(AIndex : Integer; const AValue : TDataValidationRule); virtual;
  2748. Procedure Setrange(AIndex : Integer; const AValue : TGridRange); virtual;
  2749. Public
  2750. Published
  2751. Property rule : TDataValidationRule Index 0 Read Frule Write Setrule;
  2752. Property range : TGridRange Index 8 Read Frange Write Setrange;
  2753. end;
  2754. TSetDataValidationRequestClass = Class of TSetDataValidationRequest;
  2755. { --------------------------------------------------------------------
  2756. TRequest
  2757. --------------------------------------------------------------------}
  2758. TRequest = Class(TGoogleBaseObject)
  2759. Private
  2760. FupdateEmbeddedObjectPosition : TUpdateEmbeddedObjectPositionRequest;
  2761. FdeleteNamedRange : TDeleteNamedRangeRequest;
  2762. FupdateNamedRange : TUpdateNamedRangeRequest;
  2763. FaddFilterView : TAddFilterViewRequest;
  2764. FupdateSpreadsheetProperties : TUpdateSpreadsheetPropertiesRequest;
  2765. FappendDimension : TAppendDimensionRequest;
  2766. FunmergeCells : TUnmergeCellsRequest;
  2767. FupdateProtectedRange : TUpdateProtectedRangeRequest;
  2768. FdeleteFilterView : TDeleteFilterViewRequest;
  2769. FclearBasicFilter : TClearBasicFilterRequest;
  2770. FsortRange : TSortRangeRequest;
  2771. FrepeatCell : TRepeatCellRequest;
  2772. FsetDataValidation : TSetDataValidationRequest;
  2773. FupdateCells : TUpdateCellsRequest;
  2774. FaddSheet : TAddSheetRequest;
  2775. FupdateFilterView : TUpdateFilterViewRequest;
  2776. FupdateSheetProperties : TUpdateSheetPropertiesRequest;
  2777. FupdateDimensionProperties : TUpdateDimensionPropertiesRequest;
  2778. FdeleteSheet : TDeleteSheetRequest;
  2779. FfindReplace : TFindReplaceRequest;
  2780. FaddProtectedRange : TAddProtectedRangeRequest;
  2781. FdeleteProtectedRange : TDeleteProtectedRangeRequest;
  2782. FupdateConditionalFormatRule : TUpdateConditionalFormatRuleRequest;
  2783. FsetBasicFilter : TSetBasicFilterRequest;
  2784. FmergeCells : TMergeCellsRequest;
  2785. FaddChart : TAddChartRequest;
  2786. FdeleteConditionalFormatRule : TDeleteConditionalFormatRuleRequest;
  2787. FupdateChartSpec : TUpdateChartSpecRequest;
  2788. FdeleteDimension : TDeleteDimensionRequest;
  2789. FdeleteEmbeddedObject : TDeleteEmbeddedObjectRequest;
  2790. FpasteData : TPasteDataRequest;
  2791. FaddConditionalFormatRule : TAddConditionalFormatRuleRequest;
  2792. FupdateBorders : TUpdateBordersRequest;
  2793. FautoResizeDimensions : TAutoResizeDimensionsRequest;
  2794. FduplicateSheet : TDuplicateSheetRequest;
  2795. FduplicateFilterView : TDuplicateFilterViewRequest;
  2796. FcutPaste : TCutPasteRequest;
  2797. FappendCells : TAppendCellsRequest;
  2798. FaddNamedRange : TAddNamedRangeRequest;
  2799. FautoFill : TAutoFillRequest;
  2800. FmoveDimension : TMoveDimensionRequest;
  2801. FtextToColumns : TTextToColumnsRequest;
  2802. FinsertDimension : TInsertDimensionRequest;
  2803. FcopyPaste : TCopyPasteRequest;
  2804. Protected
  2805. //Property setters
  2806. Procedure SetupdateEmbeddedObjectPosition(AIndex : Integer; const AValue : TUpdateEmbeddedObjectPositionRequest); virtual;
  2807. Procedure SetdeleteNamedRange(AIndex : Integer; const AValue : TDeleteNamedRangeRequest); virtual;
  2808. Procedure SetupdateNamedRange(AIndex : Integer; const AValue : TUpdateNamedRangeRequest); virtual;
  2809. Procedure SetaddFilterView(AIndex : Integer; const AValue : TAddFilterViewRequest); virtual;
  2810. Procedure SetupdateSpreadsheetProperties(AIndex : Integer; const AValue : TUpdateSpreadsheetPropertiesRequest); virtual;
  2811. Procedure SetappendDimension(AIndex : Integer; const AValue : TAppendDimensionRequest); virtual;
  2812. Procedure SetunmergeCells(AIndex : Integer; const AValue : TUnmergeCellsRequest); virtual;
  2813. Procedure SetupdateProtectedRange(AIndex : Integer; const AValue : TUpdateProtectedRangeRequest); virtual;
  2814. Procedure SetdeleteFilterView(AIndex : Integer; const AValue : TDeleteFilterViewRequest); virtual;
  2815. Procedure SetclearBasicFilter(AIndex : Integer; const AValue : TClearBasicFilterRequest); virtual;
  2816. Procedure SetsortRange(AIndex : Integer; const AValue : TSortRangeRequest); virtual;
  2817. Procedure SetrepeatCell(AIndex : Integer; const AValue : TRepeatCellRequest); virtual;
  2818. Procedure SetsetDataValidation(AIndex : Integer; const AValue : TSetDataValidationRequest); virtual;
  2819. Procedure SetupdateCells(AIndex : Integer; const AValue : TUpdateCellsRequest); virtual;
  2820. Procedure SetaddSheet(AIndex : Integer; const AValue : TAddSheetRequest); virtual;
  2821. Procedure SetupdateFilterView(AIndex : Integer; const AValue : TUpdateFilterViewRequest); virtual;
  2822. Procedure SetupdateSheetProperties(AIndex : Integer; const AValue : TUpdateSheetPropertiesRequest); virtual;
  2823. Procedure SetupdateDimensionProperties(AIndex : Integer; const AValue : TUpdateDimensionPropertiesRequest); virtual;
  2824. Procedure SetdeleteSheet(AIndex : Integer; const AValue : TDeleteSheetRequest); virtual;
  2825. Procedure SetfindReplace(AIndex : Integer; const AValue : TFindReplaceRequest); virtual;
  2826. Procedure SetaddProtectedRange(AIndex : Integer; const AValue : TAddProtectedRangeRequest); virtual;
  2827. Procedure SetdeleteProtectedRange(AIndex : Integer; const AValue : TDeleteProtectedRangeRequest); virtual;
  2828. Procedure SetupdateConditionalFormatRule(AIndex : Integer; const AValue : TUpdateConditionalFormatRuleRequest); virtual;
  2829. Procedure SetsetBasicFilter(AIndex : Integer; const AValue : TSetBasicFilterRequest); virtual;
  2830. Procedure SetmergeCells(AIndex : Integer; const AValue : TMergeCellsRequest); virtual;
  2831. Procedure SetaddChart(AIndex : Integer; const AValue : TAddChartRequest); virtual;
  2832. Procedure SetdeleteConditionalFormatRule(AIndex : Integer; const AValue : TDeleteConditionalFormatRuleRequest); virtual;
  2833. Procedure SetupdateChartSpec(AIndex : Integer; const AValue : TUpdateChartSpecRequest); virtual;
  2834. Procedure SetdeleteDimension(AIndex : Integer; const AValue : TDeleteDimensionRequest); virtual;
  2835. Procedure SetdeleteEmbeddedObject(AIndex : Integer; const AValue : TDeleteEmbeddedObjectRequest); virtual;
  2836. Procedure SetpasteData(AIndex : Integer; const AValue : TPasteDataRequest); virtual;
  2837. Procedure SetaddConditionalFormatRule(AIndex : Integer; const AValue : TAddConditionalFormatRuleRequest); virtual;
  2838. Procedure SetupdateBorders(AIndex : Integer; const AValue : TUpdateBordersRequest); virtual;
  2839. Procedure SetautoResizeDimensions(AIndex : Integer; const AValue : TAutoResizeDimensionsRequest); virtual;
  2840. Procedure SetduplicateSheet(AIndex : Integer; const AValue : TDuplicateSheetRequest); virtual;
  2841. Procedure SetduplicateFilterView(AIndex : Integer; const AValue : TDuplicateFilterViewRequest); virtual;
  2842. Procedure SetcutPaste(AIndex : Integer; const AValue : TCutPasteRequest); virtual;
  2843. Procedure SetappendCells(AIndex : Integer; const AValue : TAppendCellsRequest); virtual;
  2844. Procedure SetaddNamedRange(AIndex : Integer; const AValue : TAddNamedRangeRequest); virtual;
  2845. Procedure SetautoFill(AIndex : Integer; const AValue : TAutoFillRequest); virtual;
  2846. Procedure SetmoveDimension(AIndex : Integer; const AValue : TMoveDimensionRequest); virtual;
  2847. Procedure SettextToColumns(AIndex : Integer; const AValue : TTextToColumnsRequest); virtual;
  2848. Procedure SetinsertDimension(AIndex : Integer; const AValue : TInsertDimensionRequest); virtual;
  2849. Procedure SetcopyPaste(AIndex : Integer; const AValue : TCopyPasteRequest); virtual;
  2850. Public
  2851. Published
  2852. Property updateEmbeddedObjectPosition : TUpdateEmbeddedObjectPositionRequest Index 0 Read FupdateEmbeddedObjectPosition Write SetupdateEmbeddedObjectPosition;
  2853. Property deleteNamedRange : TDeleteNamedRangeRequest Index 8 Read FdeleteNamedRange Write SetdeleteNamedRange;
  2854. Property updateNamedRange : TUpdateNamedRangeRequest Index 16 Read FupdateNamedRange Write SetupdateNamedRange;
  2855. Property addFilterView : TAddFilterViewRequest Index 24 Read FaddFilterView Write SetaddFilterView;
  2856. Property updateSpreadsheetProperties : TUpdateSpreadsheetPropertiesRequest Index 32 Read FupdateSpreadsheetProperties Write SetupdateSpreadsheetProperties;
  2857. Property appendDimension : TAppendDimensionRequest Index 40 Read FappendDimension Write SetappendDimension;
  2858. Property unmergeCells : TUnmergeCellsRequest Index 48 Read FunmergeCells Write SetunmergeCells;
  2859. Property updateProtectedRange : TUpdateProtectedRangeRequest Index 56 Read FupdateProtectedRange Write SetupdateProtectedRange;
  2860. Property deleteFilterView : TDeleteFilterViewRequest Index 64 Read FdeleteFilterView Write SetdeleteFilterView;
  2861. Property clearBasicFilter : TClearBasicFilterRequest Index 72 Read FclearBasicFilter Write SetclearBasicFilter;
  2862. Property sortRange : TSortRangeRequest Index 80 Read FsortRange Write SetsortRange;
  2863. Property repeatCell : TRepeatCellRequest Index 88 Read FrepeatCell Write SetrepeatCell;
  2864. Property setDataValidation : TSetDataValidationRequest Index 96 Read FsetDataValidation Write SetsetDataValidation;
  2865. Property updateCells : TUpdateCellsRequest Index 104 Read FupdateCells Write SetupdateCells;
  2866. Property addSheet : TAddSheetRequest Index 112 Read FaddSheet Write SetaddSheet;
  2867. Property updateFilterView : TUpdateFilterViewRequest Index 120 Read FupdateFilterView Write SetupdateFilterView;
  2868. Property updateSheetProperties : TUpdateSheetPropertiesRequest Index 128 Read FupdateSheetProperties Write SetupdateSheetProperties;
  2869. Property updateDimensionProperties : TUpdateDimensionPropertiesRequest Index 136 Read FupdateDimensionProperties Write SetupdateDimensionProperties;
  2870. Property deleteSheet : TDeleteSheetRequest Index 144 Read FdeleteSheet Write SetdeleteSheet;
  2871. Property findReplace : TFindReplaceRequest Index 152 Read FfindReplace Write SetfindReplace;
  2872. Property addProtectedRange : TAddProtectedRangeRequest Index 160 Read FaddProtectedRange Write SetaddProtectedRange;
  2873. Property deleteProtectedRange : TDeleteProtectedRangeRequest Index 168 Read FdeleteProtectedRange Write SetdeleteProtectedRange;
  2874. Property updateConditionalFormatRule : TUpdateConditionalFormatRuleRequest Index 176 Read FupdateConditionalFormatRule Write SetupdateConditionalFormatRule;
  2875. Property setBasicFilter : TSetBasicFilterRequest Index 184 Read FsetBasicFilter Write SetsetBasicFilter;
  2876. Property mergeCells : TMergeCellsRequest Index 192 Read FmergeCells Write SetmergeCells;
  2877. Property addChart : TAddChartRequest Index 200 Read FaddChart Write SetaddChart;
  2878. Property deleteConditionalFormatRule : TDeleteConditionalFormatRuleRequest Index 208 Read FdeleteConditionalFormatRule Write SetdeleteConditionalFormatRule;
  2879. Property updateChartSpec : TUpdateChartSpecRequest Index 216 Read FupdateChartSpec Write SetupdateChartSpec;
  2880. Property deleteDimension : TDeleteDimensionRequest Index 224 Read FdeleteDimension Write SetdeleteDimension;
  2881. Property deleteEmbeddedObject : TDeleteEmbeddedObjectRequest Index 232 Read FdeleteEmbeddedObject Write SetdeleteEmbeddedObject;
  2882. Property pasteData : TPasteDataRequest Index 240 Read FpasteData Write SetpasteData;
  2883. Property addConditionalFormatRule : TAddConditionalFormatRuleRequest Index 248 Read FaddConditionalFormatRule Write SetaddConditionalFormatRule;
  2884. Property updateBorders : TUpdateBordersRequest Index 256 Read FupdateBorders Write SetupdateBorders;
  2885. Property autoResizeDimensions : TAutoResizeDimensionsRequest Index 264 Read FautoResizeDimensions Write SetautoResizeDimensions;
  2886. Property duplicateSheet : TDuplicateSheetRequest Index 272 Read FduplicateSheet Write SetduplicateSheet;
  2887. Property duplicateFilterView : TDuplicateFilterViewRequest Index 280 Read FduplicateFilterView Write SetduplicateFilterView;
  2888. Property cutPaste : TCutPasteRequest Index 288 Read FcutPaste Write SetcutPaste;
  2889. Property appendCells : TAppendCellsRequest Index 296 Read FappendCells Write SetappendCells;
  2890. Property addNamedRange : TAddNamedRangeRequest Index 304 Read FaddNamedRange Write SetaddNamedRange;
  2891. Property autoFill : TAutoFillRequest Index 312 Read FautoFill Write SetautoFill;
  2892. Property moveDimension : TMoveDimensionRequest Index 320 Read FmoveDimension Write SetmoveDimension;
  2893. Property textToColumns : TTextToColumnsRequest Index 328 Read FtextToColumns Write SettextToColumns;
  2894. Property insertDimension : TInsertDimensionRequest Index 336 Read FinsertDimension Write SetinsertDimension;
  2895. Property copyPaste : TCopyPasteRequest Index 344 Read FcopyPaste Write SetcopyPaste;
  2896. end;
  2897. TRequestClass = Class of TRequest;
  2898. { --------------------------------------------------------------------
  2899. TBatchGetValuesResponse
  2900. --------------------------------------------------------------------}
  2901. TBatchGetValuesResponse = Class(TGoogleBaseObject)
  2902. Private
  2903. FvalueRanges : TBatchGetValuesResponseTypevalueRangesArray;
  2904. FspreadsheetId : String;
  2905. Protected
  2906. //Property setters
  2907. Procedure SetvalueRanges(AIndex : Integer; const AValue : TBatchGetValuesResponseTypevalueRangesArray); virtual;
  2908. Procedure SetspreadsheetId(AIndex : Integer; const AValue : String); virtual;
  2909. //2.6.4. bug workaround
  2910. {$IFDEF VER2_6}
  2911. Procedure SetArrayLength(Const AName : String; ALength : Longint); override;
  2912. {$ENDIF VER2_6}
  2913. Public
  2914. Published
  2915. Property valueRanges : TBatchGetValuesResponseTypevalueRangesArray Index 0 Read FvalueRanges Write SetvalueRanges;
  2916. Property spreadsheetId : String Index 8 Read FspreadsheetId Write SetspreadsheetId;
  2917. end;
  2918. TBatchGetValuesResponseClass = Class of TBatchGetValuesResponse;
  2919. { --------------------------------------------------------------------
  2920. TInsertDimensionRequest
  2921. --------------------------------------------------------------------}
  2922. TInsertDimensionRequest = Class(TGoogleBaseObject)
  2923. Private
  2924. FinheritFromBefore : boolean;
  2925. Frange : TDimensionRange;
  2926. Protected
  2927. //Property setters
  2928. Procedure SetinheritFromBefore(AIndex : Integer; const AValue : boolean); virtual;
  2929. Procedure Setrange(AIndex : Integer; const AValue : TDimensionRange); virtual;
  2930. Public
  2931. Published
  2932. Property inheritFromBefore : boolean Index 0 Read FinheritFromBefore Write SetinheritFromBefore;
  2933. Property range : TDimensionRange Index 8 Read Frange Write Setrange;
  2934. end;
  2935. TInsertDimensionRequestClass = Class of TInsertDimensionRequest;
  2936. { --------------------------------------------------------------------
  2937. TDeleteEmbeddedObjectRequest
  2938. --------------------------------------------------------------------}
  2939. TDeleteEmbeddedObjectRequest = Class(TGoogleBaseObject)
  2940. Private
  2941. FobjectId : integer;
  2942. Protected
  2943. //Property setters
  2944. Procedure SetobjectId(AIndex : Integer; const AValue : integer); virtual;
  2945. Public
  2946. Published
  2947. Property objectId : integer Index 0 Read FobjectId Write SetobjectId;
  2948. end;
  2949. TDeleteEmbeddedObjectRequestClass = Class of TDeleteEmbeddedObjectRequest;
  2950. { --------------------------------------------------------------------
  2951. TDeleteConditionalFormatRuleResponse
  2952. --------------------------------------------------------------------}
  2953. TDeleteConditionalFormatRuleResponse = Class(TGoogleBaseObject)
  2954. Private
  2955. Frule : TConditionalFormatRule;
  2956. Protected
  2957. //Property setters
  2958. Procedure Setrule(AIndex : Integer; const AValue : TConditionalFormatRule); virtual;
  2959. Public
  2960. Published
  2961. Property rule : TConditionalFormatRule Index 0 Read Frule Write Setrule;
  2962. end;
  2963. TDeleteConditionalFormatRuleResponseClass = Class of TDeleteConditionalFormatRuleResponse;
  2964. { --------------------------------------------------------------------
  2965. TSpreadsheetsValuesResource
  2966. --------------------------------------------------------------------}
  2967. //Optional query Options for TSpreadsheetsValuesResource, method Update
  2968. TSpreadsheetsValuesUpdateOptions = Record
  2969. valueInputOption : String;
  2970. end;
  2971. //Optional query Options for TSpreadsheetsValuesResource, method Get
  2972. TSpreadsheetsValuesGetOptions = Record
  2973. valueRenderOption : String;
  2974. dateTimeRenderOption : String;
  2975. majorDimension : String;
  2976. end;
  2977. //Optional query Options for TSpreadsheetsValuesResource, method BatchGet
  2978. TSpreadsheetsValuesBatchGetOptions = Record
  2979. ranges : String;
  2980. valueRenderOption : String;
  2981. dateTimeRenderOption : String;
  2982. majorDimension : String;
  2983. end;
  2984. TSpreadsheetsValuesResource = Class(TGoogleResource)
  2985. Public
  2986. Class Function ResourceName : String; override;
  2987. Class Function DefaultAPI : TGoogleAPIClass; override;
  2988. Function Update(spreadsheetId: string; range: string; aValueRange : TValueRange; AQuery : string = '') : TUpdateValuesResponse;
  2989. Function Update(spreadsheetId: string; range: string; aValueRange : TValueRange; AQuery : TSpreadsheetsValuesupdateOptions) : TUpdateValuesResponse;
  2990. Function Get(spreadsheetId: string; range: string; AQuery : string = '') : TValueRange;
  2991. Function Get(spreadsheetId: string; range: string; AQuery : TSpreadsheetsValuesgetOptions) : TValueRange;
  2992. Function BatchGet(spreadsheetId: string; AQuery : string = '') : TBatchGetValuesResponse;
  2993. Function BatchGet(spreadsheetId: string; AQuery : TSpreadsheetsValuesbatchGetOptions) : TBatchGetValuesResponse;
  2994. Function BatchUpdate(spreadsheetId: string; aBatchUpdateValuesRequest : TBatchUpdateValuesRequest) : TBatchUpdateValuesResponse;
  2995. end;
  2996. { --------------------------------------------------------------------
  2997. TSpreadsheetsSheetsResource
  2998. --------------------------------------------------------------------}
  2999. TSpreadsheetsSheetsResource = Class(TGoogleResource)
  3000. Public
  3001. Class Function ResourceName : String; override;
  3002. Class Function DefaultAPI : TGoogleAPIClass; override;
  3003. Function CopyTo(sheetId: integer; spreadsheetId: string; aCopySheetToAnotherSpreadsheetRequest : TCopySheetToAnotherSpreadsheetRequest) : TSheetProperties;
  3004. end;
  3005. { --------------------------------------------------------------------
  3006. TSpreadsheetsResource
  3007. --------------------------------------------------------------------}
  3008. //Optional query Options for TSpreadsheetsResource, method Get
  3009. TSpreadsheetsGetOptions = Record
  3010. ranges : String;
  3011. includeGridData : boolean;
  3012. end;
  3013. TSpreadsheetsResource = Class(TGoogleResource)
  3014. Private
  3015. FValuesInstance : TSpreadsheetsValuesResource;
  3016. FSheetsInstance : TSpreadsheetsSheetsResource;
  3017. Function GetValuesInstance : TSpreadsheetsValuesResource;virtual;
  3018. Function GetSheetsInstance : TSpreadsheetsSheetsResource;virtual;
  3019. Public
  3020. Class Function ResourceName : String; override;
  3021. Class Function DefaultAPI : TGoogleAPIClass; override;
  3022. Function Create(aSpreadsheet : TSpreadsheet) : TSpreadsheet;overload;
  3023. Function Get(spreadsheetId: string; AQuery : string = '') : TSpreadsheet;
  3024. Function Get(spreadsheetId: string; AQuery : TSpreadsheetsgetOptions) : TSpreadsheet;
  3025. Function BatchUpdate(spreadsheetId: string; aBatchUpdateSpreadsheetRequest : TBatchUpdateSpreadsheetRequest) : TBatchUpdateSpreadsheetResponse;
  3026. Function CreateValuesResource(AOwner : TComponent) : TSpreadsheetsValuesResource;virtual;overload;
  3027. Function CreateValuesResource : TSpreadsheetsValuesResource;virtual;overload;
  3028. Function CreateSheetsResource(AOwner : TComponent) : TSpreadsheetsSheetsResource;virtual;overload;
  3029. Function CreateSheetsResource : TSpreadsheetsSheetsResource;virtual;overload;
  3030. Property ValuesResource : TSpreadsheetsValuesResource Read GetValuesInstance;
  3031. Property SheetsResource : TSpreadsheetsSheetsResource Read GetSheetsInstance;
  3032. end;
  3033. { --------------------------------------------------------------------
  3034. TSheetsAPI
  3035. --------------------------------------------------------------------}
  3036. TSheetsAPI = Class(TGoogleAPI)
  3037. Private
  3038. FSpreadsheetsValuesInstance : TSpreadsheetsValuesResource;
  3039. FSpreadsheetsSheetsInstance : TSpreadsheetsSheetsResource;
  3040. FSpreadsheetsInstance : TSpreadsheetsResource;
  3041. Function GetSpreadsheetsValuesInstance : TSpreadsheetsValuesResource;virtual;
  3042. Function GetSpreadsheetsSheetsInstance : TSpreadsheetsSheetsResource;virtual;
  3043. Function GetSpreadsheetsInstance : TSpreadsheetsResource;virtual;
  3044. Public
  3045. //Override class functions with API info
  3046. Class Function APIName : String; override;
  3047. Class Function APIVersion : String; override;
  3048. Class Function APIRevision : String; override;
  3049. Class Function APIID : String; override;
  3050. Class Function APITitle : String; override;
  3051. Class Function APIDescription : String; override;
  3052. Class Function APIOwnerDomain : String; override;
  3053. Class Function APIOwnerName : String; override;
  3054. Class Function APIIcon16 : String; override;
  3055. Class Function APIIcon32 : String; override;
  3056. Class Function APIdocumentationLink : String; override;
  3057. Class Function APIrootUrl : string; override;
  3058. Class Function APIbasePath : string;override;
  3059. Class Function APIbaseURL : String;override;
  3060. Class Function APIProtocol : string;override;
  3061. Class Function APIservicePath : string;override;
  3062. Class Function APIbatchPath : String;override;
  3063. Class Function APIAuthScopes : TScopeInfoArray;override;
  3064. Class Function APINeedsAuth : Boolean;override;
  3065. Class Procedure RegisterAPIResources; override;
  3066. //Add create function for resources
  3067. Function CreateSpreadsheetsValuesResource(AOwner : TComponent) : TSpreadsheetsValuesResource;virtual;overload;
  3068. Function CreateSpreadsheetsValuesResource : TSpreadsheetsValuesResource;virtual;overload;
  3069. Function CreateSpreadsheetsSheetsResource(AOwner : TComponent) : TSpreadsheetsSheetsResource;virtual;overload;
  3070. Function CreateSpreadsheetsSheetsResource : TSpreadsheetsSheetsResource;virtual;overload;
  3071. Function CreateSpreadsheetsResource(AOwner : TComponent) : TSpreadsheetsResource;virtual;overload;
  3072. Function CreateSpreadsheetsResource : TSpreadsheetsResource;virtual;overload;
  3073. //Add default on-demand instances for resources
  3074. Property SpreadsheetsValuesResource : TSpreadsheetsValuesResource Read GetSpreadsheetsValuesInstance;
  3075. Property SpreadsheetsSheetsResource : TSpreadsheetsSheetsResource Read GetSpreadsheetsSheetsInstance;
  3076. Property SpreadsheetsResource : TSpreadsheetsResource Read GetSpreadsheetsInstance;
  3077. end;
  3078. implementation
  3079. { --------------------------------------------------------------------
  3080. TAddNamedRangeResponse
  3081. --------------------------------------------------------------------}
  3082. Procedure TAddNamedRangeResponse.SetnamedRange(AIndex : Integer; const AValue : TNamedRange);
  3083. begin
  3084. If (FnamedRange=AValue) then exit;
  3085. FnamedRange:=AValue;
  3086. MarkPropertyChanged(AIndex);
  3087. end;
  3088. { --------------------------------------------------------------------
  3089. TUpdateProtectedRangeRequest
  3090. --------------------------------------------------------------------}
  3091. Procedure TUpdateProtectedRangeRequest.SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange);
  3092. begin
  3093. If (FprotectedRange=AValue) then exit;
  3094. FprotectedRange:=AValue;
  3095. MarkPropertyChanged(AIndex);
  3096. end;
  3097. Procedure TUpdateProtectedRangeRequest.Setfields(AIndex : Integer; const AValue : String);
  3098. begin
  3099. If (Ffields=AValue) then exit;
  3100. Ffields:=AValue;
  3101. MarkPropertyChanged(AIndex);
  3102. end;
  3103. { --------------------------------------------------------------------
  3104. TPadding
  3105. --------------------------------------------------------------------}
  3106. Procedure TPadding.Setright(AIndex : Integer; const AValue : integer);
  3107. begin
  3108. If (Fright=AValue) then exit;
  3109. Fright:=AValue;
  3110. MarkPropertyChanged(AIndex);
  3111. end;
  3112. Procedure TPadding.Setleft(AIndex : Integer; const AValue : integer);
  3113. begin
  3114. If (Fleft=AValue) then exit;
  3115. Fleft:=AValue;
  3116. MarkPropertyChanged(AIndex);
  3117. end;
  3118. Procedure TPadding.Settop(AIndex : Integer; const AValue : integer);
  3119. begin
  3120. If (Ftop=AValue) then exit;
  3121. Ftop:=AValue;
  3122. MarkPropertyChanged(AIndex);
  3123. end;
  3124. Procedure TPadding.Setbottom(AIndex : Integer; const AValue : integer);
  3125. begin
  3126. If (Fbottom=AValue) then exit;
  3127. Fbottom:=AValue;
  3128. MarkPropertyChanged(AIndex);
  3129. end;
  3130. { --------------------------------------------------------------------
  3131. TMergeCellsRequest
  3132. --------------------------------------------------------------------}
  3133. Procedure TMergeCellsRequest.SetmergeType(AIndex : Integer; const AValue : String);
  3134. begin
  3135. If (FmergeType=AValue) then exit;
  3136. FmergeType:=AValue;
  3137. MarkPropertyChanged(AIndex);
  3138. end;
  3139. Procedure TMergeCellsRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  3140. begin
  3141. If (Frange=AValue) then exit;
  3142. Frange:=AValue;
  3143. MarkPropertyChanged(AIndex);
  3144. end;
  3145. { --------------------------------------------------------------------
  3146. TAddSheetResponse
  3147. --------------------------------------------------------------------}
  3148. Procedure TAddSheetResponse.Setproperties(AIndex : Integer; const AValue : TSheetProperties);
  3149. begin
  3150. If (Fproperties=AValue) then exit;
  3151. Fproperties:=AValue;
  3152. MarkPropertyChanged(AIndex);
  3153. end;
  3154. { --------------------------------------------------------------------
  3155. TPivotGroupValueMetadata
  3156. --------------------------------------------------------------------}
  3157. Procedure TPivotGroupValueMetadata.Setvalue(AIndex : Integer; const AValue : TExtendedValue);
  3158. begin
  3159. If (Fvalue=AValue) then exit;
  3160. Fvalue:=AValue;
  3161. MarkPropertyChanged(AIndex);
  3162. end;
  3163. Procedure TPivotGroupValueMetadata.Setcollapsed(AIndex : Integer; const AValue : boolean);
  3164. begin
  3165. If (Fcollapsed=AValue) then exit;
  3166. Fcollapsed:=AValue;
  3167. MarkPropertyChanged(AIndex);
  3168. end;
  3169. { --------------------------------------------------------------------
  3170. TUpdateEmbeddedObjectPositionResponse
  3171. --------------------------------------------------------------------}
  3172. Procedure TUpdateEmbeddedObjectPositionResponse.Setposition(AIndex : Integer; const AValue : TEmbeddedObjectPosition);
  3173. begin
  3174. If (Fposition=AValue) then exit;
  3175. Fposition:=AValue;
  3176. MarkPropertyChanged(AIndex);
  3177. end;
  3178. { --------------------------------------------------------------------
  3179. TUpdateConditionalFormatRuleRequest
  3180. --------------------------------------------------------------------}
  3181. Procedure TUpdateConditionalFormatRuleRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  3182. begin
  3183. If (FsheetId=AValue) then exit;
  3184. FsheetId:=AValue;
  3185. MarkPropertyChanged(AIndex);
  3186. end;
  3187. Procedure TUpdateConditionalFormatRuleRequest.Setrule(AIndex : Integer; const AValue : TConditionalFormatRule);
  3188. begin
  3189. If (Frule=AValue) then exit;
  3190. Frule:=AValue;
  3191. MarkPropertyChanged(AIndex);
  3192. end;
  3193. Procedure TUpdateConditionalFormatRuleRequest.Setindex(AIndex : Integer; const AValue : integer);
  3194. begin
  3195. If (Findex=AValue) then exit;
  3196. Findex:=AValue;
  3197. MarkPropertyChanged(AIndex);
  3198. end;
  3199. Procedure TUpdateConditionalFormatRuleRequest.SetnewIndex(AIndex : Integer; const AValue : integer);
  3200. begin
  3201. If (FnewIndex=AValue) then exit;
  3202. FnewIndex:=AValue;
  3203. MarkPropertyChanged(AIndex);
  3204. end;
  3205. { --------------------------------------------------------------------
  3206. TTextFormat
  3207. --------------------------------------------------------------------}
  3208. Procedure TTextFormat.Setbold(AIndex : Integer; const AValue : boolean);
  3209. begin
  3210. If (Fbold=AValue) then exit;
  3211. Fbold:=AValue;
  3212. MarkPropertyChanged(AIndex);
  3213. end;
  3214. Procedure TTextFormat.Setitalic(AIndex : Integer; const AValue : boolean);
  3215. begin
  3216. If (Fitalic=AValue) then exit;
  3217. Fitalic:=AValue;
  3218. MarkPropertyChanged(AIndex);
  3219. end;
  3220. Procedure TTextFormat.SetforegroundColor(AIndex : Integer; const AValue : TColor);
  3221. begin
  3222. If (FforegroundColor=AValue) then exit;
  3223. FforegroundColor:=AValue;
  3224. MarkPropertyChanged(AIndex);
  3225. end;
  3226. Procedure TTextFormat.SetfontFamily(AIndex : Integer; const AValue : String);
  3227. begin
  3228. If (FfontFamily=AValue) then exit;
  3229. FfontFamily:=AValue;
  3230. MarkPropertyChanged(AIndex);
  3231. end;
  3232. Procedure TTextFormat.Setstrikethrough(AIndex : Integer; const AValue : boolean);
  3233. begin
  3234. If (Fstrikethrough=AValue) then exit;
  3235. Fstrikethrough:=AValue;
  3236. MarkPropertyChanged(AIndex);
  3237. end;
  3238. Procedure TTextFormat.SetfontSize(AIndex : Integer; const AValue : integer);
  3239. begin
  3240. If (FfontSize=AValue) then exit;
  3241. FfontSize:=AValue;
  3242. MarkPropertyChanged(AIndex);
  3243. end;
  3244. Procedure TTextFormat.Setunderline(AIndex : Integer; const AValue : boolean);
  3245. begin
  3246. If (Funderline=AValue) then exit;
  3247. Funderline:=AValue;
  3248. MarkPropertyChanged(AIndex);
  3249. end;
  3250. { --------------------------------------------------------------------
  3251. TUpdateChartSpecRequest
  3252. --------------------------------------------------------------------}
  3253. Procedure TUpdateChartSpecRequest.SetchartId(AIndex : Integer; const AValue : integer);
  3254. begin
  3255. If (FchartId=AValue) then exit;
  3256. FchartId:=AValue;
  3257. MarkPropertyChanged(AIndex);
  3258. end;
  3259. Procedure TUpdateChartSpecRequest.Setspec(AIndex : Integer; const AValue : TChartSpec);
  3260. begin
  3261. If (Fspec=AValue) then exit;
  3262. Fspec:=AValue;
  3263. MarkPropertyChanged(AIndex);
  3264. end;
  3265. { --------------------------------------------------------------------
  3266. TGridCoordinate
  3267. --------------------------------------------------------------------}
  3268. Procedure TGridCoordinate.SetsheetId(AIndex : Integer; const AValue : integer);
  3269. begin
  3270. If (FsheetId=AValue) then exit;
  3271. FsheetId:=AValue;
  3272. MarkPropertyChanged(AIndex);
  3273. end;
  3274. Procedure TGridCoordinate.SetrowIndex(AIndex : Integer; const AValue : integer);
  3275. begin
  3276. If (FrowIndex=AValue) then exit;
  3277. FrowIndex:=AValue;
  3278. MarkPropertyChanged(AIndex);
  3279. end;
  3280. Procedure TGridCoordinate.SetcolumnIndex(AIndex : Integer; const AValue : integer);
  3281. begin
  3282. If (FcolumnIndex=AValue) then exit;
  3283. FcolumnIndex:=AValue;
  3284. MarkPropertyChanged(AIndex);
  3285. end;
  3286. { --------------------------------------------------------------------
  3287. TDeleteFilterViewRequest
  3288. --------------------------------------------------------------------}
  3289. Procedure TDeleteFilterViewRequest.SetfilterId(AIndex : Integer; const AValue : integer);
  3290. begin
  3291. If (FfilterId=AValue) then exit;
  3292. FfilterId:=AValue;
  3293. MarkPropertyChanged(AIndex);
  3294. end;
  3295. { --------------------------------------------------------------------
  3296. TBatchUpdateValuesResponse
  3297. --------------------------------------------------------------------}
  3298. Procedure TBatchUpdateValuesResponse.SettotalUpdatedSheets(AIndex : Integer; const AValue : integer);
  3299. begin
  3300. If (FtotalUpdatedSheets=AValue) then exit;
  3301. FtotalUpdatedSheets:=AValue;
  3302. MarkPropertyChanged(AIndex);
  3303. end;
  3304. Procedure TBatchUpdateValuesResponse.SettotalUpdatedColumns(AIndex : Integer; const AValue : integer);
  3305. begin
  3306. If (FtotalUpdatedColumns=AValue) then exit;
  3307. FtotalUpdatedColumns:=AValue;
  3308. MarkPropertyChanged(AIndex);
  3309. end;
  3310. Procedure TBatchUpdateValuesResponse.Setresponses(AIndex : Integer; const AValue : TBatchUpdateValuesResponseTyperesponsesArray);
  3311. begin
  3312. If (Fresponses=AValue) then exit;
  3313. Fresponses:=AValue;
  3314. MarkPropertyChanged(AIndex);
  3315. end;
  3316. Procedure TBatchUpdateValuesResponse.SettotalUpdatedCells(AIndex : Integer; const AValue : integer);
  3317. begin
  3318. If (FtotalUpdatedCells=AValue) then exit;
  3319. FtotalUpdatedCells:=AValue;
  3320. MarkPropertyChanged(AIndex);
  3321. end;
  3322. Procedure TBatchUpdateValuesResponse.SetspreadsheetId(AIndex : Integer; const AValue : String);
  3323. begin
  3324. If (FspreadsheetId=AValue) then exit;
  3325. FspreadsheetId:=AValue;
  3326. MarkPropertyChanged(AIndex);
  3327. end;
  3328. Procedure TBatchUpdateValuesResponse.SettotalUpdatedRows(AIndex : Integer; const AValue : integer);
  3329. begin
  3330. If (FtotalUpdatedRows=AValue) then exit;
  3331. FtotalUpdatedRows:=AValue;
  3332. MarkPropertyChanged(AIndex);
  3333. end;
  3334. //2.6.4. bug workaround
  3335. {$IFDEF VER2_6}
  3336. Procedure TBatchUpdateValuesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  3337. begin
  3338. Case AName of
  3339. 'responses' : SetLength(Fresponses,ALength);
  3340. else
  3341. Inherited SetArrayLength(AName,ALength);
  3342. end;
  3343. end;
  3344. {$ENDIF VER2_6}
  3345. { --------------------------------------------------------------------
  3346. TUpdateNamedRangeRequest
  3347. --------------------------------------------------------------------}
  3348. Procedure TUpdateNamedRangeRequest.Setfields(AIndex : Integer; const AValue : String);
  3349. begin
  3350. If (Ffields=AValue) then exit;
  3351. Ffields:=AValue;
  3352. MarkPropertyChanged(AIndex);
  3353. end;
  3354. Procedure TUpdateNamedRangeRequest.SetnamedRange(AIndex : Integer; const AValue : TNamedRange);
  3355. begin
  3356. If (FnamedRange=AValue) then exit;
  3357. FnamedRange:=AValue;
  3358. MarkPropertyChanged(AIndex);
  3359. end;
  3360. { --------------------------------------------------------------------
  3361. TUpdateValuesResponse
  3362. --------------------------------------------------------------------}
  3363. Procedure TUpdateValuesResponse.SetupdatedRange(AIndex : Integer; const AValue : String);
  3364. begin
  3365. If (FupdatedRange=AValue) then exit;
  3366. FupdatedRange:=AValue;
  3367. MarkPropertyChanged(AIndex);
  3368. end;
  3369. Procedure TUpdateValuesResponse.SetupdatedColumns(AIndex : Integer; const AValue : integer);
  3370. begin
  3371. If (FupdatedColumns=AValue) then exit;
  3372. FupdatedColumns:=AValue;
  3373. MarkPropertyChanged(AIndex);
  3374. end;
  3375. Procedure TUpdateValuesResponse.SetspreadsheetId(AIndex : Integer; const AValue : String);
  3376. begin
  3377. If (FspreadsheetId=AValue) then exit;
  3378. FspreadsheetId:=AValue;
  3379. MarkPropertyChanged(AIndex);
  3380. end;
  3381. Procedure TUpdateValuesResponse.SetupdatedRows(AIndex : Integer; const AValue : integer);
  3382. begin
  3383. If (FupdatedRows=AValue) then exit;
  3384. FupdatedRows:=AValue;
  3385. MarkPropertyChanged(AIndex);
  3386. end;
  3387. Procedure TUpdateValuesResponse.SetupdatedCells(AIndex : Integer; const AValue : integer);
  3388. begin
  3389. If (FupdatedCells=AValue) then exit;
  3390. FupdatedCells:=AValue;
  3391. MarkPropertyChanged(AIndex);
  3392. end;
  3393. { --------------------------------------------------------------------
  3394. TSpreadsheetProperties
  3395. --------------------------------------------------------------------}
  3396. Procedure TSpreadsheetProperties.SettimeZone(AIndex : Integer; const AValue : String);
  3397. begin
  3398. If (FtimeZone=AValue) then exit;
  3399. FtimeZone:=AValue;
  3400. MarkPropertyChanged(AIndex);
  3401. end;
  3402. Procedure TSpreadsheetProperties.SetautoRecalc(AIndex : Integer; const AValue : String);
  3403. begin
  3404. If (FautoRecalc=AValue) then exit;
  3405. FautoRecalc:=AValue;
  3406. MarkPropertyChanged(AIndex);
  3407. end;
  3408. Procedure TSpreadsheetProperties.Setlocale(AIndex : Integer; const AValue : String);
  3409. begin
  3410. If (Flocale=AValue) then exit;
  3411. Flocale:=AValue;
  3412. MarkPropertyChanged(AIndex);
  3413. end;
  3414. Procedure TSpreadsheetProperties.Settitle(AIndex : Integer; const AValue : String);
  3415. begin
  3416. If (Ftitle=AValue) then exit;
  3417. Ftitle:=AValue;
  3418. MarkPropertyChanged(AIndex);
  3419. end;
  3420. Procedure TSpreadsheetProperties.SetdefaultFormat(AIndex : Integer; const AValue : TCellFormat);
  3421. begin
  3422. If (FdefaultFormat=AValue) then exit;
  3423. FdefaultFormat:=AValue;
  3424. MarkPropertyChanged(AIndex);
  3425. end;
  3426. { --------------------------------------------------------------------
  3427. TCellData
  3428. --------------------------------------------------------------------}
  3429. Procedure TCellData.Sethyperlink(AIndex : Integer; const AValue : String);
  3430. begin
  3431. If (Fhyperlink=AValue) then exit;
  3432. Fhyperlink:=AValue;
  3433. MarkPropertyChanged(AIndex);
  3434. end;
  3435. Procedure TCellData.SeteffectiveFormat(AIndex : Integer; const AValue : TCellFormat);
  3436. begin
  3437. If (FeffectiveFormat=AValue) then exit;
  3438. FeffectiveFormat:=AValue;
  3439. MarkPropertyChanged(AIndex);
  3440. end;
  3441. Procedure TCellData.Setnote(AIndex : Integer; const AValue : String);
  3442. begin
  3443. If (Fnote=AValue) then exit;
  3444. Fnote:=AValue;
  3445. MarkPropertyChanged(AIndex);
  3446. end;
  3447. Procedure TCellData.SetformattedValue(AIndex : Integer; const AValue : String);
  3448. begin
  3449. If (FformattedValue=AValue) then exit;
  3450. FformattedValue:=AValue;
  3451. MarkPropertyChanged(AIndex);
  3452. end;
  3453. Procedure TCellData.SetuserEnteredValue(AIndex : Integer; const AValue : TExtendedValue);
  3454. begin
  3455. If (FuserEnteredValue=AValue) then exit;
  3456. FuserEnteredValue:=AValue;
  3457. MarkPropertyChanged(AIndex);
  3458. end;
  3459. Procedure TCellData.SetdataValidation(AIndex : Integer; const AValue : TDataValidationRule);
  3460. begin
  3461. If (FdataValidation=AValue) then exit;
  3462. FdataValidation:=AValue;
  3463. MarkPropertyChanged(AIndex);
  3464. end;
  3465. Procedure TCellData.SetuserEnteredFormat(AIndex : Integer; const AValue : TCellFormat);
  3466. begin
  3467. If (FuserEnteredFormat=AValue) then exit;
  3468. FuserEnteredFormat:=AValue;
  3469. MarkPropertyChanged(AIndex);
  3470. end;
  3471. Procedure TCellData.SetpivotTable(AIndex : Integer; const AValue : TPivotTable);
  3472. begin
  3473. If (FpivotTable=AValue) then exit;
  3474. FpivotTable:=AValue;
  3475. MarkPropertyChanged(AIndex);
  3476. end;
  3477. Procedure TCellData.SettextFormatRuns(AIndex : Integer; const AValue : TCellDataTypetextFormatRunsArray);
  3478. begin
  3479. If (FtextFormatRuns=AValue) then exit;
  3480. FtextFormatRuns:=AValue;
  3481. MarkPropertyChanged(AIndex);
  3482. end;
  3483. Procedure TCellData.SeteffectiveValue(AIndex : Integer; const AValue : TExtendedValue);
  3484. begin
  3485. If (FeffectiveValue=AValue) then exit;
  3486. FeffectiveValue:=AValue;
  3487. MarkPropertyChanged(AIndex);
  3488. end;
  3489. //2.6.4. bug workaround
  3490. {$IFDEF VER2_6}
  3491. Procedure TCellData.SetArrayLength(Const AName : String; ALength : Longint);
  3492. begin
  3493. Case AName of
  3494. 'textformatruns' : SetLength(FtextFormatRuns,ALength);
  3495. else
  3496. Inherited SetArrayLength(AName,ALength);
  3497. end;
  3498. end;
  3499. {$ENDIF VER2_6}
  3500. { --------------------------------------------------------------------
  3501. TUnmergeCellsRequest
  3502. --------------------------------------------------------------------}
  3503. Procedure TUnmergeCellsRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  3504. begin
  3505. If (Frange=AValue) then exit;
  3506. Frange:=AValue;
  3507. MarkPropertyChanged(AIndex);
  3508. end;
  3509. { --------------------------------------------------------------------
  3510. TTextToColumnsRequest
  3511. --------------------------------------------------------------------}
  3512. Procedure TTextToColumnsRequest.Setsource(AIndex : Integer; const AValue : TGridRange);
  3513. begin
  3514. If (Fsource=AValue) then exit;
  3515. Fsource:=AValue;
  3516. MarkPropertyChanged(AIndex);
  3517. end;
  3518. Procedure TTextToColumnsRequest.Setdelimiter(AIndex : Integer; const AValue : String);
  3519. begin
  3520. If (Fdelimiter=AValue) then exit;
  3521. Fdelimiter:=AValue;
  3522. MarkPropertyChanged(AIndex);
  3523. end;
  3524. Procedure TTextToColumnsRequest.SetdelimiterType(AIndex : Integer; const AValue : String);
  3525. begin
  3526. If (FdelimiterType=AValue) then exit;
  3527. FdelimiterType:=AValue;
  3528. MarkPropertyChanged(AIndex);
  3529. end;
  3530. { --------------------------------------------------------------------
  3531. TAddProtectedRangeResponse
  3532. --------------------------------------------------------------------}
  3533. Procedure TAddProtectedRangeResponse.SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange);
  3534. begin
  3535. If (FprotectedRange=AValue) then exit;
  3536. FprotectedRange:=AValue;
  3537. MarkPropertyChanged(AIndex);
  3538. end;
  3539. { --------------------------------------------------------------------
  3540. TBooleanCondition
  3541. --------------------------------------------------------------------}
  3542. Procedure TBooleanCondition.Setvalues(AIndex : Integer; const AValue : TBooleanConditionTypevaluesArray);
  3543. begin
  3544. If (Fvalues=AValue) then exit;
  3545. Fvalues:=AValue;
  3546. MarkPropertyChanged(AIndex);
  3547. end;
  3548. Procedure TBooleanCondition.Set_type(AIndex : Integer; const AValue : String);
  3549. begin
  3550. If (F_type=AValue) then exit;
  3551. F_type:=AValue;
  3552. MarkPropertyChanged(AIndex);
  3553. end;
  3554. Class Function TBooleanCondition.ExportPropertyName(Const AName : String) :String;
  3555. begin
  3556. Case AName of
  3557. '_type' : Result:='type';
  3558. else
  3559. Result:=Inherited ExportPropertyName(AName);
  3560. end;
  3561. end;
  3562. //2.6.4. bug workaround
  3563. {$IFDEF VER2_6}
  3564. Procedure TBooleanCondition.SetArrayLength(Const AName : String; ALength : Longint);
  3565. begin
  3566. Case AName of
  3567. 'values' : SetLength(Fvalues,ALength);
  3568. else
  3569. Inherited SetArrayLength(AName,ALength);
  3570. end;
  3571. end;
  3572. {$ENDIF VER2_6}
  3573. { --------------------------------------------------------------------
  3574. TDeleteProtectedRangeRequest
  3575. --------------------------------------------------------------------}
  3576. Procedure TDeleteProtectedRangeRequest.SetprotectedRangeId(AIndex : Integer; const AValue : integer);
  3577. begin
  3578. If (FprotectedRangeId=AValue) then exit;
  3579. FprotectedRangeId:=AValue;
  3580. MarkPropertyChanged(AIndex);
  3581. end;
  3582. { --------------------------------------------------------------------
  3583. TBasicChartDomain
  3584. --------------------------------------------------------------------}
  3585. Procedure TBasicChartDomain.Setdomain(AIndex : Integer; const AValue : TChartData);
  3586. begin
  3587. If (Fdomain=AValue) then exit;
  3588. Fdomain:=AValue;
  3589. MarkPropertyChanged(AIndex);
  3590. end;
  3591. { --------------------------------------------------------------------
  3592. TDimensionRange
  3593. --------------------------------------------------------------------}
  3594. Procedure TDimensionRange.SetsheetId(AIndex : Integer; const AValue : integer);
  3595. begin
  3596. If (FsheetId=AValue) then exit;
  3597. FsheetId:=AValue;
  3598. MarkPropertyChanged(AIndex);
  3599. end;
  3600. Procedure TDimensionRange.SetendIndex(AIndex : Integer; const AValue : integer);
  3601. begin
  3602. If (FendIndex=AValue) then exit;
  3603. FendIndex:=AValue;
  3604. MarkPropertyChanged(AIndex);
  3605. end;
  3606. Procedure TDimensionRange.SetstartIndex(AIndex : Integer; const AValue : integer);
  3607. begin
  3608. If (FstartIndex=AValue) then exit;
  3609. FstartIndex:=AValue;
  3610. MarkPropertyChanged(AIndex);
  3611. end;
  3612. Procedure TDimensionRange.Setdimension(AIndex : Integer; const AValue : String);
  3613. begin
  3614. If (Fdimension=AValue) then exit;
  3615. Fdimension:=AValue;
  3616. MarkPropertyChanged(AIndex);
  3617. end;
  3618. { --------------------------------------------------------------------
  3619. TResponse
  3620. --------------------------------------------------------------------}
  3621. Procedure TResponse.SetupdateEmbeddedObjectPosition(AIndex : Integer; const AValue : TUpdateEmbeddedObjectPositionResponse);
  3622. begin
  3623. If (FupdateEmbeddedObjectPosition=AValue) then exit;
  3624. FupdateEmbeddedObjectPosition:=AValue;
  3625. MarkPropertyChanged(AIndex);
  3626. end;
  3627. Procedure TResponse.SetaddFilterView(AIndex : Integer; const AValue : TAddFilterViewResponse);
  3628. begin
  3629. If (FaddFilterView=AValue) then exit;
  3630. FaddFilterView:=AValue;
  3631. MarkPropertyChanged(AIndex);
  3632. end;
  3633. Procedure TResponse.SetaddSheet(AIndex : Integer; const AValue : TAddSheetResponse);
  3634. begin
  3635. If (FaddSheet=AValue) then exit;
  3636. FaddSheet:=AValue;
  3637. MarkPropertyChanged(AIndex);
  3638. end;
  3639. Procedure TResponse.SetfindReplace(AIndex : Integer; const AValue : TFindReplaceResponse);
  3640. begin
  3641. If (FfindReplace=AValue) then exit;
  3642. FfindReplace:=AValue;
  3643. MarkPropertyChanged(AIndex);
  3644. end;
  3645. Procedure TResponse.SetaddProtectedRange(AIndex : Integer; const AValue : TAddProtectedRangeResponse);
  3646. begin
  3647. If (FaddProtectedRange=AValue) then exit;
  3648. FaddProtectedRange:=AValue;
  3649. MarkPropertyChanged(AIndex);
  3650. end;
  3651. Procedure TResponse.SetupdateConditionalFormatRule(AIndex : Integer; const AValue : TUpdateConditionalFormatRuleResponse);
  3652. begin
  3653. If (FupdateConditionalFormatRule=AValue) then exit;
  3654. FupdateConditionalFormatRule:=AValue;
  3655. MarkPropertyChanged(AIndex);
  3656. end;
  3657. Procedure TResponse.SetaddChart(AIndex : Integer; const AValue : TAddChartResponse);
  3658. begin
  3659. If (FaddChart=AValue) then exit;
  3660. FaddChart:=AValue;
  3661. MarkPropertyChanged(AIndex);
  3662. end;
  3663. Procedure TResponse.SetdeleteConditionalFormatRule(AIndex : Integer; const AValue : TDeleteConditionalFormatRuleResponse);
  3664. begin
  3665. If (FdeleteConditionalFormatRule=AValue) then exit;
  3666. FdeleteConditionalFormatRule:=AValue;
  3667. MarkPropertyChanged(AIndex);
  3668. end;
  3669. Procedure TResponse.SetduplicateSheet(AIndex : Integer; const AValue : TDuplicateSheetResponse);
  3670. begin
  3671. If (FduplicateSheet=AValue) then exit;
  3672. FduplicateSheet:=AValue;
  3673. MarkPropertyChanged(AIndex);
  3674. end;
  3675. Procedure TResponse.SetduplicateFilterView(AIndex : Integer; const AValue : TDuplicateFilterViewResponse);
  3676. begin
  3677. If (FduplicateFilterView=AValue) then exit;
  3678. FduplicateFilterView:=AValue;
  3679. MarkPropertyChanged(AIndex);
  3680. end;
  3681. Procedure TResponse.SetaddNamedRange(AIndex : Integer; const AValue : TAddNamedRangeResponse);
  3682. begin
  3683. If (FaddNamedRange=AValue) then exit;
  3684. FaddNamedRange:=AValue;
  3685. MarkPropertyChanged(AIndex);
  3686. end;
  3687. { --------------------------------------------------------------------
  3688. TAddConditionalFormatRuleRequest
  3689. --------------------------------------------------------------------}
  3690. Procedure TAddConditionalFormatRuleRequest.Setrule(AIndex : Integer; const AValue : TConditionalFormatRule);
  3691. begin
  3692. If (Frule=AValue) then exit;
  3693. Frule:=AValue;
  3694. MarkPropertyChanged(AIndex);
  3695. end;
  3696. Procedure TAddConditionalFormatRuleRequest.Setindex(AIndex : Integer; const AValue : integer);
  3697. begin
  3698. If (Findex=AValue) then exit;
  3699. Findex:=AValue;
  3700. MarkPropertyChanged(AIndex);
  3701. end;
  3702. { --------------------------------------------------------------------
  3703. TFilterViewTypecriteria
  3704. --------------------------------------------------------------------}
  3705. Class Function TFilterViewTypecriteria.AllowAdditionalProperties : Boolean;
  3706. begin
  3707. Result:=True;
  3708. end;
  3709. { --------------------------------------------------------------------
  3710. TFilterView
  3711. --------------------------------------------------------------------}
  3712. Procedure TFilterView.Settitle(AIndex : Integer; const AValue : String);
  3713. begin
  3714. If (Ftitle=AValue) then exit;
  3715. Ftitle:=AValue;
  3716. MarkPropertyChanged(AIndex);
  3717. end;
  3718. Procedure TFilterView.SetnamedRangeId(AIndex : Integer; const AValue : String);
  3719. begin
  3720. If (FnamedRangeId=AValue) then exit;
  3721. FnamedRangeId:=AValue;
  3722. MarkPropertyChanged(AIndex);
  3723. end;
  3724. Procedure TFilterView.SetsortSpecs(AIndex : Integer; const AValue : TFilterViewTypesortSpecsArray);
  3725. begin
  3726. If (FsortSpecs=AValue) then exit;
  3727. FsortSpecs:=AValue;
  3728. MarkPropertyChanged(AIndex);
  3729. end;
  3730. Procedure TFilterView.Setrange(AIndex : Integer; const AValue : TGridRange);
  3731. begin
  3732. If (Frange=AValue) then exit;
  3733. Frange:=AValue;
  3734. MarkPropertyChanged(AIndex);
  3735. end;
  3736. Procedure TFilterView.Setcriteria(AIndex : Integer; const AValue : TFilterViewTypecriteria);
  3737. begin
  3738. If (Fcriteria=AValue) then exit;
  3739. Fcriteria:=AValue;
  3740. MarkPropertyChanged(AIndex);
  3741. end;
  3742. Procedure TFilterView.SetfilterViewId(AIndex : Integer; const AValue : integer);
  3743. begin
  3744. If (FfilterViewId=AValue) then exit;
  3745. FfilterViewId:=AValue;
  3746. MarkPropertyChanged(AIndex);
  3747. end;
  3748. //2.6.4. bug workaround
  3749. {$IFDEF VER2_6}
  3750. Procedure TFilterView.SetArrayLength(Const AName : String; ALength : Longint);
  3751. begin
  3752. Case AName of
  3753. 'sortspecs' : SetLength(FsortSpecs,ALength);
  3754. else
  3755. Inherited SetArrayLength(AName,ALength);
  3756. end;
  3757. end;
  3758. {$ENDIF VER2_6}
  3759. { --------------------------------------------------------------------
  3760. TSortRangeRequest
  3761. --------------------------------------------------------------------}
  3762. Procedure TSortRangeRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  3763. begin
  3764. If (Frange=AValue) then exit;
  3765. Frange:=AValue;
  3766. MarkPropertyChanged(AIndex);
  3767. end;
  3768. Procedure TSortRangeRequest.SetsortSpecs(AIndex : Integer; const AValue : TSortRangeRequestTypesortSpecsArray);
  3769. begin
  3770. If (FsortSpecs=AValue) then exit;
  3771. FsortSpecs:=AValue;
  3772. MarkPropertyChanged(AIndex);
  3773. end;
  3774. //2.6.4. bug workaround
  3775. {$IFDEF VER2_6}
  3776. Procedure TSortRangeRequest.SetArrayLength(Const AName : String; ALength : Longint);
  3777. begin
  3778. Case AName of
  3779. 'sortspecs' : SetLength(FsortSpecs,ALength);
  3780. else
  3781. Inherited SetArrayLength(AName,ALength);
  3782. end;
  3783. end;
  3784. {$ENDIF VER2_6}
  3785. { --------------------------------------------------------------------
  3786. TTextFormatRun
  3787. --------------------------------------------------------------------}
  3788. Procedure TTextFormatRun.SetstartIndex(AIndex : Integer; const AValue : integer);
  3789. begin
  3790. If (FstartIndex=AValue) then exit;
  3791. FstartIndex:=AValue;
  3792. MarkPropertyChanged(AIndex);
  3793. end;
  3794. Procedure TTextFormatRun.Setformat(AIndex : Integer; const AValue : TTextFormat);
  3795. begin
  3796. If (Fformat=AValue) then exit;
  3797. Fformat:=AValue;
  3798. MarkPropertyChanged(AIndex);
  3799. end;
  3800. { --------------------------------------------------------------------
  3801. TUpdateFilterViewRequest
  3802. --------------------------------------------------------------------}
  3803. Procedure TUpdateFilterViewRequest.Setfilter(AIndex : Integer; const AValue : TFilterView);
  3804. begin
  3805. If (Ffilter=AValue) then exit;
  3806. Ffilter:=AValue;
  3807. MarkPropertyChanged(AIndex);
  3808. end;
  3809. Procedure TUpdateFilterViewRequest.Setfields(AIndex : Integer; const AValue : String);
  3810. begin
  3811. If (Ffields=AValue) then exit;
  3812. Ffields:=AValue;
  3813. MarkPropertyChanged(AIndex);
  3814. end;
  3815. { --------------------------------------------------------------------
  3816. TUpdateConditionalFormatRuleResponse
  3817. --------------------------------------------------------------------}
  3818. Procedure TUpdateConditionalFormatRuleResponse.SetoldIndex(AIndex : Integer; const AValue : integer);
  3819. begin
  3820. If (FoldIndex=AValue) then exit;
  3821. FoldIndex:=AValue;
  3822. MarkPropertyChanged(AIndex);
  3823. end;
  3824. Procedure TUpdateConditionalFormatRuleResponse.SetnewRule(AIndex : Integer; const AValue : TConditionalFormatRule);
  3825. begin
  3826. If (FnewRule=AValue) then exit;
  3827. FnewRule:=AValue;
  3828. MarkPropertyChanged(AIndex);
  3829. end;
  3830. Procedure TUpdateConditionalFormatRuleResponse.SetoldRule(AIndex : Integer; const AValue : TConditionalFormatRule);
  3831. begin
  3832. If (FoldRule=AValue) then exit;
  3833. FoldRule:=AValue;
  3834. MarkPropertyChanged(AIndex);
  3835. end;
  3836. Procedure TUpdateConditionalFormatRuleResponse.SetnewIndex(AIndex : Integer; const AValue : integer);
  3837. begin
  3838. If (FnewIndex=AValue) then exit;
  3839. FnewIndex:=AValue;
  3840. MarkPropertyChanged(AIndex);
  3841. end;
  3842. { --------------------------------------------------------------------
  3843. TFilterCriteria
  3844. --------------------------------------------------------------------}
  3845. Procedure TFilterCriteria.Setcondition(AIndex : Integer; const AValue : TBooleanCondition);
  3846. begin
  3847. If (Fcondition=AValue) then exit;
  3848. Fcondition:=AValue;
  3849. MarkPropertyChanged(AIndex);
  3850. end;
  3851. Procedure TFilterCriteria.SethiddenValues(AIndex : Integer; const AValue : TStringArray);
  3852. begin
  3853. If (FhiddenValues=AValue) then exit;
  3854. FhiddenValues:=AValue;
  3855. MarkPropertyChanged(AIndex);
  3856. end;
  3857. //2.6.4. bug workaround
  3858. {$IFDEF VER2_6}
  3859. Procedure TFilterCriteria.SetArrayLength(Const AName : String; ALength : Longint);
  3860. begin
  3861. Case AName of
  3862. 'hiddenvalues' : SetLength(FhiddenValues,ALength);
  3863. else
  3864. Inherited SetArrayLength(AName,ALength);
  3865. end;
  3866. end;
  3867. {$ENDIF VER2_6}
  3868. { --------------------------------------------------------------------
  3869. TDeleteDimensionRequest
  3870. --------------------------------------------------------------------}
  3871. Procedure TDeleteDimensionRequest.Setrange(AIndex : Integer; const AValue : TDimensionRange);
  3872. begin
  3873. If (Frange=AValue) then exit;
  3874. Frange:=AValue;
  3875. MarkPropertyChanged(AIndex);
  3876. end;
  3877. { --------------------------------------------------------------------
  3878. TPivotTableTypecriteria
  3879. --------------------------------------------------------------------}
  3880. Class Function TPivotTableTypecriteria.AllowAdditionalProperties : Boolean;
  3881. begin
  3882. Result:=True;
  3883. end;
  3884. { --------------------------------------------------------------------
  3885. TPivotTable
  3886. --------------------------------------------------------------------}
  3887. Procedure TPivotTable.SetvalueLayout(AIndex : Integer; const AValue : String);
  3888. begin
  3889. If (FvalueLayout=AValue) then exit;
  3890. FvalueLayout:=AValue;
  3891. MarkPropertyChanged(AIndex);
  3892. end;
  3893. Procedure TPivotTable.Setcolumns(AIndex : Integer; const AValue : TPivotTableTypecolumnsArray);
  3894. begin
  3895. If (Fcolumns=AValue) then exit;
  3896. Fcolumns:=AValue;
  3897. MarkPropertyChanged(AIndex);
  3898. end;
  3899. Procedure TPivotTable.Setsource(AIndex : Integer; const AValue : TGridRange);
  3900. begin
  3901. If (Fsource=AValue) then exit;
  3902. Fsource:=AValue;
  3903. MarkPropertyChanged(AIndex);
  3904. end;
  3905. Procedure TPivotTable.Setrows(AIndex : Integer; const AValue : TPivotTableTyperowsArray);
  3906. begin
  3907. If (Frows=AValue) then exit;
  3908. Frows:=AValue;
  3909. MarkPropertyChanged(AIndex);
  3910. end;
  3911. Procedure TPivotTable.Setvalues(AIndex : Integer; const AValue : TPivotTableTypevaluesArray);
  3912. begin
  3913. If (Fvalues=AValue) then exit;
  3914. Fvalues:=AValue;
  3915. MarkPropertyChanged(AIndex);
  3916. end;
  3917. Procedure TPivotTable.Setcriteria(AIndex : Integer; const AValue : TPivotTableTypecriteria);
  3918. begin
  3919. If (Fcriteria=AValue) then exit;
  3920. Fcriteria:=AValue;
  3921. MarkPropertyChanged(AIndex);
  3922. end;
  3923. //2.6.4. bug workaround
  3924. {$IFDEF VER2_6}
  3925. Procedure TPivotTable.SetArrayLength(Const AName : String; ALength : Longint);
  3926. begin
  3927. Case AName of
  3928. 'columns' : SetLength(Fcolumns,ALength);
  3929. 'rows' : SetLength(Frows,ALength);
  3930. 'values' : SetLength(Fvalues,ALength);
  3931. else
  3932. Inherited SetArrayLength(AName,ALength);
  3933. end;
  3934. end;
  3935. {$ENDIF VER2_6}
  3936. { --------------------------------------------------------------------
  3937. TDataValidationRule
  3938. --------------------------------------------------------------------}
  3939. Procedure TDataValidationRule.Setcondition(AIndex : Integer; const AValue : TBooleanCondition);
  3940. begin
  3941. If (Fcondition=AValue) then exit;
  3942. Fcondition:=AValue;
  3943. MarkPropertyChanged(AIndex);
  3944. end;
  3945. Procedure TDataValidationRule.SetinputMessage(AIndex : Integer; const AValue : String);
  3946. begin
  3947. If (FinputMessage=AValue) then exit;
  3948. FinputMessage:=AValue;
  3949. MarkPropertyChanged(AIndex);
  3950. end;
  3951. Procedure TDataValidationRule.SetshowCustomUi(AIndex : Integer; const AValue : boolean);
  3952. begin
  3953. If (FshowCustomUi=AValue) then exit;
  3954. FshowCustomUi:=AValue;
  3955. MarkPropertyChanged(AIndex);
  3956. end;
  3957. Procedure TDataValidationRule.Setstrict(AIndex : Integer; const AValue : boolean);
  3958. begin
  3959. If (Fstrict=AValue) then exit;
  3960. Fstrict:=AValue;
  3961. MarkPropertyChanged(AIndex);
  3962. end;
  3963. { --------------------------------------------------------------------
  3964. TUpdateSpreadsheetPropertiesRequest
  3965. --------------------------------------------------------------------}
  3966. Procedure TUpdateSpreadsheetPropertiesRequest.Setfields(AIndex : Integer; const AValue : String);
  3967. begin
  3968. If (Ffields=AValue) then exit;
  3969. Ffields:=AValue;
  3970. MarkPropertyChanged(AIndex);
  3971. end;
  3972. Procedure TUpdateSpreadsheetPropertiesRequest.Setproperties(AIndex : Integer; const AValue : TSpreadsheetProperties);
  3973. begin
  3974. If (Fproperties=AValue) then exit;
  3975. Fproperties:=AValue;
  3976. MarkPropertyChanged(AIndex);
  3977. end;
  3978. { --------------------------------------------------------------------
  3979. TChartSourceRange
  3980. --------------------------------------------------------------------}
  3981. Procedure TChartSourceRange.Setsources(AIndex : Integer; const AValue : TChartSourceRangeTypesourcesArray);
  3982. begin
  3983. If (Fsources=AValue) then exit;
  3984. Fsources:=AValue;
  3985. MarkPropertyChanged(AIndex);
  3986. end;
  3987. //2.6.4. bug workaround
  3988. {$IFDEF VER2_6}
  3989. Procedure TChartSourceRange.SetArrayLength(Const AName : String; ALength : Longint);
  3990. begin
  3991. Case AName of
  3992. 'sources' : SetLength(Fsources,ALength);
  3993. else
  3994. Inherited SetArrayLength(AName,ALength);
  3995. end;
  3996. end;
  3997. {$ENDIF VER2_6}
  3998. { --------------------------------------------------------------------
  3999. TBatchUpdateValuesRequest
  4000. --------------------------------------------------------------------}
  4001. Procedure TBatchUpdateValuesRequest.SetvalueInputOption(AIndex : Integer; const AValue : String);
  4002. begin
  4003. If (FvalueInputOption=AValue) then exit;
  4004. FvalueInputOption:=AValue;
  4005. MarkPropertyChanged(AIndex);
  4006. end;
  4007. Procedure TBatchUpdateValuesRequest.Setdata(AIndex : Integer; const AValue : TBatchUpdateValuesRequestTypedataArray);
  4008. begin
  4009. If (Fdata=AValue) then exit;
  4010. Fdata:=AValue;
  4011. MarkPropertyChanged(AIndex);
  4012. end;
  4013. //2.6.4. bug workaround
  4014. {$IFDEF VER2_6}
  4015. Procedure TBatchUpdateValuesRequest.SetArrayLength(Const AName : String; ALength : Longint);
  4016. begin
  4017. Case AName of
  4018. 'data' : SetLength(Fdata,ALength);
  4019. else
  4020. Inherited SetArrayLength(AName,ALength);
  4021. end;
  4022. end;
  4023. {$ENDIF VER2_6}
  4024. { --------------------------------------------------------------------
  4025. TClearBasicFilterRequest
  4026. --------------------------------------------------------------------}
  4027. Procedure TClearBasicFilterRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  4028. begin
  4029. If (FsheetId=AValue) then exit;
  4030. FsheetId:=AValue;
  4031. MarkPropertyChanged(AIndex);
  4032. end;
  4033. { --------------------------------------------------------------------
  4034. TConditionalFormatRule
  4035. --------------------------------------------------------------------}
  4036. Procedure TConditionalFormatRule.SetgradientRule(AIndex : Integer; const AValue : TGradientRule);
  4037. begin
  4038. If (FgradientRule=AValue) then exit;
  4039. FgradientRule:=AValue;
  4040. MarkPropertyChanged(AIndex);
  4041. end;
  4042. Procedure TConditionalFormatRule.SetbooleanRule(AIndex : Integer; const AValue : TBooleanRule);
  4043. begin
  4044. If (FbooleanRule=AValue) then exit;
  4045. FbooleanRule:=AValue;
  4046. MarkPropertyChanged(AIndex);
  4047. end;
  4048. Procedure TConditionalFormatRule.Setranges(AIndex : Integer; const AValue : TConditionalFormatRuleTyperangesArray);
  4049. begin
  4050. If (Franges=AValue) then exit;
  4051. Franges:=AValue;
  4052. MarkPropertyChanged(AIndex);
  4053. end;
  4054. //2.6.4. bug workaround
  4055. {$IFDEF VER2_6}
  4056. Procedure TConditionalFormatRule.SetArrayLength(Const AName : String; ALength : Longint);
  4057. begin
  4058. Case AName of
  4059. 'ranges' : SetLength(Franges,ALength);
  4060. else
  4061. Inherited SetArrayLength(AName,ALength);
  4062. end;
  4063. end;
  4064. {$ENDIF VER2_6}
  4065. { --------------------------------------------------------------------
  4066. TUpdateBordersRequest
  4067. --------------------------------------------------------------------}
  4068. Procedure TUpdateBordersRequest.Setright(AIndex : Integer; const AValue : TBorder);
  4069. begin
  4070. If (Fright=AValue) then exit;
  4071. Fright:=AValue;
  4072. MarkPropertyChanged(AIndex);
  4073. end;
  4074. Procedure TUpdateBordersRequest.SetinnerVertical(AIndex : Integer; const AValue : TBorder);
  4075. begin
  4076. If (FinnerVertical=AValue) then exit;
  4077. FinnerVertical:=AValue;
  4078. MarkPropertyChanged(AIndex);
  4079. end;
  4080. Procedure TUpdateBordersRequest.Settop(AIndex : Integer; const AValue : TBorder);
  4081. begin
  4082. If (Ftop=AValue) then exit;
  4083. Ftop:=AValue;
  4084. MarkPropertyChanged(AIndex);
  4085. end;
  4086. Procedure TUpdateBordersRequest.SetinnerHorizontal(AIndex : Integer; const AValue : TBorder);
  4087. begin
  4088. If (FinnerHorizontal=AValue) then exit;
  4089. FinnerHorizontal:=AValue;
  4090. MarkPropertyChanged(AIndex);
  4091. end;
  4092. Procedure TUpdateBordersRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  4093. begin
  4094. If (Frange=AValue) then exit;
  4095. Frange:=AValue;
  4096. MarkPropertyChanged(AIndex);
  4097. end;
  4098. Procedure TUpdateBordersRequest.Setbottom(AIndex : Integer; const AValue : TBorder);
  4099. begin
  4100. If (Fbottom=AValue) then exit;
  4101. Fbottom:=AValue;
  4102. MarkPropertyChanged(AIndex);
  4103. end;
  4104. Procedure TUpdateBordersRequest.Setleft(AIndex : Integer; const AValue : TBorder);
  4105. begin
  4106. If (Fleft=AValue) then exit;
  4107. Fleft:=AValue;
  4108. MarkPropertyChanged(AIndex);
  4109. end;
  4110. { --------------------------------------------------------------------
  4111. TPivotFilterCriteria
  4112. --------------------------------------------------------------------}
  4113. Procedure TPivotFilterCriteria.SetvisibleValues(AIndex : Integer; const AValue : TStringArray);
  4114. begin
  4115. If (FvisibleValues=AValue) then exit;
  4116. FvisibleValues:=AValue;
  4117. MarkPropertyChanged(AIndex);
  4118. end;
  4119. //2.6.4. bug workaround
  4120. {$IFDEF VER2_6}
  4121. Procedure TPivotFilterCriteria.SetArrayLength(Const AName : String; ALength : Longint);
  4122. begin
  4123. Case AName of
  4124. 'visiblevalues' : SetLength(FvisibleValues,ALength);
  4125. else
  4126. Inherited SetArrayLength(AName,ALength);
  4127. end;
  4128. end;
  4129. {$ENDIF VER2_6}
  4130. { --------------------------------------------------------------------
  4131. TBorders
  4132. --------------------------------------------------------------------}
  4133. Procedure TBorders.Setleft(AIndex : Integer; const AValue : TBorder);
  4134. begin
  4135. If (Fleft=AValue) then exit;
  4136. Fleft:=AValue;
  4137. MarkPropertyChanged(AIndex);
  4138. end;
  4139. Procedure TBorders.Setright(AIndex : Integer; const AValue : TBorder);
  4140. begin
  4141. If (Fright=AValue) then exit;
  4142. Fright:=AValue;
  4143. MarkPropertyChanged(AIndex);
  4144. end;
  4145. Procedure TBorders.Settop(AIndex : Integer; const AValue : TBorder);
  4146. begin
  4147. If (Ftop=AValue) then exit;
  4148. Ftop:=AValue;
  4149. MarkPropertyChanged(AIndex);
  4150. end;
  4151. Procedure TBorders.Setbottom(AIndex : Integer; const AValue : TBorder);
  4152. begin
  4153. If (Fbottom=AValue) then exit;
  4154. Fbottom:=AValue;
  4155. MarkPropertyChanged(AIndex);
  4156. end;
  4157. { --------------------------------------------------------------------
  4158. TEmbeddedChart
  4159. --------------------------------------------------------------------}
  4160. Procedure TEmbeddedChart.SetchartId(AIndex : Integer; const AValue : integer);
  4161. begin
  4162. If (FchartId=AValue) then exit;
  4163. FchartId:=AValue;
  4164. MarkPropertyChanged(AIndex);
  4165. end;
  4166. Procedure TEmbeddedChart.Setposition(AIndex : Integer; const AValue : TEmbeddedObjectPosition);
  4167. begin
  4168. If (Fposition=AValue) then exit;
  4169. Fposition:=AValue;
  4170. MarkPropertyChanged(AIndex);
  4171. end;
  4172. Procedure TEmbeddedChart.Setspec(AIndex : Integer; const AValue : TChartSpec);
  4173. begin
  4174. If (Fspec=AValue) then exit;
  4175. Fspec:=AValue;
  4176. MarkPropertyChanged(AIndex);
  4177. end;
  4178. { --------------------------------------------------------------------
  4179. TColor
  4180. --------------------------------------------------------------------}
  4181. Procedure TColor.Setgreen(AIndex : Integer; const AValue : integer);
  4182. begin
  4183. If (Fgreen=AValue) then exit;
  4184. Fgreen:=AValue;
  4185. MarkPropertyChanged(AIndex);
  4186. end;
  4187. Procedure TColor.Setblue(AIndex : Integer; const AValue : integer);
  4188. begin
  4189. If (Fblue=AValue) then exit;
  4190. Fblue:=AValue;
  4191. MarkPropertyChanged(AIndex);
  4192. end;
  4193. Procedure TColor.Setred(AIndex : Integer; const AValue : integer);
  4194. begin
  4195. If (Fred=AValue) then exit;
  4196. Fred:=AValue;
  4197. MarkPropertyChanged(AIndex);
  4198. end;
  4199. Procedure TColor.Setalpha(AIndex : Integer; const AValue : integer);
  4200. begin
  4201. If (Falpha=AValue) then exit;
  4202. Falpha:=AValue;
  4203. MarkPropertyChanged(AIndex);
  4204. end;
  4205. { --------------------------------------------------------------------
  4206. TAddSheetRequest
  4207. --------------------------------------------------------------------}
  4208. Procedure TAddSheetRequest.Setproperties(AIndex : Integer; const AValue : TSheetProperties);
  4209. begin
  4210. If (Fproperties=AValue) then exit;
  4211. Fproperties:=AValue;
  4212. MarkPropertyChanged(AIndex);
  4213. end;
  4214. { --------------------------------------------------------------------
  4215. TAddProtectedRangeRequest
  4216. --------------------------------------------------------------------}
  4217. Procedure TAddProtectedRangeRequest.SetprotectedRange(AIndex : Integer; const AValue : TProtectedRange);
  4218. begin
  4219. If (FprotectedRange=AValue) then exit;
  4220. FprotectedRange:=AValue;
  4221. MarkPropertyChanged(AIndex);
  4222. end;
  4223. { --------------------------------------------------------------------
  4224. TValueRange
  4225. --------------------------------------------------------------------}
  4226. Procedure TValueRange.Setvalues(AIndex : Integer; const AValue : TValueRangeTypevaluesArray);
  4227. begin
  4228. If (Fvalues=AValue) then exit;
  4229. Fvalues:=AValue;
  4230. MarkPropertyChanged(AIndex);
  4231. end;
  4232. Procedure TValueRange.Setrange(AIndex : Integer; const AValue : String);
  4233. begin
  4234. If (Frange=AValue) then exit;
  4235. Frange:=AValue;
  4236. MarkPropertyChanged(AIndex);
  4237. end;
  4238. Procedure TValueRange.SetmajorDimension(AIndex : Integer; const AValue : String);
  4239. begin
  4240. If (FmajorDimension=AValue) then exit;
  4241. FmajorDimension:=AValue;
  4242. MarkPropertyChanged(AIndex);
  4243. end;
  4244. //2.6.4. bug workaround
  4245. {$IFDEF VER2_6}
  4246. Procedure TValueRange.SetArrayLength(Const AName : String; ALength : Longint);
  4247. begin
  4248. Case AName of
  4249. 'values' : SetLength(Fvalues,ALength);
  4250. else
  4251. Inherited SetArrayLength(AName,ALength);
  4252. end;
  4253. end;
  4254. {$ENDIF VER2_6}
  4255. { --------------------------------------------------------------------
  4256. TFindReplaceResponse
  4257. --------------------------------------------------------------------}
  4258. Procedure TFindReplaceResponse.SetvaluesChanged(AIndex : Integer; const AValue : integer);
  4259. begin
  4260. If (FvaluesChanged=AValue) then exit;
  4261. FvaluesChanged:=AValue;
  4262. MarkPropertyChanged(AIndex);
  4263. end;
  4264. Procedure TFindReplaceResponse.SetrowsChanged(AIndex : Integer; const AValue : integer);
  4265. begin
  4266. If (FrowsChanged=AValue) then exit;
  4267. FrowsChanged:=AValue;
  4268. MarkPropertyChanged(AIndex);
  4269. end;
  4270. Procedure TFindReplaceResponse.SetoccurrencesChanged(AIndex : Integer; const AValue : integer);
  4271. begin
  4272. If (FoccurrencesChanged=AValue) then exit;
  4273. FoccurrencesChanged:=AValue;
  4274. MarkPropertyChanged(AIndex);
  4275. end;
  4276. Procedure TFindReplaceResponse.SetformulasChanged(AIndex : Integer; const AValue : integer);
  4277. begin
  4278. If (FformulasChanged=AValue) then exit;
  4279. FformulasChanged:=AValue;
  4280. MarkPropertyChanged(AIndex);
  4281. end;
  4282. Procedure TFindReplaceResponse.SetsheetsChanged(AIndex : Integer; const AValue : integer);
  4283. begin
  4284. If (FsheetsChanged=AValue) then exit;
  4285. FsheetsChanged:=AValue;
  4286. MarkPropertyChanged(AIndex);
  4287. end;
  4288. { --------------------------------------------------------------------
  4289. TCellFormat
  4290. --------------------------------------------------------------------}
  4291. Procedure TCellFormat.SethorizontalAlignment(AIndex : Integer; const AValue : String);
  4292. begin
  4293. If (FhorizontalAlignment=AValue) then exit;
  4294. FhorizontalAlignment:=AValue;
  4295. MarkPropertyChanged(AIndex);
  4296. end;
  4297. Procedure TCellFormat.SethyperlinkDisplayType(AIndex : Integer; const AValue : String);
  4298. begin
  4299. If (FhyperlinkDisplayType=AValue) then exit;
  4300. FhyperlinkDisplayType:=AValue;
  4301. MarkPropertyChanged(AIndex);
  4302. end;
  4303. Procedure TCellFormat.Setborders(AIndex : Integer; const AValue : TBorders);
  4304. begin
  4305. If (Fborders=AValue) then exit;
  4306. Fborders:=AValue;
  4307. MarkPropertyChanged(AIndex);
  4308. end;
  4309. Procedure TCellFormat.SettextDirection(AIndex : Integer; const AValue : String);
  4310. begin
  4311. If (FtextDirection=AValue) then exit;
  4312. FtextDirection:=AValue;
  4313. MarkPropertyChanged(AIndex);
  4314. end;
  4315. Procedure TCellFormat.SettextFormat(AIndex : Integer; const AValue : TTextFormat);
  4316. begin
  4317. If (FtextFormat=AValue) then exit;
  4318. FtextFormat:=AValue;
  4319. MarkPropertyChanged(AIndex);
  4320. end;
  4321. Procedure TCellFormat.Setpadding(AIndex : Integer; const AValue : TPadding);
  4322. begin
  4323. If (Fpadding=AValue) then exit;
  4324. Fpadding:=AValue;
  4325. MarkPropertyChanged(AIndex);
  4326. end;
  4327. Procedure TCellFormat.SetnumberFormat(AIndex : Integer; const AValue : TNumberFormat);
  4328. begin
  4329. If (FnumberFormat=AValue) then exit;
  4330. FnumberFormat:=AValue;
  4331. MarkPropertyChanged(AIndex);
  4332. end;
  4333. Procedure TCellFormat.SetwrapStrategy(AIndex : Integer; const AValue : String);
  4334. begin
  4335. If (FwrapStrategy=AValue) then exit;
  4336. FwrapStrategy:=AValue;
  4337. MarkPropertyChanged(AIndex);
  4338. end;
  4339. Procedure TCellFormat.SetbackgroundColor(AIndex : Integer; const AValue : TColor);
  4340. begin
  4341. If (FbackgroundColor=AValue) then exit;
  4342. FbackgroundColor:=AValue;
  4343. MarkPropertyChanged(AIndex);
  4344. end;
  4345. Procedure TCellFormat.SetverticalAlignment(AIndex : Integer; const AValue : String);
  4346. begin
  4347. If (FverticalAlignment=AValue) then exit;
  4348. FverticalAlignment:=AValue;
  4349. MarkPropertyChanged(AIndex);
  4350. end;
  4351. { --------------------------------------------------------------------
  4352. TMoveDimensionRequest
  4353. --------------------------------------------------------------------}
  4354. Procedure TMoveDimensionRequest.Setsource(AIndex : Integer; const AValue : TDimensionRange);
  4355. begin
  4356. If (Fsource=AValue) then exit;
  4357. Fsource:=AValue;
  4358. MarkPropertyChanged(AIndex);
  4359. end;
  4360. Procedure TMoveDimensionRequest.SetdestinationIndex(AIndex : Integer; const AValue : integer);
  4361. begin
  4362. If (FdestinationIndex=AValue) then exit;
  4363. FdestinationIndex:=AValue;
  4364. MarkPropertyChanged(AIndex);
  4365. end;
  4366. { --------------------------------------------------------------------
  4367. TBasicChartAxis
  4368. --------------------------------------------------------------------}
  4369. Procedure TBasicChartAxis.Setposition(AIndex : Integer; const AValue : String);
  4370. begin
  4371. If (Fposition=AValue) then exit;
  4372. Fposition:=AValue;
  4373. MarkPropertyChanged(AIndex);
  4374. end;
  4375. Procedure TBasicChartAxis.Settitle(AIndex : Integer; const AValue : String);
  4376. begin
  4377. If (Ftitle=AValue) then exit;
  4378. Ftitle:=AValue;
  4379. MarkPropertyChanged(AIndex);
  4380. end;
  4381. Procedure TBasicChartAxis.Setformat(AIndex : Integer; const AValue : TTextFormat);
  4382. begin
  4383. If (Fformat=AValue) then exit;
  4384. Fformat:=AValue;
  4385. MarkPropertyChanged(AIndex);
  4386. end;
  4387. { --------------------------------------------------------------------
  4388. TPivotGroupSortValueBucket
  4389. --------------------------------------------------------------------}
  4390. Procedure TPivotGroupSortValueBucket.Setbuckets(AIndex : Integer; const AValue : TPivotGroupSortValueBucketTypebucketsArray);
  4391. begin
  4392. If (Fbuckets=AValue) then exit;
  4393. Fbuckets:=AValue;
  4394. MarkPropertyChanged(AIndex);
  4395. end;
  4396. Procedure TPivotGroupSortValueBucket.SetvaluesIndex(AIndex : Integer; const AValue : integer);
  4397. begin
  4398. If (FvaluesIndex=AValue) then exit;
  4399. FvaluesIndex:=AValue;
  4400. MarkPropertyChanged(AIndex);
  4401. end;
  4402. //2.6.4. bug workaround
  4403. {$IFDEF VER2_6}
  4404. Procedure TPivotGroupSortValueBucket.SetArrayLength(Const AName : String; ALength : Longint);
  4405. begin
  4406. Case AName of
  4407. 'buckets' : SetLength(Fbuckets,ALength);
  4408. else
  4409. Inherited SetArrayLength(AName,ALength);
  4410. end;
  4411. end;
  4412. {$ENDIF VER2_6}
  4413. { --------------------------------------------------------------------
  4414. TDimensionProperties
  4415. --------------------------------------------------------------------}
  4416. Procedure TDimensionProperties.SethiddenByUser(AIndex : Integer; const AValue : boolean);
  4417. begin
  4418. If (FhiddenByUser=AValue) then exit;
  4419. FhiddenByUser:=AValue;
  4420. MarkPropertyChanged(AIndex);
  4421. end;
  4422. Procedure TDimensionProperties.SetpixelSize(AIndex : Integer; const AValue : integer);
  4423. begin
  4424. If (FpixelSize=AValue) then exit;
  4425. FpixelSize:=AValue;
  4426. MarkPropertyChanged(AIndex);
  4427. end;
  4428. Procedure TDimensionProperties.SethiddenByFilter(AIndex : Integer; const AValue : boolean);
  4429. begin
  4430. If (FhiddenByFilter=AValue) then exit;
  4431. FhiddenByFilter:=AValue;
  4432. MarkPropertyChanged(AIndex);
  4433. end;
  4434. { --------------------------------------------------------------------
  4435. TEmbeddedObjectPosition
  4436. --------------------------------------------------------------------}
  4437. Procedure TEmbeddedObjectPosition.SetsheetId(AIndex : Integer; const AValue : integer);
  4438. begin
  4439. If (FsheetId=AValue) then exit;
  4440. FsheetId:=AValue;
  4441. MarkPropertyChanged(AIndex);
  4442. end;
  4443. Procedure TEmbeddedObjectPosition.SetoverlayPosition(AIndex : Integer; const AValue : TOverlayPosition);
  4444. begin
  4445. If (FoverlayPosition=AValue) then exit;
  4446. FoverlayPosition:=AValue;
  4447. MarkPropertyChanged(AIndex);
  4448. end;
  4449. Procedure TEmbeddedObjectPosition.SetnewSheet(AIndex : Integer; const AValue : boolean);
  4450. begin
  4451. If (FnewSheet=AValue) then exit;
  4452. FnewSheet:=AValue;
  4453. MarkPropertyChanged(AIndex);
  4454. end;
  4455. { --------------------------------------------------------------------
  4456. TInterpolationPoint
  4457. --------------------------------------------------------------------}
  4458. Procedure TInterpolationPoint.Setvalue(AIndex : Integer; const AValue : String);
  4459. begin
  4460. If (Fvalue=AValue) then exit;
  4461. Fvalue:=AValue;
  4462. MarkPropertyChanged(AIndex);
  4463. end;
  4464. Procedure TInterpolationPoint.Setcolor(AIndex : Integer; const AValue : TColor);
  4465. begin
  4466. If (Fcolor=AValue) then exit;
  4467. Fcolor:=AValue;
  4468. MarkPropertyChanged(AIndex);
  4469. end;
  4470. Procedure TInterpolationPoint.Set_type(AIndex : Integer; const AValue : String);
  4471. begin
  4472. If (F_type=AValue) then exit;
  4473. F_type:=AValue;
  4474. MarkPropertyChanged(AIndex);
  4475. end;
  4476. Class Function TInterpolationPoint.ExportPropertyName(Const AName : String) :String;
  4477. begin
  4478. Case AName of
  4479. '_type' : Result:='type';
  4480. else
  4481. Result:=Inherited ExportPropertyName(AName);
  4482. end;
  4483. end;
  4484. { --------------------------------------------------------------------
  4485. TErrorValue
  4486. --------------------------------------------------------------------}
  4487. Procedure TErrorValue.Set_type(AIndex : Integer; const AValue : String);
  4488. begin
  4489. If (F_type=AValue) then exit;
  4490. F_type:=AValue;
  4491. MarkPropertyChanged(AIndex);
  4492. end;
  4493. Procedure TErrorValue.Setmessage(AIndex : Integer; const AValue : String);
  4494. begin
  4495. If (Fmessage=AValue) then exit;
  4496. Fmessage:=AValue;
  4497. MarkPropertyChanged(AIndex);
  4498. end;
  4499. Class Function TErrorValue.ExportPropertyName(Const AName : String) :String;
  4500. begin
  4501. Case AName of
  4502. '_type' : Result:='type';
  4503. else
  4504. Result:=Inherited ExportPropertyName(AName);
  4505. end;
  4506. end;
  4507. { --------------------------------------------------------------------
  4508. TDuplicateFilterViewRequest
  4509. --------------------------------------------------------------------}
  4510. Procedure TDuplicateFilterViewRequest.SetfilterId(AIndex : Integer; const AValue : integer);
  4511. begin
  4512. If (FfilterId=AValue) then exit;
  4513. FfilterId:=AValue;
  4514. MarkPropertyChanged(AIndex);
  4515. end;
  4516. { --------------------------------------------------------------------
  4517. TBatchUpdateSpreadsheetRequest
  4518. --------------------------------------------------------------------}
  4519. Procedure TBatchUpdateSpreadsheetRequest.Setrequests(AIndex : Integer; const AValue : TBatchUpdateSpreadsheetRequestTyperequestsArray);
  4520. begin
  4521. If (Frequests=AValue) then exit;
  4522. Frequests:=AValue;
  4523. MarkPropertyChanged(AIndex);
  4524. end;
  4525. //2.6.4. bug workaround
  4526. {$IFDEF VER2_6}
  4527. Procedure TBatchUpdateSpreadsheetRequest.SetArrayLength(Const AName : String; ALength : Longint);
  4528. begin
  4529. Case AName of
  4530. 'requests' : SetLength(Frequests,ALength);
  4531. else
  4532. Inherited SetArrayLength(AName,ALength);
  4533. end;
  4534. end;
  4535. {$ENDIF VER2_6}
  4536. { --------------------------------------------------------------------
  4537. TSheetProperties
  4538. --------------------------------------------------------------------}
  4539. Procedure TSheetProperties.Settitle(AIndex : Integer; const AValue : String);
  4540. begin
  4541. If (Ftitle=AValue) then exit;
  4542. Ftitle:=AValue;
  4543. MarkPropertyChanged(AIndex);
  4544. end;
  4545. Procedure TSheetProperties.Setindex(AIndex : Integer; const AValue : integer);
  4546. begin
  4547. If (Findex=AValue) then exit;
  4548. Findex:=AValue;
  4549. MarkPropertyChanged(AIndex);
  4550. end;
  4551. Procedure TSheetProperties.Sethidden(AIndex : Integer; const AValue : boolean);
  4552. begin
  4553. If (Fhidden=AValue) then exit;
  4554. Fhidden:=AValue;
  4555. MarkPropertyChanged(AIndex);
  4556. end;
  4557. Procedure TSheetProperties.SetgridProperties(AIndex : Integer; const AValue : TGridProperties);
  4558. begin
  4559. If (FgridProperties=AValue) then exit;
  4560. FgridProperties:=AValue;
  4561. MarkPropertyChanged(AIndex);
  4562. end;
  4563. Procedure TSheetProperties.SetsheetId(AIndex : Integer; const AValue : integer);
  4564. begin
  4565. If (FsheetId=AValue) then exit;
  4566. FsheetId:=AValue;
  4567. MarkPropertyChanged(AIndex);
  4568. end;
  4569. Procedure TSheetProperties.SetrightToLeft(AIndex : Integer; const AValue : boolean);
  4570. begin
  4571. If (FrightToLeft=AValue) then exit;
  4572. FrightToLeft:=AValue;
  4573. MarkPropertyChanged(AIndex);
  4574. end;
  4575. Procedure TSheetProperties.SettabColor(AIndex : Integer; const AValue : TColor);
  4576. begin
  4577. If (FtabColor=AValue) then exit;
  4578. FtabColor:=AValue;
  4579. MarkPropertyChanged(AIndex);
  4580. end;
  4581. Procedure TSheetProperties.SetsheetType(AIndex : Integer; const AValue : String);
  4582. begin
  4583. If (FsheetType=AValue) then exit;
  4584. FsheetType:=AValue;
  4585. MarkPropertyChanged(AIndex);
  4586. end;
  4587. { --------------------------------------------------------------------
  4588. TProtectedRange
  4589. --------------------------------------------------------------------}
  4590. Procedure TProtectedRange.SetunprotectedRanges(AIndex : Integer; const AValue : TProtectedRangeTypeunprotectedRangesArray);
  4591. begin
  4592. If (FunprotectedRanges=AValue) then exit;
  4593. FunprotectedRanges:=AValue;
  4594. MarkPropertyChanged(AIndex);
  4595. end;
  4596. Procedure TProtectedRange.Setdescription(AIndex : Integer; const AValue : String);
  4597. begin
  4598. If (Fdescription=AValue) then exit;
  4599. Fdescription:=AValue;
  4600. MarkPropertyChanged(AIndex);
  4601. end;
  4602. Procedure TProtectedRange.SetnamedRangeId(AIndex : Integer; const AValue : String);
  4603. begin
  4604. If (FnamedRangeId=AValue) then exit;
  4605. FnamedRangeId:=AValue;
  4606. MarkPropertyChanged(AIndex);
  4607. end;
  4608. Procedure TProtectedRange.SetrequestingUserCanEdit(AIndex : Integer; const AValue : boolean);
  4609. begin
  4610. If (FrequestingUserCanEdit=AValue) then exit;
  4611. FrequestingUserCanEdit:=AValue;
  4612. MarkPropertyChanged(AIndex);
  4613. end;
  4614. Procedure TProtectedRange.Seteditors(AIndex : Integer; const AValue : TEditors);
  4615. begin
  4616. If (Feditors=AValue) then exit;
  4617. Feditors:=AValue;
  4618. MarkPropertyChanged(AIndex);
  4619. end;
  4620. Procedure TProtectedRange.SetprotectedRangeId(AIndex : Integer; const AValue : integer);
  4621. begin
  4622. If (FprotectedRangeId=AValue) then exit;
  4623. FprotectedRangeId:=AValue;
  4624. MarkPropertyChanged(AIndex);
  4625. end;
  4626. Procedure TProtectedRange.SetwarningOnly(AIndex : Integer; const AValue : boolean);
  4627. begin
  4628. If (FwarningOnly=AValue) then exit;
  4629. FwarningOnly:=AValue;
  4630. MarkPropertyChanged(AIndex);
  4631. end;
  4632. Procedure TProtectedRange.Setrange(AIndex : Integer; const AValue : TGridRange);
  4633. begin
  4634. If (Frange=AValue) then exit;
  4635. Frange:=AValue;
  4636. MarkPropertyChanged(AIndex);
  4637. end;
  4638. //2.6.4. bug workaround
  4639. {$IFDEF VER2_6}
  4640. Procedure TProtectedRange.SetArrayLength(Const AName : String; ALength : Longint);
  4641. begin
  4642. Case AName of
  4643. 'unprotectedranges' : SetLength(FunprotectedRanges,ALength);
  4644. else
  4645. Inherited SetArrayLength(AName,ALength);
  4646. end;
  4647. end;
  4648. {$ENDIF VER2_6}
  4649. { --------------------------------------------------------------------
  4650. TDeleteConditionalFormatRuleRequest
  4651. --------------------------------------------------------------------}
  4652. Procedure TDeleteConditionalFormatRuleRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  4653. begin
  4654. If (FsheetId=AValue) then exit;
  4655. FsheetId:=AValue;
  4656. MarkPropertyChanged(AIndex);
  4657. end;
  4658. Procedure TDeleteConditionalFormatRuleRequest.Setindex(AIndex : Integer; const AValue : integer);
  4659. begin
  4660. If (Findex=AValue) then exit;
  4661. Findex:=AValue;
  4662. MarkPropertyChanged(AIndex);
  4663. end;
  4664. { --------------------------------------------------------------------
  4665. TChartSpec
  4666. --------------------------------------------------------------------}
  4667. Procedure TChartSpec.SethiddenDimensionStrategy(AIndex : Integer; const AValue : String);
  4668. begin
  4669. If (FhiddenDimensionStrategy=AValue) then exit;
  4670. FhiddenDimensionStrategy:=AValue;
  4671. MarkPropertyChanged(AIndex);
  4672. end;
  4673. Procedure TChartSpec.SetbasicChart(AIndex : Integer; const AValue : TBasicChartSpec);
  4674. begin
  4675. If (FbasicChart=AValue) then exit;
  4676. FbasicChart:=AValue;
  4677. MarkPropertyChanged(AIndex);
  4678. end;
  4679. Procedure TChartSpec.Settitle(AIndex : Integer; const AValue : String);
  4680. begin
  4681. If (Ftitle=AValue) then exit;
  4682. Ftitle:=AValue;
  4683. MarkPropertyChanged(AIndex);
  4684. end;
  4685. Procedure TChartSpec.SetpieChart(AIndex : Integer; const AValue : TPieChartSpec);
  4686. begin
  4687. If (FpieChart=AValue) then exit;
  4688. FpieChart:=AValue;
  4689. MarkPropertyChanged(AIndex);
  4690. end;
  4691. { --------------------------------------------------------------------
  4692. TSourceAndDestination
  4693. --------------------------------------------------------------------}
  4694. Procedure TSourceAndDestination.Setsource(AIndex : Integer; const AValue : TGridRange);
  4695. begin
  4696. If (Fsource=AValue) then exit;
  4697. Fsource:=AValue;
  4698. MarkPropertyChanged(AIndex);
  4699. end;
  4700. Procedure TSourceAndDestination.SetfillLength(AIndex : Integer; const AValue : integer);
  4701. begin
  4702. If (FfillLength=AValue) then exit;
  4703. FfillLength:=AValue;
  4704. MarkPropertyChanged(AIndex);
  4705. end;
  4706. Procedure TSourceAndDestination.Setdimension(AIndex : Integer; const AValue : String);
  4707. begin
  4708. If (Fdimension=AValue) then exit;
  4709. Fdimension:=AValue;
  4710. MarkPropertyChanged(AIndex);
  4711. end;
  4712. { --------------------------------------------------------------------
  4713. TConditionValue
  4714. --------------------------------------------------------------------}
  4715. Procedure TConditionValue.SetrelativeDate(AIndex : Integer; const AValue : String);
  4716. begin
  4717. If (FrelativeDate=AValue) then exit;
  4718. FrelativeDate:=AValue;
  4719. MarkPropertyChanged(AIndex);
  4720. end;
  4721. Procedure TConditionValue.SetuserEnteredValue(AIndex : Integer; const AValue : String);
  4722. begin
  4723. If (FuserEnteredValue=AValue) then exit;
  4724. FuserEnteredValue:=AValue;
  4725. MarkPropertyChanged(AIndex);
  4726. end;
  4727. { --------------------------------------------------------------------
  4728. TPasteDataRequest
  4729. --------------------------------------------------------------------}
  4730. Procedure TPasteDataRequest.Setdata(AIndex : Integer; const AValue : String);
  4731. begin
  4732. If (Fdata=AValue) then exit;
  4733. Fdata:=AValue;
  4734. MarkPropertyChanged(AIndex);
  4735. end;
  4736. Procedure TPasteDataRequest.Setcoordinate(AIndex : Integer; const AValue : TGridCoordinate);
  4737. begin
  4738. If (Fcoordinate=AValue) then exit;
  4739. Fcoordinate:=AValue;
  4740. MarkPropertyChanged(AIndex);
  4741. end;
  4742. Procedure TPasteDataRequest.Setdelimiter(AIndex : Integer; const AValue : String);
  4743. begin
  4744. If (Fdelimiter=AValue) then exit;
  4745. Fdelimiter:=AValue;
  4746. MarkPropertyChanged(AIndex);
  4747. end;
  4748. Procedure TPasteDataRequest.Set_type(AIndex : Integer; const AValue : String);
  4749. begin
  4750. If (F_type=AValue) then exit;
  4751. F_type:=AValue;
  4752. MarkPropertyChanged(AIndex);
  4753. end;
  4754. Procedure TPasteDataRequest.Sethtml(AIndex : Integer; const AValue : boolean);
  4755. begin
  4756. If (Fhtml=AValue) then exit;
  4757. Fhtml:=AValue;
  4758. MarkPropertyChanged(AIndex);
  4759. end;
  4760. Class Function TPasteDataRequest.ExportPropertyName(Const AName : String) :String;
  4761. begin
  4762. Case AName of
  4763. '_type' : Result:='type';
  4764. else
  4765. Result:=Inherited ExportPropertyName(AName);
  4766. end;
  4767. end;
  4768. { --------------------------------------------------------------------
  4769. TFindReplaceRequest
  4770. --------------------------------------------------------------------}
  4771. Procedure TFindReplaceRequest.Setfind(AIndex : Integer; const AValue : String);
  4772. begin
  4773. If (Ffind=AValue) then exit;
  4774. Ffind:=AValue;
  4775. MarkPropertyChanged(AIndex);
  4776. end;
  4777. Procedure TFindReplaceRequest.Setreplacement(AIndex : Integer; const AValue : String);
  4778. begin
  4779. If (Freplacement=AValue) then exit;
  4780. Freplacement:=AValue;
  4781. MarkPropertyChanged(AIndex);
  4782. end;
  4783. Procedure TFindReplaceRequest.SetsearchByRegex(AIndex : Integer; const AValue : boolean);
  4784. begin
  4785. If (FsearchByRegex=AValue) then exit;
  4786. FsearchByRegex:=AValue;
  4787. MarkPropertyChanged(AIndex);
  4788. end;
  4789. Procedure TFindReplaceRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  4790. begin
  4791. If (FsheetId=AValue) then exit;
  4792. FsheetId:=AValue;
  4793. MarkPropertyChanged(AIndex);
  4794. end;
  4795. Procedure TFindReplaceRequest.SetallSheets(AIndex : Integer; const AValue : boolean);
  4796. begin
  4797. If (FallSheets=AValue) then exit;
  4798. FallSheets:=AValue;
  4799. MarkPropertyChanged(AIndex);
  4800. end;
  4801. Procedure TFindReplaceRequest.SetmatchCase(AIndex : Integer; const AValue : boolean);
  4802. begin
  4803. If (FmatchCase=AValue) then exit;
  4804. FmatchCase:=AValue;
  4805. MarkPropertyChanged(AIndex);
  4806. end;
  4807. Procedure TFindReplaceRequest.SetincludeFormulas(AIndex : Integer; const AValue : boolean);
  4808. begin
  4809. If (FincludeFormulas=AValue) then exit;
  4810. FincludeFormulas:=AValue;
  4811. MarkPropertyChanged(AIndex);
  4812. end;
  4813. Procedure TFindReplaceRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  4814. begin
  4815. If (Frange=AValue) then exit;
  4816. Frange:=AValue;
  4817. MarkPropertyChanged(AIndex);
  4818. end;
  4819. Procedure TFindReplaceRequest.SetmatchEntireCell(AIndex : Integer; const AValue : boolean);
  4820. begin
  4821. If (FmatchEntireCell=AValue) then exit;
  4822. FmatchEntireCell:=AValue;
  4823. MarkPropertyChanged(AIndex);
  4824. end;
  4825. { --------------------------------------------------------------------
  4826. TSortSpec
  4827. --------------------------------------------------------------------}
  4828. Procedure TSortSpec.SetsortOrder(AIndex : Integer; const AValue : String);
  4829. begin
  4830. If (FsortOrder=AValue) then exit;
  4831. FsortOrder:=AValue;
  4832. MarkPropertyChanged(AIndex);
  4833. end;
  4834. Procedure TSortSpec.SetdimensionIndex(AIndex : Integer; const AValue : integer);
  4835. begin
  4836. If (FdimensionIndex=AValue) then exit;
  4837. FdimensionIndex:=AValue;
  4838. MarkPropertyChanged(AIndex);
  4839. end;
  4840. { --------------------------------------------------------------------
  4841. TCopySheetToAnotherSpreadsheetRequest
  4842. --------------------------------------------------------------------}
  4843. Procedure TCopySheetToAnotherSpreadsheetRequest.SetdestinationSpreadsheetId(AIndex : Integer; const AValue : String);
  4844. begin
  4845. If (FdestinationSpreadsheetId=AValue) then exit;
  4846. FdestinationSpreadsheetId:=AValue;
  4847. MarkPropertyChanged(AIndex);
  4848. end;
  4849. { --------------------------------------------------------------------
  4850. TNumberFormat
  4851. --------------------------------------------------------------------}
  4852. Procedure TNumberFormat.Setpattern(AIndex : Integer; const AValue : String);
  4853. begin
  4854. If (Fpattern=AValue) then exit;
  4855. Fpattern:=AValue;
  4856. MarkPropertyChanged(AIndex);
  4857. end;
  4858. Procedure TNumberFormat.Set_type(AIndex : Integer; const AValue : String);
  4859. begin
  4860. If (F_type=AValue) then exit;
  4861. F_type:=AValue;
  4862. MarkPropertyChanged(AIndex);
  4863. end;
  4864. Class Function TNumberFormat.ExportPropertyName(Const AName : String) :String;
  4865. begin
  4866. Case AName of
  4867. '_type' : Result:='type';
  4868. else
  4869. Result:=Inherited ExportPropertyName(AName);
  4870. end;
  4871. end;
  4872. { --------------------------------------------------------------------
  4873. TUpdateDimensionPropertiesRequest
  4874. --------------------------------------------------------------------}
  4875. Procedure TUpdateDimensionPropertiesRequest.Setfields(AIndex : Integer; const AValue : String);
  4876. begin
  4877. If (Ffields=AValue) then exit;
  4878. Ffields:=AValue;
  4879. MarkPropertyChanged(AIndex);
  4880. end;
  4881. Procedure TUpdateDimensionPropertiesRequest.Setrange(AIndex : Integer; const AValue : TDimensionRange);
  4882. begin
  4883. If (Frange=AValue) then exit;
  4884. Frange:=AValue;
  4885. MarkPropertyChanged(AIndex);
  4886. end;
  4887. Procedure TUpdateDimensionPropertiesRequest.Setproperties(AIndex : Integer; const AValue : TDimensionProperties);
  4888. begin
  4889. If (Fproperties=AValue) then exit;
  4890. Fproperties:=AValue;
  4891. MarkPropertyChanged(AIndex);
  4892. end;
  4893. { --------------------------------------------------------------------
  4894. TEditors
  4895. --------------------------------------------------------------------}
  4896. Procedure TEditors.Setusers(AIndex : Integer; const AValue : TStringArray);
  4897. begin
  4898. If (Fusers=AValue) then exit;
  4899. Fusers:=AValue;
  4900. MarkPropertyChanged(AIndex);
  4901. end;
  4902. Procedure TEditors.Setgroups(AIndex : Integer; const AValue : TStringArray);
  4903. begin
  4904. If (Fgroups=AValue) then exit;
  4905. Fgroups:=AValue;
  4906. MarkPropertyChanged(AIndex);
  4907. end;
  4908. Procedure TEditors.SetdomainUsersCanEdit(AIndex : Integer; const AValue : boolean);
  4909. begin
  4910. If (FdomainUsersCanEdit=AValue) then exit;
  4911. FdomainUsersCanEdit:=AValue;
  4912. MarkPropertyChanged(AIndex);
  4913. end;
  4914. //2.6.4. bug workaround
  4915. {$IFDEF VER2_6}
  4916. Procedure TEditors.SetArrayLength(Const AName : String; ALength : Longint);
  4917. begin
  4918. Case AName of
  4919. 'users' : SetLength(Fusers,ALength);
  4920. 'groups' : SetLength(Fgroups,ALength);
  4921. else
  4922. Inherited SetArrayLength(AName,ALength);
  4923. end;
  4924. end;
  4925. {$ENDIF VER2_6}
  4926. { --------------------------------------------------------------------
  4927. TSpreadsheet
  4928. --------------------------------------------------------------------}
  4929. Procedure TSpreadsheet.SetspreadsheetId(AIndex : Integer; const AValue : String);
  4930. begin
  4931. If (FspreadsheetId=AValue) then exit;
  4932. FspreadsheetId:=AValue;
  4933. MarkPropertyChanged(AIndex);
  4934. end;
  4935. Procedure TSpreadsheet.Setproperties(AIndex : Integer; const AValue : TSpreadsheetProperties);
  4936. begin
  4937. If (Fproperties=AValue) then exit;
  4938. Fproperties:=AValue;
  4939. MarkPropertyChanged(AIndex);
  4940. end;
  4941. Procedure TSpreadsheet.Setsheets(AIndex : Integer; const AValue : TSpreadsheetTypesheetsArray);
  4942. begin
  4943. If (Fsheets=AValue) then exit;
  4944. Fsheets:=AValue;
  4945. MarkPropertyChanged(AIndex);
  4946. end;
  4947. Procedure TSpreadsheet.SetnamedRanges(AIndex : Integer; const AValue : TSpreadsheetTypenamedRangesArray);
  4948. begin
  4949. If (FnamedRanges=AValue) then exit;
  4950. FnamedRanges:=AValue;
  4951. MarkPropertyChanged(AIndex);
  4952. end;
  4953. //2.6.4. bug workaround
  4954. {$IFDEF VER2_6}
  4955. Procedure TSpreadsheet.SetArrayLength(Const AName : String; ALength : Longint);
  4956. begin
  4957. Case AName of
  4958. 'sheets' : SetLength(Fsheets,ALength);
  4959. 'namedranges' : SetLength(FnamedRanges,ALength);
  4960. else
  4961. Inherited SetArrayLength(AName,ALength);
  4962. end;
  4963. end;
  4964. {$ENDIF VER2_6}
  4965. { --------------------------------------------------------------------
  4966. TGridData
  4967. --------------------------------------------------------------------}
  4968. Procedure TGridData.SetcolumnMetadata(AIndex : Integer; const AValue : TGridDataTypecolumnMetadataArray);
  4969. begin
  4970. If (FcolumnMetadata=AValue) then exit;
  4971. FcolumnMetadata:=AValue;
  4972. MarkPropertyChanged(AIndex);
  4973. end;
  4974. Procedure TGridData.SetrowData(AIndex : Integer; const AValue : TGridDataTyperowDataArray);
  4975. begin
  4976. If (FrowData=AValue) then exit;
  4977. FrowData:=AValue;
  4978. MarkPropertyChanged(AIndex);
  4979. end;
  4980. Procedure TGridData.SetstartRow(AIndex : Integer; const AValue : integer);
  4981. begin
  4982. If (FstartRow=AValue) then exit;
  4983. FstartRow:=AValue;
  4984. MarkPropertyChanged(AIndex);
  4985. end;
  4986. Procedure TGridData.SetrowMetadata(AIndex : Integer; const AValue : TGridDataTyperowMetadataArray);
  4987. begin
  4988. If (FrowMetadata=AValue) then exit;
  4989. FrowMetadata:=AValue;
  4990. MarkPropertyChanged(AIndex);
  4991. end;
  4992. Procedure TGridData.SetstartColumn(AIndex : Integer; const AValue : integer);
  4993. begin
  4994. If (FstartColumn=AValue) then exit;
  4995. FstartColumn:=AValue;
  4996. MarkPropertyChanged(AIndex);
  4997. end;
  4998. //2.6.4. bug workaround
  4999. {$IFDEF VER2_6}
  5000. Procedure TGridData.SetArrayLength(Const AName : String; ALength : Longint);
  5001. begin
  5002. Case AName of
  5003. 'columnmetadata' : SetLength(FcolumnMetadata,ALength);
  5004. 'rowdata' : SetLength(FrowData,ALength);
  5005. 'rowmetadata' : SetLength(FrowMetadata,ALength);
  5006. else
  5007. Inherited SetArrayLength(AName,ALength);
  5008. end;
  5009. end;
  5010. {$ENDIF VER2_6}
  5011. { --------------------------------------------------------------------
  5012. TPivotValue
  5013. --------------------------------------------------------------------}
  5014. Procedure TPivotValue.Setformula(AIndex : Integer; const AValue : String);
  5015. begin
  5016. If (Fformula=AValue) then exit;
  5017. Fformula:=AValue;
  5018. MarkPropertyChanged(AIndex);
  5019. end;
  5020. Procedure TPivotValue.SetsourceColumnOffset(AIndex : Integer; const AValue : integer);
  5021. begin
  5022. If (FsourceColumnOffset=AValue) then exit;
  5023. FsourceColumnOffset:=AValue;
  5024. MarkPropertyChanged(AIndex);
  5025. end;
  5026. Procedure TPivotValue.SetsummarizeFunction(AIndex : Integer; const AValue : String);
  5027. begin
  5028. If (FsummarizeFunction=AValue) then exit;
  5029. FsummarizeFunction:=AValue;
  5030. MarkPropertyChanged(AIndex);
  5031. end;
  5032. Procedure TPivotValue.Setname(AIndex : Integer; const AValue : String);
  5033. begin
  5034. If (Fname=AValue) then exit;
  5035. Fname:=AValue;
  5036. MarkPropertyChanged(AIndex);
  5037. end;
  5038. { --------------------------------------------------------------------
  5039. TBasicFilterTypecriteria
  5040. --------------------------------------------------------------------}
  5041. Class Function TBasicFilterTypecriteria.AllowAdditionalProperties : Boolean;
  5042. begin
  5043. Result:=True;
  5044. end;
  5045. { --------------------------------------------------------------------
  5046. TBasicFilter
  5047. --------------------------------------------------------------------}
  5048. Procedure TBasicFilter.Setcriteria(AIndex : Integer; const AValue : TBasicFilterTypecriteria);
  5049. begin
  5050. If (Fcriteria=AValue) then exit;
  5051. Fcriteria:=AValue;
  5052. MarkPropertyChanged(AIndex);
  5053. end;
  5054. Procedure TBasicFilter.Setrange(AIndex : Integer; const AValue : TGridRange);
  5055. begin
  5056. If (Frange=AValue) then exit;
  5057. Frange:=AValue;
  5058. MarkPropertyChanged(AIndex);
  5059. end;
  5060. Procedure TBasicFilter.SetsortSpecs(AIndex : Integer; const AValue : TBasicFilterTypesortSpecsArray);
  5061. begin
  5062. If (FsortSpecs=AValue) then exit;
  5063. FsortSpecs:=AValue;
  5064. MarkPropertyChanged(AIndex);
  5065. end;
  5066. //2.6.4. bug workaround
  5067. {$IFDEF VER2_6}
  5068. Procedure TBasicFilter.SetArrayLength(Const AName : String; ALength : Longint);
  5069. begin
  5070. Case AName of
  5071. 'sortspecs' : SetLength(FsortSpecs,ALength);
  5072. else
  5073. Inherited SetArrayLength(AName,ALength);
  5074. end;
  5075. end;
  5076. {$ENDIF VER2_6}
  5077. { --------------------------------------------------------------------
  5078. TDuplicateSheetRequest
  5079. --------------------------------------------------------------------}
  5080. Procedure TDuplicateSheetRequest.SetsourceSheetId(AIndex : Integer; const AValue : integer);
  5081. begin
  5082. If (FsourceSheetId=AValue) then exit;
  5083. FsourceSheetId:=AValue;
  5084. MarkPropertyChanged(AIndex);
  5085. end;
  5086. Procedure TDuplicateSheetRequest.SetnewSheetId(AIndex : Integer; const AValue : integer);
  5087. begin
  5088. If (FnewSheetId=AValue) then exit;
  5089. FnewSheetId:=AValue;
  5090. MarkPropertyChanged(AIndex);
  5091. end;
  5092. Procedure TDuplicateSheetRequest.SetinsertSheetIndex(AIndex : Integer; const AValue : integer);
  5093. begin
  5094. If (FinsertSheetIndex=AValue) then exit;
  5095. FinsertSheetIndex:=AValue;
  5096. MarkPropertyChanged(AIndex);
  5097. end;
  5098. Procedure TDuplicateSheetRequest.SetnewSheetName(AIndex : Integer; const AValue : String);
  5099. begin
  5100. If (FnewSheetName=AValue) then exit;
  5101. FnewSheetName:=AValue;
  5102. MarkPropertyChanged(AIndex);
  5103. end;
  5104. { --------------------------------------------------------------------
  5105. TAddFilterViewResponse
  5106. --------------------------------------------------------------------}
  5107. Procedure TAddFilterViewResponse.Setfilter(AIndex : Integer; const AValue : TFilterView);
  5108. begin
  5109. If (Ffilter=AValue) then exit;
  5110. Ffilter:=AValue;
  5111. MarkPropertyChanged(AIndex);
  5112. end;
  5113. { --------------------------------------------------------------------
  5114. TDuplicateSheetResponse
  5115. --------------------------------------------------------------------}
  5116. Procedure TDuplicateSheetResponse.Setproperties(AIndex : Integer; const AValue : TSheetProperties);
  5117. begin
  5118. If (Fproperties=AValue) then exit;
  5119. Fproperties:=AValue;
  5120. MarkPropertyChanged(AIndex);
  5121. end;
  5122. { --------------------------------------------------------------------
  5123. TBorder
  5124. --------------------------------------------------------------------}
  5125. Procedure TBorder.Setstyle(AIndex : Integer; const AValue : String);
  5126. begin
  5127. If (Fstyle=AValue) then exit;
  5128. Fstyle:=AValue;
  5129. MarkPropertyChanged(AIndex);
  5130. end;
  5131. Procedure TBorder.Setwidth(AIndex : Integer; const AValue : integer);
  5132. begin
  5133. If (Fwidth=AValue) then exit;
  5134. Fwidth:=AValue;
  5135. MarkPropertyChanged(AIndex);
  5136. end;
  5137. Procedure TBorder.Setcolor(AIndex : Integer; const AValue : TColor);
  5138. begin
  5139. If (Fcolor=AValue) then exit;
  5140. Fcolor:=AValue;
  5141. MarkPropertyChanged(AIndex);
  5142. end;
  5143. { --------------------------------------------------------------------
  5144. TAddNamedRangeRequest
  5145. --------------------------------------------------------------------}
  5146. Procedure TAddNamedRangeRequest.SetnamedRange(AIndex : Integer; const AValue : TNamedRange);
  5147. begin
  5148. If (FnamedRange=AValue) then exit;
  5149. FnamedRange:=AValue;
  5150. MarkPropertyChanged(AIndex);
  5151. end;
  5152. { --------------------------------------------------------------------
  5153. TAddChartResponse
  5154. --------------------------------------------------------------------}
  5155. Procedure TAddChartResponse.Setchart(AIndex : Integer; const AValue : TEmbeddedChart);
  5156. begin
  5157. If (Fchart=AValue) then exit;
  5158. Fchart:=AValue;
  5159. MarkPropertyChanged(AIndex);
  5160. end;
  5161. { --------------------------------------------------------------------
  5162. TAppendCellsRequest
  5163. --------------------------------------------------------------------}
  5164. Procedure TAppendCellsRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  5165. begin
  5166. If (FsheetId=AValue) then exit;
  5167. FsheetId:=AValue;
  5168. MarkPropertyChanged(AIndex);
  5169. end;
  5170. Procedure TAppendCellsRequest.Setrows(AIndex : Integer; const AValue : TAppendCellsRequestTyperowsArray);
  5171. begin
  5172. If (Frows=AValue) then exit;
  5173. Frows:=AValue;
  5174. MarkPropertyChanged(AIndex);
  5175. end;
  5176. Procedure TAppendCellsRequest.Setfields(AIndex : Integer; const AValue : String);
  5177. begin
  5178. If (Ffields=AValue) then exit;
  5179. Ffields:=AValue;
  5180. MarkPropertyChanged(AIndex);
  5181. end;
  5182. //2.6.4. bug workaround
  5183. {$IFDEF VER2_6}
  5184. Procedure TAppendCellsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5185. begin
  5186. Case AName of
  5187. 'rows' : SetLength(Frows,ALength);
  5188. else
  5189. Inherited SetArrayLength(AName,ALength);
  5190. end;
  5191. end;
  5192. {$ENDIF VER2_6}
  5193. { --------------------------------------------------------------------
  5194. TRowData
  5195. --------------------------------------------------------------------}
  5196. Procedure TRowData.Setvalues(AIndex : Integer; const AValue : TRowDataTypevaluesArray);
  5197. begin
  5198. If (Fvalues=AValue) then exit;
  5199. Fvalues:=AValue;
  5200. MarkPropertyChanged(AIndex);
  5201. end;
  5202. //2.6.4. bug workaround
  5203. {$IFDEF VER2_6}
  5204. Procedure TRowData.SetArrayLength(Const AName : String; ALength : Longint);
  5205. begin
  5206. Case AName of
  5207. 'values' : SetLength(Fvalues,ALength);
  5208. else
  5209. Inherited SetArrayLength(AName,ALength);
  5210. end;
  5211. end;
  5212. {$ENDIF VER2_6}
  5213. { --------------------------------------------------------------------
  5214. TBasicChartSeries
  5215. --------------------------------------------------------------------}
  5216. Procedure TBasicChartSeries.Setseries(AIndex : Integer; const AValue : TChartData);
  5217. begin
  5218. If (Fseries=AValue) then exit;
  5219. Fseries:=AValue;
  5220. MarkPropertyChanged(AIndex);
  5221. end;
  5222. Procedure TBasicChartSeries.SettargetAxis(AIndex : Integer; const AValue : String);
  5223. begin
  5224. If (FtargetAxis=AValue) then exit;
  5225. FtargetAxis:=AValue;
  5226. MarkPropertyChanged(AIndex);
  5227. end;
  5228. Procedure TBasicChartSeries.Set_type(AIndex : Integer; const AValue : String);
  5229. begin
  5230. If (F_type=AValue) then exit;
  5231. F_type:=AValue;
  5232. MarkPropertyChanged(AIndex);
  5233. end;
  5234. Class Function TBasicChartSeries.ExportPropertyName(Const AName : String) :String;
  5235. begin
  5236. Case AName of
  5237. '_type' : Result:='type';
  5238. else
  5239. Result:=Inherited ExportPropertyName(AName);
  5240. end;
  5241. end;
  5242. { --------------------------------------------------------------------
  5243. TRepeatCellRequest
  5244. --------------------------------------------------------------------}
  5245. Procedure TRepeatCellRequest.Setcell(AIndex : Integer; const AValue : TCellData);
  5246. begin
  5247. If (Fcell=AValue) then exit;
  5248. Fcell:=AValue;
  5249. MarkPropertyChanged(AIndex);
  5250. end;
  5251. Procedure TRepeatCellRequest.Setfields(AIndex : Integer; const AValue : String);
  5252. begin
  5253. If (Ffields=AValue) then exit;
  5254. Ffields:=AValue;
  5255. MarkPropertyChanged(AIndex);
  5256. end;
  5257. Procedure TRepeatCellRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  5258. begin
  5259. If (Frange=AValue) then exit;
  5260. Frange:=AValue;
  5261. MarkPropertyChanged(AIndex);
  5262. end;
  5263. { --------------------------------------------------------------------
  5264. TBasicChartSpec
  5265. --------------------------------------------------------------------}
  5266. Procedure TBasicChartSpec.SetchartType(AIndex : Integer; const AValue : String);
  5267. begin
  5268. If (FchartType=AValue) then exit;
  5269. FchartType:=AValue;
  5270. MarkPropertyChanged(AIndex);
  5271. end;
  5272. Procedure TBasicChartSpec.Setdomains(AIndex : Integer; const AValue : TBasicChartSpecTypedomainsArray);
  5273. begin
  5274. If (Fdomains=AValue) then exit;
  5275. Fdomains:=AValue;
  5276. MarkPropertyChanged(AIndex);
  5277. end;
  5278. Procedure TBasicChartSpec.SetheaderCount(AIndex : Integer; const AValue : integer);
  5279. begin
  5280. If (FheaderCount=AValue) then exit;
  5281. FheaderCount:=AValue;
  5282. MarkPropertyChanged(AIndex);
  5283. end;
  5284. Procedure TBasicChartSpec.Setseries(AIndex : Integer; const AValue : TBasicChartSpecTypeseriesArray);
  5285. begin
  5286. If (Fseries=AValue) then exit;
  5287. Fseries:=AValue;
  5288. MarkPropertyChanged(AIndex);
  5289. end;
  5290. Procedure TBasicChartSpec.SetlegendPosition(AIndex : Integer; const AValue : String);
  5291. begin
  5292. If (FlegendPosition=AValue) then exit;
  5293. FlegendPosition:=AValue;
  5294. MarkPropertyChanged(AIndex);
  5295. end;
  5296. Procedure TBasicChartSpec.Setaxis(AIndex : Integer; const AValue : TBasicChartSpecTypeaxisArray);
  5297. begin
  5298. If (Faxis=AValue) then exit;
  5299. Faxis:=AValue;
  5300. MarkPropertyChanged(AIndex);
  5301. end;
  5302. //2.6.4. bug workaround
  5303. {$IFDEF VER2_6}
  5304. Procedure TBasicChartSpec.SetArrayLength(Const AName : String; ALength : Longint);
  5305. begin
  5306. Case AName of
  5307. 'domains' : SetLength(Fdomains,ALength);
  5308. 'series' : SetLength(Fseries,ALength);
  5309. 'axis' : SetLength(Faxis,ALength);
  5310. else
  5311. Inherited SetArrayLength(AName,ALength);
  5312. end;
  5313. end;
  5314. {$ENDIF VER2_6}
  5315. { --------------------------------------------------------------------
  5316. TNamedRange
  5317. --------------------------------------------------------------------}
  5318. Procedure TNamedRange.SetnamedRangeId(AIndex : Integer; const AValue : String);
  5319. begin
  5320. If (FnamedRangeId=AValue) then exit;
  5321. FnamedRangeId:=AValue;
  5322. MarkPropertyChanged(AIndex);
  5323. end;
  5324. Procedure TNamedRange.Setrange(AIndex : Integer; const AValue : TGridRange);
  5325. begin
  5326. If (Frange=AValue) then exit;
  5327. Frange:=AValue;
  5328. MarkPropertyChanged(AIndex);
  5329. end;
  5330. Procedure TNamedRange.Setname(AIndex : Integer; const AValue : String);
  5331. begin
  5332. If (Fname=AValue) then exit;
  5333. Fname:=AValue;
  5334. MarkPropertyChanged(AIndex);
  5335. end;
  5336. { --------------------------------------------------------------------
  5337. TSetBasicFilterRequest
  5338. --------------------------------------------------------------------}
  5339. Procedure TSetBasicFilterRequest.Setfilter(AIndex : Integer; const AValue : TBasicFilter);
  5340. begin
  5341. If (Ffilter=AValue) then exit;
  5342. Ffilter:=AValue;
  5343. MarkPropertyChanged(AIndex);
  5344. end;
  5345. { --------------------------------------------------------------------
  5346. TUpdateEmbeddedObjectPositionRequest
  5347. --------------------------------------------------------------------}
  5348. Procedure TUpdateEmbeddedObjectPositionRequest.SetnewPosition(AIndex : Integer; const AValue : TEmbeddedObjectPosition);
  5349. begin
  5350. If (FnewPosition=AValue) then exit;
  5351. FnewPosition:=AValue;
  5352. MarkPropertyChanged(AIndex);
  5353. end;
  5354. Procedure TUpdateEmbeddedObjectPositionRequest.SetobjectId(AIndex : Integer; const AValue : integer);
  5355. begin
  5356. If (FobjectId=AValue) then exit;
  5357. FobjectId:=AValue;
  5358. MarkPropertyChanged(AIndex);
  5359. end;
  5360. Procedure TUpdateEmbeddedObjectPositionRequest.Setfields(AIndex : Integer; const AValue : String);
  5361. begin
  5362. If (Ffields=AValue) then exit;
  5363. Ffields:=AValue;
  5364. MarkPropertyChanged(AIndex);
  5365. end;
  5366. { --------------------------------------------------------------------
  5367. TAutoResizeDimensionsRequest
  5368. --------------------------------------------------------------------}
  5369. Procedure TAutoResizeDimensionsRequest.Setdimensions(AIndex : Integer; const AValue : TDimensionRange);
  5370. begin
  5371. If (Fdimensions=AValue) then exit;
  5372. Fdimensions:=AValue;
  5373. MarkPropertyChanged(AIndex);
  5374. end;
  5375. { --------------------------------------------------------------------
  5376. TDuplicateFilterViewResponse
  5377. --------------------------------------------------------------------}
  5378. Procedure TDuplicateFilterViewResponse.Setfilter(AIndex : Integer; const AValue : TFilterView);
  5379. begin
  5380. If (Ffilter=AValue) then exit;
  5381. Ffilter:=AValue;
  5382. MarkPropertyChanged(AIndex);
  5383. end;
  5384. { --------------------------------------------------------------------
  5385. TPivotGroup
  5386. --------------------------------------------------------------------}
  5387. Procedure TPivotGroup.SetsortOrder(AIndex : Integer; const AValue : String);
  5388. begin
  5389. If (FsortOrder=AValue) then exit;
  5390. FsortOrder:=AValue;
  5391. MarkPropertyChanged(AIndex);
  5392. end;
  5393. Procedure TPivotGroup.SetsourceColumnOffset(AIndex : Integer; const AValue : integer);
  5394. begin
  5395. If (FsourceColumnOffset=AValue) then exit;
  5396. FsourceColumnOffset:=AValue;
  5397. MarkPropertyChanged(AIndex);
  5398. end;
  5399. Procedure TPivotGroup.SetshowTotals(AIndex : Integer; const AValue : boolean);
  5400. begin
  5401. If (FshowTotals=AValue) then exit;
  5402. FshowTotals:=AValue;
  5403. MarkPropertyChanged(AIndex);
  5404. end;
  5405. Procedure TPivotGroup.SetvalueBucket(AIndex : Integer; const AValue : TPivotGroupSortValueBucket);
  5406. begin
  5407. If (FvalueBucket=AValue) then exit;
  5408. FvalueBucket:=AValue;
  5409. MarkPropertyChanged(AIndex);
  5410. end;
  5411. Procedure TPivotGroup.SetvalueMetadata(AIndex : Integer; const AValue : TPivotGroupTypevalueMetadataArray);
  5412. begin
  5413. If (FvalueMetadata=AValue) then exit;
  5414. FvalueMetadata:=AValue;
  5415. MarkPropertyChanged(AIndex);
  5416. end;
  5417. //2.6.4. bug workaround
  5418. {$IFDEF VER2_6}
  5419. Procedure TPivotGroup.SetArrayLength(Const AName : String; ALength : Longint);
  5420. begin
  5421. Case AName of
  5422. 'valuemetadata' : SetLength(FvalueMetadata,ALength);
  5423. else
  5424. Inherited SetArrayLength(AName,ALength);
  5425. end;
  5426. end;
  5427. {$ENDIF VER2_6}
  5428. { --------------------------------------------------------------------
  5429. TGridRange
  5430. --------------------------------------------------------------------}
  5431. Procedure TGridRange.SetsheetId(AIndex : Integer; const AValue : integer);
  5432. begin
  5433. If (FsheetId=AValue) then exit;
  5434. FsheetId:=AValue;
  5435. MarkPropertyChanged(AIndex);
  5436. end;
  5437. Procedure TGridRange.SetstartColumnIndex(AIndex : Integer; const AValue : integer);
  5438. begin
  5439. If (FstartColumnIndex=AValue) then exit;
  5440. FstartColumnIndex:=AValue;
  5441. MarkPropertyChanged(AIndex);
  5442. end;
  5443. Procedure TGridRange.SetstartRowIndex(AIndex : Integer; const AValue : integer);
  5444. begin
  5445. If (FstartRowIndex=AValue) then exit;
  5446. FstartRowIndex:=AValue;
  5447. MarkPropertyChanged(AIndex);
  5448. end;
  5449. Procedure TGridRange.SetendRowIndex(AIndex : Integer; const AValue : integer);
  5450. begin
  5451. If (FendRowIndex=AValue) then exit;
  5452. FendRowIndex:=AValue;
  5453. MarkPropertyChanged(AIndex);
  5454. end;
  5455. Procedure TGridRange.SetendColumnIndex(AIndex : Integer; const AValue : integer);
  5456. begin
  5457. If (FendColumnIndex=AValue) then exit;
  5458. FendColumnIndex:=AValue;
  5459. MarkPropertyChanged(AIndex);
  5460. end;
  5461. { --------------------------------------------------------------------
  5462. TDeleteSheetRequest
  5463. --------------------------------------------------------------------}
  5464. Procedure TDeleteSheetRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  5465. begin
  5466. If (FsheetId=AValue) then exit;
  5467. FsheetId:=AValue;
  5468. MarkPropertyChanged(AIndex);
  5469. end;
  5470. { --------------------------------------------------------------------
  5471. TChartData
  5472. --------------------------------------------------------------------}
  5473. Procedure TChartData.SetsourceRange(AIndex : Integer; const AValue : TChartSourceRange);
  5474. begin
  5475. If (FsourceRange=AValue) then exit;
  5476. FsourceRange:=AValue;
  5477. MarkPropertyChanged(AIndex);
  5478. end;
  5479. { --------------------------------------------------------------------
  5480. TSheet
  5481. --------------------------------------------------------------------}
  5482. Procedure TSheet.Setproperties(AIndex : Integer; const AValue : TSheetProperties);
  5483. begin
  5484. If (Fproperties=AValue) then exit;
  5485. Fproperties:=AValue;
  5486. MarkPropertyChanged(AIndex);
  5487. end;
  5488. Procedure TSheet.Setcharts(AIndex : Integer; const AValue : TSheetTypechartsArray);
  5489. begin
  5490. If (Fcharts=AValue) then exit;
  5491. Fcharts:=AValue;
  5492. MarkPropertyChanged(AIndex);
  5493. end;
  5494. Procedure TSheet.SetfilterViews(AIndex : Integer; const AValue : TSheetTypefilterViewsArray);
  5495. begin
  5496. If (FfilterViews=AValue) then exit;
  5497. FfilterViews:=AValue;
  5498. MarkPropertyChanged(AIndex);
  5499. end;
  5500. Procedure TSheet.SetconditionalFormats(AIndex : Integer; const AValue : TSheetTypeconditionalFormatsArray);
  5501. begin
  5502. If (FconditionalFormats=AValue) then exit;
  5503. FconditionalFormats:=AValue;
  5504. MarkPropertyChanged(AIndex);
  5505. end;
  5506. Procedure TSheet.SetprotectedRanges(AIndex : Integer; const AValue : TSheetTypeprotectedRangesArray);
  5507. begin
  5508. If (FprotectedRanges=AValue) then exit;
  5509. FprotectedRanges:=AValue;
  5510. MarkPropertyChanged(AIndex);
  5511. end;
  5512. Procedure TSheet.SetbasicFilter(AIndex : Integer; const AValue : TBasicFilter);
  5513. begin
  5514. If (FbasicFilter=AValue) then exit;
  5515. FbasicFilter:=AValue;
  5516. MarkPropertyChanged(AIndex);
  5517. end;
  5518. Procedure TSheet.Setmerges(AIndex : Integer; const AValue : TSheetTypemergesArray);
  5519. begin
  5520. If (Fmerges=AValue) then exit;
  5521. Fmerges:=AValue;
  5522. MarkPropertyChanged(AIndex);
  5523. end;
  5524. Procedure TSheet.Setdata(AIndex : Integer; const AValue : TSheetTypedataArray);
  5525. begin
  5526. If (Fdata=AValue) then exit;
  5527. Fdata:=AValue;
  5528. MarkPropertyChanged(AIndex);
  5529. end;
  5530. //2.6.4. bug workaround
  5531. {$IFDEF VER2_6}
  5532. Procedure TSheet.SetArrayLength(Const AName : String; ALength : Longint);
  5533. begin
  5534. Case AName of
  5535. 'charts' : SetLength(Fcharts,ALength);
  5536. 'filterviews' : SetLength(FfilterViews,ALength);
  5537. 'conditionalformats' : SetLength(FconditionalFormats,ALength);
  5538. 'protectedranges' : SetLength(FprotectedRanges,ALength);
  5539. 'merges' : SetLength(Fmerges,ALength);
  5540. 'data' : SetLength(Fdata,ALength);
  5541. else
  5542. Inherited SetArrayLength(AName,ALength);
  5543. end;
  5544. end;
  5545. {$ENDIF VER2_6}
  5546. { --------------------------------------------------------------------
  5547. TCopyPasteRequest
  5548. --------------------------------------------------------------------}
  5549. Procedure TCopyPasteRequest.SetpasteType(AIndex : Integer; const AValue : String);
  5550. begin
  5551. If (FpasteType=AValue) then exit;
  5552. FpasteType:=AValue;
  5553. MarkPropertyChanged(AIndex);
  5554. end;
  5555. Procedure TCopyPasteRequest.SetpasteOrientation(AIndex : Integer; const AValue : String);
  5556. begin
  5557. If (FpasteOrientation=AValue) then exit;
  5558. FpasteOrientation:=AValue;
  5559. MarkPropertyChanged(AIndex);
  5560. end;
  5561. Procedure TCopyPasteRequest.Setsource(AIndex : Integer; const AValue : TGridRange);
  5562. begin
  5563. If (Fsource=AValue) then exit;
  5564. Fsource:=AValue;
  5565. MarkPropertyChanged(AIndex);
  5566. end;
  5567. Procedure TCopyPasteRequest.Setdestination(AIndex : Integer; const AValue : TGridRange);
  5568. begin
  5569. If (Fdestination=AValue) then exit;
  5570. Fdestination:=AValue;
  5571. MarkPropertyChanged(AIndex);
  5572. end;
  5573. { --------------------------------------------------------------------
  5574. TUpdateCellsRequest
  5575. --------------------------------------------------------------------}
  5576. Procedure TUpdateCellsRequest.Setrows(AIndex : Integer; const AValue : TUpdateCellsRequestTyperowsArray);
  5577. begin
  5578. If (Frows=AValue) then exit;
  5579. Frows:=AValue;
  5580. MarkPropertyChanged(AIndex);
  5581. end;
  5582. Procedure TUpdateCellsRequest.Setfields(AIndex : Integer; const AValue : String);
  5583. begin
  5584. If (Ffields=AValue) then exit;
  5585. Ffields:=AValue;
  5586. MarkPropertyChanged(AIndex);
  5587. end;
  5588. Procedure TUpdateCellsRequest.Setstart(AIndex : Integer; const AValue : TGridCoordinate);
  5589. begin
  5590. If (Fstart=AValue) then exit;
  5591. Fstart:=AValue;
  5592. MarkPropertyChanged(AIndex);
  5593. end;
  5594. Procedure TUpdateCellsRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  5595. begin
  5596. If (Frange=AValue) then exit;
  5597. Frange:=AValue;
  5598. MarkPropertyChanged(AIndex);
  5599. end;
  5600. //2.6.4. bug workaround
  5601. {$IFDEF VER2_6}
  5602. Procedure TUpdateCellsRequest.SetArrayLength(Const AName : String; ALength : Longint);
  5603. begin
  5604. Case AName of
  5605. 'rows' : SetLength(Frows,ALength);
  5606. else
  5607. Inherited SetArrayLength(AName,ALength);
  5608. end;
  5609. end;
  5610. {$ENDIF VER2_6}
  5611. { --------------------------------------------------------------------
  5612. TExtendedValue
  5613. --------------------------------------------------------------------}
  5614. Procedure TExtendedValue.SetformulaValue(AIndex : Integer; const AValue : String);
  5615. begin
  5616. If (FformulaValue=AValue) then exit;
  5617. FformulaValue:=AValue;
  5618. MarkPropertyChanged(AIndex);
  5619. end;
  5620. Procedure TExtendedValue.SeterrorValue(AIndex : Integer; const AValue : TErrorValue);
  5621. begin
  5622. If (FerrorValue=AValue) then exit;
  5623. FerrorValue:=AValue;
  5624. MarkPropertyChanged(AIndex);
  5625. end;
  5626. Procedure TExtendedValue.SetboolValue(AIndex : Integer; const AValue : boolean);
  5627. begin
  5628. If (FboolValue=AValue) then exit;
  5629. FboolValue:=AValue;
  5630. MarkPropertyChanged(AIndex);
  5631. end;
  5632. Procedure TExtendedValue.SetnumberValue(AIndex : Integer; const AValue : double);
  5633. begin
  5634. If (FnumberValue=AValue) then exit;
  5635. FnumberValue:=AValue;
  5636. MarkPropertyChanged(AIndex);
  5637. end;
  5638. Procedure TExtendedValue.SetstringValue(AIndex : Integer; const AValue : String);
  5639. begin
  5640. If (FstringValue=AValue) then exit;
  5641. FstringValue:=AValue;
  5642. MarkPropertyChanged(AIndex);
  5643. end;
  5644. { --------------------------------------------------------------------
  5645. TBatchUpdateSpreadsheetResponse
  5646. --------------------------------------------------------------------}
  5647. Procedure TBatchUpdateSpreadsheetResponse.SetspreadsheetId(AIndex : Integer; const AValue : String);
  5648. begin
  5649. If (FspreadsheetId=AValue) then exit;
  5650. FspreadsheetId:=AValue;
  5651. MarkPropertyChanged(AIndex);
  5652. end;
  5653. Procedure TBatchUpdateSpreadsheetResponse.Setreplies(AIndex : Integer; const AValue : TBatchUpdateSpreadsheetResponseTyperepliesArray);
  5654. begin
  5655. If (Freplies=AValue) then exit;
  5656. Freplies:=AValue;
  5657. MarkPropertyChanged(AIndex);
  5658. end;
  5659. //2.6.4. bug workaround
  5660. {$IFDEF VER2_6}
  5661. Procedure TBatchUpdateSpreadsheetResponse.SetArrayLength(Const AName : String; ALength : Longint);
  5662. begin
  5663. Case AName of
  5664. 'replies' : SetLength(Freplies,ALength);
  5665. else
  5666. Inherited SetArrayLength(AName,ALength);
  5667. end;
  5668. end;
  5669. {$ENDIF VER2_6}
  5670. { --------------------------------------------------------------------
  5671. TGradientRule
  5672. --------------------------------------------------------------------}
  5673. Procedure TGradientRule.Setmaxpoint(AIndex : Integer; const AValue : TInterpolationPoint);
  5674. begin
  5675. If (Fmaxpoint=AValue) then exit;
  5676. Fmaxpoint:=AValue;
  5677. MarkPropertyChanged(AIndex);
  5678. end;
  5679. Procedure TGradientRule.Setmidpoint(AIndex : Integer; const AValue : TInterpolationPoint);
  5680. begin
  5681. If (Fmidpoint=AValue) then exit;
  5682. Fmidpoint:=AValue;
  5683. MarkPropertyChanged(AIndex);
  5684. end;
  5685. Procedure TGradientRule.Setminpoint(AIndex : Integer; const AValue : TInterpolationPoint);
  5686. begin
  5687. If (Fminpoint=AValue) then exit;
  5688. Fminpoint:=AValue;
  5689. MarkPropertyChanged(AIndex);
  5690. end;
  5691. { --------------------------------------------------------------------
  5692. TCutPasteRequest
  5693. --------------------------------------------------------------------}
  5694. Procedure TCutPasteRequest.SetpasteType(AIndex : Integer; const AValue : String);
  5695. begin
  5696. If (FpasteType=AValue) then exit;
  5697. FpasteType:=AValue;
  5698. MarkPropertyChanged(AIndex);
  5699. end;
  5700. Procedure TCutPasteRequest.Setsource(AIndex : Integer; const AValue : TGridRange);
  5701. begin
  5702. If (Fsource=AValue) then exit;
  5703. Fsource:=AValue;
  5704. MarkPropertyChanged(AIndex);
  5705. end;
  5706. Procedure TCutPasteRequest.Setdestination(AIndex : Integer; const AValue : TGridCoordinate);
  5707. begin
  5708. If (Fdestination=AValue) then exit;
  5709. Fdestination:=AValue;
  5710. MarkPropertyChanged(AIndex);
  5711. end;
  5712. { --------------------------------------------------------------------
  5713. TOverlayPosition
  5714. --------------------------------------------------------------------}
  5715. Procedure TOverlayPosition.SetwidthPixels(AIndex : Integer; const AValue : integer);
  5716. begin
  5717. If (FwidthPixels=AValue) then exit;
  5718. FwidthPixels:=AValue;
  5719. MarkPropertyChanged(AIndex);
  5720. end;
  5721. Procedure TOverlayPosition.SetanchorCell(AIndex : Integer; const AValue : TGridCoordinate);
  5722. begin
  5723. If (FanchorCell=AValue) then exit;
  5724. FanchorCell:=AValue;
  5725. MarkPropertyChanged(AIndex);
  5726. end;
  5727. Procedure TOverlayPosition.SetoffsetXPixels(AIndex : Integer; const AValue : integer);
  5728. begin
  5729. If (FoffsetXPixels=AValue) then exit;
  5730. FoffsetXPixels:=AValue;
  5731. MarkPropertyChanged(AIndex);
  5732. end;
  5733. Procedure TOverlayPosition.SetheightPixels(AIndex : Integer; const AValue : integer);
  5734. begin
  5735. If (FheightPixels=AValue) then exit;
  5736. FheightPixels:=AValue;
  5737. MarkPropertyChanged(AIndex);
  5738. end;
  5739. Procedure TOverlayPosition.SetoffsetYPixels(AIndex : Integer; const AValue : integer);
  5740. begin
  5741. If (FoffsetYPixels=AValue) then exit;
  5742. FoffsetYPixels:=AValue;
  5743. MarkPropertyChanged(AIndex);
  5744. end;
  5745. { --------------------------------------------------------------------
  5746. TAutoFillRequest
  5747. --------------------------------------------------------------------}
  5748. Procedure TAutoFillRequest.SetuseAlternateSeries(AIndex : Integer; const AValue : boolean);
  5749. begin
  5750. If (FuseAlternateSeries=AValue) then exit;
  5751. FuseAlternateSeries:=AValue;
  5752. MarkPropertyChanged(AIndex);
  5753. end;
  5754. Procedure TAutoFillRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  5755. begin
  5756. If (Frange=AValue) then exit;
  5757. Frange:=AValue;
  5758. MarkPropertyChanged(AIndex);
  5759. end;
  5760. Procedure TAutoFillRequest.SetsourceAndDestination(AIndex : Integer; const AValue : TSourceAndDestination);
  5761. begin
  5762. If (FsourceAndDestination=AValue) then exit;
  5763. FsourceAndDestination:=AValue;
  5764. MarkPropertyChanged(AIndex);
  5765. end;
  5766. { --------------------------------------------------------------------
  5767. TPieChartSpec
  5768. --------------------------------------------------------------------}
  5769. Procedure TPieChartSpec.SetlegendPosition(AIndex : Integer; const AValue : String);
  5770. begin
  5771. If (FlegendPosition=AValue) then exit;
  5772. FlegendPosition:=AValue;
  5773. MarkPropertyChanged(AIndex);
  5774. end;
  5775. Procedure TPieChartSpec.Setseries(AIndex : Integer; const AValue : TChartData);
  5776. begin
  5777. If (Fseries=AValue) then exit;
  5778. Fseries:=AValue;
  5779. MarkPropertyChanged(AIndex);
  5780. end;
  5781. Procedure TPieChartSpec.SetpieHole(AIndex : Integer; const AValue : double);
  5782. begin
  5783. If (FpieHole=AValue) then exit;
  5784. FpieHole:=AValue;
  5785. MarkPropertyChanged(AIndex);
  5786. end;
  5787. Procedure TPieChartSpec.SetthreeDimensional(AIndex : Integer; const AValue : boolean);
  5788. begin
  5789. If (FthreeDimensional=AValue) then exit;
  5790. FthreeDimensional:=AValue;
  5791. MarkPropertyChanged(AIndex);
  5792. end;
  5793. Procedure TPieChartSpec.Setdomain(AIndex : Integer; const AValue : TChartData);
  5794. begin
  5795. If (Fdomain=AValue) then exit;
  5796. Fdomain:=AValue;
  5797. MarkPropertyChanged(AIndex);
  5798. end;
  5799. { --------------------------------------------------------------------
  5800. TUpdateSheetPropertiesRequest
  5801. --------------------------------------------------------------------}
  5802. Procedure TUpdateSheetPropertiesRequest.Setfields(AIndex : Integer; const AValue : String);
  5803. begin
  5804. If (Ffields=AValue) then exit;
  5805. Ffields:=AValue;
  5806. MarkPropertyChanged(AIndex);
  5807. end;
  5808. Procedure TUpdateSheetPropertiesRequest.Setproperties(AIndex : Integer; const AValue : TSheetProperties);
  5809. begin
  5810. If (Fproperties=AValue) then exit;
  5811. Fproperties:=AValue;
  5812. MarkPropertyChanged(AIndex);
  5813. end;
  5814. { --------------------------------------------------------------------
  5815. TBooleanRule
  5816. --------------------------------------------------------------------}
  5817. Procedure TBooleanRule.Setcondition(AIndex : Integer; const AValue : TBooleanCondition);
  5818. begin
  5819. If (Fcondition=AValue) then exit;
  5820. Fcondition:=AValue;
  5821. MarkPropertyChanged(AIndex);
  5822. end;
  5823. Procedure TBooleanRule.Setformat(AIndex : Integer; const AValue : TCellFormat);
  5824. begin
  5825. If (Fformat=AValue) then exit;
  5826. Fformat:=AValue;
  5827. MarkPropertyChanged(AIndex);
  5828. end;
  5829. { --------------------------------------------------------------------
  5830. TAppendDimensionRequest
  5831. --------------------------------------------------------------------}
  5832. Procedure TAppendDimensionRequest.SetsheetId(AIndex : Integer; const AValue : integer);
  5833. begin
  5834. If (FsheetId=AValue) then exit;
  5835. FsheetId:=AValue;
  5836. MarkPropertyChanged(AIndex);
  5837. end;
  5838. Procedure TAppendDimensionRequest.Set_length(AIndex : Integer; const AValue : integer);
  5839. begin
  5840. If (F_length=AValue) then exit;
  5841. F_length:=AValue;
  5842. MarkPropertyChanged(AIndex);
  5843. end;
  5844. Procedure TAppendDimensionRequest.Setdimension(AIndex : Integer; const AValue : String);
  5845. begin
  5846. If (Fdimension=AValue) then exit;
  5847. Fdimension:=AValue;
  5848. MarkPropertyChanged(AIndex);
  5849. end;
  5850. Class Function TAppendDimensionRequest.ExportPropertyName(Const AName : String) :String;
  5851. begin
  5852. Case AName of
  5853. '_length' : Result:='length';
  5854. else
  5855. Result:=Inherited ExportPropertyName(AName);
  5856. end;
  5857. end;
  5858. { --------------------------------------------------------------------
  5859. TAddFilterViewRequest
  5860. --------------------------------------------------------------------}
  5861. Procedure TAddFilterViewRequest.Setfilter(AIndex : Integer; const AValue : TFilterView);
  5862. begin
  5863. If (Ffilter=AValue) then exit;
  5864. Ffilter:=AValue;
  5865. MarkPropertyChanged(AIndex);
  5866. end;
  5867. { --------------------------------------------------------------------
  5868. TGridProperties
  5869. --------------------------------------------------------------------}
  5870. Procedure TGridProperties.SetrowCount(AIndex : Integer; const AValue : integer);
  5871. begin
  5872. If (FrowCount=AValue) then exit;
  5873. FrowCount:=AValue;
  5874. MarkPropertyChanged(AIndex);
  5875. end;
  5876. Procedure TGridProperties.SetcolumnCount(AIndex : Integer; const AValue : integer);
  5877. begin
  5878. If (FcolumnCount=AValue) then exit;
  5879. FcolumnCount:=AValue;
  5880. MarkPropertyChanged(AIndex);
  5881. end;
  5882. Procedure TGridProperties.SetfrozenRowCount(AIndex : Integer; const AValue : integer);
  5883. begin
  5884. If (FfrozenRowCount=AValue) then exit;
  5885. FfrozenRowCount:=AValue;
  5886. MarkPropertyChanged(AIndex);
  5887. end;
  5888. Procedure TGridProperties.SetfrozenColumnCount(AIndex : Integer; const AValue : integer);
  5889. begin
  5890. If (FfrozenColumnCount=AValue) then exit;
  5891. FfrozenColumnCount:=AValue;
  5892. MarkPropertyChanged(AIndex);
  5893. end;
  5894. Procedure TGridProperties.SethideGridlines(AIndex : Integer; const AValue : boolean);
  5895. begin
  5896. If (FhideGridlines=AValue) then exit;
  5897. FhideGridlines:=AValue;
  5898. MarkPropertyChanged(AIndex);
  5899. end;
  5900. { --------------------------------------------------------------------
  5901. TDeleteNamedRangeRequest
  5902. --------------------------------------------------------------------}
  5903. Procedure TDeleteNamedRangeRequest.SetnamedRangeId(AIndex : Integer; const AValue : String);
  5904. begin
  5905. If (FnamedRangeId=AValue) then exit;
  5906. FnamedRangeId:=AValue;
  5907. MarkPropertyChanged(AIndex);
  5908. end;
  5909. { --------------------------------------------------------------------
  5910. TAddChartRequest
  5911. --------------------------------------------------------------------}
  5912. Procedure TAddChartRequest.Setchart(AIndex : Integer; const AValue : TEmbeddedChart);
  5913. begin
  5914. If (Fchart=AValue) then exit;
  5915. Fchart:=AValue;
  5916. MarkPropertyChanged(AIndex);
  5917. end;
  5918. { --------------------------------------------------------------------
  5919. TSetDataValidationRequest
  5920. --------------------------------------------------------------------}
  5921. Procedure TSetDataValidationRequest.Setrule(AIndex : Integer; const AValue : TDataValidationRule);
  5922. begin
  5923. If (Frule=AValue) then exit;
  5924. Frule:=AValue;
  5925. MarkPropertyChanged(AIndex);
  5926. end;
  5927. Procedure TSetDataValidationRequest.Setrange(AIndex : Integer; const AValue : TGridRange);
  5928. begin
  5929. If (Frange=AValue) then exit;
  5930. Frange:=AValue;
  5931. MarkPropertyChanged(AIndex);
  5932. end;
  5933. { --------------------------------------------------------------------
  5934. TRequest
  5935. --------------------------------------------------------------------}
  5936. Procedure TRequest.SetupdateEmbeddedObjectPosition(AIndex : Integer; const AValue : TUpdateEmbeddedObjectPositionRequest);
  5937. begin
  5938. If (FupdateEmbeddedObjectPosition=AValue) then exit;
  5939. FupdateEmbeddedObjectPosition:=AValue;
  5940. MarkPropertyChanged(AIndex);
  5941. end;
  5942. Procedure TRequest.SetdeleteNamedRange(AIndex : Integer; const AValue : TDeleteNamedRangeRequest);
  5943. begin
  5944. If (FdeleteNamedRange=AValue) then exit;
  5945. FdeleteNamedRange:=AValue;
  5946. MarkPropertyChanged(AIndex);
  5947. end;
  5948. Procedure TRequest.SetupdateNamedRange(AIndex : Integer; const AValue : TUpdateNamedRangeRequest);
  5949. begin
  5950. If (FupdateNamedRange=AValue) then exit;
  5951. FupdateNamedRange:=AValue;
  5952. MarkPropertyChanged(AIndex);
  5953. end;
  5954. Procedure TRequest.SetaddFilterView(AIndex : Integer; const AValue : TAddFilterViewRequest);
  5955. begin
  5956. If (FaddFilterView=AValue) then exit;
  5957. FaddFilterView:=AValue;
  5958. MarkPropertyChanged(AIndex);
  5959. end;
  5960. Procedure TRequest.SetupdateSpreadsheetProperties(AIndex : Integer; const AValue : TUpdateSpreadsheetPropertiesRequest);
  5961. begin
  5962. If (FupdateSpreadsheetProperties=AValue) then exit;
  5963. FupdateSpreadsheetProperties:=AValue;
  5964. MarkPropertyChanged(AIndex);
  5965. end;
  5966. Procedure TRequest.SetappendDimension(AIndex : Integer; const AValue : TAppendDimensionRequest);
  5967. begin
  5968. If (FappendDimension=AValue) then exit;
  5969. FappendDimension:=AValue;
  5970. MarkPropertyChanged(AIndex);
  5971. end;
  5972. Procedure TRequest.SetunmergeCells(AIndex : Integer; const AValue : TUnmergeCellsRequest);
  5973. begin
  5974. If (FunmergeCells=AValue) then exit;
  5975. FunmergeCells:=AValue;
  5976. MarkPropertyChanged(AIndex);
  5977. end;
  5978. Procedure TRequest.SetupdateProtectedRange(AIndex : Integer; const AValue : TUpdateProtectedRangeRequest);
  5979. begin
  5980. If (FupdateProtectedRange=AValue) then exit;
  5981. FupdateProtectedRange:=AValue;
  5982. MarkPropertyChanged(AIndex);
  5983. end;
  5984. Procedure TRequest.SetdeleteFilterView(AIndex : Integer; const AValue : TDeleteFilterViewRequest);
  5985. begin
  5986. If (FdeleteFilterView=AValue) then exit;
  5987. FdeleteFilterView:=AValue;
  5988. MarkPropertyChanged(AIndex);
  5989. end;
  5990. Procedure TRequest.SetclearBasicFilter(AIndex : Integer; const AValue : TClearBasicFilterRequest);
  5991. begin
  5992. If (FclearBasicFilter=AValue) then exit;
  5993. FclearBasicFilter:=AValue;
  5994. MarkPropertyChanged(AIndex);
  5995. end;
  5996. Procedure TRequest.SetsortRange(AIndex : Integer; const AValue : TSortRangeRequest);
  5997. begin
  5998. If (FsortRange=AValue) then exit;
  5999. FsortRange:=AValue;
  6000. MarkPropertyChanged(AIndex);
  6001. end;
  6002. Procedure TRequest.SetrepeatCell(AIndex : Integer; const AValue : TRepeatCellRequest);
  6003. begin
  6004. If (FrepeatCell=AValue) then exit;
  6005. FrepeatCell:=AValue;
  6006. MarkPropertyChanged(AIndex);
  6007. end;
  6008. Procedure TRequest.SetsetDataValidation(AIndex : Integer; const AValue : TSetDataValidationRequest);
  6009. begin
  6010. If (FsetDataValidation=AValue) then exit;
  6011. FsetDataValidation:=AValue;
  6012. MarkPropertyChanged(AIndex);
  6013. end;
  6014. Procedure TRequest.SetupdateCells(AIndex : Integer; const AValue : TUpdateCellsRequest);
  6015. begin
  6016. If (FupdateCells=AValue) then exit;
  6017. FupdateCells:=AValue;
  6018. MarkPropertyChanged(AIndex);
  6019. end;
  6020. Procedure TRequest.SetaddSheet(AIndex : Integer; const AValue : TAddSheetRequest);
  6021. begin
  6022. If (FaddSheet=AValue) then exit;
  6023. FaddSheet:=AValue;
  6024. MarkPropertyChanged(AIndex);
  6025. end;
  6026. Procedure TRequest.SetupdateFilterView(AIndex : Integer; const AValue : TUpdateFilterViewRequest);
  6027. begin
  6028. If (FupdateFilterView=AValue) then exit;
  6029. FupdateFilterView:=AValue;
  6030. MarkPropertyChanged(AIndex);
  6031. end;
  6032. Procedure TRequest.SetupdateSheetProperties(AIndex : Integer; const AValue : TUpdateSheetPropertiesRequest);
  6033. begin
  6034. If (FupdateSheetProperties=AValue) then exit;
  6035. FupdateSheetProperties:=AValue;
  6036. MarkPropertyChanged(AIndex);
  6037. end;
  6038. Procedure TRequest.SetupdateDimensionProperties(AIndex : Integer; const AValue : TUpdateDimensionPropertiesRequest);
  6039. begin
  6040. If (FupdateDimensionProperties=AValue) then exit;
  6041. FupdateDimensionProperties:=AValue;
  6042. MarkPropertyChanged(AIndex);
  6043. end;
  6044. Procedure TRequest.SetdeleteSheet(AIndex : Integer; const AValue : TDeleteSheetRequest);
  6045. begin
  6046. If (FdeleteSheet=AValue) then exit;
  6047. FdeleteSheet:=AValue;
  6048. MarkPropertyChanged(AIndex);
  6049. end;
  6050. Procedure TRequest.SetfindReplace(AIndex : Integer; const AValue : TFindReplaceRequest);
  6051. begin
  6052. If (FfindReplace=AValue) then exit;
  6053. FfindReplace:=AValue;
  6054. MarkPropertyChanged(AIndex);
  6055. end;
  6056. Procedure TRequest.SetaddProtectedRange(AIndex : Integer; const AValue : TAddProtectedRangeRequest);
  6057. begin
  6058. If (FaddProtectedRange=AValue) then exit;
  6059. FaddProtectedRange:=AValue;
  6060. MarkPropertyChanged(AIndex);
  6061. end;
  6062. Procedure TRequest.SetdeleteProtectedRange(AIndex : Integer; const AValue : TDeleteProtectedRangeRequest);
  6063. begin
  6064. If (FdeleteProtectedRange=AValue) then exit;
  6065. FdeleteProtectedRange:=AValue;
  6066. MarkPropertyChanged(AIndex);
  6067. end;
  6068. Procedure TRequest.SetupdateConditionalFormatRule(AIndex : Integer; const AValue : TUpdateConditionalFormatRuleRequest);
  6069. begin
  6070. If (FupdateConditionalFormatRule=AValue) then exit;
  6071. FupdateConditionalFormatRule:=AValue;
  6072. MarkPropertyChanged(AIndex);
  6073. end;
  6074. Procedure TRequest.SetsetBasicFilter(AIndex : Integer; const AValue : TSetBasicFilterRequest);
  6075. begin
  6076. If (FsetBasicFilter=AValue) then exit;
  6077. FsetBasicFilter:=AValue;
  6078. MarkPropertyChanged(AIndex);
  6079. end;
  6080. Procedure TRequest.SetmergeCells(AIndex : Integer; const AValue : TMergeCellsRequest);
  6081. begin
  6082. If (FmergeCells=AValue) then exit;
  6083. FmergeCells:=AValue;
  6084. MarkPropertyChanged(AIndex);
  6085. end;
  6086. Procedure TRequest.SetaddChart(AIndex : Integer; const AValue : TAddChartRequest);
  6087. begin
  6088. If (FaddChart=AValue) then exit;
  6089. FaddChart:=AValue;
  6090. MarkPropertyChanged(AIndex);
  6091. end;
  6092. Procedure TRequest.SetdeleteConditionalFormatRule(AIndex : Integer; const AValue : TDeleteConditionalFormatRuleRequest);
  6093. begin
  6094. If (FdeleteConditionalFormatRule=AValue) then exit;
  6095. FdeleteConditionalFormatRule:=AValue;
  6096. MarkPropertyChanged(AIndex);
  6097. end;
  6098. Procedure TRequest.SetupdateChartSpec(AIndex : Integer; const AValue : TUpdateChartSpecRequest);
  6099. begin
  6100. If (FupdateChartSpec=AValue) then exit;
  6101. FupdateChartSpec:=AValue;
  6102. MarkPropertyChanged(AIndex);
  6103. end;
  6104. Procedure TRequest.SetdeleteDimension(AIndex : Integer; const AValue : TDeleteDimensionRequest);
  6105. begin
  6106. If (FdeleteDimension=AValue) then exit;
  6107. FdeleteDimension:=AValue;
  6108. MarkPropertyChanged(AIndex);
  6109. end;
  6110. Procedure TRequest.SetdeleteEmbeddedObject(AIndex : Integer; const AValue : TDeleteEmbeddedObjectRequest);
  6111. begin
  6112. If (FdeleteEmbeddedObject=AValue) then exit;
  6113. FdeleteEmbeddedObject:=AValue;
  6114. MarkPropertyChanged(AIndex);
  6115. end;
  6116. Procedure TRequest.SetpasteData(AIndex : Integer; const AValue : TPasteDataRequest);
  6117. begin
  6118. If (FpasteData=AValue) then exit;
  6119. FpasteData:=AValue;
  6120. MarkPropertyChanged(AIndex);
  6121. end;
  6122. Procedure TRequest.SetaddConditionalFormatRule(AIndex : Integer; const AValue : TAddConditionalFormatRuleRequest);
  6123. begin
  6124. If (FaddConditionalFormatRule=AValue) then exit;
  6125. FaddConditionalFormatRule:=AValue;
  6126. MarkPropertyChanged(AIndex);
  6127. end;
  6128. Procedure TRequest.SetupdateBorders(AIndex : Integer; const AValue : TUpdateBordersRequest);
  6129. begin
  6130. If (FupdateBorders=AValue) then exit;
  6131. FupdateBorders:=AValue;
  6132. MarkPropertyChanged(AIndex);
  6133. end;
  6134. Procedure TRequest.SetautoResizeDimensions(AIndex : Integer; const AValue : TAutoResizeDimensionsRequest);
  6135. begin
  6136. If (FautoResizeDimensions=AValue) then exit;
  6137. FautoResizeDimensions:=AValue;
  6138. MarkPropertyChanged(AIndex);
  6139. end;
  6140. Procedure TRequest.SetduplicateSheet(AIndex : Integer; const AValue : TDuplicateSheetRequest);
  6141. begin
  6142. If (FduplicateSheet=AValue) then exit;
  6143. FduplicateSheet:=AValue;
  6144. MarkPropertyChanged(AIndex);
  6145. end;
  6146. Procedure TRequest.SetduplicateFilterView(AIndex : Integer; const AValue : TDuplicateFilterViewRequest);
  6147. begin
  6148. If (FduplicateFilterView=AValue) then exit;
  6149. FduplicateFilterView:=AValue;
  6150. MarkPropertyChanged(AIndex);
  6151. end;
  6152. Procedure TRequest.SetcutPaste(AIndex : Integer; const AValue : TCutPasteRequest);
  6153. begin
  6154. If (FcutPaste=AValue) then exit;
  6155. FcutPaste:=AValue;
  6156. MarkPropertyChanged(AIndex);
  6157. end;
  6158. Procedure TRequest.SetappendCells(AIndex : Integer; const AValue : TAppendCellsRequest);
  6159. begin
  6160. If (FappendCells=AValue) then exit;
  6161. FappendCells:=AValue;
  6162. MarkPropertyChanged(AIndex);
  6163. end;
  6164. Procedure TRequest.SetaddNamedRange(AIndex : Integer; const AValue : TAddNamedRangeRequest);
  6165. begin
  6166. If (FaddNamedRange=AValue) then exit;
  6167. FaddNamedRange:=AValue;
  6168. MarkPropertyChanged(AIndex);
  6169. end;
  6170. Procedure TRequest.SetautoFill(AIndex : Integer; const AValue : TAutoFillRequest);
  6171. begin
  6172. If (FautoFill=AValue) then exit;
  6173. FautoFill:=AValue;
  6174. MarkPropertyChanged(AIndex);
  6175. end;
  6176. Procedure TRequest.SetmoveDimension(AIndex : Integer; const AValue : TMoveDimensionRequest);
  6177. begin
  6178. If (FmoveDimension=AValue) then exit;
  6179. FmoveDimension:=AValue;
  6180. MarkPropertyChanged(AIndex);
  6181. end;
  6182. Procedure TRequest.SettextToColumns(AIndex : Integer; const AValue : TTextToColumnsRequest);
  6183. begin
  6184. If (FtextToColumns=AValue) then exit;
  6185. FtextToColumns:=AValue;
  6186. MarkPropertyChanged(AIndex);
  6187. end;
  6188. Procedure TRequest.SetinsertDimension(AIndex : Integer; const AValue : TInsertDimensionRequest);
  6189. begin
  6190. If (FinsertDimension=AValue) then exit;
  6191. FinsertDimension:=AValue;
  6192. MarkPropertyChanged(AIndex);
  6193. end;
  6194. Procedure TRequest.SetcopyPaste(AIndex : Integer; const AValue : TCopyPasteRequest);
  6195. begin
  6196. If (FcopyPaste=AValue) then exit;
  6197. FcopyPaste:=AValue;
  6198. MarkPropertyChanged(AIndex);
  6199. end;
  6200. { --------------------------------------------------------------------
  6201. TBatchGetValuesResponse
  6202. --------------------------------------------------------------------}
  6203. Procedure TBatchGetValuesResponse.SetvalueRanges(AIndex : Integer; const AValue : TBatchGetValuesResponseTypevalueRangesArray);
  6204. begin
  6205. If (FvalueRanges=AValue) then exit;
  6206. FvalueRanges:=AValue;
  6207. MarkPropertyChanged(AIndex);
  6208. end;
  6209. Procedure TBatchGetValuesResponse.SetspreadsheetId(AIndex : Integer; const AValue : String);
  6210. begin
  6211. If (FspreadsheetId=AValue) then exit;
  6212. FspreadsheetId:=AValue;
  6213. MarkPropertyChanged(AIndex);
  6214. end;
  6215. //2.6.4. bug workaround
  6216. {$IFDEF VER2_6}
  6217. Procedure TBatchGetValuesResponse.SetArrayLength(Const AName : String; ALength : Longint);
  6218. begin
  6219. Case AName of
  6220. 'valueranges' : SetLength(FvalueRanges,ALength);
  6221. else
  6222. Inherited SetArrayLength(AName,ALength);
  6223. end;
  6224. end;
  6225. {$ENDIF VER2_6}
  6226. { --------------------------------------------------------------------
  6227. TInsertDimensionRequest
  6228. --------------------------------------------------------------------}
  6229. Procedure TInsertDimensionRequest.SetinheritFromBefore(AIndex : Integer; const AValue : boolean);
  6230. begin
  6231. If (FinheritFromBefore=AValue) then exit;
  6232. FinheritFromBefore:=AValue;
  6233. MarkPropertyChanged(AIndex);
  6234. end;
  6235. Procedure TInsertDimensionRequest.Setrange(AIndex : Integer; const AValue : TDimensionRange);
  6236. begin
  6237. If (Frange=AValue) then exit;
  6238. Frange:=AValue;
  6239. MarkPropertyChanged(AIndex);
  6240. end;
  6241. { --------------------------------------------------------------------
  6242. TDeleteEmbeddedObjectRequest
  6243. --------------------------------------------------------------------}
  6244. Procedure TDeleteEmbeddedObjectRequest.SetobjectId(AIndex : Integer; const AValue : integer);
  6245. begin
  6246. If (FobjectId=AValue) then exit;
  6247. FobjectId:=AValue;
  6248. MarkPropertyChanged(AIndex);
  6249. end;
  6250. { --------------------------------------------------------------------
  6251. TDeleteConditionalFormatRuleResponse
  6252. --------------------------------------------------------------------}
  6253. Procedure TDeleteConditionalFormatRuleResponse.Setrule(AIndex : Integer; const AValue : TConditionalFormatRule);
  6254. begin
  6255. If (Frule=AValue) then exit;
  6256. Frule:=AValue;
  6257. MarkPropertyChanged(AIndex);
  6258. end;
  6259. { --------------------------------------------------------------------
  6260. TSpreadsheetsValuesResource
  6261. --------------------------------------------------------------------}
  6262. Class Function TSpreadsheetsValuesResource.ResourceName : String;
  6263. begin
  6264. Result:='values';
  6265. end;
  6266. Class Function TSpreadsheetsValuesResource.DefaultAPI : TGoogleAPIClass;
  6267. begin
  6268. Result:=TsheetsAPI;
  6269. end;
  6270. Function TSpreadsheetsValuesResource.Update(spreadsheetId: string; range: string; aValueRange : TValueRange; AQuery : string = '') : TUpdateValuesResponse;
  6271. Const
  6272. _HTTPMethod = 'PUT';
  6273. _Path = 'v4/spreadsheets/{spreadsheetId}/values/{range}';
  6274. _Methodid = 'sheets.spreadsheets.values.update';
  6275. Var
  6276. _P : String;
  6277. begin
  6278. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId,'range',range]);
  6279. Result:=ServiceCall(_HTTPMethod,_P,AQuery,aValueRange,TUpdateValuesResponse) as TUpdateValuesResponse;
  6280. end;
  6281. Function TSpreadsheetsValuesResource.Update(spreadsheetId: string; range: string; aValueRange : TValueRange; AQuery : TSpreadsheetsValuesupdateOptions) : TUpdateValuesResponse;
  6282. Var
  6283. _Q : String;
  6284. begin
  6285. _Q:='';
  6286. AddToQuery(_Q,'valueInputOption',AQuery.valueInputOption);
  6287. Result:=Update(spreadsheetId,range,aValueRange,_Q);
  6288. end;
  6289. Function TSpreadsheetsValuesResource.Get(spreadsheetId: string; range: string; AQuery : string = '') : TValueRange;
  6290. Const
  6291. _HTTPMethod = 'GET';
  6292. _Path = 'v4/spreadsheets/{spreadsheetId}/values/{range}';
  6293. _Methodid = 'sheets.spreadsheets.values.get';
  6294. Var
  6295. _P : String;
  6296. begin
  6297. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId,'range',range]);
  6298. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TValueRange) as TValueRange;
  6299. end;
  6300. Function TSpreadsheetsValuesResource.Get(spreadsheetId: string; range: string; AQuery : TSpreadsheetsValuesgetOptions) : TValueRange;
  6301. Var
  6302. _Q : String;
  6303. begin
  6304. _Q:='';
  6305. AddToQuery(_Q,'valueRenderOption',AQuery.valueRenderOption);
  6306. AddToQuery(_Q,'dateTimeRenderOption',AQuery.dateTimeRenderOption);
  6307. AddToQuery(_Q,'majorDimension',AQuery.majorDimension);
  6308. Result:=Get(spreadsheetId,range,_Q);
  6309. end;
  6310. Function TSpreadsheetsValuesResource.BatchGet(spreadsheetId: string; AQuery : string = '') : TBatchGetValuesResponse;
  6311. Const
  6312. _HTTPMethod = 'GET';
  6313. _Path = 'v4/spreadsheets/{spreadsheetId}/values:batchGet';
  6314. _Methodid = 'sheets.spreadsheets.values.batchGet';
  6315. Var
  6316. _P : String;
  6317. begin
  6318. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId]);
  6319. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TBatchGetValuesResponse) as TBatchGetValuesResponse;
  6320. end;
  6321. Function TSpreadsheetsValuesResource.BatchGet(spreadsheetId: string; AQuery : TSpreadsheetsValuesbatchGetOptions) : TBatchGetValuesResponse;
  6322. Var
  6323. _Q : String;
  6324. begin
  6325. _Q:='';
  6326. AddToQuery(_Q,'ranges',AQuery.ranges);
  6327. AddToQuery(_Q,'valueRenderOption',AQuery.valueRenderOption);
  6328. AddToQuery(_Q,'dateTimeRenderOption',AQuery.dateTimeRenderOption);
  6329. AddToQuery(_Q,'majorDimension',AQuery.majorDimension);
  6330. Result:=BatchGet(spreadsheetId,_Q);
  6331. end;
  6332. Function TSpreadsheetsValuesResource.BatchUpdate(spreadsheetId: string; aBatchUpdateValuesRequest : TBatchUpdateValuesRequest) : TBatchUpdateValuesResponse;
  6333. Const
  6334. _HTTPMethod = 'POST';
  6335. _Path = 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate';
  6336. _Methodid = 'sheets.spreadsheets.values.batchUpdate';
  6337. Var
  6338. _P : String;
  6339. begin
  6340. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId]);
  6341. Result:=ServiceCall(_HTTPMethod,_P,'',aBatchUpdateValuesRequest,TBatchUpdateValuesResponse) as TBatchUpdateValuesResponse;
  6342. end;
  6343. { --------------------------------------------------------------------
  6344. TSpreadsheetsSheetsResource
  6345. --------------------------------------------------------------------}
  6346. Class Function TSpreadsheetsSheetsResource.ResourceName : String;
  6347. begin
  6348. Result:='sheets';
  6349. end;
  6350. Class Function TSpreadsheetsSheetsResource.DefaultAPI : TGoogleAPIClass;
  6351. begin
  6352. Result:=TsheetsAPI;
  6353. end;
  6354. Function TSpreadsheetsSheetsResource.CopyTo(sheetId: integer; spreadsheetId: string; aCopySheetToAnotherSpreadsheetRequest : TCopySheetToAnotherSpreadsheetRequest) : TSheetProperties;
  6355. Const
  6356. _HTTPMethod = 'POST';
  6357. _Path = 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo';
  6358. _Methodid = 'sheets.spreadsheets.sheets.copyTo';
  6359. Var
  6360. _P : String;
  6361. begin
  6362. _P:=SubstitutePath(_Path,['sheetId',sheetId,'spreadsheetId',spreadsheetId]);
  6363. Result:=ServiceCall(_HTTPMethod,_P,'',aCopySheetToAnotherSpreadsheetRequest,TSheetProperties) as TSheetProperties;
  6364. end;
  6365. { --------------------------------------------------------------------
  6366. TSpreadsheetsResource
  6367. --------------------------------------------------------------------}
  6368. Class Function TSpreadsheetsResource.ResourceName : String;
  6369. begin
  6370. Result:='spreadsheets';
  6371. end;
  6372. Class Function TSpreadsheetsResource.DefaultAPI : TGoogleAPIClass;
  6373. begin
  6374. Result:=TsheetsAPI;
  6375. end;
  6376. Function TSpreadsheetsResource.Create(aSpreadsheet : TSpreadsheet) : TSpreadsheet;
  6377. Const
  6378. _HTTPMethod = 'POST';
  6379. _Path = 'v4/spreadsheets';
  6380. _Methodid = 'sheets.spreadsheets.create';
  6381. begin
  6382. Result:=ServiceCall(_HTTPMethod,_Path,'',aSpreadsheet,TSpreadsheet) as TSpreadsheet;
  6383. end;
  6384. Function TSpreadsheetsResource.Get(spreadsheetId: string; AQuery : string = '') : TSpreadsheet;
  6385. Const
  6386. _HTTPMethod = 'GET';
  6387. _Path = 'v4/spreadsheets/{spreadsheetId}';
  6388. _Methodid = 'sheets.spreadsheets.get';
  6389. Var
  6390. _P : String;
  6391. begin
  6392. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId]);
  6393. Result:=ServiceCall(_HTTPMethod,_P,AQuery,Nil,TSpreadsheet) as TSpreadsheet;
  6394. end;
  6395. Function TSpreadsheetsResource.Get(spreadsheetId: string; AQuery : TSpreadsheetsgetOptions) : TSpreadsheet;
  6396. Var
  6397. _Q : String;
  6398. begin
  6399. _Q:='';
  6400. AddToQuery(_Q,'ranges',AQuery.ranges);
  6401. AddToQuery(_Q,'includeGridData',AQuery.includeGridData);
  6402. Result:=Get(spreadsheetId,_Q);
  6403. end;
  6404. Function TSpreadsheetsResource.BatchUpdate(spreadsheetId: string; aBatchUpdateSpreadsheetRequest : TBatchUpdateSpreadsheetRequest) : TBatchUpdateSpreadsheetResponse;
  6405. Const
  6406. _HTTPMethod = 'POST';
  6407. _Path = 'v4/spreadsheets/{spreadsheetId}:batchUpdate';
  6408. _Methodid = 'sheets.spreadsheets.batchUpdate';
  6409. Var
  6410. _P : String;
  6411. begin
  6412. _P:=SubstitutePath(_Path,['spreadsheetId',spreadsheetId]);
  6413. Result:=ServiceCall(_HTTPMethod,_P,'',aBatchUpdateSpreadsheetRequest,TBatchUpdateSpreadsheetResponse) as TBatchUpdateSpreadsheetResponse;
  6414. end;
  6415. Function TSpreadsheetsResource.GetValuesInstance : TSpreadsheetsValuesResource;
  6416. begin
  6417. if (FValuesInstance=Nil) then
  6418. FValuesInstance:=CreateValuesResource;
  6419. Result:=FValuesInstance;
  6420. end;
  6421. Function TSpreadsheetsResource.CreateValuesResource : TSpreadsheetsValuesResource;
  6422. begin
  6423. Result:=CreateValuesResource(Self);
  6424. end;
  6425. Function TSpreadsheetsResource.CreateValuesResource(AOwner : TComponent) : TSpreadsheetsValuesResource;
  6426. begin
  6427. Result:=TSpreadsheetsValuesResource.Create(AOwner);
  6428. Result.API:=Self.API;
  6429. end;
  6430. Function TSpreadsheetsResource.GetSheetsInstance : TSpreadsheetsSheetsResource;
  6431. begin
  6432. if (FSheetsInstance=Nil) then
  6433. FSheetsInstance:=CreateSheetsResource;
  6434. Result:=FSheetsInstance;
  6435. end;
  6436. Function TSpreadsheetsResource.CreateSheetsResource : TSpreadsheetsSheetsResource;
  6437. begin
  6438. Result:=CreateSheetsResource(Self);
  6439. end;
  6440. Function TSpreadsheetsResource.CreateSheetsResource(AOwner : TComponent) : TSpreadsheetsSheetsResource;
  6441. begin
  6442. Result:=TSpreadsheetsSheetsResource.Create(AOwner);
  6443. Result.API:=Self.API;
  6444. end;
  6445. { --------------------------------------------------------------------
  6446. TSheetsAPI
  6447. --------------------------------------------------------------------}
  6448. Class Function TSheetsAPI.APIName : String;
  6449. begin
  6450. Result:='sheets';
  6451. end;
  6452. Class Function TSheetsAPI.APIVersion : String;
  6453. begin
  6454. Result:='v4';
  6455. end;
  6456. Class Function TSheetsAPI.APIRevision : String;
  6457. begin
  6458. Result:='20160519';
  6459. end;
  6460. Class Function TSheetsAPI.APIID : String;
  6461. begin
  6462. Result:='sheets:v4';
  6463. end;
  6464. Class Function TSheetsAPI.APITitle : String;
  6465. begin
  6466. Result:='Google Sheets API';
  6467. end;
  6468. Class Function TSheetsAPI.APIDescription : String;
  6469. begin
  6470. Result:='Reads and writes Google Sheets.';
  6471. end;
  6472. Class Function TSheetsAPI.APIOwnerDomain : String;
  6473. begin
  6474. Result:='google.com';
  6475. end;
  6476. Class Function TSheetsAPI.APIOwnerName : String;
  6477. begin
  6478. Result:='Google';
  6479. end;
  6480. Class Function TSheetsAPI.APIIcon16 : String;
  6481. begin
  6482. Result:='http://www.google.com/images/icons/product/search-16.gif';
  6483. end;
  6484. Class Function TSheetsAPI.APIIcon32 : String;
  6485. begin
  6486. Result:='http://www.google.com/images/icons/product/search-32.gif';
  6487. end;
  6488. Class Function TSheetsAPI.APIdocumentationLink : String;
  6489. begin
  6490. Result:='https://developers.google.com/sheets/';
  6491. end;
  6492. Class Function TSheetsAPI.APIrootUrl : string;
  6493. begin
  6494. Result:='https://sheets.googleapis.com/';
  6495. end;
  6496. Class Function TSheetsAPI.APIbasePath : string;
  6497. begin
  6498. Result:='';
  6499. end;
  6500. Class Function TSheetsAPI.APIbaseURL : String;
  6501. begin
  6502. Result:='https://sheets.googleapis.com/';
  6503. end;
  6504. Class Function TSheetsAPI.APIProtocol : string;
  6505. begin
  6506. Result:='rest';
  6507. end;
  6508. Class Function TSheetsAPI.APIservicePath : string;
  6509. begin
  6510. Result:='';
  6511. end;
  6512. Class Function TSheetsAPI.APIbatchPath : String;
  6513. begin
  6514. Result:='batch';
  6515. end;
  6516. Class Function TSheetsAPI.APIAuthScopes : TScopeInfoArray;
  6517. begin
  6518. SetLength(Result,4);
  6519. Result[0].Name:='https://www.googleapis.com/auth/drive.readonly';
  6520. Result[0].Description:='View the files in your Google Drive';
  6521. Result[1].Name:='https://www.googleapis.com/auth/spreadsheets.readonly';
  6522. Result[1].Description:='View your Google Spreadsheets';
  6523. Result[2].Name:='https://www.googleapis.com/auth/drive';
  6524. Result[2].Description:='View and manage the files in your Google Drive';
  6525. Result[3].Name:='https://www.googleapis.com/auth/spreadsheets';
  6526. Result[3].Description:='View and manage your spreadsheets in Google Drive';
  6527. end;
  6528. Class Function TSheetsAPI.APINeedsAuth : Boolean;
  6529. begin
  6530. Result:=True;
  6531. end;
  6532. Class Procedure TSheetsAPI.RegisterAPIResources;
  6533. begin
  6534. TAddNamedRangeResponse.RegisterObject;
  6535. TUpdateProtectedRangeRequest.RegisterObject;
  6536. TPadding.RegisterObject;
  6537. TMergeCellsRequest.RegisterObject;
  6538. TAddSheetResponse.RegisterObject;
  6539. TPivotGroupValueMetadata.RegisterObject;
  6540. TUpdateEmbeddedObjectPositionResponse.RegisterObject;
  6541. TUpdateConditionalFormatRuleRequest.RegisterObject;
  6542. TTextFormat.RegisterObject;
  6543. TUpdateChartSpecRequest.RegisterObject;
  6544. TGridCoordinate.RegisterObject;
  6545. TDeleteFilterViewRequest.RegisterObject;
  6546. TBatchUpdateValuesResponse.RegisterObject;
  6547. TUpdateNamedRangeRequest.RegisterObject;
  6548. TUpdateValuesResponse.RegisterObject;
  6549. TSpreadsheetProperties.RegisterObject;
  6550. TCellData.RegisterObject;
  6551. TUnmergeCellsRequest.RegisterObject;
  6552. TTextToColumnsRequest.RegisterObject;
  6553. TAddProtectedRangeResponse.RegisterObject;
  6554. TBooleanCondition.RegisterObject;
  6555. TDeleteProtectedRangeRequest.RegisterObject;
  6556. TBasicChartDomain.RegisterObject;
  6557. TDimensionRange.RegisterObject;
  6558. TResponse.RegisterObject;
  6559. TAddConditionalFormatRuleRequest.RegisterObject;
  6560. TFilterViewTypecriteria.RegisterObject;
  6561. TFilterView.RegisterObject;
  6562. TSortRangeRequest.RegisterObject;
  6563. TTextFormatRun.RegisterObject;
  6564. TUpdateFilterViewRequest.RegisterObject;
  6565. TUpdateConditionalFormatRuleResponse.RegisterObject;
  6566. TFilterCriteria.RegisterObject;
  6567. TDeleteDimensionRequest.RegisterObject;
  6568. TPivotTableTypecriteria.RegisterObject;
  6569. TPivotTable.RegisterObject;
  6570. TDataValidationRule.RegisterObject;
  6571. TUpdateSpreadsheetPropertiesRequest.RegisterObject;
  6572. TChartSourceRange.RegisterObject;
  6573. TBatchUpdateValuesRequest.RegisterObject;
  6574. TClearBasicFilterRequest.RegisterObject;
  6575. TConditionalFormatRule.RegisterObject;
  6576. TUpdateBordersRequest.RegisterObject;
  6577. TPivotFilterCriteria.RegisterObject;
  6578. TBorders.RegisterObject;
  6579. TEmbeddedChart.RegisterObject;
  6580. TColor.RegisterObject;
  6581. TAddSheetRequest.RegisterObject;
  6582. TAddProtectedRangeRequest.RegisterObject;
  6583. TValueRange.RegisterObject;
  6584. TFindReplaceResponse.RegisterObject;
  6585. TCellFormat.RegisterObject;
  6586. TMoveDimensionRequest.RegisterObject;
  6587. TBasicChartAxis.RegisterObject;
  6588. TPivotGroupSortValueBucket.RegisterObject;
  6589. TDimensionProperties.RegisterObject;
  6590. TEmbeddedObjectPosition.RegisterObject;
  6591. TInterpolationPoint.RegisterObject;
  6592. TErrorValue.RegisterObject;
  6593. TDuplicateFilterViewRequest.RegisterObject;
  6594. TBatchUpdateSpreadsheetRequest.RegisterObject;
  6595. TSheetProperties.RegisterObject;
  6596. TProtectedRange.RegisterObject;
  6597. TDeleteConditionalFormatRuleRequest.RegisterObject;
  6598. TChartSpec.RegisterObject;
  6599. TSourceAndDestination.RegisterObject;
  6600. TConditionValue.RegisterObject;
  6601. TPasteDataRequest.RegisterObject;
  6602. TFindReplaceRequest.RegisterObject;
  6603. TSortSpec.RegisterObject;
  6604. TCopySheetToAnotherSpreadsheetRequest.RegisterObject;
  6605. TNumberFormat.RegisterObject;
  6606. TUpdateDimensionPropertiesRequest.RegisterObject;
  6607. TEditors.RegisterObject;
  6608. TSpreadsheet.RegisterObject;
  6609. TGridData.RegisterObject;
  6610. TPivotValue.RegisterObject;
  6611. TBasicFilterTypecriteria.RegisterObject;
  6612. TBasicFilter.RegisterObject;
  6613. TDuplicateSheetRequest.RegisterObject;
  6614. TAddFilterViewResponse.RegisterObject;
  6615. TDuplicateSheetResponse.RegisterObject;
  6616. TBorder.RegisterObject;
  6617. TAddNamedRangeRequest.RegisterObject;
  6618. TAddChartResponse.RegisterObject;
  6619. TAppendCellsRequest.RegisterObject;
  6620. TRowData.RegisterObject;
  6621. TBasicChartSeries.RegisterObject;
  6622. TRepeatCellRequest.RegisterObject;
  6623. TBasicChartSpec.RegisterObject;
  6624. TNamedRange.RegisterObject;
  6625. TSetBasicFilterRequest.RegisterObject;
  6626. TUpdateEmbeddedObjectPositionRequest.RegisterObject;
  6627. TAutoResizeDimensionsRequest.RegisterObject;
  6628. TDuplicateFilterViewResponse.RegisterObject;
  6629. TPivotGroup.RegisterObject;
  6630. TGridRange.RegisterObject;
  6631. TDeleteSheetRequest.RegisterObject;
  6632. TChartData.RegisterObject;
  6633. TSheet.RegisterObject;
  6634. TCopyPasteRequest.RegisterObject;
  6635. TUpdateCellsRequest.RegisterObject;
  6636. TExtendedValue.RegisterObject;
  6637. TBatchUpdateSpreadsheetResponse.RegisterObject;
  6638. TGradientRule.RegisterObject;
  6639. TCutPasteRequest.RegisterObject;
  6640. TOverlayPosition.RegisterObject;
  6641. TAutoFillRequest.RegisterObject;
  6642. TPieChartSpec.RegisterObject;
  6643. TUpdateSheetPropertiesRequest.RegisterObject;
  6644. TBooleanRule.RegisterObject;
  6645. TAppendDimensionRequest.RegisterObject;
  6646. TAddFilterViewRequest.RegisterObject;
  6647. TGridProperties.RegisterObject;
  6648. TDeleteNamedRangeRequest.RegisterObject;
  6649. TAddChartRequest.RegisterObject;
  6650. TSetDataValidationRequest.RegisterObject;
  6651. TRequest.RegisterObject;
  6652. TBatchGetValuesResponse.RegisterObject;
  6653. TInsertDimensionRequest.RegisterObject;
  6654. TDeleteEmbeddedObjectRequest.RegisterObject;
  6655. TDeleteConditionalFormatRuleResponse.RegisterObject;
  6656. end;
  6657. Function TSheetsAPI.GetSpreadsheetsValuesInstance : TSpreadsheetsValuesResource;
  6658. begin
  6659. if (FSpreadsheetsValuesInstance=Nil) then
  6660. FSpreadsheetsValuesInstance:=CreateSpreadsheetsValuesResource;
  6661. Result:=FSpreadsheetsValuesInstance;
  6662. end;
  6663. Function TSheetsAPI.CreateSpreadsheetsValuesResource : TSpreadsheetsValuesResource;
  6664. begin
  6665. Result:=CreateSpreadsheetsValuesResource(Self);
  6666. end;
  6667. Function TSheetsAPI.CreateSpreadsheetsValuesResource(AOwner : TComponent) : TSpreadsheetsValuesResource;
  6668. begin
  6669. Result:=TSpreadsheetsValuesResource.Create(AOwner);
  6670. Result.API:=Self.API;
  6671. end;
  6672. Function TSheetsAPI.GetSpreadsheetsSheetsInstance : TSpreadsheetsSheetsResource;
  6673. begin
  6674. if (FSpreadsheetsSheetsInstance=Nil) then
  6675. FSpreadsheetsSheetsInstance:=CreateSpreadsheetsSheetsResource;
  6676. Result:=FSpreadsheetsSheetsInstance;
  6677. end;
  6678. Function TSheetsAPI.CreateSpreadsheetsSheetsResource : TSpreadsheetsSheetsResource;
  6679. begin
  6680. Result:=CreateSpreadsheetsSheetsResource(Self);
  6681. end;
  6682. Function TSheetsAPI.CreateSpreadsheetsSheetsResource(AOwner : TComponent) : TSpreadsheetsSheetsResource;
  6683. begin
  6684. Result:=TSpreadsheetsSheetsResource.Create(AOwner);
  6685. Result.API:=Self.API;
  6686. end;
  6687. Function TSheetsAPI.GetSpreadsheetsInstance : TSpreadsheetsResource;
  6688. begin
  6689. if (FSpreadsheetsInstance=Nil) then
  6690. FSpreadsheetsInstance:=CreateSpreadsheetsResource;
  6691. Result:=FSpreadsheetsInstance;
  6692. end;
  6693. Function TSheetsAPI.CreateSpreadsheetsResource : TSpreadsheetsResource;
  6694. begin
  6695. Result:=CreateSpreadsheetsResource(Self);
  6696. end;
  6697. Function TSheetsAPI.CreateSpreadsheetsResource(AOwner : TComponent) : TSpreadsheetsResource;
  6698. begin
  6699. Result:=TSpreadsheetsResource.Create(AOwner);
  6700. Result.API:=Self.API;
  6701. end;
  6702. initialization
  6703. TSheetsAPI.RegisterAPI;
  6704. end.