excel9.cpp 151 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172
  1. // Machine generated IDispatch wrapper class(es) created with ClassWizard
  2. #include "stdafx.h"
  3. #include "excel9.h"
  4. #ifdef _DEBUG
  5. #define new DEBUG_NEW
  6. #undef THIS_FILE
  7. static char THIS_FILE[] = __FILE__;
  8. #endif
  9. /////////////////////////////////////////////////////////////////////////////
  10. // _Application properties
  11. /////////////////////////////////////////////////////////////////////////////
  12. // _Application operations
  13. LPDISPATCH _Application::GetApplication()
  14. {
  15. LPDISPATCH result;
  16. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  17. return result;
  18. }
  19. long _Application::GetCreator()
  20. {
  21. long result;
  22. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  23. return result;
  24. }
  25. LPDISPATCH _Application::GetParent()
  26. {
  27. LPDISPATCH result;
  28. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  29. return result;
  30. }
  31. LPDISPATCH _Application::GetActiveCell()
  32. {
  33. LPDISPATCH result;
  34. InvokeHelper(0x131, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  35. return result;
  36. }
  37. LPDISPATCH _Application::GetActiveChart()
  38. {
  39. LPDISPATCH result;
  40. InvokeHelper(0xb7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  41. return result;
  42. }
  43. CString _Application::GetActivePrinter()
  44. {
  45. CString result;
  46. InvokeHelper(0x132, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  47. return result;
  48. }
  49. void _Application::SetActivePrinter(LPCTSTR lpszNewValue)
  50. {
  51. static BYTE parms[] =
  52. VTS_BSTR;
  53. InvokeHelper(0x132, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  54. lpszNewValue);
  55. }
  56. LPDISPATCH _Application::GetActiveSheet()
  57. {
  58. LPDISPATCH result;
  59. InvokeHelper(0x133, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  60. return result;
  61. }
  62. LPDISPATCH _Application::GetActiveWindow()
  63. {
  64. LPDISPATCH result;
  65. InvokeHelper(0x2f7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  66. return result;
  67. }
  68. LPDISPATCH _Application::GetActiveWorkbook()
  69. {
  70. LPDISPATCH result;
  71. InvokeHelper(0x134, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  72. return result;
  73. }
  74. LPDISPATCH _Application::GetAddIns()
  75. {
  76. LPDISPATCH result;
  77. InvokeHelper(0x225, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  78. return result;
  79. }
  80. LPDISPATCH _Application::GetAssistant()
  81. {
  82. LPDISPATCH result;
  83. InvokeHelper(0x59e, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  84. return result;
  85. }
  86. void _Application::Calculate()
  87. {
  88. InvokeHelper(0x117, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  89. }
  90. LPDISPATCH _Application::GetCells()
  91. {
  92. LPDISPATCH result;
  93. InvokeHelper(0xee, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  94. return result;
  95. }
  96. LPDISPATCH _Application::GetCharts()
  97. {
  98. LPDISPATCH result;
  99. InvokeHelper(0x79, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  100. return result;
  101. }
  102. LPDISPATCH _Application::GetColumns()
  103. {
  104. LPDISPATCH result;
  105. InvokeHelper(0xf1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  106. return result;
  107. }
  108. LPDISPATCH _Application::GetCommandBars()
  109. {
  110. LPDISPATCH result;
  111. InvokeHelper(0x59f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  112. return result;
  113. }
  114. long _Application::GetDDEAppReturnCode()
  115. {
  116. long result;
  117. InvokeHelper(0x14c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  118. return result;
  119. }
  120. void _Application::DDEExecute(long Channel, LPCTSTR String)
  121. {
  122. static BYTE parms[] =
  123. VTS_I4 VTS_BSTR;
  124. InvokeHelper(0x14d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  125. Channel, String);
  126. }
  127. long _Application::DDEInitiate(LPCTSTR App, LPCTSTR Topic)
  128. {
  129. long result;
  130. static BYTE parms[] =
  131. VTS_BSTR VTS_BSTR;
  132. InvokeHelper(0x14e, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  133. App, Topic);
  134. return result;
  135. }
  136. void _Application::DDEPoke(long Channel, const VARIANT& Item, const VARIANT& Data)
  137. {
  138. static BYTE parms[] =
  139. VTS_I4 VTS_VARIANT VTS_VARIANT;
  140. InvokeHelper(0x14f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  141. Channel, &Item, &Data);
  142. }
  143. VARIANT _Application::DDERequest(long Channel, LPCTSTR Item)
  144. {
  145. VARIANT result;
  146. static BYTE parms[] =
  147. VTS_I4 VTS_BSTR;
  148. InvokeHelper(0x150, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  149. Channel, Item);
  150. return result;
  151. }
  152. void _Application::DDETerminate(long Channel)
  153. {
  154. static BYTE parms[] =
  155. VTS_I4;
  156. InvokeHelper(0x151, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  157. Channel);
  158. }
  159. VARIANT _Application::Evaluate(const VARIANT& Name)
  160. {
  161. VARIANT result;
  162. static BYTE parms[] =
  163. VTS_VARIANT;
  164. InvokeHelper(0x1, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  165. &Name);
  166. return result;
  167. }
  168. VARIANT _Application::_Evaluate(const VARIANT& Name)
  169. {
  170. VARIANT result;
  171. static BYTE parms[] =
  172. VTS_VARIANT;
  173. InvokeHelper(0xfffffffb, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  174. &Name);
  175. return result;
  176. }
  177. VARIANT _Application::ExecuteExcel4Macro(LPCTSTR String)
  178. {
  179. VARIANT result;
  180. static BYTE parms[] =
  181. VTS_BSTR;
  182. InvokeHelper(0x15e, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  183. String);
  184. return result;
  185. }
  186. LPDISPATCH _Application::Intersect(LPDISPATCH Arg1, LPDISPATCH Arg2, const VARIANT& Arg3, const VARIANT& Arg4, const VARIANT& Arg5, const VARIANT& Arg6, const VARIANT& Arg7, const VARIANT& Arg8, const VARIANT& Arg9, const VARIANT& Arg10,
  187. const VARIANT& Arg11, const VARIANT& Arg12, const VARIANT& Arg13, const VARIANT& Arg14, const VARIANT& Arg15, const VARIANT& Arg16, const VARIANT& Arg17, const VARIANT& Arg18, const VARIANT& Arg19, const VARIANT& Arg20,
  188. const VARIANT& Arg21, const VARIANT& Arg22, const VARIANT& Arg23, const VARIANT& Arg24, const VARIANT& Arg25, const VARIANT& Arg26, const VARIANT& Arg27, const VARIANT& Arg28, const VARIANT& Arg29, const VARIANT& Arg30)
  189. {
  190. LPDISPATCH result;
  191. static BYTE parms[] =
  192. VTS_DISPATCH VTS_DISPATCH VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT
  193. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  194. InvokeHelper(0x2fe, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  195. Arg1, Arg2, &Arg3, &Arg4, &Arg5, &Arg6, &Arg7, &Arg8, &Arg9, &Arg10, &Arg11, &Arg12, &Arg13, &Arg14, &Arg15, &Arg16, &Arg17, &Arg18, &Arg19, &Arg20, &Arg21, &Arg22, &Arg23, &Arg24, &Arg25, &Arg26, &Arg27, &Arg28, &Arg29, &Arg30);
  196. return result;
  197. }
  198. LPDISPATCH _Application::GetNames()
  199. {
  200. LPDISPATCH result;
  201. InvokeHelper(0x1ba, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  202. return result;
  203. }
  204. LPDISPATCH _Application::GetRange(const VARIANT& Cell1, const VARIANT& Cell2)
  205. {
  206. LPDISPATCH result;
  207. static BYTE parms[] =
  208. VTS_VARIANT VTS_VARIANT;
  209. InvokeHelper(0xc5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  210. &Cell1, &Cell2);
  211. return result;
  212. }
  213. LPDISPATCH _Application::GetRows()
  214. {
  215. LPDISPATCH result;
  216. InvokeHelper(0x102, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  217. return result;
  218. }
  219. VARIANT _Application::Run(const VARIANT& Macro, const VARIANT& Arg1, const VARIANT& Arg2, const VARIANT& Arg3, const VARIANT& Arg4, const VARIANT& Arg5, const VARIANT& Arg6, const VARIANT& Arg7, const VARIANT& Arg8, const VARIANT& Arg9,
  220. const VARIANT& Arg10, const VARIANT& Arg11, const VARIANT& Arg12, const VARIANT& Arg13, const VARIANT& Arg14, const VARIANT& Arg15, const VARIANT& Arg16, const VARIANT& Arg17, const VARIANT& Arg18, const VARIANT& Arg19,
  221. const VARIANT& Arg20, const VARIANT& Arg21, const VARIANT& Arg22, const VARIANT& Arg23, const VARIANT& Arg24, const VARIANT& Arg25, const VARIANT& Arg26, const VARIANT& Arg27, const VARIANT& Arg28, const VARIANT& Arg29,
  222. const VARIANT& Arg30)
  223. {
  224. VARIANT result;
  225. static BYTE parms[] =
  226. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT
  227. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  228. InvokeHelper(0x103, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  229. &Macro, &Arg1, &Arg2, &Arg3, &Arg4, &Arg5, &Arg6, &Arg7, &Arg8, &Arg9, &Arg10, &Arg11, &Arg12, &Arg13, &Arg14, &Arg15, &Arg16, &Arg17, &Arg18, &Arg19, &Arg20, &Arg21, &Arg22, &Arg23, &Arg24, &Arg25, &Arg26, &Arg27, &Arg28, &Arg29, &Arg30);
  230. return result;
  231. }
  232. VARIANT _Application::_Run2(const VARIANT& Macro, const VARIANT& Arg1, const VARIANT& Arg2, const VARIANT& Arg3, const VARIANT& Arg4, const VARIANT& Arg5, const VARIANT& Arg6, const VARIANT& Arg7, const VARIANT& Arg8, const VARIANT& Arg9,
  233. const VARIANT& Arg10, const VARIANT& Arg11, const VARIANT& Arg12, const VARIANT& Arg13, const VARIANT& Arg14, const VARIANT& Arg15, const VARIANT& Arg16, const VARIANT& Arg17, const VARIANT& Arg18, const VARIANT& Arg19,
  234. const VARIANT& Arg20, const VARIANT& Arg21, const VARIANT& Arg22, const VARIANT& Arg23, const VARIANT& Arg24, const VARIANT& Arg25, const VARIANT& Arg26, const VARIANT& Arg27, const VARIANT& Arg28, const VARIANT& Arg29,
  235. const VARIANT& Arg30)
  236. {
  237. VARIANT result;
  238. static BYTE parms[] =
  239. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT
  240. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  241. InvokeHelper(0x326, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  242. &Macro, &Arg1, &Arg2, &Arg3, &Arg4, &Arg5, &Arg6, &Arg7, &Arg8, &Arg9, &Arg10, &Arg11, &Arg12, &Arg13, &Arg14, &Arg15, &Arg16, &Arg17, &Arg18, &Arg19, &Arg20, &Arg21, &Arg22, &Arg23, &Arg24, &Arg25, &Arg26, &Arg27, &Arg28, &Arg29, &Arg30);
  243. return result;
  244. }
  245. LPDISPATCH _Application::GetSelection()
  246. {
  247. LPDISPATCH result;
  248. InvokeHelper(0x93, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  249. return result;
  250. }
  251. void _Application::SendKeys(const VARIANT& Keys, const VARIANT& Wait)
  252. {
  253. static BYTE parms[] =
  254. VTS_VARIANT VTS_VARIANT;
  255. InvokeHelper(0x17f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  256. &Keys, &Wait);
  257. }
  258. LPDISPATCH _Application::GetSheets()
  259. {
  260. LPDISPATCH result;
  261. InvokeHelper(0x1e5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  262. return result;
  263. }
  264. LPDISPATCH _Application::GetThisWorkbook()
  265. {
  266. LPDISPATCH result;
  267. InvokeHelper(0x30a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  268. return result;
  269. }
  270. LPDISPATCH _Application::Union(LPDISPATCH Arg1, LPDISPATCH Arg2, const VARIANT& Arg3, const VARIANT& Arg4, const VARIANT& Arg5, const VARIANT& Arg6, const VARIANT& Arg7, const VARIANT& Arg8, const VARIANT& Arg9, const VARIANT& Arg10, const VARIANT& Arg11,
  271. const VARIANT& Arg12, const VARIANT& Arg13, const VARIANT& Arg14, const VARIANT& Arg15, const VARIANT& Arg16, const VARIANT& Arg17, const VARIANT& Arg18, const VARIANT& Arg19, const VARIANT& Arg20, const VARIANT& Arg21,
  272. const VARIANT& Arg22, const VARIANT& Arg23, const VARIANT& Arg24, const VARIANT& Arg25, const VARIANT& Arg26, const VARIANT& Arg27, const VARIANT& Arg28, const VARIANT& Arg29, const VARIANT& Arg30)
  273. {
  274. LPDISPATCH result;
  275. static BYTE parms[] =
  276. VTS_DISPATCH VTS_DISPATCH VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT
  277. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  278. InvokeHelper(0x30b, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  279. Arg1, Arg2, &Arg3, &Arg4, &Arg5, &Arg6, &Arg7, &Arg8, &Arg9, &Arg10, &Arg11, &Arg12, &Arg13, &Arg14, &Arg15, &Arg16, &Arg17, &Arg18, &Arg19, &Arg20, &Arg21, &Arg22, &Arg23, &Arg24, &Arg25, &Arg26, &Arg27, &Arg28, &Arg29, &Arg30);
  280. return result;
  281. }
  282. LPDISPATCH _Application::GetWindows()
  283. {
  284. LPDISPATCH result;
  285. InvokeHelper(0x1ae, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  286. return result;
  287. }
  288. LPDISPATCH _Application::GetWorkbooks()
  289. {
  290. LPDISPATCH result;
  291. InvokeHelper(0x23c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  292. return result;
  293. }
  294. LPDISPATCH _Application::GetWorksheetFunction()
  295. {
  296. LPDISPATCH result;
  297. InvokeHelper(0x5a0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  298. return result;
  299. }
  300. LPDISPATCH _Application::GetWorksheets()
  301. {
  302. LPDISPATCH result;
  303. InvokeHelper(0x1ee, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  304. return result;
  305. }
  306. LPDISPATCH _Application::GetExcel4IntlMacroSheets()
  307. {
  308. LPDISPATCH result;
  309. InvokeHelper(0x245, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  310. return result;
  311. }
  312. LPDISPATCH _Application::GetExcel4MacroSheets()
  313. {
  314. LPDISPATCH result;
  315. InvokeHelper(0x243, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  316. return result;
  317. }
  318. void _Application::ActivateMicrosoftApp(long Index)
  319. {
  320. static BYTE parms[] =
  321. VTS_I4;
  322. InvokeHelper(0x447, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  323. Index);
  324. }
  325. void _Application::AddChartAutoFormat(const VARIANT& Chart, LPCTSTR Name, const VARIANT& Description)
  326. {
  327. static BYTE parms[] =
  328. VTS_VARIANT VTS_BSTR VTS_VARIANT;
  329. InvokeHelper(0xd8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  330. &Chart, Name, &Description);
  331. }
  332. void _Application::AddCustomList(const VARIANT& ListArray, const VARIANT& ByRow)
  333. {
  334. static BYTE parms[] =
  335. VTS_VARIANT VTS_VARIANT;
  336. InvokeHelper(0x30c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  337. &ListArray, &ByRow);
  338. }
  339. BOOL _Application::GetAlertBeforeOverwriting()
  340. {
  341. BOOL result;
  342. InvokeHelper(0x3a2, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  343. return result;
  344. }
  345. void _Application::SetAlertBeforeOverwriting(BOOL bNewValue)
  346. {
  347. static BYTE parms[] =
  348. VTS_BOOL;
  349. InvokeHelper(0x3a2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  350. bNewValue);
  351. }
  352. CString _Application::GetAltStartupPath()
  353. {
  354. CString result;
  355. InvokeHelper(0x139, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  356. return result;
  357. }
  358. void _Application::SetAltStartupPath(LPCTSTR lpszNewValue)
  359. {
  360. static BYTE parms[] =
  361. VTS_BSTR;
  362. InvokeHelper(0x139, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  363. lpszNewValue);
  364. }
  365. BOOL _Application::GetAskToUpdateLinks()
  366. {
  367. BOOL result;
  368. InvokeHelper(0x3e0, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  369. return result;
  370. }
  371. void _Application::SetAskToUpdateLinks(BOOL bNewValue)
  372. {
  373. static BYTE parms[] =
  374. VTS_BOOL;
  375. InvokeHelper(0x3e0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  376. bNewValue);
  377. }
  378. BOOL _Application::GetEnableAnimations()
  379. {
  380. BOOL result;
  381. InvokeHelper(0x49c, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  382. return result;
  383. }
  384. void _Application::SetEnableAnimations(BOOL bNewValue)
  385. {
  386. static BYTE parms[] =
  387. VTS_BOOL;
  388. InvokeHelper(0x49c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  389. bNewValue);
  390. }
  391. LPDISPATCH _Application::GetAutoCorrect()
  392. {
  393. LPDISPATCH result;
  394. InvokeHelper(0x479, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  395. return result;
  396. }
  397. long _Application::GetBuild()
  398. {
  399. long result;
  400. InvokeHelper(0x13a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  401. return result;
  402. }
  403. BOOL _Application::GetCalculateBeforeSave()
  404. {
  405. BOOL result;
  406. InvokeHelper(0x13b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  407. return result;
  408. }
  409. void _Application::SetCalculateBeforeSave(BOOL bNewValue)
  410. {
  411. static BYTE parms[] =
  412. VTS_BOOL;
  413. InvokeHelper(0x13b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  414. bNewValue);
  415. }
  416. long _Application::GetCalculation()
  417. {
  418. long result;
  419. InvokeHelper(0x13c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  420. return result;
  421. }
  422. void _Application::SetCalculation(long nNewValue)
  423. {
  424. static BYTE parms[] =
  425. VTS_I4;
  426. InvokeHelper(0x13c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  427. nNewValue);
  428. }
  429. VARIANT _Application::GetCaller(const VARIANT& Index)
  430. {
  431. VARIANT result;
  432. static BYTE parms[] =
  433. VTS_VARIANT;
  434. InvokeHelper(0x13d, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  435. &Index);
  436. return result;
  437. }
  438. BOOL _Application::GetCanPlaySounds()
  439. {
  440. BOOL result;
  441. InvokeHelper(0x13e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  442. return result;
  443. }
  444. BOOL _Application::GetCanRecordSounds()
  445. {
  446. BOOL result;
  447. InvokeHelper(0x13f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  448. return result;
  449. }
  450. CString _Application::GetCaption()
  451. {
  452. CString result;
  453. InvokeHelper(0x8b, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  454. return result;
  455. }
  456. void _Application::SetCaption(LPCTSTR lpszNewValue)
  457. {
  458. static BYTE parms[] =
  459. VTS_BSTR;
  460. InvokeHelper(0x8b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  461. lpszNewValue);
  462. }
  463. BOOL _Application::GetCellDragAndDrop()
  464. {
  465. BOOL result;
  466. InvokeHelper(0x140, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  467. return result;
  468. }
  469. void _Application::SetCellDragAndDrop(BOOL bNewValue)
  470. {
  471. static BYTE parms[] =
  472. VTS_BOOL;
  473. InvokeHelper(0x140, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  474. bNewValue);
  475. }
  476. double _Application::CentimetersToPoints(double Centimeters)
  477. {
  478. double result;
  479. static BYTE parms[] =
  480. VTS_R8;
  481. InvokeHelper(0x43e, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
  482. Centimeters);
  483. return result;
  484. }
  485. BOOL _Application::CheckSpelling(LPCTSTR Word, const VARIANT& CustomDictionary, const VARIANT& IgnoreUppercase)
  486. {
  487. BOOL result;
  488. static BYTE parms[] =
  489. VTS_BSTR VTS_VARIANT VTS_VARIANT;
  490. InvokeHelper(0x1f9, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  491. Word, &CustomDictionary, &IgnoreUppercase);
  492. return result;
  493. }
  494. VARIANT _Application::GetClipboardFormats(const VARIANT& Index)
  495. {
  496. VARIANT result;
  497. static BYTE parms[] =
  498. VTS_VARIANT;
  499. InvokeHelper(0x141, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  500. &Index);
  501. return result;
  502. }
  503. BOOL _Application::GetDisplayClipboardWindow()
  504. {
  505. BOOL result;
  506. InvokeHelper(0x142, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  507. return result;
  508. }
  509. void _Application::SetDisplayClipboardWindow(BOOL bNewValue)
  510. {
  511. static BYTE parms[] =
  512. VTS_BOOL;
  513. InvokeHelper(0x142, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  514. bNewValue);
  515. }
  516. long _Application::GetCommandUnderlines()
  517. {
  518. long result;
  519. InvokeHelper(0x143, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  520. return result;
  521. }
  522. void _Application::SetCommandUnderlines(long nNewValue)
  523. {
  524. static BYTE parms[] =
  525. VTS_I4;
  526. InvokeHelper(0x143, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  527. nNewValue);
  528. }
  529. BOOL _Application::GetConstrainNumeric()
  530. {
  531. BOOL result;
  532. InvokeHelper(0x144, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  533. return result;
  534. }
  535. void _Application::SetConstrainNumeric(BOOL bNewValue)
  536. {
  537. static BYTE parms[] =
  538. VTS_BOOL;
  539. InvokeHelper(0x144, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  540. bNewValue);
  541. }
  542. VARIANT _Application::ConvertFormula(const VARIANT& Formula, long FromReferenceStyle, const VARIANT& ToReferenceStyle, const VARIANT& ToAbsolute, const VARIANT& RelativeTo)
  543. {
  544. VARIANT result;
  545. static BYTE parms[] =
  546. VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  547. InvokeHelper(0x145, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  548. &Formula, FromReferenceStyle, &ToReferenceStyle, &ToAbsolute, &RelativeTo);
  549. return result;
  550. }
  551. BOOL _Application::GetCopyObjectsWithCells()
  552. {
  553. BOOL result;
  554. InvokeHelper(0x3df, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  555. return result;
  556. }
  557. void _Application::SetCopyObjectsWithCells(BOOL bNewValue)
  558. {
  559. static BYTE parms[] =
  560. VTS_BOOL;
  561. InvokeHelper(0x3df, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  562. bNewValue);
  563. }
  564. long _Application::GetCursor()
  565. {
  566. long result;
  567. InvokeHelper(0x489, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  568. return result;
  569. }
  570. void _Application::SetCursor(long nNewValue)
  571. {
  572. static BYTE parms[] =
  573. VTS_I4;
  574. InvokeHelper(0x489, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  575. nNewValue);
  576. }
  577. long _Application::GetCustomListCount()
  578. {
  579. long result;
  580. InvokeHelper(0x313, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  581. return result;
  582. }
  583. long _Application::GetCutCopyMode()
  584. {
  585. long result;
  586. InvokeHelper(0x14a, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  587. return result;
  588. }
  589. void _Application::SetCutCopyMode(long nNewValue)
  590. {
  591. static BYTE parms[] =
  592. VTS_I4;
  593. InvokeHelper(0x14a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  594. nNewValue);
  595. }
  596. long _Application::GetDataEntryMode()
  597. {
  598. long result;
  599. InvokeHelper(0x14b, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  600. return result;
  601. }
  602. void _Application::SetDataEntryMode(long nNewValue)
  603. {
  604. static BYTE parms[] =
  605. VTS_I4;
  606. InvokeHelper(0x14b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  607. nNewValue);
  608. }
  609. CString _Application::Get_Default()
  610. {
  611. CString result;
  612. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  613. return result;
  614. }
  615. CString _Application::GetDefaultFilePath()
  616. {
  617. CString result;
  618. InvokeHelper(0x40e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  619. return result;
  620. }
  621. void _Application::SetDefaultFilePath(LPCTSTR lpszNewValue)
  622. {
  623. static BYTE parms[] =
  624. VTS_BSTR;
  625. InvokeHelper(0x40e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  626. lpszNewValue);
  627. }
  628. void _Application::DeleteChartAutoFormat(LPCTSTR Name)
  629. {
  630. static BYTE parms[] =
  631. VTS_BSTR;
  632. InvokeHelper(0xd9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  633. Name);
  634. }
  635. void _Application::DeleteCustomList(long ListNum)
  636. {
  637. static BYTE parms[] =
  638. VTS_I4;
  639. InvokeHelper(0x30f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  640. ListNum);
  641. }
  642. LPDISPATCH _Application::GetDialogs()
  643. {
  644. LPDISPATCH result;
  645. InvokeHelper(0x2f9, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  646. return result;
  647. }
  648. BOOL _Application::GetDisplayAlerts()
  649. {
  650. BOOL result;
  651. InvokeHelper(0x157, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  652. return result;
  653. }
  654. void _Application::SetDisplayAlerts(BOOL bNewValue)
  655. {
  656. static BYTE parms[] =
  657. VTS_BOOL;
  658. InvokeHelper(0x157, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  659. bNewValue);
  660. }
  661. BOOL _Application::GetDisplayFormulaBar()
  662. {
  663. BOOL result;
  664. InvokeHelper(0x158, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  665. return result;
  666. }
  667. void _Application::SetDisplayFormulaBar(BOOL bNewValue)
  668. {
  669. static BYTE parms[] =
  670. VTS_BOOL;
  671. InvokeHelper(0x158, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  672. bNewValue);
  673. }
  674. BOOL _Application::GetDisplayFullScreen()
  675. {
  676. BOOL result;
  677. InvokeHelper(0x425, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  678. return result;
  679. }
  680. void _Application::SetDisplayFullScreen(BOOL bNewValue)
  681. {
  682. static BYTE parms[] =
  683. VTS_BOOL;
  684. InvokeHelper(0x425, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  685. bNewValue);
  686. }
  687. BOOL _Application::GetDisplayNoteIndicator()
  688. {
  689. BOOL result;
  690. InvokeHelper(0x159, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  691. return result;
  692. }
  693. void _Application::SetDisplayNoteIndicator(BOOL bNewValue)
  694. {
  695. static BYTE parms[] =
  696. VTS_BOOL;
  697. InvokeHelper(0x159, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  698. bNewValue);
  699. }
  700. long _Application::GetDisplayCommentIndicator()
  701. {
  702. long result;
  703. InvokeHelper(0x4ac, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  704. return result;
  705. }
  706. void _Application::SetDisplayCommentIndicator(long nNewValue)
  707. {
  708. static BYTE parms[] =
  709. VTS_I4;
  710. InvokeHelper(0x4ac, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  711. nNewValue);
  712. }
  713. BOOL _Application::GetDisplayExcel4Menus()
  714. {
  715. BOOL result;
  716. InvokeHelper(0x39f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  717. return result;
  718. }
  719. void _Application::SetDisplayExcel4Menus(BOOL bNewValue)
  720. {
  721. static BYTE parms[] =
  722. VTS_BOOL;
  723. InvokeHelper(0x39f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  724. bNewValue);
  725. }
  726. BOOL _Application::GetDisplayRecentFiles()
  727. {
  728. BOOL result;
  729. InvokeHelper(0x39e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  730. return result;
  731. }
  732. void _Application::SetDisplayRecentFiles(BOOL bNewValue)
  733. {
  734. static BYTE parms[] =
  735. VTS_BOOL;
  736. InvokeHelper(0x39e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  737. bNewValue);
  738. }
  739. BOOL _Application::GetDisplayScrollBars()
  740. {
  741. BOOL result;
  742. InvokeHelper(0x15a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  743. return result;
  744. }
  745. void _Application::SetDisplayScrollBars(BOOL bNewValue)
  746. {
  747. static BYTE parms[] =
  748. VTS_BOOL;
  749. InvokeHelper(0x15a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  750. bNewValue);
  751. }
  752. BOOL _Application::GetDisplayStatusBar()
  753. {
  754. BOOL result;
  755. InvokeHelper(0x15b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  756. return result;
  757. }
  758. void _Application::SetDisplayStatusBar(BOOL bNewValue)
  759. {
  760. static BYTE parms[] =
  761. VTS_BOOL;
  762. InvokeHelper(0x15b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  763. bNewValue);
  764. }
  765. void _Application::DoubleClick()
  766. {
  767. InvokeHelper(0x15d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  768. }
  769. BOOL _Application::GetEditDirectlyInCell()
  770. {
  771. BOOL result;
  772. InvokeHelper(0x3a1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  773. return result;
  774. }
  775. void _Application::SetEditDirectlyInCell(BOOL bNewValue)
  776. {
  777. static BYTE parms[] =
  778. VTS_BOOL;
  779. InvokeHelper(0x3a1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  780. bNewValue);
  781. }
  782. BOOL _Application::GetEnableAutoComplete()
  783. {
  784. BOOL result;
  785. InvokeHelper(0x49b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  786. return result;
  787. }
  788. void _Application::SetEnableAutoComplete(BOOL bNewValue)
  789. {
  790. static BYTE parms[] =
  791. VTS_BOOL;
  792. InvokeHelper(0x49b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  793. bNewValue);
  794. }
  795. long _Application::GetEnableCancelKey()
  796. {
  797. long result;
  798. InvokeHelper(0x448, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  799. return result;
  800. }
  801. void _Application::SetEnableCancelKey(long nNewValue)
  802. {
  803. static BYTE parms[] =
  804. VTS_I4;
  805. InvokeHelper(0x448, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  806. nNewValue);
  807. }
  808. BOOL _Application::GetEnableSound()
  809. {
  810. BOOL result;
  811. InvokeHelper(0x4ad, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  812. return result;
  813. }
  814. void _Application::SetEnableSound(BOOL bNewValue)
  815. {
  816. static BYTE parms[] =
  817. VTS_BOOL;
  818. InvokeHelper(0x4ad, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  819. bNewValue);
  820. }
  821. VARIANT _Application::GetFileConverters(const VARIANT& Index1, const VARIANT& Index2)
  822. {
  823. VARIANT result;
  824. static BYTE parms[] =
  825. VTS_VARIANT VTS_VARIANT;
  826. InvokeHelper(0x3a3, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  827. &Index1, &Index2);
  828. return result;
  829. }
  830. LPDISPATCH _Application::GetFileSearch()
  831. {
  832. LPDISPATCH result;
  833. InvokeHelper(0x4b0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  834. return result;
  835. }
  836. LPDISPATCH _Application::GetFileFind()
  837. {
  838. LPDISPATCH result;
  839. InvokeHelper(0x4b1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  840. return result;
  841. }
  842. BOOL _Application::GetFixedDecimal()
  843. {
  844. BOOL result;
  845. InvokeHelper(0x15f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  846. return result;
  847. }
  848. void _Application::SetFixedDecimal(BOOL bNewValue)
  849. {
  850. static BYTE parms[] =
  851. VTS_BOOL;
  852. InvokeHelper(0x15f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  853. bNewValue);
  854. }
  855. long _Application::GetFixedDecimalPlaces()
  856. {
  857. long result;
  858. InvokeHelper(0x160, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  859. return result;
  860. }
  861. void _Application::SetFixedDecimalPlaces(long nNewValue)
  862. {
  863. static BYTE parms[] =
  864. VTS_I4;
  865. InvokeHelper(0x160, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  866. nNewValue);
  867. }
  868. VARIANT _Application::GetCustomListContents(long ListNum)
  869. {
  870. VARIANT result;
  871. static BYTE parms[] =
  872. VTS_I4;
  873. InvokeHelper(0x312, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  874. ListNum);
  875. return result;
  876. }
  877. long _Application::GetCustomListNum(const VARIANT& ListArray)
  878. {
  879. long result;
  880. static BYTE parms[] =
  881. VTS_VARIANT;
  882. InvokeHelper(0x311, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  883. &ListArray);
  884. return result;
  885. }
  886. VARIANT _Application::GetOpenFilename(const VARIANT& FileFilter, const VARIANT& FilterIndex, const VARIANT& Title, const VARIANT& ButtonText, const VARIANT& MultiSelect)
  887. {
  888. VARIANT result;
  889. static BYTE parms[] =
  890. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  891. InvokeHelper(0x433, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  892. &FileFilter, &FilterIndex, &Title, &ButtonText, &MultiSelect);
  893. return result;
  894. }
  895. VARIANT _Application::GetSaveAsFilename(const VARIANT& InitialFilename, const VARIANT& FileFilter, const VARIANT& FilterIndex, const VARIANT& Title, const VARIANT& ButtonText)
  896. {
  897. VARIANT result;
  898. static BYTE parms[] =
  899. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  900. InvokeHelper(0x434, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  901. &InitialFilename, &FileFilter, &FilterIndex, &Title, &ButtonText);
  902. return result;
  903. }
  904. void _Application::Goto(const VARIANT& Reference, const VARIANT& Scroll)
  905. {
  906. static BYTE parms[] =
  907. VTS_VARIANT VTS_VARIANT;
  908. InvokeHelper(0x1db, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  909. &Reference, &Scroll);
  910. }
  911. double _Application::GetHeight()
  912. {
  913. double result;
  914. InvokeHelper(0x7b, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  915. return result;
  916. }
  917. void _Application::SetHeight(double newValue)
  918. {
  919. static BYTE parms[] =
  920. VTS_R8;
  921. InvokeHelper(0x7b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  922. newValue);
  923. }
  924. void _Application::Help(const VARIANT& HelpFile, const VARIANT& HelpContextID)
  925. {
  926. static BYTE parms[] =
  927. VTS_VARIANT VTS_VARIANT;
  928. InvokeHelper(0x162, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  929. &HelpFile, &HelpContextID);
  930. }
  931. BOOL _Application::GetIgnoreRemoteRequests()
  932. {
  933. BOOL result;
  934. InvokeHelper(0x164, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  935. return result;
  936. }
  937. void _Application::SetIgnoreRemoteRequests(BOOL bNewValue)
  938. {
  939. static BYTE parms[] =
  940. VTS_BOOL;
  941. InvokeHelper(0x164, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  942. bNewValue);
  943. }
  944. double _Application::InchesToPoints(double Inches)
  945. {
  946. double result;
  947. static BYTE parms[] =
  948. VTS_R8;
  949. InvokeHelper(0x43f, DISPATCH_METHOD, VT_R8, (void*)&result, parms,
  950. Inches);
  951. return result;
  952. }
  953. VARIANT _Application::InputBox(LPCTSTR Prompt, const VARIANT& Title, const VARIANT& Default, const VARIANT& Left, const VARIANT& Top, const VARIANT& HelpFile, const VARIANT& HelpContextID, const VARIANT& Type)
  954. {
  955. VARIANT result;
  956. static BYTE parms[] =
  957. VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  958. InvokeHelper(0x165, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  959. Prompt, &Title, &Default, &Left, &Top, &HelpFile, &HelpContextID, &Type);
  960. return result;
  961. }
  962. BOOL _Application::GetInteractive()
  963. {
  964. BOOL result;
  965. InvokeHelper(0x169, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  966. return result;
  967. }
  968. void _Application::SetInteractive(BOOL bNewValue)
  969. {
  970. static BYTE parms[] =
  971. VTS_BOOL;
  972. InvokeHelper(0x169, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  973. bNewValue);
  974. }
  975. VARIANT _Application::GetInternational(const VARIANT& Index)
  976. {
  977. VARIANT result;
  978. static BYTE parms[] =
  979. VTS_VARIANT;
  980. InvokeHelper(0x16a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  981. &Index);
  982. return result;
  983. }
  984. BOOL _Application::GetIteration()
  985. {
  986. BOOL result;
  987. InvokeHelper(0x16b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  988. return result;
  989. }
  990. void _Application::SetIteration(BOOL bNewValue)
  991. {
  992. static BYTE parms[] =
  993. VTS_BOOL;
  994. InvokeHelper(0x16b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  995. bNewValue);
  996. }
  997. double _Application::GetLeft()
  998. {
  999. double result;
  1000. InvokeHelper(0x7f, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1001. return result;
  1002. }
  1003. void _Application::SetLeft(double newValue)
  1004. {
  1005. static BYTE parms[] =
  1006. VTS_R8;
  1007. InvokeHelper(0x7f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1008. newValue);
  1009. }
  1010. CString _Application::GetLibraryPath()
  1011. {
  1012. CString result;
  1013. InvokeHelper(0x16e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1014. return result;
  1015. }
  1016. void _Application::MacroOptions(const VARIANT& Macro, const VARIANT& Description, const VARIANT& HasMenu, const VARIANT& MenuText, const VARIANT& HasShortcutKey, const VARIANT& ShortcutKey, const VARIANT& Category, const VARIANT& StatusBar,
  1017. const VARIANT& HelpContextID, const VARIANT& HelpFile)
  1018. {
  1019. static BYTE parms[] =
  1020. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1021. InvokeHelper(0x46f, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1022. &Macro, &Description, &HasMenu, &MenuText, &HasShortcutKey, &ShortcutKey, &Category, &StatusBar, &HelpContextID, &HelpFile);
  1023. }
  1024. void _Application::MailLogoff()
  1025. {
  1026. InvokeHelper(0x3b1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1027. }
  1028. void _Application::MailLogon(const VARIANT& Name, const VARIANT& Password, const VARIANT& DownloadNewMail)
  1029. {
  1030. static BYTE parms[] =
  1031. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1032. InvokeHelper(0x3af, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1033. &Name, &Password, &DownloadNewMail);
  1034. }
  1035. VARIANT _Application::GetMailSession()
  1036. {
  1037. VARIANT result;
  1038. InvokeHelper(0x3ae, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  1039. return result;
  1040. }
  1041. long _Application::GetMailSystem()
  1042. {
  1043. long result;
  1044. InvokeHelper(0x3cb, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1045. return result;
  1046. }
  1047. BOOL _Application::GetMathCoprocessorAvailable()
  1048. {
  1049. BOOL result;
  1050. InvokeHelper(0x16f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1051. return result;
  1052. }
  1053. double _Application::GetMaxChange()
  1054. {
  1055. double result;
  1056. InvokeHelper(0x170, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1057. return result;
  1058. }
  1059. void _Application::SetMaxChange(double newValue)
  1060. {
  1061. static BYTE parms[] =
  1062. VTS_R8;
  1063. InvokeHelper(0x170, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1064. newValue);
  1065. }
  1066. long _Application::GetMaxIterations()
  1067. {
  1068. long result;
  1069. InvokeHelper(0x171, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1070. return result;
  1071. }
  1072. void _Application::SetMaxIterations(long nNewValue)
  1073. {
  1074. static BYTE parms[] =
  1075. VTS_I4;
  1076. InvokeHelper(0x171, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1077. nNewValue);
  1078. }
  1079. long _Application::GetMemoryFree()
  1080. {
  1081. long result;
  1082. InvokeHelper(0x172, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1083. return result;
  1084. }
  1085. long _Application::GetMemoryTotal()
  1086. {
  1087. long result;
  1088. InvokeHelper(0x173, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1089. return result;
  1090. }
  1091. long _Application::GetMemoryUsed()
  1092. {
  1093. long result;
  1094. InvokeHelper(0x174, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1095. return result;
  1096. }
  1097. BOOL _Application::GetMouseAvailable()
  1098. {
  1099. BOOL result;
  1100. InvokeHelper(0x175, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1101. return result;
  1102. }
  1103. BOOL _Application::GetMoveAfterReturn()
  1104. {
  1105. BOOL result;
  1106. InvokeHelper(0x176, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1107. return result;
  1108. }
  1109. void _Application::SetMoveAfterReturn(BOOL bNewValue)
  1110. {
  1111. static BYTE parms[] =
  1112. VTS_BOOL;
  1113. InvokeHelper(0x176, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1114. bNewValue);
  1115. }
  1116. long _Application::GetMoveAfterReturnDirection()
  1117. {
  1118. long result;
  1119. InvokeHelper(0x478, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1120. return result;
  1121. }
  1122. void _Application::SetMoveAfterReturnDirection(long nNewValue)
  1123. {
  1124. static BYTE parms[] =
  1125. VTS_I4;
  1126. InvokeHelper(0x478, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1127. nNewValue);
  1128. }
  1129. LPDISPATCH _Application::GetRecentFiles()
  1130. {
  1131. LPDISPATCH result;
  1132. InvokeHelper(0x4b2, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1133. return result;
  1134. }
  1135. CString _Application::GetName()
  1136. {
  1137. CString result;
  1138. InvokeHelper(0x6e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1139. return result;
  1140. }
  1141. LPDISPATCH _Application::NextLetter()
  1142. {
  1143. LPDISPATCH result;
  1144. InvokeHelper(0x3cc, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  1145. return result;
  1146. }
  1147. CString _Application::GetNetworkTemplatesPath()
  1148. {
  1149. CString result;
  1150. InvokeHelper(0x184, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1151. return result;
  1152. }
  1153. LPDISPATCH _Application::GetODBCErrors()
  1154. {
  1155. LPDISPATCH result;
  1156. InvokeHelper(0x4b3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1157. return result;
  1158. }
  1159. long _Application::GetODBCTimeout()
  1160. {
  1161. long result;
  1162. InvokeHelper(0x4b4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1163. return result;
  1164. }
  1165. void _Application::SetODBCTimeout(long nNewValue)
  1166. {
  1167. static BYTE parms[] =
  1168. VTS_I4;
  1169. InvokeHelper(0x4b4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1170. nNewValue);
  1171. }
  1172. void _Application::OnKey(LPCTSTR Key, const VARIANT& Procedure)
  1173. {
  1174. static BYTE parms[] =
  1175. VTS_BSTR VTS_VARIANT;
  1176. InvokeHelper(0x272, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1177. Key, &Procedure);
  1178. }
  1179. void _Application::OnRepeat(LPCTSTR Text, LPCTSTR Procedure)
  1180. {
  1181. static BYTE parms[] =
  1182. VTS_BSTR VTS_BSTR;
  1183. InvokeHelper(0x301, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1184. Text, Procedure);
  1185. }
  1186. void _Application::OnTime(const VARIANT& EarliestTime, LPCTSTR Procedure, const VARIANT& LatestTime, const VARIANT& Schedule)
  1187. {
  1188. static BYTE parms[] =
  1189. VTS_VARIANT VTS_BSTR VTS_VARIANT VTS_VARIANT;
  1190. InvokeHelper(0x270, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1191. &EarliestTime, Procedure, &LatestTime, &Schedule);
  1192. }
  1193. void _Application::OnUndo(LPCTSTR Text, LPCTSTR Procedure)
  1194. {
  1195. static BYTE parms[] =
  1196. VTS_BSTR VTS_BSTR;
  1197. InvokeHelper(0x302, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1198. Text, Procedure);
  1199. }
  1200. CString _Application::GetOnWindow()
  1201. {
  1202. CString result;
  1203. InvokeHelper(0x26f, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1204. return result;
  1205. }
  1206. void _Application::SetOnWindow(LPCTSTR lpszNewValue)
  1207. {
  1208. static BYTE parms[] =
  1209. VTS_BSTR;
  1210. InvokeHelper(0x26f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1211. lpszNewValue);
  1212. }
  1213. CString _Application::GetOperatingSystem()
  1214. {
  1215. CString result;
  1216. InvokeHelper(0x177, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1217. return result;
  1218. }
  1219. CString _Application::GetOrganizationName()
  1220. {
  1221. CString result;
  1222. InvokeHelper(0x178, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1223. return result;
  1224. }
  1225. CString _Application::GetPath()
  1226. {
  1227. CString result;
  1228. InvokeHelper(0x123, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1229. return result;
  1230. }
  1231. CString _Application::GetPathSeparator()
  1232. {
  1233. CString result;
  1234. InvokeHelper(0x179, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1235. return result;
  1236. }
  1237. VARIANT _Application::GetPreviousSelections(const VARIANT& Index)
  1238. {
  1239. VARIANT result;
  1240. static BYTE parms[] =
  1241. VTS_VARIANT;
  1242. InvokeHelper(0x17a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  1243. &Index);
  1244. return result;
  1245. }
  1246. BOOL _Application::GetPivotTableSelection()
  1247. {
  1248. BOOL result;
  1249. InvokeHelper(0x4b5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1250. return result;
  1251. }
  1252. void _Application::SetPivotTableSelection(BOOL bNewValue)
  1253. {
  1254. static BYTE parms[] =
  1255. VTS_BOOL;
  1256. InvokeHelper(0x4b5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1257. bNewValue);
  1258. }
  1259. BOOL _Application::GetPromptForSummaryInfo()
  1260. {
  1261. BOOL result;
  1262. InvokeHelper(0x426, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1263. return result;
  1264. }
  1265. void _Application::SetPromptForSummaryInfo(BOOL bNewValue)
  1266. {
  1267. static BYTE parms[] =
  1268. VTS_BOOL;
  1269. InvokeHelper(0x426, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1270. bNewValue);
  1271. }
  1272. void _Application::Quit()
  1273. {
  1274. InvokeHelper(0x12e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1275. }
  1276. void _Application::RecordMacro(const VARIANT& BasicCode, const VARIANT& XlmCode)
  1277. {
  1278. static BYTE parms[] =
  1279. VTS_VARIANT VTS_VARIANT;
  1280. InvokeHelper(0x305, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1281. &BasicCode, &XlmCode);
  1282. }
  1283. BOOL _Application::GetRecordRelative()
  1284. {
  1285. BOOL result;
  1286. InvokeHelper(0x17b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1287. return result;
  1288. }
  1289. long _Application::GetReferenceStyle()
  1290. {
  1291. long result;
  1292. InvokeHelper(0x17c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1293. return result;
  1294. }
  1295. void _Application::SetReferenceStyle(long nNewValue)
  1296. {
  1297. static BYTE parms[] =
  1298. VTS_I4;
  1299. InvokeHelper(0x17c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1300. nNewValue);
  1301. }
  1302. VARIANT _Application::GetRegisteredFunctions(const VARIANT& Index1, const VARIANT& Index2)
  1303. {
  1304. VARIANT result;
  1305. static BYTE parms[] =
  1306. VTS_VARIANT VTS_VARIANT;
  1307. InvokeHelper(0x307, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  1308. &Index1, &Index2);
  1309. return result;
  1310. }
  1311. BOOL _Application::RegisterXLL(LPCTSTR Filename)
  1312. {
  1313. BOOL result;
  1314. static BYTE parms[] =
  1315. VTS_BSTR;
  1316. InvokeHelper(0x1e, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1317. Filename);
  1318. return result;
  1319. }
  1320. void _Application::Repeat()
  1321. {
  1322. InvokeHelper(0x12d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1323. }
  1324. BOOL _Application::GetRollZoom()
  1325. {
  1326. BOOL result;
  1327. InvokeHelper(0x4b6, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1328. return result;
  1329. }
  1330. void _Application::SetRollZoom(BOOL bNewValue)
  1331. {
  1332. static BYTE parms[] =
  1333. VTS_BOOL;
  1334. InvokeHelper(0x4b6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1335. bNewValue);
  1336. }
  1337. void _Application::SaveWorkspace(const VARIANT& Filename)
  1338. {
  1339. static BYTE parms[] =
  1340. VTS_VARIANT;
  1341. InvokeHelper(0xd4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1342. &Filename);
  1343. }
  1344. BOOL _Application::GetScreenUpdating()
  1345. {
  1346. BOOL result;
  1347. InvokeHelper(0x17e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1348. return result;
  1349. }
  1350. void _Application::SetScreenUpdating(BOOL bNewValue)
  1351. {
  1352. static BYTE parms[] =
  1353. VTS_BOOL;
  1354. InvokeHelper(0x17e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1355. bNewValue);
  1356. }
  1357. void _Application::SetDefaultChart(const VARIANT& FormatName, const VARIANT& Gallery)
  1358. {
  1359. static BYTE parms[] =
  1360. VTS_VARIANT VTS_VARIANT;
  1361. InvokeHelper(0xdb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1362. &FormatName, &Gallery);
  1363. }
  1364. long _Application::GetSheetsInNewWorkbook()
  1365. {
  1366. long result;
  1367. InvokeHelper(0x3e1, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1368. return result;
  1369. }
  1370. void _Application::SetSheetsInNewWorkbook(long nNewValue)
  1371. {
  1372. static BYTE parms[] =
  1373. VTS_I4;
  1374. InvokeHelper(0x3e1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1375. nNewValue);
  1376. }
  1377. BOOL _Application::GetShowChartTipNames()
  1378. {
  1379. BOOL result;
  1380. InvokeHelper(0x4b7, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1381. return result;
  1382. }
  1383. void _Application::SetShowChartTipNames(BOOL bNewValue)
  1384. {
  1385. static BYTE parms[] =
  1386. VTS_BOOL;
  1387. InvokeHelper(0x4b7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1388. bNewValue);
  1389. }
  1390. BOOL _Application::GetShowChartTipValues()
  1391. {
  1392. BOOL result;
  1393. InvokeHelper(0x4b8, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1394. return result;
  1395. }
  1396. void _Application::SetShowChartTipValues(BOOL bNewValue)
  1397. {
  1398. static BYTE parms[] =
  1399. VTS_BOOL;
  1400. InvokeHelper(0x4b8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1401. bNewValue);
  1402. }
  1403. CString _Application::GetStandardFont()
  1404. {
  1405. CString result;
  1406. InvokeHelper(0x39c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1407. return result;
  1408. }
  1409. void _Application::SetStandardFont(LPCTSTR lpszNewValue)
  1410. {
  1411. static BYTE parms[] =
  1412. VTS_BSTR;
  1413. InvokeHelper(0x39c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1414. lpszNewValue);
  1415. }
  1416. double _Application::GetStandardFontSize()
  1417. {
  1418. double result;
  1419. InvokeHelper(0x39d, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1420. return result;
  1421. }
  1422. void _Application::SetStandardFontSize(double newValue)
  1423. {
  1424. static BYTE parms[] =
  1425. VTS_R8;
  1426. InvokeHelper(0x39d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1427. newValue);
  1428. }
  1429. CString _Application::GetStartupPath()
  1430. {
  1431. CString result;
  1432. InvokeHelper(0x181, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1433. return result;
  1434. }
  1435. VARIANT _Application::GetStatusBar()
  1436. {
  1437. VARIANT result;
  1438. InvokeHelper(0x182, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  1439. return result;
  1440. }
  1441. void _Application::SetStatusBar(const VARIANT& newValue)
  1442. {
  1443. static BYTE parms[] =
  1444. VTS_VARIANT;
  1445. InvokeHelper(0x182, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1446. &newValue);
  1447. }
  1448. CString _Application::GetTemplatesPath()
  1449. {
  1450. CString result;
  1451. InvokeHelper(0x17d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1452. return result;
  1453. }
  1454. BOOL _Application::GetShowToolTips()
  1455. {
  1456. BOOL result;
  1457. InvokeHelper(0x183, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1458. return result;
  1459. }
  1460. void _Application::SetShowToolTips(BOOL bNewValue)
  1461. {
  1462. static BYTE parms[] =
  1463. VTS_BOOL;
  1464. InvokeHelper(0x183, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1465. bNewValue);
  1466. }
  1467. double _Application::GetTop()
  1468. {
  1469. double result;
  1470. InvokeHelper(0x7e, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1471. return result;
  1472. }
  1473. void _Application::SetTop(double newValue)
  1474. {
  1475. static BYTE parms[] =
  1476. VTS_R8;
  1477. InvokeHelper(0x7e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1478. newValue);
  1479. }
  1480. long _Application::GetDefaultSaveFormat()
  1481. {
  1482. long result;
  1483. InvokeHelper(0x4b9, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1484. return result;
  1485. }
  1486. void _Application::SetDefaultSaveFormat(long nNewValue)
  1487. {
  1488. static BYTE parms[] =
  1489. VTS_I4;
  1490. InvokeHelper(0x4b9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1491. nNewValue);
  1492. }
  1493. CString _Application::GetTransitionMenuKey()
  1494. {
  1495. CString result;
  1496. InvokeHelper(0x136, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1497. return result;
  1498. }
  1499. void _Application::SetTransitionMenuKey(LPCTSTR lpszNewValue)
  1500. {
  1501. static BYTE parms[] =
  1502. VTS_BSTR;
  1503. InvokeHelper(0x136, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1504. lpszNewValue);
  1505. }
  1506. long _Application::GetTransitionMenuKeyAction()
  1507. {
  1508. long result;
  1509. InvokeHelper(0x137, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1510. return result;
  1511. }
  1512. void _Application::SetTransitionMenuKeyAction(long nNewValue)
  1513. {
  1514. static BYTE parms[] =
  1515. VTS_I4;
  1516. InvokeHelper(0x137, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1517. nNewValue);
  1518. }
  1519. BOOL _Application::GetTransitionNavigKeys()
  1520. {
  1521. BOOL result;
  1522. InvokeHelper(0x138, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1523. return result;
  1524. }
  1525. void _Application::SetTransitionNavigKeys(BOOL bNewValue)
  1526. {
  1527. static BYTE parms[] =
  1528. VTS_BOOL;
  1529. InvokeHelper(0x138, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1530. bNewValue);
  1531. }
  1532. void _Application::Undo()
  1533. {
  1534. InvokeHelper(0x12f, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1535. }
  1536. double _Application::GetUsableHeight()
  1537. {
  1538. double result;
  1539. InvokeHelper(0x185, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1540. return result;
  1541. }
  1542. double _Application::GetUsableWidth()
  1543. {
  1544. double result;
  1545. InvokeHelper(0x186, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1546. return result;
  1547. }
  1548. BOOL _Application::GetUserControl()
  1549. {
  1550. BOOL result;
  1551. InvokeHelper(0x4ba, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1552. return result;
  1553. }
  1554. void _Application::SetUserControl(BOOL bNewValue)
  1555. {
  1556. static BYTE parms[] =
  1557. VTS_BOOL;
  1558. InvokeHelper(0x4ba, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1559. bNewValue);
  1560. }
  1561. CString _Application::GetUserName_()
  1562. {
  1563. CString result;
  1564. InvokeHelper(0x187, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1565. return result;
  1566. }
  1567. void _Application::SetUserName(LPCTSTR lpszNewValue)
  1568. {
  1569. static BYTE parms[] =
  1570. VTS_BSTR;
  1571. InvokeHelper(0x187, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1572. lpszNewValue);
  1573. }
  1574. CString _Application::GetValue()
  1575. {
  1576. CString result;
  1577. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1578. return result;
  1579. }
  1580. LPDISPATCH _Application::GetVbe()
  1581. {
  1582. LPDISPATCH result;
  1583. InvokeHelper(0x4bb, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1584. return result;
  1585. }
  1586. CString _Application::GetVersion()
  1587. {
  1588. CString result;
  1589. InvokeHelper(0x188, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1590. return result;
  1591. }
  1592. BOOL _Application::GetVisible()
  1593. {
  1594. BOOL result;
  1595. InvokeHelper(0x22e, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1596. return result;
  1597. }
  1598. void _Application::SetVisible(BOOL bNewValue)
  1599. {
  1600. static BYTE parms[] =
  1601. VTS_BOOL;
  1602. InvokeHelper(0x22e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1603. bNewValue);
  1604. }
  1605. void _Application::Volatile(const VARIANT& Volatile)
  1606. {
  1607. static BYTE parms[] =
  1608. VTS_VARIANT;
  1609. InvokeHelper(0x314, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1610. &Volatile);
  1611. }
  1612. double _Application::GetWidth()
  1613. {
  1614. double result;
  1615. InvokeHelper(0x7a, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  1616. return result;
  1617. }
  1618. void _Application::SetWidth(double newValue)
  1619. {
  1620. static BYTE parms[] =
  1621. VTS_R8;
  1622. InvokeHelper(0x7a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1623. newValue);
  1624. }
  1625. BOOL _Application::GetWindowsForPens()
  1626. {
  1627. BOOL result;
  1628. InvokeHelper(0x18b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1629. return result;
  1630. }
  1631. long _Application::GetWindowState()
  1632. {
  1633. long result;
  1634. InvokeHelper(0x18c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1635. return result;
  1636. }
  1637. void _Application::SetWindowState(long nNewValue)
  1638. {
  1639. static BYTE parms[] =
  1640. VTS_I4;
  1641. InvokeHelper(0x18c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1642. nNewValue);
  1643. }
  1644. long _Application::GetDefaultSheetDirection()
  1645. {
  1646. long result;
  1647. InvokeHelper(0xe5, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1648. return result;
  1649. }
  1650. void _Application::SetDefaultSheetDirection(long nNewValue)
  1651. {
  1652. static BYTE parms[] =
  1653. VTS_I4;
  1654. InvokeHelper(0xe5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1655. nNewValue);
  1656. }
  1657. long _Application::GetCursorMovement()
  1658. {
  1659. long result;
  1660. InvokeHelper(0xe8, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1661. return result;
  1662. }
  1663. void _Application::SetCursorMovement(long nNewValue)
  1664. {
  1665. static BYTE parms[] =
  1666. VTS_I4;
  1667. InvokeHelper(0xe8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1668. nNewValue);
  1669. }
  1670. BOOL _Application::GetControlCharacters()
  1671. {
  1672. BOOL result;
  1673. InvokeHelper(0xe9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1674. return result;
  1675. }
  1676. void _Application::SetControlCharacters(BOOL bNewValue)
  1677. {
  1678. static BYTE parms[] =
  1679. VTS_BOOL;
  1680. InvokeHelper(0xe9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1681. bNewValue);
  1682. }
  1683. BOOL _Application::GetEnableEvents()
  1684. {
  1685. BOOL result;
  1686. InvokeHelper(0x4bc, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1687. return result;
  1688. }
  1689. void _Application::SetEnableEvents(BOOL bNewValue)
  1690. {
  1691. static BYTE parms[] =
  1692. VTS_BOOL;
  1693. InvokeHelper(0x4bc, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1694. bNewValue);
  1695. }
  1696. BOOL _Application::Wait(const VARIANT& Time)
  1697. {
  1698. BOOL result;
  1699. static BYTE parms[] =
  1700. VTS_VARIANT;
  1701. InvokeHelper(0x6ea, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  1702. &Time);
  1703. return result;
  1704. }
  1705. BOOL _Application::GetExtendList()
  1706. {
  1707. BOOL result;
  1708. InvokeHelper(0x701, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1709. return result;
  1710. }
  1711. void _Application::SetExtendList(BOOL bNewValue)
  1712. {
  1713. static BYTE parms[] =
  1714. VTS_BOOL;
  1715. InvokeHelper(0x701, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1716. bNewValue);
  1717. }
  1718. LPDISPATCH _Application::GetOLEDBErrors()
  1719. {
  1720. LPDISPATCH result;
  1721. InvokeHelper(0x702, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1722. return result;
  1723. }
  1724. CString _Application::GetPhonetic(const VARIANT& Text)
  1725. {
  1726. CString result;
  1727. static BYTE parms[] =
  1728. VTS_VARIANT;
  1729. InvokeHelper(0x703, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  1730. &Text);
  1731. return result;
  1732. }
  1733. LPDISPATCH _Application::GetCOMAddIns()
  1734. {
  1735. LPDISPATCH result;
  1736. InvokeHelper(0x704, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1737. return result;
  1738. }
  1739. LPDISPATCH _Application::GetDefaultWebOptions()
  1740. {
  1741. LPDISPATCH result;
  1742. InvokeHelper(0x705, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1743. return result;
  1744. }
  1745. CString _Application::GetProductCode()
  1746. {
  1747. CString result;
  1748. InvokeHelper(0x706, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1749. return result;
  1750. }
  1751. CString _Application::GetUserLibraryPath()
  1752. {
  1753. CString result;
  1754. InvokeHelper(0x707, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1755. return result;
  1756. }
  1757. BOOL _Application::GetAutoPercentEntry()
  1758. {
  1759. BOOL result;
  1760. InvokeHelper(0x708, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1761. return result;
  1762. }
  1763. void _Application::SetAutoPercentEntry(BOOL bNewValue)
  1764. {
  1765. static BYTE parms[] =
  1766. VTS_BOOL;
  1767. InvokeHelper(0x708, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1768. bNewValue);
  1769. }
  1770. LPDISPATCH _Application::GetLanguageSettings()
  1771. {
  1772. LPDISPATCH result;
  1773. InvokeHelper(0x709, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1774. return result;
  1775. }
  1776. LPDISPATCH _Application::GetAnswerWizard()
  1777. {
  1778. LPDISPATCH result;
  1779. InvokeHelper(0x70c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1780. return result;
  1781. }
  1782. void _Application::CalculateFull()
  1783. {
  1784. InvokeHelper(0x70d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1785. }
  1786. BOOL _Application::FindFile()
  1787. {
  1788. BOOL result;
  1789. InvokeHelper(0x6eb, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  1790. return result;
  1791. }
  1792. long _Application::GetCalculationVersion()
  1793. {
  1794. long result;
  1795. InvokeHelper(0x70e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1796. return result;
  1797. }
  1798. BOOL _Application::GetShowWindowsInTaskbar()
  1799. {
  1800. BOOL result;
  1801. InvokeHelper(0x70f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1802. return result;
  1803. }
  1804. void _Application::SetShowWindowsInTaskbar(BOOL bNewValue)
  1805. {
  1806. static BYTE parms[] =
  1807. VTS_BOOL;
  1808. InvokeHelper(0x70f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1809. bNewValue);
  1810. }
  1811. long _Application::GetFeatureInstall()
  1812. {
  1813. long result;
  1814. InvokeHelper(0x710, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1815. return result;
  1816. }
  1817. void _Application::SetFeatureInstall(long nNewValue)
  1818. {
  1819. static BYTE parms[] =
  1820. VTS_I4;
  1821. InvokeHelper(0x710, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1822. nNewValue);
  1823. }
  1824. /////////////////////////////////////////////////////////////////////////////
  1825. // _Worksheet properties
  1826. /////////////////////////////////////////////////////////////////////////////
  1827. // _Worksheet operations
  1828. LPDISPATCH _Worksheet::GetApplication()
  1829. {
  1830. LPDISPATCH result;
  1831. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1832. return result;
  1833. }
  1834. long _Worksheet::GetCreator()
  1835. {
  1836. long result;
  1837. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1838. return result;
  1839. }
  1840. LPDISPATCH _Worksheet::GetParent()
  1841. {
  1842. LPDISPATCH result;
  1843. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1844. return result;
  1845. }
  1846. void _Worksheet::Activate()
  1847. {
  1848. InvokeHelper(0x130, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1849. }
  1850. void _Worksheet::Copy(const VARIANT& Before, const VARIANT& After)
  1851. {
  1852. static BYTE parms[] =
  1853. VTS_VARIANT VTS_VARIANT;
  1854. InvokeHelper(0x227, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1855. &Before, &After);
  1856. }
  1857. void _Worksheet::Delete()
  1858. {
  1859. InvokeHelper(0x75, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  1860. }
  1861. CString _Worksheet::GetCodeName()
  1862. {
  1863. CString result;
  1864. InvokeHelper(0x55d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1865. return result;
  1866. }
  1867. CString _Worksheet::Get_CodeName()
  1868. {
  1869. CString result;
  1870. InvokeHelper(0x80010000, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1871. return result;
  1872. }
  1873. void _Worksheet::Set_CodeName(LPCTSTR lpszNewValue)
  1874. {
  1875. static BYTE parms[] =
  1876. VTS_BSTR;
  1877. InvokeHelper(0x80010000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1878. lpszNewValue);
  1879. }
  1880. long _Worksheet::GetIndex()
  1881. {
  1882. long result;
  1883. InvokeHelper(0x1e6, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1884. return result;
  1885. }
  1886. void _Worksheet::Move(const VARIANT& Before, const VARIANT& After)
  1887. {
  1888. static BYTE parms[] =
  1889. VTS_VARIANT VTS_VARIANT;
  1890. InvokeHelper(0x27d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1891. &Before, &After);
  1892. }
  1893. CString _Worksheet::GetName()
  1894. {
  1895. CString result;
  1896. InvokeHelper(0x6e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  1897. return result;
  1898. }
  1899. void _Worksheet::SetName(LPCTSTR lpszNewValue)
  1900. {
  1901. static BYTE parms[] =
  1902. VTS_BSTR;
  1903. InvokeHelper(0x6e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1904. lpszNewValue);
  1905. }
  1906. LPDISPATCH _Worksheet::GetNext()
  1907. {
  1908. LPDISPATCH result;
  1909. InvokeHelper(0x1f6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1910. return result;
  1911. }
  1912. LPDISPATCH _Worksheet::GetPageSetup()
  1913. {
  1914. LPDISPATCH result;
  1915. InvokeHelper(0x3e6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1916. return result;
  1917. }
  1918. LPDISPATCH _Worksheet::GetPrevious()
  1919. {
  1920. LPDISPATCH result;
  1921. InvokeHelper(0x1f7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  1922. return result;
  1923. }
  1924. void _Worksheet::PrintPreview(const VARIANT& EnableChanges)
  1925. {
  1926. static BYTE parms[] =
  1927. VTS_VARIANT;
  1928. InvokeHelper(0x119, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1929. &EnableChanges);
  1930. }
  1931. void _Worksheet::Protect(const VARIANT& Password, const VARIANT& DrawingObjects, const VARIANT& Contents, const VARIANT& Scenarios, const VARIANT& UserInterfaceOnly)
  1932. {
  1933. static BYTE parms[] =
  1934. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1935. InvokeHelper(0x11a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1936. &Password, &DrawingObjects, &Contents, &Scenarios, &UserInterfaceOnly);
  1937. }
  1938. BOOL _Worksheet::GetProtectContents()
  1939. {
  1940. BOOL result;
  1941. InvokeHelper(0x124, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1942. return result;
  1943. }
  1944. BOOL _Worksheet::GetProtectDrawingObjects()
  1945. {
  1946. BOOL result;
  1947. InvokeHelper(0x125, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1948. return result;
  1949. }
  1950. BOOL _Worksheet::GetProtectionMode()
  1951. {
  1952. BOOL result;
  1953. InvokeHelper(0x487, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1954. return result;
  1955. }
  1956. BOOL _Worksheet::GetProtectScenarios()
  1957. {
  1958. BOOL result;
  1959. InvokeHelper(0x126, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  1960. return result;
  1961. }
  1962. void _Worksheet::SaveAs(LPCTSTR Filename, const VARIANT& FileFormat, const VARIANT& Password, const VARIANT& WriteResPassword, const VARIANT& ReadOnlyRecommended, const VARIANT& CreateBackup, const VARIANT& AddToMru, const VARIANT& TextCodepage,
  1963. const VARIANT& TextVisualLayout)
  1964. {
  1965. static BYTE parms[] =
  1966. VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  1967. InvokeHelper(0x11c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1968. Filename, &FileFormat, &Password, &WriteResPassword, &ReadOnlyRecommended, &CreateBackup, &AddToMru, &TextCodepage, &TextVisualLayout);
  1969. }
  1970. void _Worksheet::Select(const VARIANT& Replace)
  1971. {
  1972. static BYTE parms[] =
  1973. VTS_VARIANT;
  1974. InvokeHelper(0xeb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1975. &Replace);
  1976. }
  1977. void _Worksheet::Unprotect(const VARIANT& Password)
  1978. {
  1979. static BYTE parms[] =
  1980. VTS_VARIANT;
  1981. InvokeHelper(0x11d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  1982. &Password);
  1983. }
  1984. long _Worksheet::GetVisible()
  1985. {
  1986. long result;
  1987. InvokeHelper(0x22e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  1988. return result;
  1989. }
  1990. void _Worksheet::SetVisible(long nNewValue)
  1991. {
  1992. static BYTE parms[] =
  1993. VTS_I4;
  1994. InvokeHelper(0x22e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  1995. nNewValue);
  1996. }
  1997. LPDISPATCH _Worksheet::GetShapes()
  1998. {
  1999. LPDISPATCH result;
  2000. InvokeHelper(0x561, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2001. return result;
  2002. }
  2003. BOOL _Worksheet::GetTransitionExpEval()
  2004. {
  2005. BOOL result;
  2006. InvokeHelper(0x191, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2007. return result;
  2008. }
  2009. void _Worksheet::SetTransitionExpEval(BOOL bNewValue)
  2010. {
  2011. static BYTE parms[] =
  2012. VTS_BOOL;
  2013. InvokeHelper(0x191, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2014. bNewValue);
  2015. }
  2016. BOOL _Worksheet::GetAutoFilterMode()
  2017. {
  2018. BOOL result;
  2019. InvokeHelper(0x318, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2020. return result;
  2021. }
  2022. void _Worksheet::SetAutoFilterMode(BOOL bNewValue)
  2023. {
  2024. static BYTE parms[] =
  2025. VTS_BOOL;
  2026. InvokeHelper(0x318, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2027. bNewValue);
  2028. }
  2029. void _Worksheet::SetBackgroundPicture(LPCTSTR Filename)
  2030. {
  2031. static BYTE parms[] =
  2032. VTS_BSTR;
  2033. InvokeHelper(0x4a4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2034. Filename);
  2035. }
  2036. void _Worksheet::Calculate()
  2037. {
  2038. InvokeHelper(0x117, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2039. }
  2040. BOOL _Worksheet::GetEnableCalculation()
  2041. {
  2042. BOOL result;
  2043. InvokeHelper(0x590, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2044. return result;
  2045. }
  2046. void _Worksheet::SetEnableCalculation(BOOL bNewValue)
  2047. {
  2048. static BYTE parms[] =
  2049. VTS_BOOL;
  2050. InvokeHelper(0x590, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2051. bNewValue);
  2052. }
  2053. LPDISPATCH _Worksheet::GetCells()
  2054. {
  2055. LPDISPATCH result;
  2056. InvokeHelper(0xee, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2057. return result;
  2058. }
  2059. LPDISPATCH _Worksheet::ChartObjects(const VARIANT& Index)
  2060. {
  2061. LPDISPATCH result;
  2062. static BYTE parms[] =
  2063. VTS_VARIANT;
  2064. InvokeHelper(0x424, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2065. &Index);
  2066. return result;
  2067. }
  2068. void _Worksheet::CheckSpelling(const VARIANT& CustomDictionary, const VARIANT& IgnoreUppercase, const VARIANT& AlwaysSuggest, const VARIANT& SpellLang)
  2069. {
  2070. static BYTE parms[] =
  2071. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2072. InvokeHelper(0x1f9, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2073. &CustomDictionary, &IgnoreUppercase, &AlwaysSuggest, &SpellLang);
  2074. }
  2075. LPDISPATCH _Worksheet::GetCircularReference()
  2076. {
  2077. LPDISPATCH result;
  2078. InvokeHelper(0x42d, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2079. return result;
  2080. }
  2081. void _Worksheet::ClearArrows()
  2082. {
  2083. InvokeHelper(0x3ca, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2084. }
  2085. LPDISPATCH _Worksheet::GetColumns()
  2086. {
  2087. LPDISPATCH result;
  2088. InvokeHelper(0xf1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2089. return result;
  2090. }
  2091. long _Worksheet::GetConsolidationFunction()
  2092. {
  2093. long result;
  2094. InvokeHelper(0x315, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2095. return result;
  2096. }
  2097. VARIANT _Worksheet::GetConsolidationOptions()
  2098. {
  2099. VARIANT result;
  2100. InvokeHelper(0x316, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  2101. return result;
  2102. }
  2103. VARIANT _Worksheet::GetConsolidationSources()
  2104. {
  2105. VARIANT result;
  2106. InvokeHelper(0x317, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  2107. return result;
  2108. }
  2109. BOOL _Worksheet::GetEnableAutoFilter()
  2110. {
  2111. BOOL result;
  2112. InvokeHelper(0x484, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2113. return result;
  2114. }
  2115. void _Worksheet::SetEnableAutoFilter(BOOL bNewValue)
  2116. {
  2117. static BYTE parms[] =
  2118. VTS_BOOL;
  2119. InvokeHelper(0x484, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2120. bNewValue);
  2121. }
  2122. long _Worksheet::GetEnableSelection()
  2123. {
  2124. long result;
  2125. InvokeHelper(0x591, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2126. return result;
  2127. }
  2128. void _Worksheet::SetEnableSelection(long nNewValue)
  2129. {
  2130. static BYTE parms[] =
  2131. VTS_I4;
  2132. InvokeHelper(0x591, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2133. nNewValue);
  2134. }
  2135. BOOL _Worksheet::GetEnableOutlining()
  2136. {
  2137. BOOL result;
  2138. InvokeHelper(0x485, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2139. return result;
  2140. }
  2141. void _Worksheet::SetEnableOutlining(BOOL bNewValue)
  2142. {
  2143. static BYTE parms[] =
  2144. VTS_BOOL;
  2145. InvokeHelper(0x485, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2146. bNewValue);
  2147. }
  2148. BOOL _Worksheet::GetEnablePivotTable()
  2149. {
  2150. BOOL result;
  2151. InvokeHelper(0x486, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2152. return result;
  2153. }
  2154. void _Worksheet::SetEnablePivotTable(BOOL bNewValue)
  2155. {
  2156. static BYTE parms[] =
  2157. VTS_BOOL;
  2158. InvokeHelper(0x486, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2159. bNewValue);
  2160. }
  2161. VARIANT _Worksheet::Evaluate(const VARIANT& Name)
  2162. {
  2163. VARIANT result;
  2164. static BYTE parms[] =
  2165. VTS_VARIANT;
  2166. InvokeHelper(0x1, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  2167. &Name);
  2168. return result;
  2169. }
  2170. VARIANT _Worksheet::_Evaluate(const VARIANT& Name)
  2171. {
  2172. VARIANT result;
  2173. static BYTE parms[] =
  2174. VTS_VARIANT;
  2175. InvokeHelper(0xfffffffb, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  2176. &Name);
  2177. return result;
  2178. }
  2179. BOOL _Worksheet::GetFilterMode()
  2180. {
  2181. BOOL result;
  2182. InvokeHelper(0x320, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2183. return result;
  2184. }
  2185. void _Worksheet::ResetAllPageBreaks()
  2186. {
  2187. InvokeHelper(0x592, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2188. }
  2189. LPDISPATCH _Worksheet::GetNames()
  2190. {
  2191. LPDISPATCH result;
  2192. InvokeHelper(0x1ba, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2193. return result;
  2194. }
  2195. LPDISPATCH _Worksheet::OLEObjects(const VARIANT& Index)
  2196. {
  2197. LPDISPATCH result;
  2198. static BYTE parms[] =
  2199. VTS_VARIANT;
  2200. InvokeHelper(0x31f, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2201. &Index);
  2202. return result;
  2203. }
  2204. LPDISPATCH _Worksheet::GetOutline()
  2205. {
  2206. LPDISPATCH result;
  2207. InvokeHelper(0x66, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2208. return result;
  2209. }
  2210. void _Worksheet::Paste(const VARIANT& Destination, const VARIANT& Link)
  2211. {
  2212. static BYTE parms[] =
  2213. VTS_VARIANT VTS_VARIANT;
  2214. InvokeHelper(0xd3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2215. &Destination, &Link);
  2216. }
  2217. void _Worksheet::PasteSpecial(const VARIANT& Format, const VARIANT& Link, const VARIANT& DisplayAsIcon, const VARIANT& IconFileName, const VARIANT& IconIndex, const VARIANT& IconLabel)
  2218. {
  2219. static BYTE parms[] =
  2220. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2221. InvokeHelper(0x403, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2222. &Format, &Link, &DisplayAsIcon, &IconFileName, &IconIndex, &IconLabel);
  2223. }
  2224. LPDISPATCH _Worksheet::PivotTables(const VARIANT& Index)
  2225. {
  2226. LPDISPATCH result;
  2227. static BYTE parms[] =
  2228. VTS_VARIANT;
  2229. InvokeHelper(0x2b2, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2230. &Index);
  2231. return result;
  2232. }
  2233. LPDISPATCH _Worksheet::PivotTableWizard(const VARIANT& SourceType, const VARIANT& SourceData, const VARIANT& TableDestination, const VARIANT& TableName, const VARIANT& RowGrand, const VARIANT& ColumnGrand, const VARIANT& SaveData,
  2234. const VARIANT& HasAutoFormat, const VARIANT& AutoPage, const VARIANT& Reserved, const VARIANT& BackgroundQuery, const VARIANT& OptimizeCache, const VARIANT& PageFieldOrder, const VARIANT& PageFieldWrapCount, const VARIANT& ReadData,
  2235. const VARIANT& Connection)
  2236. {
  2237. LPDISPATCH result;
  2238. static BYTE parms[] =
  2239. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2240. InvokeHelper(0x2ac, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2241. &SourceType, &SourceData, &TableDestination, &TableName, &RowGrand, &ColumnGrand, &SaveData, &HasAutoFormat, &AutoPage, &Reserved, &BackgroundQuery, &OptimizeCache, &PageFieldOrder, &PageFieldWrapCount, &ReadData, &Connection);
  2242. return result;
  2243. }
  2244. LPDISPATCH _Worksheet::GetRange(const VARIANT& Cell1, const VARIANT& Cell2)
  2245. {
  2246. LPDISPATCH result;
  2247. static BYTE parms[] =
  2248. VTS_VARIANT VTS_VARIANT;
  2249. InvokeHelper(0xc5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  2250. &Cell1, &Cell2);
  2251. return result;
  2252. }
  2253. LPDISPATCH _Worksheet::GetRows()
  2254. {
  2255. LPDISPATCH result;
  2256. InvokeHelper(0x102, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2257. return result;
  2258. }
  2259. LPDISPATCH _Worksheet::Scenarios(const VARIANT& Index)
  2260. {
  2261. LPDISPATCH result;
  2262. static BYTE parms[] =
  2263. VTS_VARIANT;
  2264. InvokeHelper(0x38c, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  2265. &Index);
  2266. return result;
  2267. }
  2268. CString _Worksheet::GetScrollArea()
  2269. {
  2270. CString result;
  2271. InvokeHelper(0x599, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2272. return result;
  2273. }
  2274. void _Worksheet::SetScrollArea(LPCTSTR lpszNewValue)
  2275. {
  2276. static BYTE parms[] =
  2277. VTS_BSTR;
  2278. InvokeHelper(0x599, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2279. lpszNewValue);
  2280. }
  2281. void _Worksheet::ShowAllData()
  2282. {
  2283. InvokeHelper(0x31a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2284. }
  2285. void _Worksheet::ShowDataForm()
  2286. {
  2287. InvokeHelper(0x199, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2288. }
  2289. double _Worksheet::GetStandardHeight()
  2290. {
  2291. double result;
  2292. InvokeHelper(0x197, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  2293. return result;
  2294. }
  2295. double _Worksheet::GetStandardWidth()
  2296. {
  2297. double result;
  2298. InvokeHelper(0x198, DISPATCH_PROPERTYGET, VT_R8, (void*)&result, NULL);
  2299. return result;
  2300. }
  2301. void _Worksheet::SetStandardWidth(double newValue)
  2302. {
  2303. static BYTE parms[] =
  2304. VTS_R8;
  2305. InvokeHelper(0x198, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2306. newValue);
  2307. }
  2308. BOOL _Worksheet::GetTransitionFormEntry()
  2309. {
  2310. BOOL result;
  2311. InvokeHelper(0x192, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2312. return result;
  2313. }
  2314. void _Worksheet::SetTransitionFormEntry(BOOL bNewValue)
  2315. {
  2316. static BYTE parms[] =
  2317. VTS_BOOL;
  2318. InvokeHelper(0x192, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2319. bNewValue);
  2320. }
  2321. long _Worksheet::GetType()
  2322. {
  2323. long result;
  2324. InvokeHelper(0x6c, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2325. return result;
  2326. }
  2327. LPDISPATCH _Worksheet::GetUsedRange()
  2328. {
  2329. LPDISPATCH result;
  2330. InvokeHelper(0x19c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2331. return result;
  2332. }
  2333. LPDISPATCH _Worksheet::GetHPageBreaks()
  2334. {
  2335. LPDISPATCH result;
  2336. InvokeHelper(0x58a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2337. return result;
  2338. }
  2339. LPDISPATCH _Worksheet::GetVPageBreaks()
  2340. {
  2341. LPDISPATCH result;
  2342. InvokeHelper(0x58b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2343. return result;
  2344. }
  2345. LPDISPATCH _Worksheet::GetQueryTables()
  2346. {
  2347. LPDISPATCH result;
  2348. InvokeHelper(0x59a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2349. return result;
  2350. }
  2351. BOOL _Worksheet::GetDisplayPageBreaks()
  2352. {
  2353. BOOL result;
  2354. InvokeHelper(0x59b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2355. return result;
  2356. }
  2357. void _Worksheet::SetDisplayPageBreaks(BOOL bNewValue)
  2358. {
  2359. static BYTE parms[] =
  2360. VTS_BOOL;
  2361. InvokeHelper(0x59b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2362. bNewValue);
  2363. }
  2364. LPDISPATCH _Worksheet::GetComments()
  2365. {
  2366. LPDISPATCH result;
  2367. InvokeHelper(0x23f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2368. return result;
  2369. }
  2370. LPDISPATCH _Worksheet::GetHyperlinks()
  2371. {
  2372. LPDISPATCH result;
  2373. InvokeHelper(0x571, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2374. return result;
  2375. }
  2376. void _Worksheet::ClearCircles()
  2377. {
  2378. InvokeHelper(0x59c, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2379. }
  2380. void _Worksheet::CircleInvalid()
  2381. {
  2382. InvokeHelper(0x59d, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2383. }
  2384. LPDISPATCH _Worksheet::GetAutoFilter()
  2385. {
  2386. LPDISPATCH result;
  2387. InvokeHelper(0x319, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2388. return result;
  2389. }
  2390. BOOL _Worksheet::GetDisplayRightToLeft()
  2391. {
  2392. BOOL result;
  2393. InvokeHelper(0x6ee, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2394. return result;
  2395. }
  2396. void _Worksheet::SetDisplayRightToLeft(BOOL bNewValue)
  2397. {
  2398. static BYTE parms[] =
  2399. VTS_BOOL;
  2400. InvokeHelper(0x6ee, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2401. bNewValue);
  2402. }
  2403. LPDISPATCH _Worksheet::GetScripts()
  2404. {
  2405. LPDISPATCH result;
  2406. InvokeHelper(0x718, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2407. return result;
  2408. }
  2409. void _Worksheet::PrintOut(const VARIANT& From, const VARIANT& To, const VARIANT& Copies, const VARIANT& Preview, const VARIANT& ActivePrinter, const VARIANT& PrintToFile, const VARIANT& Collate, const VARIANT& PrToFileName)
  2410. {
  2411. static BYTE parms[] =
  2412. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2413. InvokeHelper(0x6ec, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2414. &From, &To, &Copies, &Preview, &ActivePrinter, &PrintToFile, &Collate, &PrToFileName);
  2415. }
  2416. /////////////////////////////////////////////////////////////////////////////
  2417. // _Workbook properties
  2418. /////////////////////////////////////////////////////////////////////////////
  2419. // _Workbook operations
  2420. LPDISPATCH _Workbook::GetApplication()
  2421. {
  2422. LPDISPATCH result;
  2423. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2424. return result;
  2425. }
  2426. long _Workbook::GetCreator()
  2427. {
  2428. long result;
  2429. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2430. return result;
  2431. }
  2432. LPDISPATCH _Workbook::GetParent()
  2433. {
  2434. LPDISPATCH result;
  2435. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2436. return result;
  2437. }
  2438. BOOL _Workbook::GetAcceptLabelsInFormulas()
  2439. {
  2440. BOOL result;
  2441. InvokeHelper(0x5a1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2442. return result;
  2443. }
  2444. void _Workbook::SetAcceptLabelsInFormulas(BOOL bNewValue)
  2445. {
  2446. static BYTE parms[] =
  2447. VTS_BOOL;
  2448. InvokeHelper(0x5a1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2449. bNewValue);
  2450. }
  2451. void _Workbook::Activate()
  2452. {
  2453. InvokeHelper(0x130, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2454. }
  2455. LPDISPATCH _Workbook::GetActiveChart()
  2456. {
  2457. LPDISPATCH result;
  2458. InvokeHelper(0xb7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2459. return result;
  2460. }
  2461. LPDISPATCH _Workbook::GetActiveSheet()
  2462. {
  2463. LPDISPATCH result;
  2464. InvokeHelper(0x133, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2465. return result;
  2466. }
  2467. long _Workbook::GetAutoUpdateFrequency()
  2468. {
  2469. long result;
  2470. InvokeHelper(0x5a2, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2471. return result;
  2472. }
  2473. void _Workbook::SetAutoUpdateFrequency(long nNewValue)
  2474. {
  2475. static BYTE parms[] =
  2476. VTS_I4;
  2477. InvokeHelper(0x5a2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2478. nNewValue);
  2479. }
  2480. BOOL _Workbook::GetAutoUpdateSaveChanges()
  2481. {
  2482. BOOL result;
  2483. InvokeHelper(0x5a3, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2484. return result;
  2485. }
  2486. void _Workbook::SetAutoUpdateSaveChanges(BOOL bNewValue)
  2487. {
  2488. static BYTE parms[] =
  2489. VTS_BOOL;
  2490. InvokeHelper(0x5a3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2491. bNewValue);
  2492. }
  2493. long _Workbook::GetChangeHistoryDuration()
  2494. {
  2495. long result;
  2496. InvokeHelper(0x5a4, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2497. return result;
  2498. }
  2499. void _Workbook::SetChangeHistoryDuration(long nNewValue)
  2500. {
  2501. static BYTE parms[] =
  2502. VTS_I4;
  2503. InvokeHelper(0x5a4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2504. nNewValue);
  2505. }
  2506. LPDISPATCH _Workbook::GetBuiltinDocumentProperties()
  2507. {
  2508. LPDISPATCH result;
  2509. InvokeHelper(0x498, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2510. return result;
  2511. }
  2512. void _Workbook::ChangeFileAccess(long Mode, const VARIANT& WritePassword, const VARIANT& Notify)
  2513. {
  2514. static BYTE parms[] =
  2515. VTS_I4 VTS_VARIANT VTS_VARIANT;
  2516. InvokeHelper(0x3dd, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2517. Mode, &WritePassword, &Notify);
  2518. }
  2519. void _Workbook::ChangeLink(LPCTSTR Name, LPCTSTR NewName, long Type)
  2520. {
  2521. static BYTE parms[] =
  2522. VTS_BSTR VTS_BSTR VTS_I4;
  2523. InvokeHelper(0x322, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2524. Name, NewName, Type);
  2525. }
  2526. LPDISPATCH _Workbook::GetCharts()
  2527. {
  2528. LPDISPATCH result;
  2529. InvokeHelper(0x79, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2530. return result;
  2531. }
  2532. void _Workbook::Close(const VARIANT& SaveChanges, const VARIANT& Filename, const VARIANT& RouteWorkbook)
  2533. {
  2534. static BYTE parms[] =
  2535. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2536. InvokeHelper(0x115, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2537. &SaveChanges, &Filename, &RouteWorkbook);
  2538. }
  2539. CString _Workbook::GetCodeName()
  2540. {
  2541. CString result;
  2542. InvokeHelper(0x55d, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2543. return result;
  2544. }
  2545. CString _Workbook::Get_CodeName()
  2546. {
  2547. CString result;
  2548. InvokeHelper(0x80010000, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2549. return result;
  2550. }
  2551. void _Workbook::Set_CodeName(LPCTSTR lpszNewValue)
  2552. {
  2553. static BYTE parms[] =
  2554. VTS_BSTR;
  2555. InvokeHelper(0x80010000, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2556. lpszNewValue);
  2557. }
  2558. VARIANT _Workbook::GetColors(const VARIANT& Index)
  2559. {
  2560. VARIANT result;
  2561. static BYTE parms[] =
  2562. VTS_VARIANT;
  2563. InvokeHelper(0x11e, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  2564. &Index);
  2565. return result;
  2566. }
  2567. void _Workbook::SetColors(const VARIANT& Index, const VARIANT& newValue)
  2568. {
  2569. static BYTE parms[] =
  2570. VTS_VARIANT VTS_VARIANT;
  2571. InvokeHelper(0x11e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2572. &Index, &newValue);
  2573. }
  2574. LPDISPATCH _Workbook::GetCommandBars()
  2575. {
  2576. LPDISPATCH result;
  2577. InvokeHelper(0x59f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2578. return result;
  2579. }
  2580. long _Workbook::GetConflictResolution()
  2581. {
  2582. long result;
  2583. InvokeHelper(0x497, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2584. return result;
  2585. }
  2586. void _Workbook::SetConflictResolution(long nNewValue)
  2587. {
  2588. static BYTE parms[] =
  2589. VTS_I4;
  2590. InvokeHelper(0x497, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2591. nNewValue);
  2592. }
  2593. LPDISPATCH _Workbook::GetContainer()
  2594. {
  2595. LPDISPATCH result;
  2596. InvokeHelper(0x4a6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2597. return result;
  2598. }
  2599. BOOL _Workbook::GetCreateBackup()
  2600. {
  2601. BOOL result;
  2602. InvokeHelper(0x11f, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2603. return result;
  2604. }
  2605. LPDISPATCH _Workbook::GetCustomDocumentProperties()
  2606. {
  2607. LPDISPATCH result;
  2608. InvokeHelper(0x499, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2609. return result;
  2610. }
  2611. BOOL _Workbook::GetDate1904()
  2612. {
  2613. BOOL result;
  2614. InvokeHelper(0x193, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2615. return result;
  2616. }
  2617. void _Workbook::SetDate1904(BOOL bNewValue)
  2618. {
  2619. static BYTE parms[] =
  2620. VTS_BOOL;
  2621. InvokeHelper(0x193, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2622. bNewValue);
  2623. }
  2624. void _Workbook::DeleteNumberFormat(LPCTSTR NumberFormat)
  2625. {
  2626. static BYTE parms[] =
  2627. VTS_BSTR;
  2628. InvokeHelper(0x18d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2629. NumberFormat);
  2630. }
  2631. long _Workbook::GetDisplayDrawingObjects()
  2632. {
  2633. long result;
  2634. InvokeHelper(0x194, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2635. return result;
  2636. }
  2637. void _Workbook::SetDisplayDrawingObjects(long nNewValue)
  2638. {
  2639. static BYTE parms[] =
  2640. VTS_I4;
  2641. InvokeHelper(0x194, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2642. nNewValue);
  2643. }
  2644. BOOL _Workbook::ExclusiveAccess()
  2645. {
  2646. BOOL result;
  2647. InvokeHelper(0x490, DISPATCH_METHOD, VT_BOOL, (void*)&result, NULL);
  2648. return result;
  2649. }
  2650. long _Workbook::GetFileFormat()
  2651. {
  2652. long result;
  2653. InvokeHelper(0x120, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2654. return result;
  2655. }
  2656. void _Workbook::ForwardMailer()
  2657. {
  2658. InvokeHelper(0x3cd, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2659. }
  2660. CString _Workbook::GetFullName()
  2661. {
  2662. CString result;
  2663. InvokeHelper(0x121, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2664. return result;
  2665. }
  2666. BOOL _Workbook::GetHasPassword()
  2667. {
  2668. BOOL result;
  2669. InvokeHelper(0x122, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2670. return result;
  2671. }
  2672. BOOL _Workbook::GetHasRoutingSlip()
  2673. {
  2674. BOOL result;
  2675. InvokeHelper(0x3b6, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2676. return result;
  2677. }
  2678. void _Workbook::SetHasRoutingSlip(BOOL bNewValue)
  2679. {
  2680. static BYTE parms[] =
  2681. VTS_BOOL;
  2682. InvokeHelper(0x3b6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2683. bNewValue);
  2684. }
  2685. BOOL _Workbook::GetIsAddin()
  2686. {
  2687. BOOL result;
  2688. InvokeHelper(0x5a5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2689. return result;
  2690. }
  2691. void _Workbook::SetIsAddin(BOOL bNewValue)
  2692. {
  2693. static BYTE parms[] =
  2694. VTS_BOOL;
  2695. InvokeHelper(0x5a5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2696. bNewValue);
  2697. }
  2698. VARIANT _Workbook::LinkInfo(LPCTSTR Name, long LinkInfo, const VARIANT& Type, const VARIANT& EditionRef)
  2699. {
  2700. VARIANT result;
  2701. static BYTE parms[] =
  2702. VTS_BSTR VTS_I4 VTS_VARIANT VTS_VARIANT;
  2703. InvokeHelper(0x327, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  2704. Name, LinkInfo, &Type, &EditionRef);
  2705. return result;
  2706. }
  2707. VARIANT _Workbook::LinkSources(const VARIANT& Type)
  2708. {
  2709. VARIANT result;
  2710. static BYTE parms[] =
  2711. VTS_VARIANT;
  2712. InvokeHelper(0x328, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  2713. &Type);
  2714. return result;
  2715. }
  2716. LPDISPATCH _Workbook::GetMailer()
  2717. {
  2718. LPDISPATCH result;
  2719. InvokeHelper(0x3d3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2720. return result;
  2721. }
  2722. void _Workbook::MergeWorkbook(const VARIANT& Filename)
  2723. {
  2724. static BYTE parms[] =
  2725. VTS_VARIANT;
  2726. InvokeHelper(0x5a6, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2727. &Filename);
  2728. }
  2729. BOOL _Workbook::GetMultiUserEditing()
  2730. {
  2731. BOOL result;
  2732. InvokeHelper(0x491, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2733. return result;
  2734. }
  2735. CString _Workbook::GetName()
  2736. {
  2737. CString result;
  2738. InvokeHelper(0x6e, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2739. return result;
  2740. }
  2741. LPDISPATCH _Workbook::GetNames()
  2742. {
  2743. LPDISPATCH result;
  2744. InvokeHelper(0x1ba, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2745. return result;
  2746. }
  2747. LPDISPATCH _Workbook::NewWindow()
  2748. {
  2749. LPDISPATCH result;
  2750. InvokeHelper(0x118, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  2751. return result;
  2752. }
  2753. void _Workbook::OpenLinks(LPCTSTR Name, const VARIANT& ReadOnly, const VARIANT& Type)
  2754. {
  2755. static BYTE parms[] =
  2756. VTS_BSTR VTS_VARIANT VTS_VARIANT;
  2757. InvokeHelper(0x323, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2758. Name, &ReadOnly, &Type);
  2759. }
  2760. CString _Workbook::GetPath()
  2761. {
  2762. CString result;
  2763. InvokeHelper(0x123, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  2764. return result;
  2765. }
  2766. BOOL _Workbook::GetPersonalViewListSettings()
  2767. {
  2768. BOOL result;
  2769. InvokeHelper(0x5a7, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2770. return result;
  2771. }
  2772. void _Workbook::SetPersonalViewListSettings(BOOL bNewValue)
  2773. {
  2774. static BYTE parms[] =
  2775. VTS_BOOL;
  2776. InvokeHelper(0x5a7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2777. bNewValue);
  2778. }
  2779. BOOL _Workbook::GetPersonalViewPrintSettings()
  2780. {
  2781. BOOL result;
  2782. InvokeHelper(0x5a8, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2783. return result;
  2784. }
  2785. void _Workbook::SetPersonalViewPrintSettings(BOOL bNewValue)
  2786. {
  2787. static BYTE parms[] =
  2788. VTS_BOOL;
  2789. InvokeHelper(0x5a8, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2790. bNewValue);
  2791. }
  2792. LPDISPATCH _Workbook::PivotCaches()
  2793. {
  2794. LPDISPATCH result;
  2795. InvokeHelper(0x5a9, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, NULL);
  2796. return result;
  2797. }
  2798. void _Workbook::Post(const VARIANT& DestName)
  2799. {
  2800. static BYTE parms[] =
  2801. VTS_VARIANT;
  2802. InvokeHelper(0x48e, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2803. &DestName);
  2804. }
  2805. BOOL _Workbook::GetPrecisionAsDisplayed()
  2806. {
  2807. BOOL result;
  2808. InvokeHelper(0x195, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2809. return result;
  2810. }
  2811. void _Workbook::SetPrecisionAsDisplayed(BOOL bNewValue)
  2812. {
  2813. static BYTE parms[] =
  2814. VTS_BOOL;
  2815. InvokeHelper(0x195, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2816. bNewValue);
  2817. }
  2818. void _Workbook::PrintPreview(const VARIANT& EnableChanges)
  2819. {
  2820. static BYTE parms[] =
  2821. VTS_VARIANT;
  2822. InvokeHelper(0x119, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2823. &EnableChanges);
  2824. }
  2825. void _Workbook::Protect(const VARIANT& Password, const VARIANT& Structure, const VARIANT& Windows)
  2826. {
  2827. static BYTE parms[] =
  2828. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2829. InvokeHelper(0x11a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2830. &Password, &Structure, &Windows);
  2831. }
  2832. void _Workbook::ProtectSharing(const VARIANT& Filename, const VARIANT& Password, const VARIANT& WriteResPassword, const VARIANT& ReadOnlyRecommended, const VARIANT& CreateBackup, const VARIANT& SharingPassword)
  2833. {
  2834. static BYTE parms[] =
  2835. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2836. InvokeHelper(0x5aa, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2837. &Filename, &Password, &WriteResPassword, &ReadOnlyRecommended, &CreateBackup, &SharingPassword);
  2838. }
  2839. BOOL _Workbook::GetProtectStructure()
  2840. {
  2841. BOOL result;
  2842. InvokeHelper(0x24c, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2843. return result;
  2844. }
  2845. BOOL _Workbook::GetProtectWindows()
  2846. {
  2847. BOOL result;
  2848. InvokeHelper(0x127, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2849. return result;
  2850. }
  2851. BOOL _Workbook::GetReadOnly()
  2852. {
  2853. BOOL result;
  2854. InvokeHelper(0x128, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2855. return result;
  2856. }
  2857. BOOL _Workbook::GetReadOnlyRecommended()
  2858. {
  2859. BOOL result;
  2860. InvokeHelper(0x129, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2861. return result;
  2862. }
  2863. void _Workbook::RefreshAll()
  2864. {
  2865. InvokeHelper(0x5ac, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2866. }
  2867. void _Workbook::Reply()
  2868. {
  2869. InvokeHelper(0x3d1, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2870. }
  2871. void _Workbook::ReplyAll()
  2872. {
  2873. InvokeHelper(0x3d2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2874. }
  2875. void _Workbook::RemoveUser(long Index)
  2876. {
  2877. static BYTE parms[] =
  2878. VTS_I4;
  2879. InvokeHelper(0x5ad, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2880. Index);
  2881. }
  2882. long _Workbook::GetRevisionNumber()
  2883. {
  2884. long result;
  2885. InvokeHelper(0x494, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  2886. return result;
  2887. }
  2888. void _Workbook::Route()
  2889. {
  2890. InvokeHelper(0x3b2, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2891. }
  2892. BOOL _Workbook::GetRouted()
  2893. {
  2894. BOOL result;
  2895. InvokeHelper(0x3b7, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2896. return result;
  2897. }
  2898. LPDISPATCH _Workbook::GetRoutingSlip()
  2899. {
  2900. LPDISPATCH result;
  2901. InvokeHelper(0x3b5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2902. return result;
  2903. }
  2904. void _Workbook::RunAutoMacros(long Which)
  2905. {
  2906. static BYTE parms[] =
  2907. VTS_I4;
  2908. InvokeHelper(0x27a, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2909. Which);
  2910. }
  2911. void _Workbook::Save()
  2912. {
  2913. InvokeHelper(0x11b, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  2914. }
  2915. void _Workbook::SaveAs(const VARIANT& Filename, const VARIANT& FileFormat, const VARIANT& Password, const VARIANT& WriteResPassword, const VARIANT& ReadOnlyRecommended, const VARIANT& CreateBackup, long AccessMode, const VARIANT& ConflictResolution,
  2916. const VARIANT& AddToMru, const VARIANT& TextCodepage, const VARIANT& TextVisualLayout)
  2917. {
  2918. static BYTE parms[] =
  2919. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2920. InvokeHelper(0x11c, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2921. &Filename, &FileFormat, &Password, &WriteResPassword, &ReadOnlyRecommended, &CreateBackup, AccessMode, &ConflictResolution, &AddToMru, &TextCodepage, &TextVisualLayout);
  2922. }
  2923. void _Workbook::SaveCopyAs(const VARIANT& Filename)
  2924. {
  2925. static BYTE parms[] =
  2926. VTS_VARIANT;
  2927. InvokeHelper(0xaf, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2928. &Filename);
  2929. }
  2930. BOOL _Workbook::GetSaved()
  2931. {
  2932. BOOL result;
  2933. InvokeHelper(0x12a, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2934. return result;
  2935. }
  2936. void _Workbook::SetSaved(BOOL bNewValue)
  2937. {
  2938. static BYTE parms[] =
  2939. VTS_BOOL;
  2940. InvokeHelper(0x12a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2941. bNewValue);
  2942. }
  2943. BOOL _Workbook::GetSaveLinkValues()
  2944. {
  2945. BOOL result;
  2946. InvokeHelper(0x196, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2947. return result;
  2948. }
  2949. void _Workbook::SetSaveLinkValues(BOOL bNewValue)
  2950. {
  2951. static BYTE parms[] =
  2952. VTS_BOOL;
  2953. InvokeHelper(0x196, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2954. bNewValue);
  2955. }
  2956. void _Workbook::SendMail(const VARIANT& Recipients, const VARIANT& Subject, const VARIANT& ReturnReceipt)
  2957. {
  2958. static BYTE parms[] =
  2959. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  2960. InvokeHelper(0x3b3, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2961. &Recipients, &Subject, &ReturnReceipt);
  2962. }
  2963. void _Workbook::SendMailer(const VARIANT& FileFormat, long Priority)
  2964. {
  2965. static BYTE parms[] =
  2966. VTS_VARIANT VTS_I4;
  2967. InvokeHelper(0x3d4, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2968. &FileFormat, Priority);
  2969. }
  2970. void _Workbook::SetLinkOnData(LPCTSTR Name, const VARIANT& Procedure)
  2971. {
  2972. static BYTE parms[] =
  2973. VTS_BSTR VTS_VARIANT;
  2974. InvokeHelper(0x329, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  2975. Name, &Procedure);
  2976. }
  2977. LPDISPATCH _Workbook::GetSheets()
  2978. {
  2979. LPDISPATCH result;
  2980. InvokeHelper(0x1e5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  2981. return result;
  2982. }
  2983. BOOL _Workbook::GetShowConflictHistory()
  2984. {
  2985. BOOL result;
  2986. InvokeHelper(0x493, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  2987. return result;
  2988. }
  2989. void _Workbook::SetShowConflictHistory(BOOL bNewValue)
  2990. {
  2991. static BYTE parms[] =
  2992. VTS_BOOL;
  2993. InvokeHelper(0x493, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  2994. bNewValue);
  2995. }
  2996. LPDISPATCH _Workbook::GetStyles()
  2997. {
  2998. LPDISPATCH result;
  2999. InvokeHelper(0x1ed, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3000. return result;
  3001. }
  3002. void _Workbook::Unprotect(const VARIANT& Password)
  3003. {
  3004. static BYTE parms[] =
  3005. VTS_VARIANT;
  3006. InvokeHelper(0x11d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3007. &Password);
  3008. }
  3009. void _Workbook::UnprotectSharing(const VARIANT& SharingPassword)
  3010. {
  3011. static BYTE parms[] =
  3012. VTS_VARIANT;
  3013. InvokeHelper(0x5af, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3014. &SharingPassword);
  3015. }
  3016. void _Workbook::UpdateFromFile()
  3017. {
  3018. InvokeHelper(0x3e3, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3019. }
  3020. void _Workbook::UpdateLink(const VARIANT& Name, const VARIANT& Type)
  3021. {
  3022. static BYTE parms[] =
  3023. VTS_VARIANT VTS_VARIANT;
  3024. InvokeHelper(0x324, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3025. &Name, &Type);
  3026. }
  3027. BOOL _Workbook::GetUpdateRemoteReferences()
  3028. {
  3029. BOOL result;
  3030. InvokeHelper(0x19b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3031. return result;
  3032. }
  3033. void _Workbook::SetUpdateRemoteReferences(BOOL bNewValue)
  3034. {
  3035. static BYTE parms[] =
  3036. VTS_BOOL;
  3037. InvokeHelper(0x19b, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3038. bNewValue);
  3039. }
  3040. VARIANT _Workbook::GetUserStatus()
  3041. {
  3042. VARIANT result;
  3043. InvokeHelper(0x495, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3044. return result;
  3045. }
  3046. LPDISPATCH _Workbook::GetCustomViews()
  3047. {
  3048. LPDISPATCH result;
  3049. InvokeHelper(0x5b0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3050. return result;
  3051. }
  3052. LPDISPATCH _Workbook::GetWindows()
  3053. {
  3054. LPDISPATCH result;
  3055. InvokeHelper(0x1ae, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3056. return result;
  3057. }
  3058. LPDISPATCH _Workbook::GetWorksheets()
  3059. {
  3060. LPDISPATCH result;
  3061. InvokeHelper(0x1ee, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3062. return result;
  3063. }
  3064. BOOL _Workbook::GetWriteReserved()
  3065. {
  3066. BOOL result;
  3067. InvokeHelper(0x12b, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3068. return result;
  3069. }
  3070. CString _Workbook::GetWriteReservedBy()
  3071. {
  3072. CString result;
  3073. InvokeHelper(0x12c, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  3074. return result;
  3075. }
  3076. LPDISPATCH _Workbook::GetExcel4IntlMacroSheets()
  3077. {
  3078. LPDISPATCH result;
  3079. InvokeHelper(0x245, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3080. return result;
  3081. }
  3082. LPDISPATCH _Workbook::GetExcel4MacroSheets()
  3083. {
  3084. LPDISPATCH result;
  3085. InvokeHelper(0x243, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3086. return result;
  3087. }
  3088. BOOL _Workbook::GetTemplateRemoveExtData()
  3089. {
  3090. BOOL result;
  3091. InvokeHelper(0x5b1, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3092. return result;
  3093. }
  3094. void _Workbook::SetTemplateRemoveExtData(BOOL bNewValue)
  3095. {
  3096. static BYTE parms[] =
  3097. VTS_BOOL;
  3098. InvokeHelper(0x5b1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3099. bNewValue);
  3100. }
  3101. void _Workbook::HighlightChangesOptions(const VARIANT& When, const VARIANT& Who, const VARIANT& Where)
  3102. {
  3103. static BYTE parms[] =
  3104. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3105. InvokeHelper(0x5b2, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3106. &When, &Who, &Where);
  3107. }
  3108. BOOL _Workbook::GetHighlightChangesOnScreen()
  3109. {
  3110. BOOL result;
  3111. InvokeHelper(0x5b5, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3112. return result;
  3113. }
  3114. void _Workbook::SetHighlightChangesOnScreen(BOOL bNewValue)
  3115. {
  3116. static BYTE parms[] =
  3117. VTS_BOOL;
  3118. InvokeHelper(0x5b5, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3119. bNewValue);
  3120. }
  3121. BOOL _Workbook::GetKeepChangeHistory()
  3122. {
  3123. BOOL result;
  3124. InvokeHelper(0x5b6, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3125. return result;
  3126. }
  3127. void _Workbook::SetKeepChangeHistory(BOOL bNewValue)
  3128. {
  3129. static BYTE parms[] =
  3130. VTS_BOOL;
  3131. InvokeHelper(0x5b6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3132. bNewValue);
  3133. }
  3134. BOOL _Workbook::GetListChangesOnNewSheet()
  3135. {
  3136. BOOL result;
  3137. InvokeHelper(0x5b7, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3138. return result;
  3139. }
  3140. void _Workbook::SetListChangesOnNewSheet(BOOL bNewValue)
  3141. {
  3142. static BYTE parms[] =
  3143. VTS_BOOL;
  3144. InvokeHelper(0x5b7, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3145. bNewValue);
  3146. }
  3147. void _Workbook::PurgeChangeHistoryNow(long Days, const VARIANT& SharingPassword)
  3148. {
  3149. static BYTE parms[] =
  3150. VTS_I4 VTS_VARIANT;
  3151. InvokeHelper(0x5b8, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3152. Days, &SharingPassword);
  3153. }
  3154. void _Workbook::AcceptAllChanges(const VARIANT& When, const VARIANT& Who, const VARIANT& Where)
  3155. {
  3156. static BYTE parms[] =
  3157. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3158. InvokeHelper(0x5ba, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3159. &When, &Who, &Where);
  3160. }
  3161. void _Workbook::RejectAllChanges(const VARIANT& When, const VARIANT& Who, const VARIANT& Where)
  3162. {
  3163. static BYTE parms[] =
  3164. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3165. InvokeHelper(0x5bb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3166. &When, &Who, &Where);
  3167. }
  3168. void _Workbook::ResetColors()
  3169. {
  3170. InvokeHelper(0x5bc, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3171. }
  3172. LPDISPATCH _Workbook::GetVBProject()
  3173. {
  3174. LPDISPATCH result;
  3175. InvokeHelper(0x5bd, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3176. return result;
  3177. }
  3178. void _Workbook::FollowHyperlink(LPCTSTR Address, const VARIANT& SubAddress, const VARIANT& NewWindow, const VARIANT& AddHistory, const VARIANT& ExtraInfo, const VARIANT& Method, const VARIANT& HeaderInfo)
  3179. {
  3180. static BYTE parms[] =
  3181. VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3182. InvokeHelper(0x5be, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3183. Address, &SubAddress, &NewWindow, &AddHistory, &ExtraInfo, &Method, &HeaderInfo);
  3184. }
  3185. void _Workbook::AddToFavorites()
  3186. {
  3187. InvokeHelper(0x5c4, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3188. }
  3189. BOOL _Workbook::GetIsInplace()
  3190. {
  3191. BOOL result;
  3192. InvokeHelper(0x6e9, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3193. return result;
  3194. }
  3195. void _Workbook::PrintOut(const VARIANT& From, const VARIANT& To, const VARIANT& Copies, const VARIANT& Preview, const VARIANT& ActivePrinter, const VARIANT& PrintToFile, const VARIANT& Collate, const VARIANT& PrToFileName)
  3196. {
  3197. static BYTE parms[] =
  3198. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3199. InvokeHelper(0x6ec, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3200. &From, &To, &Copies, &Preview, &ActivePrinter, &PrintToFile, &Collate, &PrToFileName);
  3201. }
  3202. void _Workbook::WebPagePreview()
  3203. {
  3204. InvokeHelper(0x71a, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3205. }
  3206. LPDISPATCH _Workbook::GetPublishObjects()
  3207. {
  3208. LPDISPATCH result;
  3209. InvokeHelper(0x71b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3210. return result;
  3211. }
  3212. LPDISPATCH _Workbook::GetWebOptions()
  3213. {
  3214. LPDISPATCH result;
  3215. InvokeHelper(0x71c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3216. return result;
  3217. }
  3218. void _Workbook::ReloadAs(long Encoding)
  3219. {
  3220. static BYTE parms[] =
  3221. VTS_I4;
  3222. InvokeHelper(0x71d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3223. Encoding);
  3224. }
  3225. LPDISPATCH _Workbook::GetHTMLProject()
  3226. {
  3227. LPDISPATCH result;
  3228. InvokeHelper(0x71f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3229. return result;
  3230. }
  3231. BOOL _Workbook::GetEnvelopeVisible()
  3232. {
  3233. BOOL result;
  3234. InvokeHelper(0x720, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3235. return result;
  3236. }
  3237. void _Workbook::SetEnvelopeVisible(BOOL bNewValue)
  3238. {
  3239. static BYTE parms[] =
  3240. VTS_BOOL;
  3241. InvokeHelper(0x720, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3242. bNewValue);
  3243. }
  3244. long _Workbook::GetCalculationVersion()
  3245. {
  3246. long result;
  3247. InvokeHelper(0x70e, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3248. return result;
  3249. }
  3250. BOOL _Workbook::GetVBASigned()
  3251. {
  3252. BOOL result;
  3253. InvokeHelper(0x724, DISPATCH_PROPERTYGET, VT_BOOL, (void*)&result, NULL);
  3254. return result;
  3255. }
  3256. /////////////////////////////////////////////////////////////////////////////
  3257. // Workbooks properties
  3258. /////////////////////////////////////////////////////////////////////////////
  3259. // Workbooks operations
  3260. LPDISPATCH Workbooks::GetApplication()
  3261. {
  3262. LPDISPATCH result;
  3263. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3264. return result;
  3265. }
  3266. long Workbooks::GetCreator()
  3267. {
  3268. long result;
  3269. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3270. return result;
  3271. }
  3272. LPDISPATCH Workbooks::GetParent()
  3273. {
  3274. LPDISPATCH result;
  3275. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3276. return result;
  3277. }
  3278. LPDISPATCH Workbooks::Add(const VARIANT& Template)
  3279. {
  3280. LPDISPATCH result;
  3281. static BYTE parms[] =
  3282. VTS_VARIANT;
  3283. InvokeHelper(0xb5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3284. &Template);
  3285. return result;
  3286. }
  3287. void Workbooks::Close()
  3288. {
  3289. InvokeHelper(0x115, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  3290. }
  3291. long Workbooks::GetCount()
  3292. {
  3293. long result;
  3294. InvokeHelper(0x76, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3295. return result;
  3296. }
  3297. LPDISPATCH Workbooks::GetItem(const VARIANT& Index)
  3298. {
  3299. LPDISPATCH result;
  3300. static BYTE parms[] =
  3301. VTS_VARIANT;
  3302. InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3303. &Index);
  3304. return result;
  3305. }
  3306. LPUNKNOWN Workbooks::Get_NewEnum()
  3307. {
  3308. LPUNKNOWN result;
  3309. InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
  3310. return result;
  3311. }
  3312. LPDISPATCH Workbooks::Open(LPCTSTR Filename, const VARIANT& UpdateLinks, const VARIANT& ReadOnly, const VARIANT& Format, const VARIANT& Password, const VARIANT& WriteResPassword, const VARIANT& IgnoreReadOnlyRecommended, const VARIANT& Origin,
  3313. const VARIANT& Delimiter, const VARIANT& Editable, const VARIANT& Notify, const VARIANT& Converter, const VARIANT& AddToMru)
  3314. {
  3315. LPDISPATCH result;
  3316. static BYTE parms[] =
  3317. VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3318. InvokeHelper(0x2aa, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3319. Filename, &UpdateLinks, &ReadOnly, &Format, &Password, &WriteResPassword, &IgnoreReadOnlyRecommended, &Origin, &Delimiter, &Editable, &Notify, &Converter, &AddToMru);
  3320. return result;
  3321. }
  3322. LPDISPATCH Workbooks::Get_Default(const VARIANT& Index)
  3323. {
  3324. LPDISPATCH result;
  3325. static BYTE parms[] =
  3326. VTS_VARIANT;
  3327. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3328. &Index);
  3329. return result;
  3330. }
  3331. void Workbooks::OpenText(LPCTSTR Filename, const VARIANT& Origin, const VARIANT& StartRow, const VARIANT& DataType, long TextQualifier, const VARIANT& ConsecutiveDelimiter, const VARIANT& Tab, const VARIANT& Semicolon, const VARIANT& Comma,
  3332. const VARIANT& Space, const VARIANT& Other, const VARIANT& OtherChar, const VARIANT& FieldInfo, const VARIANT& TextVisualLayout, const VARIANT& DecimalSeparator, const VARIANT& ThousandsSeparator)
  3333. {
  3334. static BYTE parms[] =
  3335. VTS_BSTR VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3336. InvokeHelper(0x6ed, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  3337. Filename, &Origin, &StartRow, &DataType, TextQualifier, &ConsecutiveDelimiter, &Tab, &Semicolon, &Comma, &Space, &Other, &OtherChar, &FieldInfo, &TextVisualLayout, &DecimalSeparator, &ThousandsSeparator);
  3338. }
  3339. /////////////////////////////////////////////////////////////////////////////
  3340. // FontExcel properties
  3341. /////////////////////////////////////////////////////////////////////////////
  3342. // FontExcel operations
  3343. LPDISPATCH FontExcel::GetApplication()
  3344. {
  3345. LPDISPATCH result;
  3346. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3347. return result;
  3348. }
  3349. long FontExcel::GetCreator()
  3350. {
  3351. long result;
  3352. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3353. return result;
  3354. }
  3355. LPDISPATCH FontExcel::GetParent()
  3356. {
  3357. LPDISPATCH result;
  3358. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3359. return result;
  3360. }
  3361. VARIANT FontExcel::GetBackground()
  3362. {
  3363. VARIANT result;
  3364. InvokeHelper(0xb4, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3365. return result;
  3366. }
  3367. void FontExcel::SetBackground(const VARIANT& newValue)
  3368. {
  3369. static BYTE parms[] =
  3370. VTS_VARIANT;
  3371. InvokeHelper(0xb4, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3372. &newValue);
  3373. }
  3374. VARIANT FontExcel::GetBold()
  3375. {
  3376. VARIANT result;
  3377. InvokeHelper(0x60, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3378. return result;
  3379. }
  3380. void FontExcel::SetBold(const VARIANT& newValue)
  3381. {
  3382. static BYTE parms[] =
  3383. VTS_VARIANT;
  3384. InvokeHelper(0x60, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3385. &newValue);
  3386. }
  3387. VARIANT FontExcel::GetColor()
  3388. {
  3389. VARIANT result;
  3390. InvokeHelper(0x63, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3391. return result;
  3392. }
  3393. void FontExcel::SetColor(const VARIANT& newValue)
  3394. {
  3395. static BYTE parms[] =
  3396. VTS_VARIANT;
  3397. InvokeHelper(0x63, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3398. &newValue);
  3399. }
  3400. VARIANT FontExcel::GetColorIndex()
  3401. {
  3402. VARIANT result;
  3403. InvokeHelper(0x61, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3404. return result;
  3405. }
  3406. void FontExcel::SetColorIndex(const VARIANT& newValue)
  3407. {
  3408. static BYTE parms[] =
  3409. VTS_VARIANT;
  3410. InvokeHelper(0x61, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3411. &newValue);
  3412. }
  3413. VARIANT FontExcel::GetFontStyle()
  3414. {
  3415. VARIANT result;
  3416. InvokeHelper(0xb1, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3417. return result;
  3418. }
  3419. void FontExcel::SetFontStyle(const VARIANT& newValue)
  3420. {
  3421. static BYTE parms[] =
  3422. VTS_VARIANT;
  3423. InvokeHelper(0xb1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3424. &newValue);
  3425. }
  3426. VARIANT FontExcel::GetItalic()
  3427. {
  3428. VARIANT result;
  3429. InvokeHelper(0x65, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3430. return result;
  3431. }
  3432. void FontExcel::SetItalic(const VARIANT& newValue)
  3433. {
  3434. static BYTE parms[] =
  3435. VTS_VARIANT;
  3436. InvokeHelper(0x65, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3437. &newValue);
  3438. }
  3439. VARIANT FontExcel::GetName()
  3440. {
  3441. VARIANT result;
  3442. InvokeHelper(0x6e, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3443. return result;
  3444. }
  3445. void FontExcel::SetName(const VARIANT& newValue)
  3446. {
  3447. static BYTE parms[] =
  3448. VTS_VARIANT;
  3449. InvokeHelper(0x6e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3450. &newValue);
  3451. }
  3452. VARIANT FontExcel::GetOutlineFont()
  3453. {
  3454. VARIANT result;
  3455. InvokeHelper(0xdd, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3456. return result;
  3457. }
  3458. void FontExcel::SetOutlineFont(const VARIANT& newValue)
  3459. {
  3460. static BYTE parms[] =
  3461. VTS_VARIANT;
  3462. InvokeHelper(0xdd, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3463. &newValue);
  3464. }
  3465. VARIANT FontExcel::GetShadow()
  3466. {
  3467. VARIANT result;
  3468. InvokeHelper(0x67, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3469. return result;
  3470. }
  3471. void FontExcel::SetShadow(const VARIANT& newValue)
  3472. {
  3473. static BYTE parms[] =
  3474. VTS_VARIANT;
  3475. InvokeHelper(0x67, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3476. &newValue);
  3477. }
  3478. VARIANT FontExcel::GetSize()
  3479. {
  3480. VARIANT result;
  3481. InvokeHelper(0x68, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3482. return result;
  3483. }
  3484. void FontExcel::SetSize(const VARIANT& newValue)
  3485. {
  3486. static BYTE parms[] =
  3487. VTS_VARIANT;
  3488. InvokeHelper(0x68, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3489. &newValue);
  3490. }
  3491. VARIANT FontExcel::GetStrikethrough()
  3492. {
  3493. VARIANT result;
  3494. InvokeHelper(0x69, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3495. return result;
  3496. }
  3497. void FontExcel::SetStrikethrough(const VARIANT& newValue)
  3498. {
  3499. static BYTE parms[] =
  3500. VTS_VARIANT;
  3501. InvokeHelper(0x69, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3502. &newValue);
  3503. }
  3504. VARIANT FontExcel::GetSubscript()
  3505. {
  3506. VARIANT result;
  3507. InvokeHelper(0xb3, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3508. return result;
  3509. }
  3510. void FontExcel::SetSubscript(const VARIANT& newValue)
  3511. {
  3512. static BYTE parms[] =
  3513. VTS_VARIANT;
  3514. InvokeHelper(0xb3, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3515. &newValue);
  3516. }
  3517. VARIANT FontExcel::GetSuperscript()
  3518. {
  3519. VARIANT result;
  3520. InvokeHelper(0xb2, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3521. return result;
  3522. }
  3523. void FontExcel::SetSuperscript(const VARIANT& newValue)
  3524. {
  3525. static BYTE parms[] =
  3526. VTS_VARIANT;
  3527. InvokeHelper(0xb2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3528. &newValue);
  3529. }
  3530. VARIANT FontExcel::GetUnderline()
  3531. {
  3532. VARIANT result;
  3533. InvokeHelper(0x6a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3534. return result;
  3535. }
  3536. void FontExcel::SetUnderline(const VARIANT& newValue)
  3537. {
  3538. static BYTE parms[] =
  3539. VTS_VARIANT;
  3540. InvokeHelper(0x6a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3541. &newValue);
  3542. }
  3543. /////////////////////////////////////////////////////////////////////////////
  3544. // Range properties
  3545. /////////////////////////////////////////////////////////////////////////////
  3546. // Range operations
  3547. LPDISPATCH Range::GetApplication()
  3548. {
  3549. LPDISPATCH result;
  3550. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3551. return result;
  3552. }
  3553. long Range::GetCreator()
  3554. {
  3555. long result;
  3556. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3557. return result;
  3558. }
  3559. LPDISPATCH Range::GetParent()
  3560. {
  3561. LPDISPATCH result;
  3562. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3563. return result;
  3564. }
  3565. VARIANT Range::Activate()
  3566. {
  3567. VARIANT result;
  3568. InvokeHelper(0x130, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3569. return result;
  3570. }
  3571. VARIANT Range::GetAddIndent()
  3572. {
  3573. VARIANT result;
  3574. InvokeHelper(0x427, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3575. return result;
  3576. }
  3577. void Range::SetAddIndent(const VARIANT& newValue)
  3578. {
  3579. static BYTE parms[] =
  3580. VTS_VARIANT;
  3581. InvokeHelper(0x427, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3582. &newValue);
  3583. }
  3584. CString Range::GetAddress(const VARIANT& RowAbsolute, const VARIANT& ColumnAbsolute, long ReferenceStyle, const VARIANT& External, const VARIANT& RelativeTo)
  3585. {
  3586. CString result;
  3587. static BYTE parms[] =
  3588. VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT;
  3589. InvokeHelper(0xec, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  3590. &RowAbsolute, &ColumnAbsolute, ReferenceStyle, &External, &RelativeTo);
  3591. return result;
  3592. }
  3593. CString Range::GetAddressLocal(const VARIANT& RowAbsolute, const VARIANT& ColumnAbsolute, long ReferenceStyle, const VARIANT& External, const VARIANT& RelativeTo)
  3594. {
  3595. CString result;
  3596. static BYTE parms[] =
  3597. VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT;
  3598. InvokeHelper(0x1b5, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, parms,
  3599. &RowAbsolute, &ColumnAbsolute, ReferenceStyle, &External, &RelativeTo);
  3600. return result;
  3601. }
  3602. VARIANT Range::AdvancedFilter(long Action, const VARIANT& CriteriaRange, const VARIANT& CopyToRange, const VARIANT& Unique)
  3603. {
  3604. VARIANT result;
  3605. static BYTE parms[] =
  3606. VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3607. InvokeHelper(0x36c, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3608. Action, &CriteriaRange, &CopyToRange, &Unique);
  3609. return result;
  3610. }
  3611. VARIANT Range::ApplyNames(const VARIANT& Names, const VARIANT& IgnoreRelativeAbsolute, const VARIANT& UseRowColumnNames, const VARIANT& OmitColumn, const VARIANT& OmitRow, long Order, const VARIANT& AppendLast)
  3612. {
  3613. VARIANT result;
  3614. static BYTE parms[] =
  3615. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT;
  3616. InvokeHelper(0x1b9, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3617. &Names, &IgnoreRelativeAbsolute, &UseRowColumnNames, &OmitColumn, &OmitRow, Order, &AppendLast);
  3618. return result;
  3619. }
  3620. VARIANT Range::ApplyOutlineStyles()
  3621. {
  3622. VARIANT result;
  3623. InvokeHelper(0x1c0, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3624. return result;
  3625. }
  3626. LPDISPATCH Range::GetAreas()
  3627. {
  3628. LPDISPATCH result;
  3629. InvokeHelper(0x238, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3630. return result;
  3631. }
  3632. CString Range::AutoComplete(LPCTSTR String)
  3633. {
  3634. CString result;
  3635. static BYTE parms[] =
  3636. VTS_BSTR;
  3637. InvokeHelper(0x4a1, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  3638. String);
  3639. return result;
  3640. }
  3641. VARIANT Range::AutoFill(LPDISPATCH Destination, long Type)
  3642. {
  3643. VARIANT result;
  3644. static BYTE parms[] =
  3645. VTS_DISPATCH VTS_I4;
  3646. InvokeHelper(0x1c1, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3647. Destination, Type);
  3648. return result;
  3649. }
  3650. VARIANT Range::AutoFilter(const VARIANT& Field, const VARIANT& Criteria1, long Operator, const VARIANT& Criteria2, const VARIANT& VisibleDropDown)
  3651. {
  3652. VARIANT result;
  3653. static BYTE parms[] =
  3654. VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT;
  3655. InvokeHelper(0x319, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3656. &Field, &Criteria1, Operator, &Criteria2, &VisibleDropDown);
  3657. return result;
  3658. }
  3659. VARIANT Range::AutoFit()
  3660. {
  3661. VARIANT result;
  3662. InvokeHelper(0xed, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3663. return result;
  3664. }
  3665. VARIANT Range::AutoFormat(long Format, const VARIANT& Number, const VARIANT& FontExcel, const VARIANT& Alignment, const VARIANT& Border, const VARIANT& Pattern, const VARIANT& Width)
  3666. {
  3667. VARIANT result;
  3668. static BYTE parms[] =
  3669. VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3670. InvokeHelper(0x72, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3671. Format, &Number, &FontExcel, &Alignment, &Border, &Pattern, &Width);
  3672. return result;
  3673. }
  3674. VARIANT Range::AutoOutline()
  3675. {
  3676. VARIANT result;
  3677. InvokeHelper(0x40c, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3678. return result;
  3679. }
  3680. VARIANT Range::BorderAround(const VARIANT& LineStyle, long Weight, long ColorIndex, const VARIANT& Color)
  3681. {
  3682. VARIANT result;
  3683. static BYTE parms[] =
  3684. VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT;
  3685. InvokeHelper(0x42b, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3686. &LineStyle, Weight, ColorIndex, &Color);
  3687. return result;
  3688. }
  3689. LPDISPATCH Range::GetBorders()
  3690. {
  3691. LPDISPATCH result;
  3692. InvokeHelper(0x1b3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3693. return result;
  3694. }
  3695. VARIANT Range::Calculate()
  3696. {
  3697. VARIANT result;
  3698. InvokeHelper(0x117, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3699. return result;
  3700. }
  3701. LPDISPATCH Range::GetCells()
  3702. {
  3703. LPDISPATCH result;
  3704. InvokeHelper(0xee, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3705. return result;
  3706. }
  3707. LPDISPATCH Range::GetCharacters(const VARIANT& Start, const VARIANT& Length)
  3708. {
  3709. LPDISPATCH result;
  3710. static BYTE parms[] =
  3711. VTS_VARIANT VTS_VARIANT;
  3712. InvokeHelper(0x25b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3713. &Start, &Length);
  3714. return result;
  3715. }
  3716. VARIANT Range::CheckSpelling(const VARIANT& CustomDictionary, const VARIANT& IgnoreUppercase, const VARIANT& AlwaysSuggest, const VARIANT& SpellLang)
  3717. {
  3718. VARIANT result;
  3719. static BYTE parms[] =
  3720. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3721. InvokeHelper(0x1f9, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3722. &CustomDictionary, &IgnoreUppercase, &AlwaysSuggest, &SpellLang);
  3723. return result;
  3724. }
  3725. VARIANT Range::Clear()
  3726. {
  3727. VARIANT result;
  3728. InvokeHelper(0x6f, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3729. return result;
  3730. }
  3731. VARIANT Range::ClearContents()
  3732. {
  3733. VARIANT result;
  3734. InvokeHelper(0x71, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3735. return result;
  3736. }
  3737. VARIANT Range::ClearFormats()
  3738. {
  3739. VARIANT result;
  3740. InvokeHelper(0x70, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3741. return result;
  3742. }
  3743. VARIANT Range::ClearNotes()
  3744. {
  3745. VARIANT result;
  3746. InvokeHelper(0xef, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3747. return result;
  3748. }
  3749. VARIANT Range::ClearOutline()
  3750. {
  3751. VARIANT result;
  3752. InvokeHelper(0x40d, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3753. return result;
  3754. }
  3755. long Range::GetColumn()
  3756. {
  3757. long result;
  3758. InvokeHelper(0xf0, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3759. return result;
  3760. }
  3761. LPDISPATCH Range::ColumnDifferences(const VARIANT& Comparison)
  3762. {
  3763. LPDISPATCH result;
  3764. static BYTE parms[] =
  3765. VTS_VARIANT;
  3766. InvokeHelper(0x1fe, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3767. &Comparison);
  3768. return result;
  3769. }
  3770. LPDISPATCH Range::GetColumns()
  3771. {
  3772. LPDISPATCH result;
  3773. InvokeHelper(0xf1, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3774. return result;
  3775. }
  3776. VARIANT Range::GetColumnWidth()
  3777. {
  3778. VARIANT result;
  3779. InvokeHelper(0xf2, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  3780. return result;
  3781. }
  3782. void Range::SetColumnWidth(const VARIANT& newValue)
  3783. {
  3784. static BYTE parms[] =
  3785. VTS_VARIANT;
  3786. InvokeHelper(0xf2, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3787. &newValue);
  3788. }
  3789. VARIANT Range::Consolidate(const VARIANT& Sources, const VARIANT& Function, const VARIANT& TopRow, const VARIANT& LeftColumn, const VARIANT& CreateLinks)
  3790. {
  3791. VARIANT result;
  3792. static BYTE parms[] =
  3793. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3794. InvokeHelper(0x1e2, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3795. &Sources, &Function, &TopRow, &LeftColumn, &CreateLinks);
  3796. return result;
  3797. }
  3798. VARIANT Range::Copy(const VARIANT& Destination)
  3799. {
  3800. VARIANT result;
  3801. static BYTE parms[] =
  3802. VTS_VARIANT;
  3803. InvokeHelper(0x227, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3804. &Destination);
  3805. return result;
  3806. }
  3807. long Range::CopyFromRecordset(LPUNKNOWN Data, const VARIANT& MaxRows, const VARIANT& MaxColumns)
  3808. {
  3809. long result;
  3810. static BYTE parms[] =
  3811. VTS_UNKNOWN VTS_VARIANT VTS_VARIANT;
  3812. InvokeHelper(0x480, DISPATCH_METHOD, VT_I4, (void*)&result, parms,
  3813. Data, &MaxRows, &MaxColumns);
  3814. return result;
  3815. }
  3816. VARIANT Range::CopyPicture(long Appearance, long Format)
  3817. {
  3818. VARIANT result;
  3819. static BYTE parms[] =
  3820. VTS_I4 VTS_I4;
  3821. InvokeHelper(0xd5, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3822. Appearance, Format);
  3823. return result;
  3824. }
  3825. long Range::GetCount()
  3826. {
  3827. long result;
  3828. InvokeHelper(0x76, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  3829. return result;
  3830. }
  3831. VARIANT Range::CreateNames(const VARIANT& Top, const VARIANT& Left, const VARIANT& Bottom, const VARIANT& Right)
  3832. {
  3833. VARIANT result;
  3834. static BYTE parms[] =
  3835. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3836. InvokeHelper(0x1c9, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3837. &Top, &Left, &Bottom, &Right);
  3838. return result;
  3839. }
  3840. VARIANT Range::CreatePublisher(const VARIANT& Edition, long Appearance, const VARIANT& ContainsPICT, const VARIANT& ContainsBIFF, const VARIANT& ContainsRTF, const VARIANT& ContainsVALU)
  3841. {
  3842. VARIANT result;
  3843. static BYTE parms[] =
  3844. VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3845. InvokeHelper(0x1ca, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3846. &Edition, Appearance, &ContainsPICT, &ContainsBIFF, &ContainsRTF, &ContainsVALU);
  3847. return result;
  3848. }
  3849. LPDISPATCH Range::GetCurrentArray()
  3850. {
  3851. LPDISPATCH result;
  3852. InvokeHelper(0x1f5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3853. return result;
  3854. }
  3855. LPDISPATCH Range::GetCurrentRegion()
  3856. {
  3857. LPDISPATCH result;
  3858. InvokeHelper(0xf3, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3859. return result;
  3860. }
  3861. VARIANT Range::Cut(const VARIANT& Destination)
  3862. {
  3863. VARIANT result;
  3864. static BYTE parms[] =
  3865. VTS_VARIANT;
  3866. InvokeHelper(0x235, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3867. &Destination);
  3868. return result;
  3869. }
  3870. VARIANT Range::DataSeries(const VARIANT& Rowcol, long Type, long Date, const VARIANT& Step, const VARIANT& Stop, const VARIANT& Trend)
  3871. {
  3872. VARIANT result;
  3873. static BYTE parms[] =
  3874. VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3875. InvokeHelper(0x1d0, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3876. &Rowcol, Type, Date, &Step, &Stop, &Trend);
  3877. return result;
  3878. }
  3879. VARIANT Range::Get_Default(const VARIANT& RowIndex, const VARIANT& ColumnIndex)
  3880. {
  3881. VARIANT result;
  3882. static BYTE parms[] =
  3883. VTS_VARIANT VTS_VARIANT;
  3884. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  3885. &RowIndex, &ColumnIndex);
  3886. return result;
  3887. }
  3888. void Range::Set_Default(const VARIANT& RowIndex, const VARIANT& ColumnIndex, const VARIANT& newValue)
  3889. {
  3890. static BYTE parms[] =
  3891. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  3892. InvokeHelper(0x0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  3893. &RowIndex, &ColumnIndex, &newValue);
  3894. }
  3895. VARIANT Range::Delete(const VARIANT& Shift)
  3896. {
  3897. VARIANT result;
  3898. static BYTE parms[] =
  3899. VTS_VARIANT;
  3900. InvokeHelper(0x75, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3901. &Shift);
  3902. return result;
  3903. }
  3904. LPDISPATCH Range::GetDependents()
  3905. {
  3906. LPDISPATCH result;
  3907. InvokeHelper(0x21f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3908. return result;
  3909. }
  3910. VARIANT Range::DialogBox_()
  3911. {
  3912. VARIANT result;
  3913. InvokeHelper(0xf5, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3914. return result;
  3915. }
  3916. LPDISPATCH Range::GetDirectDependents()
  3917. {
  3918. LPDISPATCH result;
  3919. InvokeHelper(0x221, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3920. return result;
  3921. }
  3922. LPDISPATCH Range::GetDirectPrecedents()
  3923. {
  3924. LPDISPATCH result;
  3925. InvokeHelper(0x222, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3926. return result;
  3927. }
  3928. VARIANT Range::EditionOptions(long Type, long Option, const VARIANT& Name, const VARIANT& Reference, long Appearance, long ChartSize, const VARIANT& Format)
  3929. {
  3930. VARIANT result;
  3931. static BYTE parms[] =
  3932. VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT;
  3933. InvokeHelper(0x46b, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  3934. Type, Option, &Name, &Reference, Appearance, ChartSize, &Format);
  3935. return result;
  3936. }
  3937. LPDISPATCH Range::GetEnd(long Direction)
  3938. {
  3939. LPDISPATCH result;
  3940. static BYTE parms[] =
  3941. VTS_I4;
  3942. InvokeHelper(0x1f4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  3943. Direction);
  3944. return result;
  3945. }
  3946. LPDISPATCH Range::GetEntireColumn()
  3947. {
  3948. LPDISPATCH result;
  3949. InvokeHelper(0xf6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3950. return result;
  3951. }
  3952. LPDISPATCH Range::GetEntireRow()
  3953. {
  3954. LPDISPATCH result;
  3955. InvokeHelper(0xf7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  3956. return result;
  3957. }
  3958. VARIANT Range::FillDown()
  3959. {
  3960. VARIANT result;
  3961. InvokeHelper(0xf8, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3962. return result;
  3963. }
  3964. VARIANT Range::FillLeft()
  3965. {
  3966. VARIANT result;
  3967. InvokeHelper(0xf9, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3968. return result;
  3969. }
  3970. VARIANT Range::FillRight()
  3971. {
  3972. VARIANT result;
  3973. InvokeHelper(0xfa, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3974. return result;
  3975. }
  3976. VARIANT Range::FillUp()
  3977. {
  3978. VARIANT result;
  3979. InvokeHelper(0xfb, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  3980. return result;
  3981. }
  3982. LPDISPATCH Range::Find(const VARIANT& What, const VARIANT& After, const VARIANT& LookIn, const VARIANT& LookAt, const VARIANT& SearchOrder, long SearchDirection, const VARIANT& MatchCase, const VARIANT& MatchByte)
  3983. {
  3984. LPDISPATCH result;
  3985. static BYTE parms[] =
  3986. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT;
  3987. InvokeHelper(0x18e, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3988. &What, &After, &LookIn, &LookAt, &SearchOrder, SearchDirection, &MatchCase, &MatchByte);
  3989. return result;
  3990. }
  3991. LPDISPATCH Range::FindNext(const VARIANT& After)
  3992. {
  3993. LPDISPATCH result;
  3994. static BYTE parms[] =
  3995. VTS_VARIANT;
  3996. InvokeHelper(0x18f, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  3997. &After);
  3998. return result;
  3999. }
  4000. LPDISPATCH Range::FindPrevious(const VARIANT& After)
  4001. {
  4002. LPDISPATCH result;
  4003. static BYTE parms[] =
  4004. VTS_VARIANT;
  4005. InvokeHelper(0x190, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  4006. &After);
  4007. return result;
  4008. }
  4009. LPDISPATCH Range::GetFont()
  4010. {
  4011. LPDISPATCH result;
  4012. InvokeHelper(0x92, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4013. return result;
  4014. }
  4015. VARIANT Range::GetFormula()
  4016. {
  4017. VARIANT result;
  4018. InvokeHelper(0x105, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4019. return result;
  4020. }
  4021. void Range::SetFormula(const VARIANT& newValue)
  4022. {
  4023. static BYTE parms[] =
  4024. VTS_VARIANT;
  4025. InvokeHelper(0x105, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4026. &newValue);
  4027. }
  4028. VARIANT Range::GetFormulaArray()
  4029. {
  4030. VARIANT result;
  4031. InvokeHelper(0x24a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4032. return result;
  4033. }
  4034. void Range::SetFormulaArray(const VARIANT& newValue)
  4035. {
  4036. static BYTE parms[] =
  4037. VTS_VARIANT;
  4038. InvokeHelper(0x24a, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4039. &newValue);
  4040. }
  4041. long Range::GetFormulaLabel()
  4042. {
  4043. long result;
  4044. InvokeHelper(0x564, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4045. return result;
  4046. }
  4047. void Range::SetFormulaLabel(long nNewValue)
  4048. {
  4049. static BYTE parms[] =
  4050. VTS_I4;
  4051. InvokeHelper(0x564, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4052. nNewValue);
  4053. }
  4054. VARIANT Range::GetFormulaHidden()
  4055. {
  4056. VARIANT result;
  4057. InvokeHelper(0x106, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4058. return result;
  4059. }
  4060. void Range::SetFormulaHidden(const VARIANT& newValue)
  4061. {
  4062. static BYTE parms[] =
  4063. VTS_VARIANT;
  4064. InvokeHelper(0x106, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4065. &newValue);
  4066. }
  4067. VARIANT Range::GetFormulaLocal()
  4068. {
  4069. VARIANT result;
  4070. InvokeHelper(0x107, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4071. return result;
  4072. }
  4073. void Range::SetFormulaLocal(const VARIANT& newValue)
  4074. {
  4075. static BYTE parms[] =
  4076. VTS_VARIANT;
  4077. InvokeHelper(0x107, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4078. &newValue);
  4079. }
  4080. VARIANT Range::GetFormulaR1C1()
  4081. {
  4082. VARIANT result;
  4083. InvokeHelper(0x108, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4084. return result;
  4085. }
  4086. void Range::SetFormulaR1C1(const VARIANT& newValue)
  4087. {
  4088. static BYTE parms[] =
  4089. VTS_VARIANT;
  4090. InvokeHelper(0x108, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4091. &newValue);
  4092. }
  4093. VARIANT Range::GetFormulaR1C1Local()
  4094. {
  4095. VARIANT result;
  4096. InvokeHelper(0x109, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4097. return result;
  4098. }
  4099. void Range::SetFormulaR1C1Local(const VARIANT& newValue)
  4100. {
  4101. static BYTE parms[] =
  4102. VTS_VARIANT;
  4103. InvokeHelper(0x109, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4104. &newValue);
  4105. }
  4106. VARIANT Range::FunctionWizard()
  4107. {
  4108. VARIANT result;
  4109. InvokeHelper(0x23b, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4110. return result;
  4111. }
  4112. BOOL Range::GoalSeek(const VARIANT& Goal, LPDISPATCH ChangingCell)
  4113. {
  4114. BOOL result;
  4115. static BYTE parms[] =
  4116. VTS_VARIANT VTS_DISPATCH;
  4117. InvokeHelper(0x1d8, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  4118. &Goal, ChangingCell);
  4119. return result;
  4120. }
  4121. VARIANT Range::Group(const VARIANT& Start, const VARIANT& End, const VARIANT& By, const VARIANT& Periods)
  4122. {
  4123. VARIANT result;
  4124. static BYTE parms[] =
  4125. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4126. InvokeHelper(0x2e, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4127. &Start, &End, &By, &Periods);
  4128. return result;
  4129. }
  4130. VARIANT Range::GetHasArray()
  4131. {
  4132. VARIANT result;
  4133. InvokeHelper(0x10a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4134. return result;
  4135. }
  4136. VARIANT Range::GetHasFormula()
  4137. {
  4138. VARIANT result;
  4139. InvokeHelper(0x10b, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4140. return result;
  4141. }
  4142. VARIANT Range::GetHeight()
  4143. {
  4144. VARIANT result;
  4145. InvokeHelper(0x7b, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4146. return result;
  4147. }
  4148. VARIANT Range::GetHidden()
  4149. {
  4150. VARIANT result;
  4151. InvokeHelper(0x10c, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4152. return result;
  4153. }
  4154. void Range::SetHidden(const VARIANT& newValue)
  4155. {
  4156. static BYTE parms[] =
  4157. VTS_VARIANT;
  4158. InvokeHelper(0x10c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4159. &newValue);
  4160. }
  4161. VARIANT Range::GetHorizontalAlignment()
  4162. {
  4163. VARIANT result;
  4164. InvokeHelper(0x88, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4165. return result;
  4166. }
  4167. void Range::SetHorizontalAlignment(const VARIANT& newValue)
  4168. {
  4169. static BYTE parms[] =
  4170. VTS_VARIANT;
  4171. InvokeHelper(0x88, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4172. &newValue);
  4173. }
  4174. VARIANT Range::GetIndentLevel()
  4175. {
  4176. VARIANT result;
  4177. InvokeHelper(0xc9, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4178. return result;
  4179. }
  4180. void Range::SetIndentLevel(const VARIANT& newValue)
  4181. {
  4182. static BYTE parms[] =
  4183. VTS_VARIANT;
  4184. InvokeHelper(0xc9, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4185. &newValue);
  4186. }
  4187. void Range::InsertIndent(long InsertAmount)
  4188. {
  4189. static BYTE parms[] =
  4190. VTS_I4;
  4191. InvokeHelper(0x565, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  4192. InsertAmount);
  4193. }
  4194. VARIANT Range::Insert(const VARIANT& Shift)
  4195. {
  4196. VARIANT result;
  4197. static BYTE parms[] =
  4198. VTS_VARIANT;
  4199. InvokeHelper(0xfc, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4200. &Shift);
  4201. return result;
  4202. }
  4203. LPDISPATCH Range::GetInterior()
  4204. {
  4205. LPDISPATCH result;
  4206. InvokeHelper(0x81, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4207. return result;
  4208. }
  4209. VARIANT Range::GetItem(const VARIANT& RowIndex, const VARIANT& ColumnIndex)
  4210. {
  4211. VARIANT result;
  4212. static BYTE parms[] =
  4213. VTS_VARIANT VTS_VARIANT;
  4214. InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, parms,
  4215. &RowIndex, &ColumnIndex);
  4216. return result;
  4217. }
  4218. void Range::SetItem(const VARIANT& RowIndex, const VARIANT& ColumnIndex, const VARIANT& newValue)
  4219. {
  4220. static BYTE parms[] =
  4221. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4222. InvokeHelper(0xaa, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4223. &RowIndex, &ColumnIndex, &newValue);
  4224. }
  4225. VARIANT Range::Justify()
  4226. {
  4227. VARIANT result;
  4228. InvokeHelper(0x1ef, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4229. return result;
  4230. }
  4231. VARIANT Range::GetLeft()
  4232. {
  4233. VARIANT result;
  4234. InvokeHelper(0x7f, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4235. return result;
  4236. }
  4237. long Range::GetListHeaderRows()
  4238. {
  4239. long result;
  4240. InvokeHelper(0x4a3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4241. return result;
  4242. }
  4243. VARIANT Range::ListNames()
  4244. {
  4245. VARIANT result;
  4246. InvokeHelper(0xfd, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4247. return result;
  4248. }
  4249. long Range::GetLocationInTable()
  4250. {
  4251. long result;
  4252. InvokeHelper(0x2b3, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4253. return result;
  4254. }
  4255. VARIANT Range::GetLocked()
  4256. {
  4257. VARIANT result;
  4258. InvokeHelper(0x10d, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4259. return result;
  4260. }
  4261. void Range::SetLocked(const VARIANT& newValue)
  4262. {
  4263. static BYTE parms[] =
  4264. VTS_VARIANT;
  4265. InvokeHelper(0x10d, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4266. &newValue);
  4267. }
  4268. void Range::Merge(const VARIANT& Across)
  4269. {
  4270. static BYTE parms[] =
  4271. VTS_VARIANT;
  4272. InvokeHelper(0x234, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  4273. &Across);
  4274. }
  4275. void Range::UnMerge()
  4276. {
  4277. InvokeHelper(0x568, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4278. }
  4279. LPDISPATCH Range::GetMergeArea()
  4280. {
  4281. LPDISPATCH result;
  4282. InvokeHelper(0x569, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4283. return result;
  4284. }
  4285. VARIANT Range::GetMergeCells()
  4286. {
  4287. VARIANT result;
  4288. InvokeHelper(0xd0, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4289. return result;
  4290. }
  4291. void Range::SetMergeCells(const VARIANT& newValue)
  4292. {
  4293. static BYTE parms[] =
  4294. VTS_VARIANT;
  4295. InvokeHelper(0xd0, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4296. &newValue);
  4297. }
  4298. VARIANT Range::GetName()
  4299. {
  4300. VARIANT result;
  4301. InvokeHelper(0x6e, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4302. return result;
  4303. }
  4304. void Range::SetName(const VARIANT& newValue)
  4305. {
  4306. static BYTE parms[] =
  4307. VTS_VARIANT;
  4308. InvokeHelper(0x6e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4309. &newValue);
  4310. }
  4311. VARIANT Range::NavigateArrow(const VARIANT& TowardPrecedent, const VARIANT& ArrowNumber, const VARIANT& LinkNumber)
  4312. {
  4313. VARIANT result;
  4314. static BYTE parms[] =
  4315. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4316. InvokeHelper(0x408, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4317. &TowardPrecedent, &ArrowNumber, &LinkNumber);
  4318. return result;
  4319. }
  4320. LPUNKNOWN Range::Get_NewEnum()
  4321. {
  4322. LPUNKNOWN result;
  4323. InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
  4324. return result;
  4325. }
  4326. LPDISPATCH Range::GetNext()
  4327. {
  4328. LPDISPATCH result;
  4329. InvokeHelper(0x1f6, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4330. return result;
  4331. }
  4332. CString Range::NoteText(const VARIANT& Text, const VARIANT& Start, const VARIANT& Length)
  4333. {
  4334. CString result;
  4335. static BYTE parms[] =
  4336. VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4337. InvokeHelper(0x467, DISPATCH_METHOD, VT_BSTR, (void*)&result, parms,
  4338. &Text, &Start, &Length);
  4339. return result;
  4340. }
  4341. VARIANT Range::GetNumberFormat()
  4342. {
  4343. VARIANT result;
  4344. InvokeHelper(0xc1, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4345. return result;
  4346. }
  4347. void Range::SetNumberFormat(const VARIANT& newValue)
  4348. {
  4349. static BYTE parms[] =
  4350. VTS_VARIANT;
  4351. InvokeHelper(0xc1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4352. &newValue);
  4353. }
  4354. VARIANT Range::GetNumberFormatLocal()
  4355. {
  4356. VARIANT result;
  4357. InvokeHelper(0x449, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4358. return result;
  4359. }
  4360. void Range::SetNumberFormatLocal(const VARIANT& newValue)
  4361. {
  4362. static BYTE parms[] =
  4363. VTS_VARIANT;
  4364. InvokeHelper(0x449, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4365. &newValue);
  4366. }
  4367. LPDISPATCH Range::GetOffset(const VARIANT& RowOffset, const VARIANT& ColumnOffset)
  4368. {
  4369. LPDISPATCH result;
  4370. static BYTE parms[] =
  4371. VTS_VARIANT VTS_VARIANT;
  4372. InvokeHelper(0xfe, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  4373. &RowOffset, &ColumnOffset);
  4374. return result;
  4375. }
  4376. VARIANT Range::GetOrientation()
  4377. {
  4378. VARIANT result;
  4379. InvokeHelper(0x86, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4380. return result;
  4381. }
  4382. void Range::SetOrientation(const VARIANT& newValue)
  4383. {
  4384. static BYTE parms[] =
  4385. VTS_VARIANT;
  4386. InvokeHelper(0x86, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4387. &newValue);
  4388. }
  4389. VARIANT Range::GetOutlineLevel()
  4390. {
  4391. VARIANT result;
  4392. InvokeHelper(0x10f, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4393. return result;
  4394. }
  4395. void Range::SetOutlineLevel(const VARIANT& newValue)
  4396. {
  4397. static BYTE parms[] =
  4398. VTS_VARIANT;
  4399. InvokeHelper(0x10f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4400. &newValue);
  4401. }
  4402. long Range::GetPageBreak()
  4403. {
  4404. long result;
  4405. InvokeHelper(0xff, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4406. return result;
  4407. }
  4408. void Range::SetPageBreak(long nNewValue)
  4409. {
  4410. static BYTE parms[] =
  4411. VTS_I4;
  4412. InvokeHelper(0xff, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4413. nNewValue);
  4414. }
  4415. VARIANT Range::Parse(const VARIANT& ParseLine, const VARIANT& Destination)
  4416. {
  4417. VARIANT result;
  4418. static BYTE parms[] =
  4419. VTS_VARIANT VTS_VARIANT;
  4420. InvokeHelper(0x1dd, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4421. &ParseLine, &Destination);
  4422. return result;
  4423. }
  4424. VARIANT Range::PasteSpecial(long Paste, long Operation, const VARIANT& SkipBlanks, const VARIANT& Transpose)
  4425. {
  4426. VARIANT result;
  4427. static BYTE parms[] =
  4428. VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT;
  4429. InvokeHelper(0x403, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4430. Paste, Operation, &SkipBlanks, &Transpose);
  4431. return result;
  4432. }
  4433. LPDISPATCH Range::GetPivotField()
  4434. {
  4435. LPDISPATCH result;
  4436. InvokeHelper(0x2db, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4437. return result;
  4438. }
  4439. LPDISPATCH Range::GetPivotItem()
  4440. {
  4441. LPDISPATCH result;
  4442. InvokeHelper(0x2e4, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4443. return result;
  4444. }
  4445. LPDISPATCH Range::GetPivotTable()
  4446. {
  4447. LPDISPATCH result;
  4448. InvokeHelper(0x2cc, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4449. return result;
  4450. }
  4451. LPDISPATCH Range::GetPrecedents()
  4452. {
  4453. LPDISPATCH result;
  4454. InvokeHelper(0x220, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4455. return result;
  4456. }
  4457. VARIANT Range::GetPrefixCharacter()
  4458. {
  4459. VARIANT result;
  4460. InvokeHelper(0x1f8, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4461. return result;
  4462. }
  4463. LPDISPATCH Range::GetPrevious()
  4464. {
  4465. LPDISPATCH result;
  4466. InvokeHelper(0x1f7, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4467. return result;
  4468. }
  4469. VARIANT Range::_PrintOut(const VARIANT& From, const VARIANT& To, const VARIANT& Copies, const VARIANT& Preview, const VARIANT& ActivePrinter, const VARIANT& PrintToFile, const VARIANT& Collate)
  4470. {
  4471. VARIANT result;
  4472. static BYTE parms[] =
  4473. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4474. InvokeHelper(0x389, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4475. &From, &To, &Copies, &Preview, &ActivePrinter, &PrintToFile, &Collate);
  4476. return result;
  4477. }
  4478. VARIANT Range::PrintPreview(const VARIANT& EnableChanges)
  4479. {
  4480. VARIANT result;
  4481. static BYTE parms[] =
  4482. VTS_VARIANT;
  4483. InvokeHelper(0x119, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4484. &EnableChanges);
  4485. return result;
  4486. }
  4487. LPDISPATCH Range::GetQueryTable()
  4488. {
  4489. LPDISPATCH result;
  4490. InvokeHelper(0x56a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4491. return result;
  4492. }
  4493. LPDISPATCH Range::GetRange(const VARIANT& Cell1, const VARIANT& Cell2)
  4494. {
  4495. LPDISPATCH result;
  4496. static BYTE parms[] =
  4497. VTS_VARIANT VTS_VARIANT;
  4498. InvokeHelper(0xc5, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  4499. &Cell1, &Cell2);
  4500. return result;
  4501. }
  4502. VARIANT Range::RemoveSubtotal()
  4503. {
  4504. VARIANT result;
  4505. InvokeHelper(0x373, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4506. return result;
  4507. }
  4508. BOOL Range::Replace(const VARIANT& What, const VARIANT& Replacement, const VARIANT& LookAt, const VARIANT& SearchOrder, const VARIANT& MatchCase, const VARIANT& MatchByte)
  4509. {
  4510. BOOL result;
  4511. static BYTE parms[] =
  4512. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4513. InvokeHelper(0xe2, DISPATCH_METHOD, VT_BOOL, (void*)&result, parms,
  4514. &What, &Replacement, &LookAt, &SearchOrder, &MatchCase, &MatchByte);
  4515. return result;
  4516. }
  4517. LPDISPATCH Range::GetResize(const VARIANT& RowSize, const VARIANT& ColumnSize)
  4518. {
  4519. LPDISPATCH result;
  4520. static BYTE parms[] =
  4521. VTS_VARIANT VTS_VARIANT;
  4522. InvokeHelper(0x100, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  4523. &RowSize, &ColumnSize);
  4524. return result;
  4525. }
  4526. long Range::GetRow()
  4527. {
  4528. long result;
  4529. InvokeHelper(0x101, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4530. return result;
  4531. }
  4532. LPDISPATCH Range::RowDifferences(const VARIANT& Comparison)
  4533. {
  4534. LPDISPATCH result;
  4535. static BYTE parms[] =
  4536. VTS_VARIANT;
  4537. InvokeHelper(0x1ff, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  4538. &Comparison);
  4539. return result;
  4540. }
  4541. VARIANT Range::GetRowHeight()
  4542. {
  4543. VARIANT result;
  4544. InvokeHelper(0x110, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4545. return result;
  4546. }
  4547. void Range::SetRowHeight(const VARIANT& newValue)
  4548. {
  4549. static BYTE parms[] =
  4550. VTS_VARIANT;
  4551. InvokeHelper(0x110, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4552. &newValue);
  4553. }
  4554. LPDISPATCH Range::GetRows()
  4555. {
  4556. LPDISPATCH result;
  4557. InvokeHelper(0x102, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4558. return result;
  4559. }
  4560. VARIANT Range::Run(const VARIANT& Arg1, const VARIANT& Arg2, const VARIANT& Arg3, const VARIANT& Arg4, const VARIANT& Arg5, const VARIANT& Arg6, const VARIANT& Arg7, const VARIANT& Arg8, const VARIANT& Arg9, const VARIANT& Arg10,
  4561. const VARIANT& Arg11, const VARIANT& Arg12, const VARIANT& Arg13, const VARIANT& Arg14, const VARIANT& Arg15, const VARIANT& Arg16, const VARIANT& Arg17, const VARIANT& Arg18, const VARIANT& Arg19, const VARIANT& Arg20,
  4562. const VARIANT& Arg21, const VARIANT& Arg22, const VARIANT& Arg23, const VARIANT& Arg24, const VARIANT& Arg25, const VARIANT& Arg26, const VARIANT& Arg27, const VARIANT& Arg28, const VARIANT& Arg29, const VARIANT& Arg30)
  4563. {
  4564. VARIANT result;
  4565. static BYTE parms[] =
  4566. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT
  4567. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4568. InvokeHelper(0x103, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4569. &Arg1, &Arg2, &Arg3, &Arg4, &Arg5, &Arg6, &Arg7, &Arg8, &Arg9, &Arg10, &Arg11, &Arg12, &Arg13, &Arg14, &Arg15, &Arg16, &Arg17, &Arg18, &Arg19, &Arg20, &Arg21, &Arg22, &Arg23, &Arg24, &Arg25, &Arg26, &Arg27, &Arg28, &Arg29, &Arg30);
  4570. return result;
  4571. }
  4572. VARIANT Range::Select()
  4573. {
  4574. VARIANT result;
  4575. InvokeHelper(0xeb, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4576. return result;
  4577. }
  4578. VARIANT Range::Show()
  4579. {
  4580. VARIANT result;
  4581. InvokeHelper(0x1f0, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4582. return result;
  4583. }
  4584. VARIANT Range::ShowDependents(const VARIANT& Remove)
  4585. {
  4586. VARIANT result;
  4587. static BYTE parms[] =
  4588. VTS_VARIANT;
  4589. InvokeHelper(0x36d, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4590. &Remove);
  4591. return result;
  4592. }
  4593. VARIANT Range::GetShowDetail()
  4594. {
  4595. VARIANT result;
  4596. InvokeHelper(0x249, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4597. return result;
  4598. }
  4599. void Range::SetShowDetail(const VARIANT& newValue)
  4600. {
  4601. static BYTE parms[] =
  4602. VTS_VARIANT;
  4603. InvokeHelper(0x249, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4604. &newValue);
  4605. }
  4606. VARIANT Range::ShowErrors()
  4607. {
  4608. VARIANT result;
  4609. InvokeHelper(0x36e, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4610. return result;
  4611. }
  4612. VARIANT Range::ShowPrecedents(const VARIANT& Remove)
  4613. {
  4614. VARIANT result;
  4615. static BYTE parms[] =
  4616. VTS_VARIANT;
  4617. InvokeHelper(0x36f, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4618. &Remove);
  4619. return result;
  4620. }
  4621. VARIANT Range::GetShrinkToFit()
  4622. {
  4623. VARIANT result;
  4624. InvokeHelper(0xd1, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4625. return result;
  4626. }
  4627. void Range::SetShrinkToFit(const VARIANT& newValue)
  4628. {
  4629. static BYTE parms[] =
  4630. VTS_VARIANT;
  4631. InvokeHelper(0xd1, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4632. &newValue);
  4633. }
  4634. VARIANT Range::Sort(const VARIANT& Key1, long Order1, const VARIANT& Key2, const VARIANT& Type, long Order2, const VARIANT& Key3, long Order3, long Header, const VARIANT& OrderCustom, const VARIANT& MatchCase, long Orientation, long SortMethod)
  4635. {
  4636. VARIANT result;
  4637. static BYTE parms[] =
  4638. VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_I4 VTS_I4;
  4639. InvokeHelper(0x370, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4640. &Key1, Order1, &Key2, &Type, Order2, &Key3, Order3, Header, &OrderCustom, &MatchCase, Orientation, SortMethod);
  4641. return result;
  4642. }
  4643. VARIANT Range::SortSpecial(long SortMethod, const VARIANT& Key1, long Order1, const VARIANT& Type, const VARIANT& Key2, long Order2, const VARIANT& Key3, long Order3, long Header, const VARIANT& OrderCustom, const VARIANT& MatchCase,
  4644. long Orientation)
  4645. {
  4646. VARIANT result;
  4647. static BYTE parms[] =
  4648. VTS_I4 VTS_VARIANT VTS_I4 VTS_VARIANT VTS_VARIANT VTS_I4 VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_I4;
  4649. InvokeHelper(0x371, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4650. SortMethod, &Key1, Order1, &Type, &Key2, Order2, &Key3, Order3, Header, &OrderCustom, &MatchCase, Orientation);
  4651. return result;
  4652. }
  4653. LPDISPATCH Range::GetSoundNote()
  4654. {
  4655. LPDISPATCH result;
  4656. InvokeHelper(0x394, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4657. return result;
  4658. }
  4659. LPDISPATCH Range::SpecialCells(long Type, const VARIANT& Value)
  4660. {
  4661. LPDISPATCH result;
  4662. static BYTE parms[] =
  4663. VTS_I4 VTS_VARIANT;
  4664. InvokeHelper(0x19a, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  4665. Type, &Value);
  4666. return result;
  4667. }
  4668. VARIANT Range::GetStyle()
  4669. {
  4670. VARIANT result;
  4671. InvokeHelper(0x104, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4672. return result;
  4673. }
  4674. void Range::SetStyle(const VARIANT& newValue)
  4675. {
  4676. static BYTE parms[] =
  4677. VTS_VARIANT;
  4678. InvokeHelper(0x104, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4679. &newValue);
  4680. }
  4681. VARIANT Range::SubscribeTo(LPCTSTR Edition, long Format)
  4682. {
  4683. VARIANT result;
  4684. static BYTE parms[] =
  4685. VTS_BSTR VTS_I4;
  4686. InvokeHelper(0x1e1, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4687. Edition, Format);
  4688. return result;
  4689. }
  4690. VARIANT Range::Subtotal(long GroupBy, long Function, const VARIANT& TotalList, const VARIANT& Replace, const VARIANT& PageBreaks, long SummaryBelowData)
  4691. {
  4692. VARIANT result;
  4693. static BYTE parms[] =
  4694. VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_I4;
  4695. InvokeHelper(0x372, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4696. GroupBy, Function, &TotalList, &Replace, &PageBreaks, SummaryBelowData);
  4697. return result;
  4698. }
  4699. VARIANT Range::GetSummary()
  4700. {
  4701. VARIANT result;
  4702. InvokeHelper(0x111, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4703. return result;
  4704. }
  4705. VARIANT Range::Table(const VARIANT& RowInput, const VARIANT& ColumnInput)
  4706. {
  4707. VARIANT result;
  4708. static BYTE parms[] =
  4709. VTS_VARIANT VTS_VARIANT;
  4710. InvokeHelper(0x1f1, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4711. &RowInput, &ColumnInput);
  4712. return result;
  4713. }
  4714. VARIANT Range::GetText()
  4715. {
  4716. VARIANT result;
  4717. InvokeHelper(0x8a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4718. return result;
  4719. }
  4720. VARIANT Range::TextToColumns(const VARIANT& Destination, long DataType, long TextQualifier, const VARIANT& ConsecutiveDelimiter, const VARIANT& Tab, const VARIANT& Semicolon, const VARIANT& Comma, const VARIANT& Space, const VARIANT& Other,
  4721. const VARIANT& OtherChar, const VARIANT& FieldInfo, const VARIANT& DecimalSeparator, const VARIANT& ThousandsSeparator)
  4722. {
  4723. VARIANT result;
  4724. static BYTE parms[] =
  4725. VTS_VARIANT VTS_I4 VTS_I4 VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4726. InvokeHelper(0x410, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4727. &Destination, DataType, TextQualifier, &ConsecutiveDelimiter, &Tab, &Semicolon, &Comma, &Space, &Other, &OtherChar, &FieldInfo, &DecimalSeparator, &ThousandsSeparator);
  4728. return result;
  4729. }
  4730. VARIANT Range::GetTop()
  4731. {
  4732. VARIANT result;
  4733. InvokeHelper(0x7e, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4734. return result;
  4735. }
  4736. VARIANT Range::Ungroup()
  4737. {
  4738. VARIANT result;
  4739. InvokeHelper(0xf4, DISPATCH_METHOD, VT_VARIANT, (void*)&result, NULL);
  4740. return result;
  4741. }
  4742. VARIANT Range::GetUseStandardHeight()
  4743. {
  4744. VARIANT result;
  4745. InvokeHelper(0x112, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4746. return result;
  4747. }
  4748. void Range::SetUseStandardHeight(const VARIANT& newValue)
  4749. {
  4750. static BYTE parms[] =
  4751. VTS_VARIANT;
  4752. InvokeHelper(0x112, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4753. &newValue);
  4754. }
  4755. VARIANT Range::GetUseStandardWidth()
  4756. {
  4757. VARIANT result;
  4758. InvokeHelper(0x113, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4759. return result;
  4760. }
  4761. void Range::SetUseStandardWidth(const VARIANT& newValue)
  4762. {
  4763. static BYTE parms[] =
  4764. VTS_VARIANT;
  4765. InvokeHelper(0x113, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4766. &newValue);
  4767. }
  4768. LPDISPATCH Range::GetValidation()
  4769. {
  4770. LPDISPATCH result;
  4771. InvokeHelper(0x56b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4772. return result;
  4773. }
  4774. VARIANT Range::GetValue()
  4775. {
  4776. VARIANT result;
  4777. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4778. return result;
  4779. }
  4780. void Range::SetValue(const VARIANT& newValue)
  4781. {
  4782. static BYTE parms[] =
  4783. VTS_VARIANT;
  4784. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4785. &newValue);
  4786. }
  4787. VARIANT Range::GetValue2()
  4788. {
  4789. VARIANT result;
  4790. InvokeHelper(0x56c, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4791. return result;
  4792. }
  4793. void Range::SetValue2(const VARIANT& newValue)
  4794. {
  4795. static BYTE parms[] =
  4796. VTS_VARIANT;
  4797. InvokeHelper(0x56c, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4798. &newValue);
  4799. }
  4800. VARIANT Range::GetVerticalAlignment()
  4801. {
  4802. VARIANT result;
  4803. InvokeHelper(0x89, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4804. return result;
  4805. }
  4806. void Range::SetVerticalAlignment(const VARIANT& newValue)
  4807. {
  4808. static BYTE parms[] =
  4809. VTS_VARIANT;
  4810. InvokeHelper(0x89, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4811. &newValue);
  4812. }
  4813. VARIANT Range::GetWidth()
  4814. {
  4815. VARIANT result;
  4816. InvokeHelper(0x7a, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4817. return result;
  4818. }
  4819. LPDISPATCH Range::GetWorksheet()
  4820. {
  4821. LPDISPATCH result;
  4822. InvokeHelper(0x15c, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4823. return result;
  4824. }
  4825. VARIANT Range::GetWrapText()
  4826. {
  4827. VARIANT result;
  4828. InvokeHelper(0x114, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4829. return result;
  4830. }
  4831. void Range::SetWrapText(const VARIANT& newValue)
  4832. {
  4833. static BYTE parms[] =
  4834. VTS_VARIANT;
  4835. InvokeHelper(0x114, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4836. &newValue);
  4837. }
  4838. LPDISPATCH Range::AddComment(const VARIANT& Text)
  4839. {
  4840. LPDISPATCH result;
  4841. static BYTE parms[] =
  4842. VTS_VARIANT;
  4843. InvokeHelper(0x56d, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  4844. &Text);
  4845. return result;
  4846. }
  4847. LPDISPATCH Range::GetComment()
  4848. {
  4849. LPDISPATCH result;
  4850. InvokeHelper(0x38e, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4851. return result;
  4852. }
  4853. void Range::ClearComments()
  4854. {
  4855. InvokeHelper(0x56e, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4856. }
  4857. LPDISPATCH Range::GetPhonetic()
  4858. {
  4859. LPDISPATCH result;
  4860. InvokeHelper(0x56f, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4861. return result;
  4862. }
  4863. LPDISPATCH Range::GetFormatConditions()
  4864. {
  4865. LPDISPATCH result;
  4866. InvokeHelper(0x570, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4867. return result;
  4868. }
  4869. long Range::GetReadingOrder()
  4870. {
  4871. long result;
  4872. InvokeHelper(0x3cf, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4873. return result;
  4874. }
  4875. void Range::SetReadingOrder(long nNewValue)
  4876. {
  4877. static BYTE parms[] =
  4878. VTS_I4;
  4879. InvokeHelper(0x3cf, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4880. nNewValue);
  4881. }
  4882. LPDISPATCH Range::GetHyperlinks()
  4883. {
  4884. LPDISPATCH result;
  4885. InvokeHelper(0x571, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4886. return result;
  4887. }
  4888. LPDISPATCH Range::GetPhonetics()
  4889. {
  4890. LPDISPATCH result;
  4891. InvokeHelper(0x713, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4892. return result;
  4893. }
  4894. void Range::SetPhonetic()
  4895. {
  4896. InvokeHelper(0x714, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  4897. }
  4898. CString Range::GetId()
  4899. {
  4900. CString result;
  4901. InvokeHelper(0x715, DISPATCH_PROPERTYGET, VT_BSTR, (void*)&result, NULL);
  4902. return result;
  4903. }
  4904. void Range::SetId(LPCTSTR lpszNewValue)
  4905. {
  4906. static BYTE parms[] =
  4907. VTS_BSTR;
  4908. InvokeHelper(0x715, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4909. lpszNewValue);
  4910. }
  4911. VARIANT Range::PrintOut(const VARIANT& From, const VARIANT& To, const VARIANT& Copies, const VARIANT& Preview, const VARIANT& ActivePrinter, const VARIANT& PrintToFile, const VARIANT& Collate, const VARIANT& PrToFileName)
  4912. {
  4913. VARIANT result;
  4914. static BYTE parms[] =
  4915. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  4916. InvokeHelper(0x6ec, DISPATCH_METHOD, VT_VARIANT, (void*)&result, parms,
  4917. &From, &To, &Copies, &Preview, &ActivePrinter, &PrintToFile, &Collate, &PrToFileName);
  4918. return result;
  4919. }
  4920. /////////////////////////////////////////////////////////////////////////////
  4921. // Borders properties
  4922. /////////////////////////////////////////////////////////////////////////////
  4923. // Borders operations
  4924. LPDISPATCH Borders::GetApplication()
  4925. {
  4926. LPDISPATCH result;
  4927. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4928. return result;
  4929. }
  4930. long Borders::GetCreator()
  4931. {
  4932. long result;
  4933. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4934. return result;
  4935. }
  4936. LPDISPATCH Borders::GetParent()
  4937. {
  4938. LPDISPATCH result;
  4939. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  4940. return result;
  4941. }
  4942. VARIANT Borders::GetColor()
  4943. {
  4944. VARIANT result;
  4945. InvokeHelper(0x63, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4946. return result;
  4947. }
  4948. void Borders::SetColor(const VARIANT& newValue)
  4949. {
  4950. static BYTE parms[] =
  4951. VTS_VARIANT;
  4952. InvokeHelper(0x63, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4953. &newValue);
  4954. }
  4955. VARIANT Borders::GetColorIndex()
  4956. {
  4957. VARIANT result;
  4958. InvokeHelper(0x61, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4959. return result;
  4960. }
  4961. void Borders::SetColorIndex(const VARIANT& newValue)
  4962. {
  4963. static BYTE parms[] =
  4964. VTS_VARIANT;
  4965. InvokeHelper(0x61, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4966. &newValue);
  4967. }
  4968. long Borders::GetCount()
  4969. {
  4970. long result;
  4971. InvokeHelper(0x76, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  4972. return result;
  4973. }
  4974. LPDISPATCH Borders::GetItem(long Index)
  4975. {
  4976. LPDISPATCH result;
  4977. static BYTE parms[] =
  4978. VTS_I4;
  4979. InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  4980. Index);
  4981. return result;
  4982. }
  4983. VARIANT Borders::GetLineStyle()
  4984. {
  4985. VARIANT result;
  4986. InvokeHelper(0x77, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  4987. return result;
  4988. }
  4989. void Borders::SetLineStyle(const VARIANT& newValue)
  4990. {
  4991. static BYTE parms[] =
  4992. VTS_VARIANT;
  4993. InvokeHelper(0x77, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  4994. &newValue);
  4995. }
  4996. LPUNKNOWN Borders::Get_NewEnum()
  4997. {
  4998. LPUNKNOWN result;
  4999. InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
  5000. return result;
  5001. }
  5002. VARIANT Borders::GetValue()
  5003. {
  5004. VARIANT result;
  5005. InvokeHelper(0x6, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5006. return result;
  5007. }
  5008. void Borders::SetValue(const VARIANT& newValue)
  5009. {
  5010. static BYTE parms[] =
  5011. VTS_VARIANT;
  5012. InvokeHelper(0x6, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5013. &newValue);
  5014. }
  5015. VARIANT Borders::GetWeight()
  5016. {
  5017. VARIANT result;
  5018. InvokeHelper(0x78, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5019. return result;
  5020. }
  5021. void Borders::SetWeight(const VARIANT& newValue)
  5022. {
  5023. static BYTE parms[] =
  5024. VTS_VARIANT;
  5025. InvokeHelper(0x78, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5026. &newValue);
  5027. }
  5028. LPDISPATCH Borders::Get_Default(long Index)
  5029. {
  5030. LPDISPATCH result;
  5031. static BYTE parms[] =
  5032. VTS_I4;
  5033. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  5034. Index);
  5035. return result;
  5036. }
  5037. /////////////////////////////////////////////////////////////////////////////
  5038. // Worksheets properties
  5039. /////////////////////////////////////////////////////////////////////////////
  5040. // Worksheets operations
  5041. LPDISPATCH Worksheets::GetApplication()
  5042. {
  5043. LPDISPATCH result;
  5044. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5045. return result;
  5046. }
  5047. long Worksheets::GetCreator()
  5048. {
  5049. long result;
  5050. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  5051. return result;
  5052. }
  5053. LPDISPATCH Worksheets::GetParent()
  5054. {
  5055. LPDISPATCH result;
  5056. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5057. return result;
  5058. }
  5059. LPDISPATCH Worksheets::Add(const VARIANT& Before, const VARIANT& After, const VARIANT& Count, const VARIANT& Type)
  5060. {
  5061. LPDISPATCH result;
  5062. static BYTE parms[] =
  5063. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  5064. InvokeHelper(0xb5, DISPATCH_METHOD, VT_DISPATCH, (void*)&result, parms,
  5065. &Before, &After, &Count, &Type);
  5066. return result;
  5067. }
  5068. void Worksheets::Copy(const VARIANT& Before, const VARIANT& After)
  5069. {
  5070. static BYTE parms[] =
  5071. VTS_VARIANT VTS_VARIANT;
  5072. InvokeHelper(0x227, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5073. &Before, &After);
  5074. }
  5075. long Worksheets::GetCount()
  5076. {
  5077. long result;
  5078. InvokeHelper(0x76, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  5079. return result;
  5080. }
  5081. void Worksheets::Delete()
  5082. {
  5083. InvokeHelper(0x75, DISPATCH_METHOD, VT_EMPTY, NULL, NULL);
  5084. }
  5085. void Worksheets::FillAcrossSheets(LPDISPATCH Range, long Type)
  5086. {
  5087. static BYTE parms[] =
  5088. VTS_DISPATCH VTS_I4;
  5089. InvokeHelper(0x1d5, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5090. Range, Type);
  5091. }
  5092. LPDISPATCH Worksheets::GetItem(const VARIANT& Index)
  5093. {
  5094. LPDISPATCH result;
  5095. static BYTE parms[] =
  5096. VTS_VARIANT;
  5097. InvokeHelper(0xaa, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  5098. &Index);
  5099. return result;
  5100. }
  5101. void Worksheets::Move(const VARIANT& Before, const VARIANT& After)
  5102. {
  5103. static BYTE parms[] =
  5104. VTS_VARIANT VTS_VARIANT;
  5105. InvokeHelper(0x27d, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5106. &Before, &After);
  5107. }
  5108. LPUNKNOWN Worksheets::Get_NewEnum()
  5109. {
  5110. LPUNKNOWN result;
  5111. InvokeHelper(0xfffffffc, DISPATCH_PROPERTYGET, VT_UNKNOWN, (void*)&result, NULL);
  5112. return result;
  5113. }
  5114. void Worksheets::PrintPreview(const VARIANT& EnableChanges)
  5115. {
  5116. static BYTE parms[] =
  5117. VTS_VARIANT;
  5118. InvokeHelper(0x119, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5119. &EnableChanges);
  5120. }
  5121. void Worksheets::Select(const VARIANT& Replace)
  5122. {
  5123. static BYTE parms[] =
  5124. VTS_VARIANT;
  5125. InvokeHelper(0xeb, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5126. &Replace);
  5127. }
  5128. LPDISPATCH Worksheets::GetHPageBreaks()
  5129. {
  5130. LPDISPATCH result;
  5131. InvokeHelper(0x58a, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5132. return result;
  5133. }
  5134. LPDISPATCH Worksheets::GetVPageBreaks()
  5135. {
  5136. LPDISPATCH result;
  5137. InvokeHelper(0x58b, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5138. return result;
  5139. }
  5140. VARIANT Worksheets::GetVisible()
  5141. {
  5142. VARIANT result;
  5143. InvokeHelper(0x22e, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5144. return result;
  5145. }
  5146. void Worksheets::SetVisible(const VARIANT& newValue)
  5147. {
  5148. static BYTE parms[] =
  5149. VTS_VARIANT;
  5150. InvokeHelper(0x22e, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5151. &newValue);
  5152. }
  5153. LPDISPATCH Worksheets::Get_Default(const VARIANT& Index)
  5154. {
  5155. LPDISPATCH result;
  5156. static BYTE parms[] =
  5157. VTS_VARIANT;
  5158. InvokeHelper(0x0, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, parms,
  5159. &Index);
  5160. return result;
  5161. }
  5162. void Worksheets::PrintOut(const VARIANT& From, const VARIANT& To, const VARIANT& Copies, const VARIANT& Preview, const VARIANT& ActivePrinter, const VARIANT& PrintToFile, const VARIANT& Collate, const VARIANT& PrToFileName)
  5163. {
  5164. static BYTE parms[] =
  5165. VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT VTS_VARIANT;
  5166. InvokeHelper(0x6ec, DISPATCH_METHOD, VT_EMPTY, NULL, parms,
  5167. &From, &To, &Copies, &Preview, &ActivePrinter, &PrintToFile, &Collate, &PrToFileName);
  5168. }
  5169. /////////////////////////////////////////////////////////////////////////////
  5170. // Interior properties
  5171. /////////////////////////////////////////////////////////////////////////////
  5172. // Interior operations
  5173. LPDISPATCH Interior::GetApplication()
  5174. {
  5175. LPDISPATCH result;
  5176. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5177. return result;
  5178. }
  5179. long Interior::GetCreator()
  5180. {
  5181. long result;
  5182. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  5183. return result;
  5184. }
  5185. LPDISPATCH Interior::GetParent()
  5186. {
  5187. LPDISPATCH result;
  5188. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5189. return result;
  5190. }
  5191. VARIANT Interior::GetColor()
  5192. {
  5193. VARIANT result;
  5194. InvokeHelper(0x63, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5195. return result;
  5196. }
  5197. void Interior::SetColor(const VARIANT& newValue)
  5198. {
  5199. static BYTE parms[] =
  5200. VTS_VARIANT;
  5201. InvokeHelper(0x63, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5202. &newValue);
  5203. }
  5204. VARIANT Interior::GetColorIndex()
  5205. {
  5206. VARIANT result;
  5207. InvokeHelper(0x61, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5208. return result;
  5209. }
  5210. void Interior::SetColorIndex(const VARIANT& newValue)
  5211. {
  5212. static BYTE parms[] =
  5213. VTS_VARIANT;
  5214. InvokeHelper(0x61, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5215. &newValue);
  5216. }
  5217. VARIANT Interior::GetInvertIfNegative()
  5218. {
  5219. VARIANT result;
  5220. InvokeHelper(0x84, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5221. return result;
  5222. }
  5223. void Interior::SetInvertIfNegative(const VARIANT& newValue)
  5224. {
  5225. static BYTE parms[] =
  5226. VTS_VARIANT;
  5227. InvokeHelper(0x84, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5228. &newValue);
  5229. }
  5230. VARIANT Interior::GetPattern()
  5231. {
  5232. VARIANT result;
  5233. InvokeHelper(0x5f, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5234. return result;
  5235. }
  5236. void Interior::SetPattern(const VARIANT& newValue)
  5237. {
  5238. static BYTE parms[] =
  5239. VTS_VARIANT;
  5240. InvokeHelper(0x5f, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5241. &newValue);
  5242. }
  5243. VARIANT Interior::GetPatternColor()
  5244. {
  5245. VARIANT result;
  5246. InvokeHelper(0x64, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5247. return result;
  5248. }
  5249. void Interior::SetPatternColor(const VARIANT& newValue)
  5250. {
  5251. static BYTE parms[] =
  5252. VTS_VARIANT;
  5253. InvokeHelper(0x64, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5254. &newValue);
  5255. }
  5256. VARIANT Interior::GetPatternColorIndex()
  5257. {
  5258. VARIANT result;
  5259. InvokeHelper(0x62, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5260. return result;
  5261. }
  5262. void Interior::SetPatternColorIndex(const VARIANT& newValue)
  5263. {
  5264. static BYTE parms[] =
  5265. VTS_VARIANT;
  5266. InvokeHelper(0x62, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5267. &newValue);
  5268. }
  5269. /////////////////////////////////////////////////////////////////////////////
  5270. // Border properties
  5271. /////////////////////////////////////////////////////////////////////////////
  5272. // Border operations
  5273. LPDISPATCH Border::GetApplication()
  5274. {
  5275. LPDISPATCH result;
  5276. InvokeHelper(0x94, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5277. return result;
  5278. }
  5279. long Border::GetCreator()
  5280. {
  5281. long result;
  5282. InvokeHelper(0x95, DISPATCH_PROPERTYGET, VT_I4, (void*)&result, NULL);
  5283. return result;
  5284. }
  5285. LPDISPATCH Border::GetParent()
  5286. {
  5287. LPDISPATCH result;
  5288. InvokeHelper(0x96, DISPATCH_PROPERTYGET, VT_DISPATCH, (void*)&result, NULL);
  5289. return result;
  5290. }
  5291. VARIANT Border::GetColor()
  5292. {
  5293. VARIANT result;
  5294. InvokeHelper(0x63, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5295. return result;
  5296. }
  5297. void Border::SetColor(const VARIANT& newValue)
  5298. {
  5299. static BYTE parms[] =
  5300. VTS_VARIANT;
  5301. InvokeHelper(0x63, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5302. &newValue);
  5303. }
  5304. VARIANT Border::GetColorIndex()
  5305. {
  5306. VARIANT result;
  5307. InvokeHelper(0x61, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5308. return result;
  5309. }
  5310. void Border::SetColorIndex(const VARIANT& newValue)
  5311. {
  5312. static BYTE parms[] =
  5313. VTS_VARIANT;
  5314. InvokeHelper(0x61, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5315. &newValue);
  5316. }
  5317. VARIANT Border::GetLineStyle()
  5318. {
  5319. VARIANT result;
  5320. InvokeHelper(0x77, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5321. return result;
  5322. }
  5323. void Border::SetLineStyle(const VARIANT& newValue)
  5324. {
  5325. static BYTE parms[] =
  5326. VTS_VARIANT;
  5327. InvokeHelper(0x77, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5328. &newValue);
  5329. }
  5330. VARIANT Border::GetWeight()
  5331. {
  5332. VARIANT result;
  5333. InvokeHelper(0x78, DISPATCH_PROPERTYGET, VT_VARIANT, (void*)&result, NULL);
  5334. return result;
  5335. }
  5336. void Border::SetWeight(const VARIANT& newValue)
  5337. {
  5338. static BYTE parms[] =
  5339. VTS_VARIANT;
  5340. InvokeHelper(0x78, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL, parms,
  5341. &newValue);
  5342. }