tom.h 132 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619
  1. /**
  2. * This file has no copyright assigned and is placed in the Public Domain.
  3. * This file is part of the mingw-w64 runtime package.
  4. * No warranty is given; refer to the file DISCLAIMER.PD within this package.
  5. */
  6. #ifndef __REQUIRED_RPCNDR_H_VERSION__
  7. #define __REQUIRED_RPCNDR_H_VERSION__ 440
  8. #endif
  9. #include "rpc.h"
  10. #include "rpcndr.h"
  11. #ifndef __RPCNDR_H_VERSION__
  12. #error This stub requires an updated version of <rpcndr.h>
  13. #endif
  14. #ifndef COM_NO_WINDOWS_H
  15. #include "windows.h"
  16. #include "ole2.h"
  17. #endif
  18. #ifndef __tomtmp_h__
  19. #define __tomtmp_h__
  20. #ifdef __cplusplus
  21. extern "C" {
  22. #endif
  23. #ifndef __ITextDocument_FWD_DEFINED__
  24. #define __ITextDocument_FWD_DEFINED__
  25. typedef struct ITextDocument ITextDocument;
  26. #endif
  27. #ifndef __ITextRange_FWD_DEFINED__
  28. #define __ITextRange_FWD_DEFINED__
  29. typedef struct ITextRange ITextRange;
  30. #endif
  31. #ifndef __ITextSelection_FWD_DEFINED__
  32. #define __ITextSelection_FWD_DEFINED__
  33. typedef struct ITextSelection ITextSelection;
  34. #endif
  35. #ifndef __ITextFont_FWD_DEFINED__
  36. #define __ITextFont_FWD_DEFINED__
  37. typedef struct ITextFont ITextFont;
  38. #endif
  39. #ifndef __ITextPara_FWD_DEFINED__
  40. #define __ITextPara_FWD_DEFINED__
  41. typedef struct ITextPara ITextPara;
  42. #endif
  43. #ifndef __ITextStoryRanges_FWD_DEFINED__
  44. #define __ITextStoryRanges_FWD_DEFINED__
  45. typedef struct ITextStoryRanges ITextStoryRanges;
  46. #endif
  47. #ifndef __ITextDocument2_FWD_DEFINED__
  48. #define __ITextDocument2_FWD_DEFINED__
  49. typedef struct ITextDocument2 ITextDocument2;
  50. #endif
  51. #ifndef __ITextMsgFilter_FWD_DEFINED__
  52. #define __ITextMsgFilter_FWD_DEFINED__
  53. typedef struct ITextMsgFilter ITextMsgFilter;
  54. #endif
  55. #ifndef __ITextDocument_FWD_DEFINED__
  56. #define __ITextDocument_FWD_DEFINED__
  57. typedef struct ITextDocument ITextDocument;
  58. #endif
  59. #ifndef __ITextRange_FWD_DEFINED__
  60. #define __ITextRange_FWD_DEFINED__
  61. typedef struct ITextRange ITextRange;
  62. #endif
  63. #ifndef __ITextSelection_FWD_DEFINED__
  64. #define __ITextSelection_FWD_DEFINED__
  65. typedef struct ITextSelection ITextSelection;
  66. #endif
  67. #ifndef __ITextFont_FWD_DEFINED__
  68. #define __ITextFont_FWD_DEFINED__
  69. typedef struct ITextFont ITextFont;
  70. #endif
  71. #ifndef __ITextPara_FWD_DEFINED__
  72. #define __ITextPara_FWD_DEFINED__
  73. typedef struct ITextPara ITextPara;
  74. #endif
  75. #ifndef __ITextStoryRanges_FWD_DEFINED__
  76. #define __ITextStoryRanges_FWD_DEFINED__
  77. typedef struct ITextStoryRanges ITextStoryRanges;
  78. #endif
  79. #ifndef __ITextDocument2_FWD_DEFINED__
  80. #define __ITextDocument2_FWD_DEFINED__
  81. typedef struct ITextDocument2 ITextDocument2;
  82. #endif
  83. #ifndef __ITextMsgFilter_FWD_DEFINED__
  84. #define __ITextMsgFilter_FWD_DEFINED__
  85. typedef struct ITextMsgFilter ITextMsgFilter;
  86. #endif
  87. #include "oaidl.h"
  88. #include "ocidl.h"
  89. #ifndef __MIDL_user_allocate_free_DEFINED__
  90. #define __MIDL_user_allocate_free_DEFINED__
  91. void *__RPC_API MIDL_user_allocate(size_t);
  92. void __RPC_API MIDL_user_free(void *);
  93. #endif
  94. extern RPC_IF_HANDLE __MIDL_itf_tom_0000_v0_0_c_ifspec;
  95. extern RPC_IF_HANDLE __MIDL_itf_tom_0000_v0_0_s_ifspec;
  96. #ifndef __tom_LIBRARY_DEFINED__
  97. #define __tom_LIBRARY_DEFINED__
  98. typedef enum __MIDL___MIDL_itf_tom_0000_0001 {
  99. tomFalse = (int) 0,tomTrue = (int) -1,tomUndefined = (int) -9999999,tomToggle = (int) -9999998,tomAutoColor = (int) -9999997,tomDefault = (int) -9999996,tomSuspend = (int) -9999995,
  100. tomResume = (int) -9999994,tomApplyNow = (int) 0,tomApplyLater = (int) 1,tomTrackParms = (int) 2,tomCacheParms = (int) 3,tomBackward = (int) 0xc0000001,tomForward = (int) 0x3fffffff,
  101. tomMove = (int) 0,tomExtend = (int) 1,tomNoSelection = (int) 0,tomSelectionIP = (int) 1,tomSelectionNormal = (int) 2,tomSelectionFrame = (int) 3,tomSelectionColumn = (int) 4,
  102. tomSelectionRow = (int) 5,tomSelectionBlock = (int) 6,tomSelectionInlineShape = (int) 7,tomSelectionShape = (int) 8,tomSelStartActive = (int) 1,tomSelAtEOL = (int) 2,
  103. tomSelOvertype = (int) 4,tomSelActive = (int) 8,tomSelReplace = (int) 16,tomEnd = (int) 0,tomStart = (int) 32,tomCollapseEnd = (int) 0,tomCollapseStart = (int) 1,tomClientCoord = (int) 256,
  104. tomNone = (int) 0,tomSingle = (int) 1,tomWords = (int) 2,tomDouble = (int) 3,tomDotted = (int) 4,tomDash = (int) 5,tomDashDot = (int) 6,tomDashDotDot = (int) 7,tomWave = (int) 8,tomThick = (int) 9,
  105. tomHair = (int) 10,tomLineSpaceSingle = (int) 0,tomLineSpace1pt5 = (int) 1,tomLineSpaceDouble = (int) 2,tomLineSpaceAtLeast = (int) 3,tomLineSpaceExactly = (int) 4,
  106. tomLineSpaceMultiple = (int) 5,tomAlignLeft = (int) 0,tomAlignCenter = (int) 1,tomAlignRight = (int) 2,tomAlignJustify = (int) 3,tomAlignDecimal = (int) 3,tomAlignBar = (int) 4,
  107. tomAlignInterWord = (int) 3,tomAlignInterLetter = (int) 4,tomAlignScaled = (int) 5,tomAlignGlyphs = (int) 6,tomAlignSnapGrid = (int) 7,tomSpaces = (int) 0,tomDots = (int) 1,tomDashes = (int) 2,
  108. tomLines = (int) 3,tomThickLines = (int) 4,tomEquals = (int) 5,tomTabBack = (int) -3,tomTabNext = (int) -2,tomTabHere = (int) -1,tomListNone = (int) 0,tomListBullet = (int) 1,
  109. tomListNumberAsArabic = (int) 2,tomListNumberAsLCLetter = (int) 3,tomListNumberAsUCLetter = (int) 4,tomListNumberAsLCRoman = (int) 5,tomListNumberAsUCRoman = (int) 6,
  110. tomListNumberAsSequence = (int) 7,tomListParentheses = (int) 0x10000,tomListPeriod = (int) 0x20000,tomListPlain = (int) 0x30000,tomCharacter = (int) 1,tomWord = (int) 2,
  111. tomSentence = (int) 3,tomParagraph = (int) 4,tomLine = (int) 5,tomStory = (int) 6,tomScreen = (int) 7,tomSection = (int) 8,tomColumn = (int) 9,tomRow = (int) 10,tomWindow = (int) 11,tomCell = (int) 12,
  112. tomCharFormat = (int) 13,tomParaFormat = (int) 14,tomTable = (int) 15,tomObject = (int) 16,tomMatchWord = (int) 2,tomMatchCase = (int) 4,tomMatchPattern = (int) 8,tomUnknownStory = (int) 0,
  113. tomMainTextStory = (int) 1,tomFootnotesStory = (int) 2,tomEndnotesStory = (int) 3,tomCommentsStory = (int) 4,tomTextFrameStory = (int) 5,tomEvenPagesHeaderStory = (int) 6,
  114. tomPrimaryHeaderStory = (int) 7,tomEvenPagesFooterStory = (int) 8,tomPrimaryFooterStory = (int) 9,tomFirstPageHeaderStory = (int) 10,tomFirstPageFooterStory = (int) 11,
  115. tomNoAnimation = (int) 0,tomLasVegasLights = (int) 1,tomBlinkingBackground = (int) 2,tomSparkleText = (int) 3,tomMarchingBlackAnts = (int) 4,tomMarchingRedAnts = (int) 5,
  116. tomShimmer = (int) 6,tomWipeDown = (int) 7,tomWipeRight = (int) 8,tomAnimationMax = (int) 8,tomLowerCase = (int) 0,tomUpperCase = (int) 1,tomTitleCase = (int) 2,tomSentenceCase = (int) 4,
  117. tomToggleCase = (int) 5,tomReadOnly = (int) 0x100,tomShareDenyRead = (int) 0x200,tomShareDenyWrite = (int) 0x400,tomPasteFile = (int) 0x1000,tomCreateNew = (int) 0x10,
  118. tomCreateAlways = (int) 0x20,tomOpenExisting = (int) 0x30,tomOpenAlways = (int) 0x40,tomTruncateExisting = (int) 0x50,tomRTF = (int) 0x1,tomText = (int) 0x2,tomHTML = (int) 0x3,
  119. tomWordDocument = (int) 0x4,tomBold = (int) 0x80000001,tomItalic = (int) 0x80000002,tomUnderline = (int) 0x80000004,tomStrikeout = (int) 0x80000008,tomProtected = (int) 0x80000010,
  120. tomLink = (int) 0x80000020,tomSmallCaps = (int) 0x80000040,tomAllCaps = (int) 0x80000080,tomHidden = (int) 0x80000100,tomOutline = (int) 0x80000200,tomShadow = (int) 0x80000400,
  121. tomEmboss = (int) 0x80000800,tomImprint = (int) 0x80001000,tomDisabled = (int) 0x80002000,tomRevised = (int) 0x80004000,tomNormalCaret = (int) 0,tomKoreanBlockCaret = (int) 0x1,
  122. tomIncludeInset = (int) 0x1,tomIgnoreCurrentFont = (int) 0,tomMatchFontCharset = (int) 0x1,tomMatchFontSignature = (int) 0x2,tomCharset = (int) 0x80000000,tomRE10Mode = (int) 0x1,
  123. tomNoIME = (int) 0x80000,tomSelfIME = (int) 0x40000
  124. } tomConstants;
  125. EXTERN_C const IID LIBID_tom;
  126. #ifndef __ITextDocument_INTERFACE_DEFINED__
  127. #define __ITextDocument_INTERFACE_DEFINED__
  128. EXTERN_C const IID IID_ITextDocument;
  129. #if defined(__cplusplus) && !defined(CINTERFACE)
  130. struct ITextDocument : public IDispatch {
  131. public:
  132. virtual HRESULT WINAPI GetName(BSTR *pName) = 0;
  133. virtual HRESULT WINAPI GetSelection(ITextSelection **ppSel) = 0;
  134. virtual HRESULT WINAPI GetStoryCount(__LONG32 *pCount) = 0;
  135. virtual HRESULT WINAPI GetStoryRanges(ITextStoryRanges **ppStories) = 0;
  136. virtual HRESULT WINAPI GetSaved(__LONG32 *pValue) = 0;
  137. virtual HRESULT WINAPI SetSaved(__LONG32 Value) = 0;
  138. virtual HRESULT WINAPI GetDefaultTabStop(float *pValue) = 0;
  139. virtual HRESULT WINAPI SetDefaultTabStop(float Value) = 0;
  140. virtual HRESULT WINAPI New(void) = 0;
  141. virtual HRESULT WINAPI Open(VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage) = 0;
  142. virtual HRESULT WINAPI Save(VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage) = 0;
  143. virtual HRESULT WINAPI Freeze(__LONG32 *pCount) = 0;
  144. virtual HRESULT WINAPI Unfreeze(__LONG32 *pCount) = 0;
  145. virtual HRESULT WINAPI BeginEditCollection(void) = 0;
  146. virtual HRESULT WINAPI EndEditCollection(void) = 0;
  147. virtual HRESULT WINAPI Undo(__LONG32 Count,__LONG32 *prop) = 0;
  148. virtual HRESULT WINAPI Redo(__LONG32 Count,__LONG32 *prop) = 0;
  149. virtual HRESULT WINAPI Range(__LONG32 cp1,__LONG32 cp2,ITextRange **ppRange) = 0;
  150. virtual HRESULT WINAPI RangeFromPoint(__LONG32 x,__LONG32 y,ITextRange **ppRange) = 0;
  151. };
  152. #else
  153. typedef struct ITextDocumentVtbl {
  154. BEGIN_INTERFACE
  155. HRESULT (WINAPI *QueryInterface)(ITextDocument *This,REFIID riid,void **ppvObject);
  156. ULONG (WINAPI *AddRef)(ITextDocument *This);
  157. ULONG (WINAPI *Release)(ITextDocument *This);
  158. HRESULT (WINAPI *GetTypeInfoCount)(ITextDocument *This,UINT *pctinfo);
  159. HRESULT (WINAPI *GetTypeInfo)(ITextDocument *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  160. HRESULT (WINAPI *GetIDsOfNames)(ITextDocument *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  161. HRESULT (WINAPI *Invoke)(ITextDocument *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  162. HRESULT (WINAPI *GetName)(ITextDocument *This,BSTR *pName);
  163. HRESULT (WINAPI *GetSelection)(ITextDocument *This,ITextSelection **ppSel);
  164. HRESULT (WINAPI *GetStoryCount)(ITextDocument *This,__LONG32 *pCount);
  165. HRESULT (WINAPI *GetStoryRanges)(ITextDocument *This,ITextStoryRanges **ppStories);
  166. HRESULT (WINAPI *GetSaved)(ITextDocument *This,__LONG32 *pValue);
  167. HRESULT (WINAPI *SetSaved)(ITextDocument *This,__LONG32 Value);
  168. HRESULT (WINAPI *GetDefaultTabStop)(ITextDocument *This,float *pValue);
  169. HRESULT (WINAPI *SetDefaultTabStop)(ITextDocument *This,float Value);
  170. HRESULT (WINAPI *New)(ITextDocument *This);
  171. HRESULT (WINAPI *Open)(ITextDocument *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  172. HRESULT (WINAPI *Save)(ITextDocument *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  173. HRESULT (WINAPI *Freeze)(ITextDocument *This,__LONG32 *pCount);
  174. HRESULT (WINAPI *Unfreeze)(ITextDocument *This,__LONG32 *pCount);
  175. HRESULT (WINAPI *BeginEditCollection)(ITextDocument *This);
  176. HRESULT (WINAPI *EndEditCollection)(ITextDocument *This);
  177. HRESULT (WINAPI *Undo)(ITextDocument *This,__LONG32 Count,__LONG32 *prop);
  178. HRESULT (WINAPI *Redo)(ITextDocument *This,__LONG32 Count,__LONG32 *prop);
  179. HRESULT (WINAPI *Range)(ITextDocument *This,__LONG32 cp1,__LONG32 cp2,ITextRange **ppRange);
  180. HRESULT (WINAPI *RangeFromPoint)(ITextDocument *This,__LONG32 x,__LONG32 y,ITextRange **ppRange);
  181. END_INTERFACE
  182. } ITextDocumentVtbl;
  183. struct ITextDocument {
  184. CONST_VTBL struct ITextDocumentVtbl *lpVtbl;
  185. };
  186. #ifdef COBJMACROS
  187. #define ITextDocument_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  188. #define ITextDocument_AddRef(This) (This)->lpVtbl->AddRef(This)
  189. #define ITextDocument_Release(This) (This)->lpVtbl->Release(This)
  190. #define ITextDocument_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  191. #define ITextDocument_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  192. #define ITextDocument_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  193. #define ITextDocument_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  194. #define ITextDocument_GetName(This,pName) (This)->lpVtbl->GetName(This,pName)
  195. #define ITextDocument_GetSelection(This,ppSel) (This)->lpVtbl->GetSelection(This,ppSel)
  196. #define ITextDocument_GetStoryCount(This,pCount) (This)->lpVtbl->GetStoryCount(This,pCount)
  197. #define ITextDocument_GetStoryRanges(This,ppStories) (This)->lpVtbl->GetStoryRanges(This,ppStories)
  198. #define ITextDocument_GetSaved(This,pValue) (This)->lpVtbl->GetSaved(This,pValue)
  199. #define ITextDocument_SetSaved(This,Value) (This)->lpVtbl->SetSaved(This,Value)
  200. #define ITextDocument_GetDefaultTabStop(This,pValue) (This)->lpVtbl->GetDefaultTabStop(This,pValue)
  201. #define ITextDocument_SetDefaultTabStop(This,Value) (This)->lpVtbl->SetDefaultTabStop(This,Value)
  202. #define ITextDocument_New(This) (This)->lpVtbl->New(This)
  203. #define ITextDocument_Open(This,pVar,Flags,CodePage) (This)->lpVtbl->Open(This,pVar,Flags,CodePage)
  204. #define ITextDocument_Save(This,pVar,Flags,CodePage) (This)->lpVtbl->Save(This,pVar,Flags,CodePage)
  205. #define ITextDocument_Freeze(This,pCount) (This)->lpVtbl->Freeze(This,pCount)
  206. #define ITextDocument_Unfreeze(This,pCount) (This)->lpVtbl->Unfreeze(This,pCount)
  207. #define ITextDocument_BeginEditCollection(This) (This)->lpVtbl->BeginEditCollection(This)
  208. #define ITextDocument_EndEditCollection(This) (This)->lpVtbl->EndEditCollection(This)
  209. #define ITextDocument_Undo(This,Count,prop) (This)->lpVtbl->Undo(This,Count,prop)
  210. #define ITextDocument_Redo(This,Count,prop) (This)->lpVtbl->Redo(This,Count,prop)
  211. #define ITextDocument_Range(This,cp1,cp2,ppRange) (This)->lpVtbl->Range(This,cp1,cp2,ppRange)
  212. #define ITextDocument_RangeFromPoint(This,x,y,ppRange) (This)->lpVtbl->RangeFromPoint(This,x,y,ppRange)
  213. #endif
  214. #endif
  215. HRESULT WINAPI ITextDocument_GetName_Proxy(ITextDocument *This,BSTR *pName);
  216. void __RPC_STUB ITextDocument_GetName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  217. HRESULT WINAPI ITextDocument_GetSelection_Proxy(ITextDocument *This,ITextSelection **ppSel);
  218. void __RPC_STUB ITextDocument_GetSelection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  219. HRESULT WINAPI ITextDocument_GetStoryCount_Proxy(ITextDocument *This,__LONG32 *pCount);
  220. void __RPC_STUB ITextDocument_GetStoryCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  221. HRESULT WINAPI ITextDocument_GetStoryRanges_Proxy(ITextDocument *This,ITextStoryRanges **ppStories);
  222. void __RPC_STUB ITextDocument_GetStoryRanges_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  223. HRESULT WINAPI ITextDocument_GetSaved_Proxy(ITextDocument *This,__LONG32 *pValue);
  224. void __RPC_STUB ITextDocument_GetSaved_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  225. HRESULT WINAPI ITextDocument_SetSaved_Proxy(ITextDocument *This,__LONG32 Value);
  226. void __RPC_STUB ITextDocument_SetSaved_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  227. HRESULT WINAPI ITextDocument_GetDefaultTabStop_Proxy(ITextDocument *This,float *pValue);
  228. void __RPC_STUB ITextDocument_GetDefaultTabStop_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  229. HRESULT WINAPI ITextDocument_SetDefaultTabStop_Proxy(ITextDocument *This,float Value);
  230. void __RPC_STUB ITextDocument_SetDefaultTabStop_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  231. HRESULT WINAPI ITextDocument_New_Proxy(ITextDocument *This);
  232. void __RPC_STUB ITextDocument_New_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  233. HRESULT WINAPI ITextDocument_Open_Proxy(ITextDocument *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  234. void __RPC_STUB ITextDocument_Open_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  235. HRESULT WINAPI ITextDocument_Save_Proxy(ITextDocument *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  236. void __RPC_STUB ITextDocument_Save_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  237. HRESULT WINAPI ITextDocument_Freeze_Proxy(ITextDocument *This,__LONG32 *pCount);
  238. void __RPC_STUB ITextDocument_Freeze_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  239. HRESULT WINAPI ITextDocument_Unfreeze_Proxy(ITextDocument *This,__LONG32 *pCount);
  240. void __RPC_STUB ITextDocument_Unfreeze_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  241. HRESULT WINAPI ITextDocument_BeginEditCollection_Proxy(ITextDocument *This);
  242. void __RPC_STUB ITextDocument_BeginEditCollection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  243. HRESULT WINAPI ITextDocument_EndEditCollection_Proxy(ITextDocument *This);
  244. void __RPC_STUB ITextDocument_EndEditCollection_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  245. HRESULT WINAPI ITextDocument_Undo_Proxy(ITextDocument *This,__LONG32 Count,__LONG32 *prop);
  246. void __RPC_STUB ITextDocument_Undo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  247. HRESULT WINAPI ITextDocument_Redo_Proxy(ITextDocument *This,__LONG32 Count,__LONG32 *prop);
  248. void __RPC_STUB ITextDocument_Redo_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  249. HRESULT WINAPI ITextDocument_Range_Proxy(ITextDocument *This,__LONG32 cp1,__LONG32 cp2,ITextRange **ppRange);
  250. void __RPC_STUB ITextDocument_Range_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  251. HRESULT WINAPI ITextDocument_RangeFromPoint_Proxy(ITextDocument *This,__LONG32 x,__LONG32 y,ITextRange **ppRange);
  252. void __RPC_STUB ITextDocument_RangeFromPoint_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  253. #endif
  254. #ifndef __ITextRange_INTERFACE_DEFINED__
  255. #define __ITextRange_INTERFACE_DEFINED__
  256. EXTERN_C const IID IID_ITextRange;
  257. #if defined(__cplusplus) && !defined(CINTERFACE)
  258. struct ITextRange : public IDispatch {
  259. public:
  260. virtual HRESULT WINAPI GetText(BSTR *pbstr) = 0;
  261. virtual HRESULT WINAPI SetText(BSTR bstr) = 0;
  262. virtual HRESULT WINAPI GetChar(__LONG32 *pch) = 0;
  263. virtual HRESULT WINAPI SetChar(__LONG32 ch) = 0;
  264. virtual HRESULT WINAPI GetDuplicate(ITextRange **ppRange) = 0;
  265. virtual HRESULT WINAPI GetFormattedText(ITextRange **ppRange) = 0;
  266. virtual HRESULT WINAPI SetFormattedText(ITextRange *pRange) = 0;
  267. virtual HRESULT WINAPI GetStart(__LONG32 *pcpFirst) = 0;
  268. virtual HRESULT WINAPI SetStart(__LONG32 cpFirst) = 0;
  269. virtual HRESULT WINAPI GetEnd(__LONG32 *pcpLim) = 0;
  270. virtual HRESULT WINAPI SetEnd(__LONG32 cpLim) = 0;
  271. virtual HRESULT WINAPI GetFont(ITextFont **pFont) = 0;
  272. virtual HRESULT WINAPI SetFont(ITextFont *pFont) = 0;
  273. virtual HRESULT WINAPI GetPara(ITextPara **pPara) = 0;
  274. virtual HRESULT WINAPI SetPara(ITextPara *pPara) = 0;
  275. virtual HRESULT WINAPI GetStoryLength(__LONG32 *pcch) = 0;
  276. virtual HRESULT WINAPI GetStoryType(__LONG32 *pValue) = 0;
  277. virtual HRESULT WINAPI Collapse(__LONG32 bStart) = 0;
  278. virtual HRESULT WINAPI Expand(__LONG32 Unit,__LONG32 *pDelta) = 0;
  279. virtual HRESULT WINAPI GetIndex(__LONG32 Unit,__LONG32 *pIndex) = 0;
  280. virtual HRESULT WINAPI SetIndex(__LONG32 Unit,__LONG32 Index,__LONG32 Extend) = 0;
  281. virtual HRESULT WINAPI SetRange(__LONG32 cpActive,__LONG32 cpOther) = 0;
  282. virtual HRESULT WINAPI InRange(ITextRange *pRange,__LONG32 *pb) = 0;
  283. virtual HRESULT WINAPI InStory(ITextRange *pRange,__LONG32 *pb) = 0;
  284. virtual HRESULT WINAPI IsEqual(ITextRange *pRange,__LONG32 *pb) = 0;
  285. virtual HRESULT WINAPI Select(void) = 0;
  286. virtual HRESULT WINAPI StartOf(__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta) = 0;
  287. virtual HRESULT WINAPI EndOf(__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta) = 0;
  288. virtual HRESULT WINAPI Move(__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta) = 0;
  289. virtual HRESULT WINAPI MoveStart(__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta) = 0;
  290. virtual HRESULT WINAPI MoveEnd(__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta) = 0;
  291. virtual HRESULT WINAPI MoveWhile(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  292. virtual HRESULT WINAPI MoveStartWhile(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  293. virtual HRESULT WINAPI MoveEndWhile(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  294. virtual HRESULT WINAPI MoveUntil(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  295. virtual HRESULT WINAPI MoveStartUntil(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  296. virtual HRESULT WINAPI MoveEndUntil(VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta) = 0;
  297. virtual HRESULT WINAPI FindText(BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength) = 0;
  298. virtual HRESULT WINAPI FindTextStart(BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength) = 0;
  299. virtual HRESULT WINAPI FindTextEnd(BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength) = 0;
  300. virtual HRESULT WINAPI Delete(__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta) = 0;
  301. virtual HRESULT WINAPI Cut(VARIANT *pVar) = 0;
  302. virtual HRESULT WINAPI Copy(VARIANT *pVar) = 0;
  303. virtual HRESULT WINAPI Paste(VARIANT *pVar,__LONG32 Format) = 0;
  304. virtual HRESULT WINAPI CanPaste(VARIANT *pVar,__LONG32 Format,__LONG32 *pb) = 0;
  305. virtual HRESULT WINAPI CanEdit(__LONG32 *pbCanEdit) = 0;
  306. virtual HRESULT WINAPI ChangeCase(__LONG32 Type) = 0;
  307. virtual HRESULT WINAPI GetPoint(__LONG32 Type,__LONG32 *px,__LONG32 *py) = 0;
  308. virtual HRESULT WINAPI SetPoint(__LONG32 x,__LONG32 y,__LONG32 Type,__LONG32 Extend) = 0;
  309. virtual HRESULT WINAPI ScrollIntoView(__LONG32 Value) = 0;
  310. virtual HRESULT WINAPI GetEmbeddedObject(IUnknown **ppv) = 0;
  311. };
  312. #else
  313. typedef struct ITextRangeVtbl {
  314. BEGIN_INTERFACE
  315. HRESULT (WINAPI *QueryInterface)(ITextRange *This,REFIID riid,void **ppvObject);
  316. ULONG (WINAPI *AddRef)(ITextRange *This);
  317. ULONG (WINAPI *Release)(ITextRange *This);
  318. HRESULT (WINAPI *GetTypeInfoCount)(ITextRange *This,UINT *pctinfo);
  319. HRESULT (WINAPI *GetTypeInfo)(ITextRange *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  320. HRESULT (WINAPI *GetIDsOfNames)(ITextRange *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  321. HRESULT (WINAPI *Invoke)(ITextRange *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  322. HRESULT (WINAPI *GetText)(ITextRange *This,BSTR *pbstr);
  323. HRESULT (WINAPI *SetText)(ITextRange *This,BSTR bstr);
  324. HRESULT (WINAPI *GetChar)(ITextRange *This,__LONG32 *pch);
  325. HRESULT (WINAPI *SetChar)(ITextRange *This,__LONG32 ch);
  326. HRESULT (WINAPI *GetDuplicate)(ITextRange *This,ITextRange **ppRange);
  327. HRESULT (WINAPI *GetFormattedText)(ITextRange *This,ITextRange **ppRange);
  328. HRESULT (WINAPI *SetFormattedText)(ITextRange *This,ITextRange *pRange);
  329. HRESULT (WINAPI *GetStart)(ITextRange *This,__LONG32 *pcpFirst);
  330. HRESULT (WINAPI *SetStart)(ITextRange *This,__LONG32 cpFirst);
  331. HRESULT (WINAPI *GetEnd)(ITextRange *This,__LONG32 *pcpLim);
  332. HRESULT (WINAPI *SetEnd)(ITextRange *This,__LONG32 cpLim);
  333. HRESULT (WINAPI *GetFont)(ITextRange *This,ITextFont **pFont);
  334. HRESULT (WINAPI *SetFont)(ITextRange *This,ITextFont *pFont);
  335. HRESULT (WINAPI *GetPara)(ITextRange *This,ITextPara **pPara);
  336. HRESULT (WINAPI *SetPara)(ITextRange *This,ITextPara *pPara);
  337. HRESULT (WINAPI *GetStoryLength)(ITextRange *This,__LONG32 *pcch);
  338. HRESULT (WINAPI *GetStoryType)(ITextRange *This,__LONG32 *pValue);
  339. HRESULT (WINAPI *Collapse)(ITextRange *This,__LONG32 bStart);
  340. HRESULT (WINAPI *Expand)(ITextRange *This,__LONG32 Unit,__LONG32 *pDelta);
  341. HRESULT (WINAPI *GetIndex)(ITextRange *This,__LONG32 Unit,__LONG32 *pIndex);
  342. HRESULT (WINAPI *SetIndex)(ITextRange *This,__LONG32 Unit,__LONG32 Index,__LONG32 Extend);
  343. HRESULT (WINAPI *SetRange)(ITextRange *This,__LONG32 cpActive,__LONG32 cpOther);
  344. HRESULT (WINAPI *InRange)(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  345. HRESULT (WINAPI *InStory)(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  346. HRESULT (WINAPI *IsEqual)(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  347. HRESULT (WINAPI *Select)(ITextRange *This);
  348. HRESULT (WINAPI *StartOf)(ITextRange *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  349. HRESULT (WINAPI *EndOf)(ITextRange *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  350. HRESULT (WINAPI *Move)(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  351. HRESULT (WINAPI *MoveStart)(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  352. HRESULT (WINAPI *MoveEnd)(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  353. HRESULT (WINAPI *MoveWhile)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  354. HRESULT (WINAPI *MoveStartWhile)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  355. HRESULT (WINAPI *MoveEndWhile)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  356. HRESULT (WINAPI *MoveUntil)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  357. HRESULT (WINAPI *MoveStartUntil)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  358. HRESULT (WINAPI *MoveEndUntil)(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  359. HRESULT (WINAPI *FindText)(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  360. HRESULT (WINAPI *FindTextStart)(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  361. HRESULT (WINAPI *FindTextEnd)(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  362. HRESULT (WINAPI *Delete)(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  363. HRESULT (WINAPI *Cut)(ITextRange *This,VARIANT *pVar);
  364. HRESULT (WINAPI *Copy)(ITextRange *This,VARIANT *pVar);
  365. HRESULT (WINAPI *Paste)(ITextRange *This,VARIANT *pVar,__LONG32 Format);
  366. HRESULT (WINAPI *CanPaste)(ITextRange *This,VARIANT *pVar,__LONG32 Format,__LONG32 *pb);
  367. HRESULT (WINAPI *CanEdit)(ITextRange *This,__LONG32 *pbCanEdit);
  368. HRESULT (WINAPI *ChangeCase)(ITextRange *This,__LONG32 Type);
  369. HRESULT (WINAPI *GetPoint)(ITextRange *This,__LONG32 Type,__LONG32 *px,__LONG32 *py);
  370. HRESULT (WINAPI *SetPoint)(ITextRange *This,__LONG32 x,__LONG32 y,__LONG32 Type,__LONG32 Extend);
  371. HRESULT (WINAPI *ScrollIntoView)(ITextRange *This,__LONG32 Value);
  372. HRESULT (WINAPI *GetEmbeddedObject)(ITextRange *This,IUnknown **ppv);
  373. END_INTERFACE
  374. } ITextRangeVtbl;
  375. struct ITextRange {
  376. CONST_VTBL struct ITextRangeVtbl *lpVtbl;
  377. };
  378. #ifdef COBJMACROS
  379. #define ITextRange_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  380. #define ITextRange_AddRef(This) (This)->lpVtbl->AddRef(This)
  381. #define ITextRange_Release(This) (This)->lpVtbl->Release(This)
  382. #define ITextRange_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  383. #define ITextRange_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  384. #define ITextRange_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  385. #define ITextRange_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  386. #define ITextRange_GetText(This,pbstr) (This)->lpVtbl->GetText(This,pbstr)
  387. #define ITextRange_SetText(This,bstr) (This)->lpVtbl->SetText(This,bstr)
  388. #define ITextRange_GetChar(This,pch) (This)->lpVtbl->GetChar(This,pch)
  389. #define ITextRange_SetChar(This,ch) (This)->lpVtbl->SetChar(This,ch)
  390. #define ITextRange_GetDuplicate(This,ppRange) (This)->lpVtbl->GetDuplicate(This,ppRange)
  391. #define ITextRange_GetFormattedText(This,ppRange) (This)->lpVtbl->GetFormattedText(This,ppRange)
  392. #define ITextRange_SetFormattedText(This,pRange) (This)->lpVtbl->SetFormattedText(This,pRange)
  393. #define ITextRange_GetStart(This,pcpFirst) (This)->lpVtbl->GetStart(This,pcpFirst)
  394. #define ITextRange_SetStart(This,cpFirst) (This)->lpVtbl->SetStart(This,cpFirst)
  395. #define ITextRange_GetEnd(This,pcpLim) (This)->lpVtbl->GetEnd(This,pcpLim)
  396. #define ITextRange_SetEnd(This,cpLim) (This)->lpVtbl->SetEnd(This,cpLim)
  397. #define ITextRange_GetFont(This,pFont) (This)->lpVtbl->GetFont(This,pFont)
  398. #define ITextRange_SetFont(This,pFont) (This)->lpVtbl->SetFont(This,pFont)
  399. #define ITextRange_GetPara(This,pPara) (This)->lpVtbl->GetPara(This,pPara)
  400. #define ITextRange_SetPara(This,pPara) (This)->lpVtbl->SetPara(This,pPara)
  401. #define ITextRange_GetStoryLength(This,pcch) (This)->lpVtbl->GetStoryLength(This,pcch)
  402. #define ITextRange_GetStoryType(This,pValue) (This)->lpVtbl->GetStoryType(This,pValue)
  403. #define ITextRange_Collapse(This,bStart) (This)->lpVtbl->Collapse(This,bStart)
  404. #define ITextRange_Expand(This,Unit,pDelta) (This)->lpVtbl->Expand(This,Unit,pDelta)
  405. #define ITextRange_GetIndex(This,Unit,pIndex) (This)->lpVtbl->GetIndex(This,Unit,pIndex)
  406. #define ITextRange_SetIndex(This,Unit,Index,Extend) (This)->lpVtbl->SetIndex(This,Unit,Index,Extend)
  407. #define ITextRange_SetRange(This,cpActive,cpOther) (This)->lpVtbl->SetRange(This,cpActive,cpOther)
  408. #define ITextRange_InRange(This,pRange,pb) (This)->lpVtbl->InRange(This,pRange,pb)
  409. #define ITextRange_InStory(This,pRange,pb) (This)->lpVtbl->InStory(This,pRange,pb)
  410. #define ITextRange_IsEqual(This,pRange,pb) (This)->lpVtbl->IsEqual(This,pRange,pb)
  411. #define ITextRange_Select(This) (This)->lpVtbl->Select(This)
  412. #define ITextRange_StartOf(This,Unit,Extend,pDelta) (This)->lpVtbl->StartOf(This,Unit,Extend,pDelta)
  413. #define ITextRange_EndOf(This,Unit,Extend,pDelta) (This)->lpVtbl->EndOf(This,Unit,Extend,pDelta)
  414. #define ITextRange_Move(This,Unit,Count,pDelta) (This)->lpVtbl->Move(This,Unit,Count,pDelta)
  415. #define ITextRange_MoveStart(This,Unit,Count,pDelta) (This)->lpVtbl->MoveStart(This,Unit,Count,pDelta)
  416. #define ITextRange_MoveEnd(This,Unit,Count,pDelta) (This)->lpVtbl->MoveEnd(This,Unit,Count,pDelta)
  417. #define ITextRange_MoveWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveWhile(This,Cset,Count,pDelta)
  418. #define ITextRange_MoveStartWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveStartWhile(This,Cset,Count,pDelta)
  419. #define ITextRange_MoveEndWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveEndWhile(This,Cset,Count,pDelta)
  420. #define ITextRange_MoveUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveUntil(This,Cset,Count,pDelta)
  421. #define ITextRange_MoveStartUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveStartUntil(This,Cset,Count,pDelta)
  422. #define ITextRange_MoveEndUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveEndUntil(This,Cset,Count,pDelta)
  423. #define ITextRange_FindText(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindText(This,bstr,cch,Flags,pLength)
  424. #define ITextRange_FindTextStart(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindTextStart(This,bstr,cch,Flags,pLength)
  425. #define ITextRange_FindTextEnd(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindTextEnd(This,bstr,cch,Flags,pLength)
  426. #define ITextRange_Delete(This,Unit,Count,pDelta) (This)->lpVtbl->Delete(This,Unit,Count,pDelta)
  427. #define ITextRange_Cut(This,pVar) (This)->lpVtbl->Cut(This,pVar)
  428. #define ITextRange_Copy(This,pVar) (This)->lpVtbl->Copy(This,pVar)
  429. #define ITextRange_Paste(This,pVar,Format) (This)->lpVtbl->Paste(This,pVar,Format)
  430. #define ITextRange_CanPaste(This,pVar,Format,pb) (This)->lpVtbl->CanPaste(This,pVar,Format,pb)
  431. #define ITextRange_CanEdit(This,pbCanEdit) (This)->lpVtbl->CanEdit(This,pbCanEdit)
  432. #define ITextRange_ChangeCase(This,Type) (This)->lpVtbl->ChangeCase(This,Type)
  433. #define ITextRange_GetPoint(This,Type,px,py) (This)->lpVtbl->GetPoint(This,Type,px,py)
  434. #define ITextRange_SetPoint(This,x,y,Type,Extend) (This)->lpVtbl->SetPoint(This,x,y,Type,Extend)
  435. #define ITextRange_ScrollIntoView(This,Value) (This)->lpVtbl->ScrollIntoView(This,Value)
  436. #define ITextRange_GetEmbeddedObject(This,ppv) (This)->lpVtbl->GetEmbeddedObject(This,ppv)
  437. #endif
  438. #endif
  439. HRESULT WINAPI ITextRange_GetText_Proxy(ITextRange *This,BSTR *pbstr);
  440. void __RPC_STUB ITextRange_GetText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  441. HRESULT WINAPI ITextRange_SetText_Proxy(ITextRange *This,BSTR bstr);
  442. void __RPC_STUB ITextRange_SetText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  443. HRESULT WINAPI ITextRange_GetChar_Proxy(ITextRange *This,__LONG32 *pch);
  444. void __RPC_STUB ITextRange_GetChar_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  445. HRESULT WINAPI ITextRange_SetChar_Proxy(ITextRange *This,__LONG32 ch);
  446. void __RPC_STUB ITextRange_SetChar_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  447. HRESULT WINAPI ITextRange_GetDuplicate_Proxy(ITextRange *This,ITextRange **ppRange);
  448. void __RPC_STUB ITextRange_GetDuplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  449. HRESULT WINAPI ITextRange_GetFormattedText_Proxy(ITextRange *This,ITextRange **ppRange);
  450. void __RPC_STUB ITextRange_GetFormattedText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  451. HRESULT WINAPI ITextRange_SetFormattedText_Proxy(ITextRange *This,ITextRange *pRange);
  452. void __RPC_STUB ITextRange_SetFormattedText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  453. HRESULT WINAPI ITextRange_GetStart_Proxy(ITextRange *This,__LONG32 *pcpFirst);
  454. void __RPC_STUB ITextRange_GetStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  455. HRESULT WINAPI ITextRange_SetStart_Proxy(ITextRange *This,__LONG32 cpFirst);
  456. void __RPC_STUB ITextRange_SetStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  457. HRESULT WINAPI ITextRange_GetEnd_Proxy(ITextRange *This,__LONG32 *pcpLim);
  458. void __RPC_STUB ITextRange_GetEnd_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  459. HRESULT WINAPI ITextRange_SetEnd_Proxy(ITextRange *This,__LONG32 cpLim);
  460. void __RPC_STUB ITextRange_SetEnd_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  461. HRESULT WINAPI ITextRange_GetFont_Proxy(ITextRange *This,ITextFont **pFont);
  462. void __RPC_STUB ITextRange_GetFont_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  463. HRESULT WINAPI ITextRange_SetFont_Proxy(ITextRange *This,ITextFont *pFont);
  464. void __RPC_STUB ITextRange_SetFont_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  465. HRESULT WINAPI ITextRange_GetPara_Proxy(ITextRange *This,ITextPara **pPara);
  466. void __RPC_STUB ITextRange_GetPara_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  467. HRESULT WINAPI ITextRange_SetPara_Proxy(ITextRange *This,ITextPara *pPara);
  468. void __RPC_STUB ITextRange_SetPara_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  469. HRESULT WINAPI ITextRange_GetStoryLength_Proxy(ITextRange *This,__LONG32 *pcch);
  470. void __RPC_STUB ITextRange_GetStoryLength_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  471. HRESULT WINAPI ITextRange_GetStoryType_Proxy(ITextRange *This,__LONG32 *pValue);
  472. void __RPC_STUB ITextRange_GetStoryType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  473. HRESULT WINAPI ITextRange_Collapse_Proxy(ITextRange *This,__LONG32 bStart);
  474. void __RPC_STUB ITextRange_Collapse_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  475. HRESULT WINAPI ITextRange_Expand_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 *pDelta);
  476. void __RPC_STUB ITextRange_Expand_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  477. HRESULT WINAPI ITextRange_GetIndex_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 *pIndex);
  478. void __RPC_STUB ITextRange_GetIndex_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  479. HRESULT WINAPI ITextRange_SetIndex_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Index,__LONG32 Extend);
  480. void __RPC_STUB ITextRange_SetIndex_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  481. HRESULT WINAPI ITextRange_SetRange_Proxy(ITextRange *This,__LONG32 cpActive,__LONG32 cpOther);
  482. void __RPC_STUB ITextRange_SetRange_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  483. HRESULT WINAPI ITextRange_InRange_Proxy(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  484. void __RPC_STUB ITextRange_InRange_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  485. HRESULT WINAPI ITextRange_InStory_Proxy(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  486. void __RPC_STUB ITextRange_InStory_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  487. HRESULT WINAPI ITextRange_IsEqual_Proxy(ITextRange *This,ITextRange *pRange,__LONG32 *pb);
  488. void __RPC_STUB ITextRange_IsEqual_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  489. HRESULT WINAPI ITextRange_Select_Proxy(ITextRange *This);
  490. void __RPC_STUB ITextRange_Select_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  491. HRESULT WINAPI ITextRange_StartOf_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  492. void __RPC_STUB ITextRange_StartOf_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  493. HRESULT WINAPI ITextRange_EndOf_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  494. void __RPC_STUB ITextRange_EndOf_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  495. HRESULT WINAPI ITextRange_Move_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  496. void __RPC_STUB ITextRange_Move_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  497. HRESULT WINAPI ITextRange_MoveStart_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  498. void __RPC_STUB ITextRange_MoveStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  499. HRESULT WINAPI ITextRange_MoveEnd_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  500. void __RPC_STUB ITextRange_MoveEnd_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  501. HRESULT WINAPI ITextRange_MoveWhile_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  502. void __RPC_STUB ITextRange_MoveWhile_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  503. HRESULT WINAPI ITextRange_MoveStartWhile_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  504. void __RPC_STUB ITextRange_MoveStartWhile_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  505. HRESULT WINAPI ITextRange_MoveEndWhile_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  506. void __RPC_STUB ITextRange_MoveEndWhile_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  507. HRESULT WINAPI ITextRange_MoveUntil_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  508. void __RPC_STUB ITextRange_MoveUntil_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  509. HRESULT WINAPI ITextRange_MoveStartUntil_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  510. void __RPC_STUB ITextRange_MoveStartUntil_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  511. HRESULT WINAPI ITextRange_MoveEndUntil_Proxy(ITextRange *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  512. void __RPC_STUB ITextRange_MoveEndUntil_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  513. HRESULT WINAPI ITextRange_FindText_Proxy(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  514. void __RPC_STUB ITextRange_FindText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  515. HRESULT WINAPI ITextRange_FindTextStart_Proxy(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  516. void __RPC_STUB ITextRange_FindTextStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  517. HRESULT WINAPI ITextRange_FindTextEnd_Proxy(ITextRange *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  518. void __RPC_STUB ITextRange_FindTextEnd_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  519. HRESULT WINAPI ITextRange_Delete_Proxy(ITextRange *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  520. void __RPC_STUB ITextRange_Delete_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  521. HRESULT WINAPI ITextRange_Cut_Proxy(ITextRange *This,VARIANT *pVar);
  522. void __RPC_STUB ITextRange_Cut_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  523. HRESULT WINAPI ITextRange_Copy_Proxy(ITextRange *This,VARIANT *pVar);
  524. void __RPC_STUB ITextRange_Copy_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  525. HRESULT WINAPI ITextRange_Paste_Proxy(ITextRange *This,VARIANT *pVar,__LONG32 Format);
  526. void __RPC_STUB ITextRange_Paste_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  527. HRESULT WINAPI ITextRange_CanPaste_Proxy(ITextRange *This,VARIANT *pVar,__LONG32 Format,__LONG32 *pb);
  528. void __RPC_STUB ITextRange_CanPaste_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  529. HRESULT WINAPI ITextRange_CanEdit_Proxy(ITextRange *This,__LONG32 *pbCanEdit);
  530. void __RPC_STUB ITextRange_CanEdit_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  531. HRESULT WINAPI ITextRange_ChangeCase_Proxy(ITextRange *This,__LONG32 Type);
  532. void __RPC_STUB ITextRange_ChangeCase_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  533. HRESULT WINAPI ITextRange_GetPoint_Proxy(ITextRange *This,__LONG32 Type,__LONG32 *px,__LONG32 *py);
  534. void __RPC_STUB ITextRange_GetPoint_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  535. HRESULT WINAPI ITextRange_SetPoint_Proxy(ITextRange *This,__LONG32 x,__LONG32 y,__LONG32 Type,__LONG32 Extend);
  536. void __RPC_STUB ITextRange_SetPoint_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  537. HRESULT WINAPI ITextRange_ScrollIntoView_Proxy(ITextRange *This,__LONG32 Value);
  538. void __RPC_STUB ITextRange_ScrollIntoView_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  539. HRESULT WINAPI ITextRange_GetEmbeddedObject_Proxy(ITextRange *This,IUnknown **ppv);
  540. void __RPC_STUB ITextRange_GetEmbeddedObject_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  541. #endif
  542. #ifndef __ITextSelection_INTERFACE_DEFINED__
  543. #define __ITextSelection_INTERFACE_DEFINED__
  544. EXTERN_C const IID IID_ITextSelection;
  545. #if defined(__cplusplus) && !defined(CINTERFACE)
  546. struct ITextSelection : public ITextRange {
  547. public:
  548. virtual HRESULT WINAPI GetFlags(__LONG32 *pFlags) = 0;
  549. virtual HRESULT WINAPI SetFlags(LONG Flags) = 0;
  550. virtual HRESULT WINAPI GetType(__LONG32 *pType) = 0;
  551. virtual HRESULT WINAPI MoveLeft(__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta) = 0;
  552. virtual HRESULT WINAPI MoveRight(__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta) = 0;
  553. virtual HRESULT WINAPI MoveUp(__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta) = 0;
  554. virtual HRESULT WINAPI MoveDown(__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta) = 0;
  555. virtual HRESULT WINAPI HomeKey(__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta) = 0;
  556. virtual HRESULT WINAPI EndKey(__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta) = 0;
  557. virtual HRESULT WINAPI TypeText(BSTR bstr) = 0;
  558. };
  559. #else
  560. typedef struct ITextSelectionVtbl {
  561. BEGIN_INTERFACE
  562. HRESULT (WINAPI *QueryInterface)(ITextSelection *This,REFIID riid,void **ppvObject);
  563. ULONG (WINAPI *AddRef)(ITextSelection *This);
  564. ULONG (WINAPI *Release)(ITextSelection *This);
  565. HRESULT (WINAPI *GetTypeInfoCount)(ITextSelection *This,UINT *pctinfo);
  566. HRESULT (WINAPI *GetTypeInfo)(ITextSelection *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  567. HRESULT (WINAPI *GetIDsOfNames)(ITextSelection *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  568. HRESULT (WINAPI *Invoke)(ITextSelection *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  569. HRESULT (WINAPI *GetText)(ITextSelection *This,BSTR *pbstr);
  570. HRESULT (WINAPI *SetText)(ITextSelection *This,BSTR bstr);
  571. HRESULT (WINAPI *GetChar)(ITextSelection *This,__LONG32 *pch);
  572. HRESULT (WINAPI *SetChar)(ITextSelection *This,__LONG32 ch);
  573. HRESULT (WINAPI *GetDuplicate)(ITextSelection *This,ITextRange **ppRange);
  574. HRESULT (WINAPI *GetFormattedText)(ITextSelection *This,ITextRange **ppRange);
  575. HRESULT (WINAPI *SetFormattedText)(ITextSelection *This,ITextRange *pRange);
  576. HRESULT (WINAPI *GetStart)(ITextSelection *This,__LONG32 *pcpFirst);
  577. HRESULT (WINAPI *SetStart)(ITextSelection *This,__LONG32 cpFirst);
  578. HRESULT (WINAPI *GetEnd)(ITextSelection *This,__LONG32 *pcpLim);
  579. HRESULT (WINAPI *SetEnd)(ITextSelection *This,__LONG32 cpLim);
  580. HRESULT (WINAPI *GetFont)(ITextSelection *This,ITextFont **pFont);
  581. HRESULT (WINAPI *SetFont)(ITextSelection *This,ITextFont *pFont);
  582. HRESULT (WINAPI *GetPara)(ITextSelection *This,ITextPara **pPara);
  583. HRESULT (WINAPI *SetPara)(ITextSelection *This,ITextPara *pPara);
  584. HRESULT (WINAPI *GetStoryLength)(ITextSelection *This,__LONG32 *pcch);
  585. HRESULT (WINAPI *GetStoryType)(ITextSelection *This,__LONG32 *pValue);
  586. HRESULT (WINAPI *Collapse)(ITextSelection *This,__LONG32 bStart);
  587. HRESULT (WINAPI *Expand)(ITextSelection *This,__LONG32 Unit,__LONG32 *pDelta);
  588. HRESULT (WINAPI *GetIndex)(ITextSelection *This,__LONG32 Unit,__LONG32 *pIndex);
  589. HRESULT (WINAPI *SetIndex)(ITextSelection *This,__LONG32 Unit,__LONG32 Index,__LONG32 Extend);
  590. HRESULT (WINAPI *SetRange)(ITextSelection *This,__LONG32 cpActive,__LONG32 cpOther);
  591. HRESULT (WINAPI *InRange)(ITextSelection *This,ITextRange *pRange,__LONG32 *pb);
  592. HRESULT (WINAPI *InStory)(ITextSelection *This,ITextRange *pRange,__LONG32 *pb);
  593. HRESULT (WINAPI *IsEqual)(ITextSelection *This,ITextRange *pRange,__LONG32 *pb);
  594. HRESULT (WINAPI *Select)(ITextSelection *This);
  595. HRESULT (WINAPI *StartOf)(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  596. HRESULT (WINAPI *EndOf)(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  597. HRESULT (WINAPI *Move)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  598. HRESULT (WINAPI *MoveStart)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  599. HRESULT (WINAPI *MoveEnd)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  600. HRESULT (WINAPI *MoveWhile)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  601. HRESULT (WINAPI *MoveStartWhile)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  602. HRESULT (WINAPI *MoveEndWhile)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  603. HRESULT (WINAPI *MoveUntil)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  604. HRESULT (WINAPI *MoveStartUntil)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  605. HRESULT (WINAPI *MoveEndUntil)(ITextSelection *This,VARIANT *Cset,__LONG32 Count,__LONG32 *pDelta);
  606. HRESULT (WINAPI *FindText)(ITextSelection *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  607. HRESULT (WINAPI *FindTextStart)(ITextSelection *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  608. HRESULT (WINAPI *FindTextEnd)(ITextSelection *This,BSTR bstr,__LONG32 cch,__LONG32 Flags,__LONG32 *pLength);
  609. HRESULT (WINAPI *Delete)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 *pDelta);
  610. HRESULT (WINAPI *Cut)(ITextSelection *This,VARIANT *pVar);
  611. HRESULT (WINAPI *Copy)(ITextSelection *This,VARIANT *pVar);
  612. HRESULT (WINAPI *Paste)(ITextSelection *This,VARIANT *pVar,__LONG32 Format);
  613. HRESULT (WINAPI *CanPaste)(ITextSelection *This,VARIANT *pVar,__LONG32 Format,__LONG32 *pb);
  614. HRESULT (WINAPI *CanEdit)(ITextSelection *This,__LONG32 *pbCanEdit);
  615. HRESULT (WINAPI *ChangeCase)(ITextSelection *This,__LONG32 Type);
  616. HRESULT (WINAPI *GetPoint)(ITextSelection *This,__LONG32 Type,__LONG32 *px,__LONG32 *py);
  617. HRESULT (WINAPI *SetPoint)(ITextSelection *This,__LONG32 x,__LONG32 y,__LONG32 Type,__LONG32 Extend);
  618. HRESULT (WINAPI *ScrollIntoView)(ITextSelection *This,__LONG32 Value);
  619. HRESULT (WINAPI *GetEmbeddedObject)(ITextSelection *This,IUnknown **ppv);
  620. HRESULT (WINAPI *GetFlags)(ITextSelection *This,__LONG32 *pFlags);
  621. HRESULT (WINAPI *SetFlags)(ITextSelection *This,LONG Flags);
  622. HRESULT (WINAPI *GetType)(ITextSelection *This,__LONG32 *pType);
  623. HRESULT (WINAPI *MoveLeft)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  624. HRESULT (WINAPI *MoveRight)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  625. HRESULT (WINAPI *MoveUp)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  626. HRESULT (WINAPI *MoveDown)(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  627. HRESULT (WINAPI *HomeKey)(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  628. HRESULT (WINAPI *EndKey)(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  629. HRESULT (WINAPI *TypeText)(ITextSelection *This,BSTR bstr);
  630. END_INTERFACE
  631. } ITextSelectionVtbl;
  632. struct ITextSelection {
  633. CONST_VTBL struct ITextSelectionVtbl *lpVtbl;
  634. };
  635. #ifdef COBJMACROS
  636. #define ITextSelection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  637. #define ITextSelection_AddRef(This) (This)->lpVtbl->AddRef(This)
  638. #define ITextSelection_Release(This) (This)->lpVtbl->Release(This)
  639. #define ITextSelection_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  640. #define ITextSelection_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  641. #define ITextSelection_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  642. #define ITextSelection_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  643. #define ITextSelection_GetText(This,pbstr) (This)->lpVtbl->GetText(This,pbstr)
  644. #define ITextSelection_SetText(This,bstr) (This)->lpVtbl->SetText(This,bstr)
  645. #define ITextSelection_GetChar(This,pch) (This)->lpVtbl->GetChar(This,pch)
  646. #define ITextSelection_SetChar(This,ch) (This)->lpVtbl->SetChar(This,ch)
  647. #define ITextSelection_GetDuplicate(This,ppRange) (This)->lpVtbl->GetDuplicate(This,ppRange)
  648. #define ITextSelection_GetFormattedText(This,ppRange) (This)->lpVtbl->GetFormattedText(This,ppRange)
  649. #define ITextSelection_SetFormattedText(This,pRange) (This)->lpVtbl->SetFormattedText(This,pRange)
  650. #define ITextSelection_GetStart(This,pcpFirst) (This)->lpVtbl->GetStart(This,pcpFirst)
  651. #define ITextSelection_SetStart(This,cpFirst) (This)->lpVtbl->SetStart(This,cpFirst)
  652. #define ITextSelection_GetEnd(This,pcpLim) (This)->lpVtbl->GetEnd(This,pcpLim)
  653. #define ITextSelection_SetEnd(This,cpLim) (This)->lpVtbl->SetEnd(This,cpLim)
  654. #define ITextSelection_GetFont(This,pFont) (This)->lpVtbl->GetFont(This,pFont)
  655. #define ITextSelection_SetFont(This,pFont) (This)->lpVtbl->SetFont(This,pFont)
  656. #define ITextSelection_GetPara(This,pPara) (This)->lpVtbl->GetPara(This,pPara)
  657. #define ITextSelection_SetPara(This,pPara) (This)->lpVtbl->SetPara(This,pPara)
  658. #define ITextSelection_GetStoryLength(This,pcch) (This)->lpVtbl->GetStoryLength(This,pcch)
  659. #define ITextSelection_GetStoryType(This,pValue) (This)->lpVtbl->GetStoryType(This,pValue)
  660. #define ITextSelection_Collapse(This,bStart) (This)->lpVtbl->Collapse(This,bStart)
  661. #define ITextSelection_Expand(This,Unit,pDelta) (This)->lpVtbl->Expand(This,Unit,pDelta)
  662. #define ITextSelection_GetIndex(This,Unit,pIndex) (This)->lpVtbl->GetIndex(This,Unit,pIndex)
  663. #define ITextSelection_SetIndex(This,Unit,Index,Extend) (This)->lpVtbl->SetIndex(This,Unit,Index,Extend)
  664. #define ITextSelection_SetRange(This,cpActive,cpOther) (This)->lpVtbl->SetRange(This,cpActive,cpOther)
  665. #define ITextSelection_InRange(This,pRange,pb) (This)->lpVtbl->InRange(This,pRange,pb)
  666. #define ITextSelection_InStory(This,pRange,pb) (This)->lpVtbl->InStory(This,pRange,pb)
  667. #define ITextSelection_IsEqual(This,pRange,pb) (This)->lpVtbl->IsEqual(This,pRange,pb)
  668. #define ITextSelection_Select(This) (This)->lpVtbl->Select(This)
  669. #define ITextSelection_StartOf(This,Unit,Extend,pDelta) (This)->lpVtbl->StartOf(This,Unit,Extend,pDelta)
  670. #define ITextSelection_EndOf(This,Unit,Extend,pDelta) (This)->lpVtbl->EndOf(This,Unit,Extend,pDelta)
  671. #define ITextSelection_Move(This,Unit,Count,pDelta) (This)->lpVtbl->Move(This,Unit,Count,pDelta)
  672. #define ITextSelection_MoveStart(This,Unit,Count,pDelta) (This)->lpVtbl->MoveStart(This,Unit,Count,pDelta)
  673. #define ITextSelection_MoveEnd(This,Unit,Count,pDelta) (This)->lpVtbl->MoveEnd(This,Unit,Count,pDelta)
  674. #define ITextSelection_MoveWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveWhile(This,Cset,Count,pDelta)
  675. #define ITextSelection_MoveStartWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveStartWhile(This,Cset,Count,pDelta)
  676. #define ITextSelection_MoveEndWhile(This,Cset,Count,pDelta) (This)->lpVtbl->MoveEndWhile(This,Cset,Count,pDelta)
  677. #define ITextSelection_MoveUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveUntil(This,Cset,Count,pDelta)
  678. #define ITextSelection_MoveStartUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveStartUntil(This,Cset,Count,pDelta)
  679. #define ITextSelection_MoveEndUntil(This,Cset,Count,pDelta) (This)->lpVtbl->MoveEndUntil(This,Cset,Count,pDelta)
  680. #define ITextSelection_FindText(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindText(This,bstr,cch,Flags,pLength)
  681. #define ITextSelection_FindTextStart(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindTextStart(This,bstr,cch,Flags,pLength)
  682. #define ITextSelection_FindTextEnd(This,bstr,cch,Flags,pLength) (This)->lpVtbl->FindTextEnd(This,bstr,cch,Flags,pLength)
  683. #define ITextSelection_Delete(This,Unit,Count,pDelta) (This)->lpVtbl->Delete(This,Unit,Count,pDelta)
  684. #define ITextSelection_Cut(This,pVar) (This)->lpVtbl->Cut(This,pVar)
  685. #define ITextSelection_Copy(This,pVar) (This)->lpVtbl->Copy(This,pVar)
  686. #define ITextSelection_Paste(This,pVar,Format) (This)->lpVtbl->Paste(This,pVar,Format)
  687. #define ITextSelection_CanPaste(This,pVar,Format,pb) (This)->lpVtbl->CanPaste(This,pVar,Format,pb)
  688. #define ITextSelection_CanEdit(This,pbCanEdit) (This)->lpVtbl->CanEdit(This,pbCanEdit)
  689. #define ITextSelection_ChangeCase(This,Type) (This)->lpVtbl->ChangeCase(This,Type)
  690. #define ITextSelection_GetPoint(This,Type,px,py) (This)->lpVtbl->GetPoint(This,Type,px,py)
  691. #define ITextSelection_SetPoint(This,x,y,Type,Extend) (This)->lpVtbl->SetPoint(This,x,y,Type,Extend)
  692. #define ITextSelection_ScrollIntoView(This,Value) (This)->lpVtbl->ScrollIntoView(This,Value)
  693. #define ITextSelection_GetEmbeddedObject(This,ppv) (This)->lpVtbl->GetEmbeddedObject(This,ppv)
  694. #define ITextSelection_GetFlags(This,pFlags) (This)->lpVtbl->GetFlags(This,pFlags)
  695. #define ITextSelection_SetFlags(This,Flags) (This)->lpVtbl->SetFlags(This,Flags)
  696. #define ITextSelection_GetType(This,pType) (This)->lpVtbl->GetType(This,pType)
  697. #define ITextSelection_MoveLeft(This,Unit,Count,Extend,pDelta) (This)->lpVtbl->MoveLeft(This,Unit,Count,Extend,pDelta)
  698. #define ITextSelection_MoveRight(This,Unit,Count,Extend,pDelta) (This)->lpVtbl->MoveRight(This,Unit,Count,Extend,pDelta)
  699. #define ITextSelection_MoveUp(This,Unit,Count,Extend,pDelta) (This)->lpVtbl->MoveUp(This,Unit,Count,Extend,pDelta)
  700. #define ITextSelection_MoveDown(This,Unit,Count,Extend,pDelta) (This)->lpVtbl->MoveDown(This,Unit,Count,Extend,pDelta)
  701. #define ITextSelection_HomeKey(This,Unit,Extend,pDelta) (This)->lpVtbl->HomeKey(This,Unit,Extend,pDelta)
  702. #define ITextSelection_EndKey(This,Unit,Extend,pDelta) (This)->lpVtbl->EndKey(This,Unit,Extend,pDelta)
  703. #define ITextSelection_TypeText(This,bstr) (This)->lpVtbl->TypeText(This,bstr)
  704. #endif
  705. #endif
  706. HRESULT WINAPI ITextSelection_GetFlags_Proxy(ITextSelection *This,__LONG32 *pFlags);
  707. void __RPC_STUB ITextSelection_GetFlags_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  708. HRESULT WINAPI ITextSelection_SetFlags_Proxy(ITextSelection *This,LONG Flags);
  709. void __RPC_STUB ITextSelection_SetFlags_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  710. HRESULT WINAPI ITextSelection_GetType_Proxy(ITextSelection *This,__LONG32 *pType);
  711. void __RPC_STUB ITextSelection_GetType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  712. HRESULT WINAPI ITextSelection_MoveLeft_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  713. void __RPC_STUB ITextSelection_MoveLeft_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  714. HRESULT WINAPI ITextSelection_MoveRight_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  715. void __RPC_STUB ITextSelection_MoveRight_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  716. HRESULT WINAPI ITextSelection_MoveUp_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  717. void __RPC_STUB ITextSelection_MoveUp_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  718. HRESULT WINAPI ITextSelection_MoveDown_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Count,__LONG32 Extend,__LONG32 *pDelta);
  719. void __RPC_STUB ITextSelection_MoveDown_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  720. HRESULT WINAPI ITextSelection_HomeKey_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  721. void __RPC_STUB ITextSelection_HomeKey_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  722. HRESULT WINAPI ITextSelection_EndKey_Proxy(ITextSelection *This,__LONG32 Unit,__LONG32 Extend,__LONG32 *pDelta);
  723. void __RPC_STUB ITextSelection_EndKey_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  724. HRESULT WINAPI ITextSelection_TypeText_Proxy(ITextSelection *This,BSTR bstr);
  725. void __RPC_STUB ITextSelection_TypeText_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  726. #endif
  727. #ifndef __ITextFont_INTERFACE_DEFINED__
  728. #define __ITextFont_INTERFACE_DEFINED__
  729. EXTERN_C const IID IID_ITextFont;
  730. #if defined(__cplusplus) && !defined(CINTERFACE)
  731. struct ITextFont : public IDispatch {
  732. public:
  733. virtual HRESULT WINAPI GetDuplicate(ITextFont **ppFont) = 0;
  734. virtual HRESULT WINAPI SetDuplicate(ITextFont *pFont) = 0;
  735. virtual HRESULT WINAPI CanChange(__LONG32 *pB) = 0;
  736. virtual HRESULT WINAPI IsEqual(ITextFont *pFont,__LONG32 *pB) = 0;
  737. virtual HRESULT WINAPI Reset(__LONG32 Value) = 0;
  738. virtual HRESULT WINAPI GetStyle(__LONG32 *pValue) = 0;
  739. virtual HRESULT WINAPI SetStyle(__LONG32 Value) = 0;
  740. virtual HRESULT WINAPI GetAllCaps(__LONG32 *pValue) = 0;
  741. virtual HRESULT WINAPI SetAllCaps(__LONG32 Value) = 0;
  742. virtual HRESULT WINAPI GetAnimation(__LONG32 *pValue) = 0;
  743. virtual HRESULT WINAPI SetAnimation(__LONG32 Value) = 0;
  744. virtual HRESULT WINAPI GetBackColor(__LONG32 *pValue) = 0;
  745. virtual HRESULT WINAPI SetBackColor(__LONG32 Value) = 0;
  746. virtual HRESULT WINAPI GetBold(__LONG32 *pValue) = 0;
  747. virtual HRESULT WINAPI SetBold(__LONG32 Value) = 0;
  748. virtual HRESULT WINAPI GetEmboss(__LONG32 *pValue) = 0;
  749. virtual HRESULT WINAPI SetEmboss(__LONG32 Value) = 0;
  750. virtual HRESULT WINAPI GetForeColor(__LONG32 *pValue) = 0;
  751. virtual HRESULT WINAPI SetForeColor(__LONG32 Value) = 0;
  752. virtual HRESULT WINAPI GetHidden(__LONG32 *pValue) = 0;
  753. virtual HRESULT WINAPI SetHidden(__LONG32 Value) = 0;
  754. virtual HRESULT WINAPI GetEngrave(__LONG32 *pValue) = 0;
  755. virtual HRESULT WINAPI SetEngrave(__LONG32 Value) = 0;
  756. virtual HRESULT WINAPI GetItalic(__LONG32 *pValue) = 0;
  757. virtual HRESULT WINAPI SetItalic(__LONG32 Value) = 0;
  758. virtual HRESULT WINAPI GetKerning(float *pValue) = 0;
  759. virtual HRESULT WINAPI SetKerning(float Value) = 0;
  760. virtual HRESULT WINAPI GetLanguageID(__LONG32 *pValue) = 0;
  761. virtual HRESULT WINAPI SetLanguageID(__LONG32 Value) = 0;
  762. virtual HRESULT WINAPI GetName(BSTR *pbstr) = 0;
  763. virtual HRESULT WINAPI SetName(BSTR bstr) = 0;
  764. virtual HRESULT WINAPI GetOutline(__LONG32 *pValue) = 0;
  765. virtual HRESULT WINAPI SetOutline(__LONG32 Value) = 0;
  766. virtual HRESULT WINAPI GetPosition(float *pValue) = 0;
  767. virtual HRESULT WINAPI SetPosition(float Value) = 0;
  768. virtual HRESULT WINAPI GetProtected(__LONG32 *pValue) = 0;
  769. virtual HRESULT WINAPI SetProtected(__LONG32 Value) = 0;
  770. virtual HRESULT WINAPI GetShadow(__LONG32 *pValue) = 0;
  771. virtual HRESULT WINAPI SetShadow(__LONG32 Value) = 0;
  772. virtual HRESULT WINAPI GetSize(float *pValue) = 0;
  773. virtual HRESULT WINAPI SetSize(float Value) = 0;
  774. virtual HRESULT WINAPI GetSmallCaps(__LONG32 *pValue) = 0;
  775. virtual HRESULT WINAPI SetSmallCaps(__LONG32 Value) = 0;
  776. virtual HRESULT WINAPI GetSpacing(float *pValue) = 0;
  777. virtual HRESULT WINAPI SetSpacing(float Value) = 0;
  778. virtual HRESULT WINAPI GetStrikeThrough(__LONG32 *pValue) = 0;
  779. virtual HRESULT WINAPI SetStrikeThrough(__LONG32 Value) = 0;
  780. virtual HRESULT WINAPI GetSubscript(__LONG32 *pValue) = 0;
  781. virtual HRESULT WINAPI SetSubscript(__LONG32 Value) = 0;
  782. virtual HRESULT WINAPI GetSuperscript(__LONG32 *pValue) = 0;
  783. virtual HRESULT WINAPI SetSuperscript(__LONG32 Value) = 0;
  784. virtual HRESULT WINAPI GetUnderline(__LONG32 *pValue) = 0;
  785. virtual HRESULT WINAPI SetUnderline(__LONG32 Value) = 0;
  786. virtual HRESULT WINAPI GetWeight(__LONG32 *pValue) = 0;
  787. virtual HRESULT WINAPI SetWeight(__LONG32 Value) = 0;
  788. };
  789. #else
  790. typedef struct ITextFontVtbl {
  791. BEGIN_INTERFACE
  792. HRESULT (WINAPI *QueryInterface)(ITextFont *This,REFIID riid,void **ppvObject);
  793. ULONG (WINAPI *AddRef)(ITextFont *This);
  794. ULONG (WINAPI *Release)(ITextFont *This);
  795. HRESULT (WINAPI *GetTypeInfoCount)(ITextFont *This,UINT *pctinfo);
  796. HRESULT (WINAPI *GetTypeInfo)(ITextFont *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  797. HRESULT (WINAPI *GetIDsOfNames)(ITextFont *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  798. HRESULT (WINAPI *Invoke)(ITextFont *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  799. HRESULT (WINAPI *GetDuplicate)(ITextFont *This,ITextFont **ppFont);
  800. HRESULT (WINAPI *SetDuplicate)(ITextFont *This,ITextFont *pFont);
  801. HRESULT (WINAPI *CanChange)(ITextFont *This,__LONG32 *pB);
  802. HRESULT (WINAPI *IsEqual)(ITextFont *This,ITextFont *pFont,__LONG32 *pB);
  803. HRESULT (WINAPI *Reset)(ITextFont *This,__LONG32 Value);
  804. HRESULT (WINAPI *GetStyle)(ITextFont *This,__LONG32 *pValue);
  805. HRESULT (WINAPI *SetStyle)(ITextFont *This,__LONG32 Value);
  806. HRESULT (WINAPI *GetAllCaps)(ITextFont *This,__LONG32 *pValue);
  807. HRESULT (WINAPI *SetAllCaps)(ITextFont *This,__LONG32 Value);
  808. HRESULT (WINAPI *GetAnimation)(ITextFont *This,__LONG32 *pValue);
  809. HRESULT (WINAPI *SetAnimation)(ITextFont *This,__LONG32 Value);
  810. HRESULT (WINAPI *GetBackColor)(ITextFont *This,__LONG32 *pValue);
  811. HRESULT (WINAPI *SetBackColor)(ITextFont *This,__LONG32 Value);
  812. HRESULT (WINAPI *GetBold)(ITextFont *This,__LONG32 *pValue);
  813. HRESULT (WINAPI *SetBold)(ITextFont *This,__LONG32 Value);
  814. HRESULT (WINAPI *GetEmboss)(ITextFont *This,__LONG32 *pValue);
  815. HRESULT (WINAPI *SetEmboss)(ITextFont *This,__LONG32 Value);
  816. HRESULT (WINAPI *GetForeColor)(ITextFont *This,__LONG32 *pValue);
  817. HRESULT (WINAPI *SetForeColor)(ITextFont *This,__LONG32 Value);
  818. HRESULT (WINAPI *GetHidden)(ITextFont *This,__LONG32 *pValue);
  819. HRESULT (WINAPI *SetHidden)(ITextFont *This,__LONG32 Value);
  820. HRESULT (WINAPI *GetEngrave)(ITextFont *This,__LONG32 *pValue);
  821. HRESULT (WINAPI *SetEngrave)(ITextFont *This,__LONG32 Value);
  822. HRESULT (WINAPI *GetItalic)(ITextFont *This,__LONG32 *pValue);
  823. HRESULT (WINAPI *SetItalic)(ITextFont *This,__LONG32 Value);
  824. HRESULT (WINAPI *GetKerning)(ITextFont *This,float *pValue);
  825. HRESULT (WINAPI *SetKerning)(ITextFont *This,float Value);
  826. HRESULT (WINAPI *GetLanguageID)(ITextFont *This,__LONG32 *pValue);
  827. HRESULT (WINAPI *SetLanguageID)(ITextFont *This,__LONG32 Value);
  828. HRESULT (WINAPI *GetName)(ITextFont *This,BSTR *pbstr);
  829. HRESULT (WINAPI *SetName)(ITextFont *This,BSTR bstr);
  830. HRESULT (WINAPI *GetOutline)(ITextFont *This,__LONG32 *pValue);
  831. HRESULT (WINAPI *SetOutline)(ITextFont *This,__LONG32 Value);
  832. HRESULT (WINAPI *GetPosition)(ITextFont *This,float *pValue);
  833. HRESULT (WINAPI *SetPosition)(ITextFont *This,float Value);
  834. HRESULT (WINAPI *GetProtected)(ITextFont *This,__LONG32 *pValue);
  835. HRESULT (WINAPI *SetProtected)(ITextFont *This,__LONG32 Value);
  836. HRESULT (WINAPI *GetShadow)(ITextFont *This,__LONG32 *pValue);
  837. HRESULT (WINAPI *SetShadow)(ITextFont *This,__LONG32 Value);
  838. HRESULT (WINAPI *GetSize)(ITextFont *This,float *pValue);
  839. HRESULT (WINAPI *SetSize)(ITextFont *This,float Value);
  840. HRESULT (WINAPI *GetSmallCaps)(ITextFont *This,__LONG32 *pValue);
  841. HRESULT (WINAPI *SetSmallCaps)(ITextFont *This,__LONG32 Value);
  842. HRESULT (WINAPI *GetSpacing)(ITextFont *This,float *pValue);
  843. HRESULT (WINAPI *SetSpacing)(ITextFont *This,float Value);
  844. HRESULT (WINAPI *GetStrikeThrough)(ITextFont *This,__LONG32 *pValue);
  845. HRESULT (WINAPI *SetStrikeThrough)(ITextFont *This,__LONG32 Value);
  846. HRESULT (WINAPI *GetSubscript)(ITextFont *This,__LONG32 *pValue);
  847. HRESULT (WINAPI *SetSubscript)(ITextFont *This,__LONG32 Value);
  848. HRESULT (WINAPI *GetSuperscript)(ITextFont *This,__LONG32 *pValue);
  849. HRESULT (WINAPI *SetSuperscript)(ITextFont *This,__LONG32 Value);
  850. HRESULT (WINAPI *GetUnderline)(ITextFont *This,__LONG32 *pValue);
  851. HRESULT (WINAPI *SetUnderline)(ITextFont *This,__LONG32 Value);
  852. HRESULT (WINAPI *GetWeight)(ITextFont *This,__LONG32 *pValue);
  853. HRESULT (WINAPI *SetWeight)(ITextFont *This,__LONG32 Value);
  854. END_INTERFACE
  855. } ITextFontVtbl;
  856. struct ITextFont {
  857. CONST_VTBL struct ITextFontVtbl *lpVtbl;
  858. };
  859. #ifdef COBJMACROS
  860. #define ITextFont_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  861. #define ITextFont_AddRef(This) (This)->lpVtbl->AddRef(This)
  862. #define ITextFont_Release(This) (This)->lpVtbl->Release(This)
  863. #define ITextFont_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  864. #define ITextFont_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  865. #define ITextFont_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  866. #define ITextFont_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  867. #define ITextFont_GetDuplicate(This,ppFont) (This)->lpVtbl->GetDuplicate(This,ppFont)
  868. #define ITextFont_SetDuplicate(This,pFont) (This)->lpVtbl->SetDuplicate(This,pFont)
  869. #define ITextFont_CanChange(This,pB) (This)->lpVtbl->CanChange(This,pB)
  870. #define ITextFont_IsEqual(This,pFont,pB) (This)->lpVtbl->IsEqual(This,pFont,pB)
  871. #define ITextFont_Reset(This,Value) (This)->lpVtbl->Reset(This,Value)
  872. #define ITextFont_GetStyle(This,pValue) (This)->lpVtbl->GetStyle(This,pValue)
  873. #define ITextFont_SetStyle(This,Value) (This)->lpVtbl->SetStyle(This,Value)
  874. #define ITextFont_GetAllCaps(This,pValue) (This)->lpVtbl->GetAllCaps(This,pValue)
  875. #define ITextFont_SetAllCaps(This,Value) (This)->lpVtbl->SetAllCaps(This,Value)
  876. #define ITextFont_GetAnimation(This,pValue) (This)->lpVtbl->GetAnimation(This,pValue)
  877. #define ITextFont_SetAnimation(This,Value) (This)->lpVtbl->SetAnimation(This,Value)
  878. #define ITextFont_GetBackColor(This,pValue) (This)->lpVtbl->GetBackColor(This,pValue)
  879. #define ITextFont_SetBackColor(This,Value) (This)->lpVtbl->SetBackColor(This,Value)
  880. #define ITextFont_GetBold(This,pValue) (This)->lpVtbl->GetBold(This,pValue)
  881. #define ITextFont_SetBold(This,Value) (This)->lpVtbl->SetBold(This,Value)
  882. #define ITextFont_GetEmboss(This,pValue) (This)->lpVtbl->GetEmboss(This,pValue)
  883. #define ITextFont_SetEmboss(This,Value) (This)->lpVtbl->SetEmboss(This,Value)
  884. #define ITextFont_GetForeColor(This,pValue) (This)->lpVtbl->GetForeColor(This,pValue)
  885. #define ITextFont_SetForeColor(This,Value) (This)->lpVtbl->SetForeColor(This,Value)
  886. #define ITextFont_GetHidden(This,pValue) (This)->lpVtbl->GetHidden(This,pValue)
  887. #define ITextFont_SetHidden(This,Value) (This)->lpVtbl->SetHidden(This,Value)
  888. #define ITextFont_GetEngrave(This,pValue) (This)->lpVtbl->GetEngrave(This,pValue)
  889. #define ITextFont_SetEngrave(This,Value) (This)->lpVtbl->SetEngrave(This,Value)
  890. #define ITextFont_GetItalic(This,pValue) (This)->lpVtbl->GetItalic(This,pValue)
  891. #define ITextFont_SetItalic(This,Value) (This)->lpVtbl->SetItalic(This,Value)
  892. #define ITextFont_GetKerning(This,pValue) (This)->lpVtbl->GetKerning(This,pValue)
  893. #define ITextFont_SetKerning(This,Value) (This)->lpVtbl->SetKerning(This,Value)
  894. #define ITextFont_GetLanguageID(This,pValue) (This)->lpVtbl->GetLanguageID(This,pValue)
  895. #define ITextFont_SetLanguageID(This,Value) (This)->lpVtbl->SetLanguageID(This,Value)
  896. #define ITextFont_GetName(This,pbstr) (This)->lpVtbl->GetName(This,pbstr)
  897. #define ITextFont_SetName(This,bstr) (This)->lpVtbl->SetName(This,bstr)
  898. #define ITextFont_GetOutline(This,pValue) (This)->lpVtbl->GetOutline(This,pValue)
  899. #define ITextFont_SetOutline(This,Value) (This)->lpVtbl->SetOutline(This,Value)
  900. #define ITextFont_GetPosition(This,pValue) (This)->lpVtbl->GetPosition(This,pValue)
  901. #define ITextFont_SetPosition(This,Value) (This)->lpVtbl->SetPosition(This,Value)
  902. #define ITextFont_GetProtected(This,pValue) (This)->lpVtbl->GetProtected(This,pValue)
  903. #define ITextFont_SetProtected(This,Value) (This)->lpVtbl->SetProtected(This,Value)
  904. #define ITextFont_GetShadow(This,pValue) (This)->lpVtbl->GetShadow(This,pValue)
  905. #define ITextFont_SetShadow(This,Value) (This)->lpVtbl->SetShadow(This,Value)
  906. #define ITextFont_GetSize(This,pValue) (This)->lpVtbl->GetSize(This,pValue)
  907. #define ITextFont_SetSize(This,Value) (This)->lpVtbl->SetSize(This,Value)
  908. #define ITextFont_GetSmallCaps(This,pValue) (This)->lpVtbl->GetSmallCaps(This,pValue)
  909. #define ITextFont_SetSmallCaps(This,Value) (This)->lpVtbl->SetSmallCaps(This,Value)
  910. #define ITextFont_GetSpacing(This,pValue) (This)->lpVtbl->GetSpacing(This,pValue)
  911. #define ITextFont_SetSpacing(This,Value) (This)->lpVtbl->SetSpacing(This,Value)
  912. #define ITextFont_GetStrikeThrough(This,pValue) (This)->lpVtbl->GetStrikeThrough(This,pValue)
  913. #define ITextFont_SetStrikeThrough(This,Value) (This)->lpVtbl->SetStrikeThrough(This,Value)
  914. #define ITextFont_GetSubscript(This,pValue) (This)->lpVtbl->GetSubscript(This,pValue)
  915. #define ITextFont_SetSubscript(This,Value) (This)->lpVtbl->SetSubscript(This,Value)
  916. #define ITextFont_GetSuperscript(This,pValue) (This)->lpVtbl->GetSuperscript(This,pValue)
  917. #define ITextFont_SetSuperscript(This,Value) (This)->lpVtbl->SetSuperscript(This,Value)
  918. #define ITextFont_GetUnderline(This,pValue) (This)->lpVtbl->GetUnderline(This,pValue)
  919. #define ITextFont_SetUnderline(This,Value) (This)->lpVtbl->SetUnderline(This,Value)
  920. #define ITextFont_GetWeight(This,pValue) (This)->lpVtbl->GetWeight(This,pValue)
  921. #define ITextFont_SetWeight(This,Value) (This)->lpVtbl->SetWeight(This,Value)
  922. #endif
  923. #endif
  924. HRESULT WINAPI ITextFont_GetDuplicate_Proxy(ITextFont *This,ITextFont **ppFont);
  925. void __RPC_STUB ITextFont_GetDuplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  926. HRESULT WINAPI ITextFont_SetDuplicate_Proxy(ITextFont *This,ITextFont *pFont);
  927. void __RPC_STUB ITextFont_SetDuplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  928. HRESULT WINAPI ITextFont_CanChange_Proxy(ITextFont *This,__LONG32 *pB);
  929. void __RPC_STUB ITextFont_CanChange_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  930. HRESULT WINAPI ITextFont_IsEqual_Proxy(ITextFont *This,ITextFont *pFont,__LONG32 *pB);
  931. void __RPC_STUB ITextFont_IsEqual_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  932. HRESULT WINAPI ITextFont_Reset_Proxy(ITextFont *This,__LONG32 Value);
  933. void __RPC_STUB ITextFont_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  934. HRESULT WINAPI ITextFont_GetStyle_Proxy(ITextFont *This,__LONG32 *pValue);
  935. void __RPC_STUB ITextFont_GetStyle_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  936. HRESULT WINAPI ITextFont_SetStyle_Proxy(ITextFont *This,__LONG32 Value);
  937. void __RPC_STUB ITextFont_SetStyle_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  938. HRESULT WINAPI ITextFont_GetAllCaps_Proxy(ITextFont *This,__LONG32 *pValue);
  939. void __RPC_STUB ITextFont_GetAllCaps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  940. HRESULT WINAPI ITextFont_SetAllCaps_Proxy(ITextFont *This,__LONG32 Value);
  941. void __RPC_STUB ITextFont_SetAllCaps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  942. HRESULT WINAPI ITextFont_GetAnimation_Proxy(ITextFont *This,__LONG32 *pValue);
  943. void __RPC_STUB ITextFont_GetAnimation_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  944. HRESULT WINAPI ITextFont_SetAnimation_Proxy(ITextFont *This,__LONG32 Value);
  945. void __RPC_STUB ITextFont_SetAnimation_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  946. HRESULT WINAPI ITextFont_GetBackColor_Proxy(ITextFont *This,__LONG32 *pValue);
  947. void __RPC_STUB ITextFont_GetBackColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  948. HRESULT WINAPI ITextFont_SetBackColor_Proxy(ITextFont *This,__LONG32 Value);
  949. void __RPC_STUB ITextFont_SetBackColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  950. HRESULT WINAPI ITextFont_GetBold_Proxy(ITextFont *This,__LONG32 *pValue);
  951. void __RPC_STUB ITextFont_GetBold_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  952. HRESULT WINAPI ITextFont_SetBold_Proxy(ITextFont *This,__LONG32 Value);
  953. void __RPC_STUB ITextFont_SetBold_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  954. HRESULT WINAPI ITextFont_GetEmboss_Proxy(ITextFont *This,__LONG32 *pValue);
  955. void __RPC_STUB ITextFont_GetEmboss_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  956. HRESULT WINAPI ITextFont_SetEmboss_Proxy(ITextFont *This,__LONG32 Value);
  957. void __RPC_STUB ITextFont_SetEmboss_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  958. HRESULT WINAPI ITextFont_GetForeColor_Proxy(ITextFont *This,__LONG32 *pValue);
  959. void __RPC_STUB ITextFont_GetForeColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  960. HRESULT WINAPI ITextFont_SetForeColor_Proxy(ITextFont *This,__LONG32 Value);
  961. void __RPC_STUB ITextFont_SetForeColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  962. HRESULT WINAPI ITextFont_GetHidden_Proxy(ITextFont *This,__LONG32 *pValue);
  963. void __RPC_STUB ITextFont_GetHidden_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  964. HRESULT WINAPI ITextFont_SetHidden_Proxy(ITextFont *This,__LONG32 Value);
  965. void __RPC_STUB ITextFont_SetHidden_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  966. HRESULT WINAPI ITextFont_GetEngrave_Proxy(ITextFont *This,__LONG32 *pValue);
  967. void __RPC_STUB ITextFont_GetEngrave_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  968. HRESULT WINAPI ITextFont_SetEngrave_Proxy(ITextFont *This,__LONG32 Value);
  969. void __RPC_STUB ITextFont_SetEngrave_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  970. HRESULT WINAPI ITextFont_GetItalic_Proxy(ITextFont *This,__LONG32 *pValue);
  971. void __RPC_STUB ITextFont_GetItalic_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  972. HRESULT WINAPI ITextFont_SetItalic_Proxy(ITextFont *This,__LONG32 Value);
  973. void __RPC_STUB ITextFont_SetItalic_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  974. HRESULT WINAPI ITextFont_GetKerning_Proxy(ITextFont *This,float *pValue);
  975. void __RPC_STUB ITextFont_GetKerning_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  976. HRESULT WINAPI ITextFont_SetKerning_Proxy(ITextFont *This,float Value);
  977. void __RPC_STUB ITextFont_SetKerning_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  978. HRESULT WINAPI ITextFont_GetLanguageID_Proxy(ITextFont *This,__LONG32 *pValue);
  979. void __RPC_STUB ITextFont_GetLanguageID_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  980. HRESULT WINAPI ITextFont_SetLanguageID_Proxy(ITextFont *This,__LONG32 Value);
  981. void __RPC_STUB ITextFont_SetLanguageID_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  982. HRESULT WINAPI ITextFont_GetName_Proxy(ITextFont *This,BSTR *pbstr);
  983. void __RPC_STUB ITextFont_GetName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  984. HRESULT WINAPI ITextFont_SetName_Proxy(ITextFont *This,BSTR bstr);
  985. void __RPC_STUB ITextFont_SetName_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  986. HRESULT WINAPI ITextFont_GetOutline_Proxy(ITextFont *This,__LONG32 *pValue);
  987. void __RPC_STUB ITextFont_GetOutline_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  988. HRESULT WINAPI ITextFont_SetOutline_Proxy(ITextFont *This,__LONG32 Value);
  989. void __RPC_STUB ITextFont_SetOutline_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  990. HRESULT WINAPI ITextFont_GetPosition_Proxy(ITextFont *This,float *pValue);
  991. void __RPC_STUB ITextFont_GetPosition_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  992. HRESULT WINAPI ITextFont_SetPosition_Proxy(ITextFont *This,float Value);
  993. void __RPC_STUB ITextFont_SetPosition_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  994. HRESULT WINAPI ITextFont_GetProtected_Proxy(ITextFont *This,__LONG32 *pValue);
  995. void __RPC_STUB ITextFont_GetProtected_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  996. HRESULT WINAPI ITextFont_SetProtected_Proxy(ITextFont *This,__LONG32 Value);
  997. void __RPC_STUB ITextFont_SetProtected_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  998. HRESULT WINAPI ITextFont_GetShadow_Proxy(ITextFont *This,__LONG32 *pValue);
  999. void __RPC_STUB ITextFont_GetShadow_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1000. HRESULT WINAPI ITextFont_SetShadow_Proxy(ITextFont *This,__LONG32 Value);
  1001. void __RPC_STUB ITextFont_SetShadow_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1002. HRESULT WINAPI ITextFont_GetSize_Proxy(ITextFont *This,float *pValue);
  1003. void __RPC_STUB ITextFont_GetSize_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1004. HRESULT WINAPI ITextFont_SetSize_Proxy(ITextFont *This,float Value);
  1005. void __RPC_STUB ITextFont_SetSize_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1006. HRESULT WINAPI ITextFont_GetSmallCaps_Proxy(ITextFont *This,__LONG32 *pValue);
  1007. void __RPC_STUB ITextFont_GetSmallCaps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1008. HRESULT WINAPI ITextFont_SetSmallCaps_Proxy(ITextFont *This,__LONG32 Value);
  1009. void __RPC_STUB ITextFont_SetSmallCaps_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1010. HRESULT WINAPI ITextFont_GetSpacing_Proxy(ITextFont *This,float *pValue);
  1011. void __RPC_STUB ITextFont_GetSpacing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1012. HRESULT WINAPI ITextFont_SetSpacing_Proxy(ITextFont *This,float Value);
  1013. void __RPC_STUB ITextFont_SetSpacing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1014. HRESULT WINAPI ITextFont_GetStrikeThrough_Proxy(ITextFont *This,__LONG32 *pValue);
  1015. void __RPC_STUB ITextFont_GetStrikeThrough_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1016. HRESULT WINAPI ITextFont_SetStrikeThrough_Proxy(ITextFont *This,__LONG32 Value);
  1017. void __RPC_STUB ITextFont_SetStrikeThrough_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1018. HRESULT WINAPI ITextFont_GetSubscript_Proxy(ITextFont *This,__LONG32 *pValue);
  1019. void __RPC_STUB ITextFont_GetSubscript_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1020. HRESULT WINAPI ITextFont_SetSubscript_Proxy(ITextFont *This,__LONG32 Value);
  1021. void __RPC_STUB ITextFont_SetSubscript_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1022. HRESULT WINAPI ITextFont_GetSuperscript_Proxy(ITextFont *This,__LONG32 *pValue);
  1023. void __RPC_STUB ITextFont_GetSuperscript_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1024. HRESULT WINAPI ITextFont_SetSuperscript_Proxy(ITextFont *This,__LONG32 Value);
  1025. void __RPC_STUB ITextFont_SetSuperscript_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1026. HRESULT WINAPI ITextFont_GetUnderline_Proxy(ITextFont *This,__LONG32 *pValue);
  1027. void __RPC_STUB ITextFont_GetUnderline_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1028. HRESULT WINAPI ITextFont_SetUnderline_Proxy(ITextFont *This,__LONG32 Value);
  1029. void __RPC_STUB ITextFont_SetUnderline_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1030. HRESULT WINAPI ITextFont_GetWeight_Proxy(ITextFont *This,__LONG32 *pValue);
  1031. void __RPC_STUB ITextFont_GetWeight_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1032. HRESULT WINAPI ITextFont_SetWeight_Proxy(ITextFont *This,__LONG32 Value);
  1033. void __RPC_STUB ITextFont_SetWeight_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1034. #endif
  1035. #ifndef __ITextPara_INTERFACE_DEFINED__
  1036. #define __ITextPara_INTERFACE_DEFINED__
  1037. EXTERN_C const IID IID_ITextPara;
  1038. #if defined(__cplusplus) && !defined(CINTERFACE)
  1039. struct ITextPara : public IDispatch {
  1040. public:
  1041. virtual HRESULT WINAPI GetDuplicate(ITextPara **ppPara) = 0;
  1042. virtual HRESULT WINAPI SetDuplicate(ITextPara *pPara) = 0;
  1043. virtual HRESULT WINAPI CanChange(__LONG32 *pB) = 0;
  1044. virtual HRESULT WINAPI IsEqual(ITextPara *pPara,__LONG32 *pB) = 0;
  1045. virtual HRESULT WINAPI Reset(__LONG32 Value) = 0;
  1046. virtual HRESULT WINAPI GetStyle(__LONG32 *pValue) = 0;
  1047. virtual HRESULT WINAPI SetStyle(__LONG32 Value) = 0;
  1048. virtual HRESULT WINAPI GetAlignment(__LONG32 *pValue) = 0;
  1049. virtual HRESULT WINAPI SetAlignment(__LONG32 Value) = 0;
  1050. virtual HRESULT WINAPI GetHyphenation(__LONG32 *pValue) = 0;
  1051. virtual HRESULT WINAPI SetHyphenation(__LONG32 Value) = 0;
  1052. virtual HRESULT WINAPI GetFirstLineIndent(float *pValue) = 0;
  1053. virtual HRESULT WINAPI GetKeepTogether(__LONG32 *pValue) = 0;
  1054. virtual HRESULT WINAPI SetKeepTogether(__LONG32 Value) = 0;
  1055. virtual HRESULT WINAPI GetKeepWithNext(__LONG32 *pValue) = 0;
  1056. virtual HRESULT WINAPI SetKeepWithNext(__LONG32 Value) = 0;
  1057. virtual HRESULT WINAPI GetLeftIndent(float *pValue) = 0;
  1058. virtual HRESULT WINAPI GetLineSpacing(float *pValue) = 0;
  1059. virtual HRESULT WINAPI GetLineSpacingRule(__LONG32 *pValue) = 0;
  1060. virtual HRESULT WINAPI GetListAlignment(__LONG32 *pValue) = 0;
  1061. virtual HRESULT WINAPI SetListAlignment(__LONG32 Value) = 0;
  1062. virtual HRESULT WINAPI GetListLevelIndex(__LONG32 *pValue) = 0;
  1063. virtual HRESULT WINAPI SetListLevelIndex(__LONG32 Value) = 0;
  1064. virtual HRESULT WINAPI GetListStart(__LONG32 *pValue) = 0;
  1065. virtual HRESULT WINAPI SetListStart(__LONG32 Value) = 0;
  1066. virtual HRESULT WINAPI GetListTab(float *pValue) = 0;
  1067. virtual HRESULT WINAPI SetListTab(float Value) = 0;
  1068. virtual HRESULT WINAPI GetListType(__LONG32 *pValue) = 0;
  1069. virtual HRESULT WINAPI SetListType(__LONG32 Value) = 0;
  1070. virtual HRESULT WINAPI GetNoLineNumber(__LONG32 *pValue) = 0;
  1071. virtual HRESULT WINAPI SetNoLineNumber(__LONG32 Value) = 0;
  1072. virtual HRESULT WINAPI GetPageBreakBefore(__LONG32 *pValue) = 0;
  1073. virtual HRESULT WINAPI SetPageBreakBefore(__LONG32 Value) = 0;
  1074. virtual HRESULT WINAPI GetRightIndent(float *pValue) = 0;
  1075. virtual HRESULT WINAPI SetRightIndent(float Value) = 0;
  1076. virtual HRESULT WINAPI SetIndents(float StartIndent,float LeftIndent,float RightIndent) = 0;
  1077. virtual HRESULT WINAPI SetLineSpacing(__LONG32 LineSpacingRule,float LineSpacing) = 0;
  1078. virtual HRESULT WINAPI GetSpaceAfter(float *pValue) = 0;
  1079. virtual HRESULT WINAPI SetSpaceAfter(float Value) = 0;
  1080. virtual HRESULT WINAPI GetSpaceBefore(float *pValue) = 0;
  1081. virtual HRESULT WINAPI SetSpaceBefore(float Value) = 0;
  1082. virtual HRESULT WINAPI GetWidowControl(__LONG32 *pValue) = 0;
  1083. virtual HRESULT WINAPI SetWidowControl(__LONG32 Value) = 0;
  1084. virtual HRESULT WINAPI GetTabCount(__LONG32 *pCount) = 0;
  1085. virtual HRESULT WINAPI AddTab(float tbPos,__LONG32 tbAlign,__LONG32 tbLeader) = 0;
  1086. virtual HRESULT WINAPI ClearAllTabs(void) = 0;
  1087. virtual HRESULT WINAPI DeleteTab(float tbPos) = 0;
  1088. virtual HRESULT WINAPI GetTab(__LONG32 iTab,float *ptbPos,__LONG32 *ptbAlign,__LONG32 *ptbLeader) = 0;
  1089. };
  1090. #else
  1091. typedef struct ITextParaVtbl {
  1092. BEGIN_INTERFACE
  1093. HRESULT (WINAPI *QueryInterface)(ITextPara *This,REFIID riid,void **ppvObject);
  1094. ULONG (WINAPI *AddRef)(ITextPara *This);
  1095. ULONG (WINAPI *Release)(ITextPara *This);
  1096. HRESULT (WINAPI *GetTypeInfoCount)(ITextPara *This,UINT *pctinfo);
  1097. HRESULT (WINAPI *GetTypeInfo)(ITextPara *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1098. HRESULT (WINAPI *GetIDsOfNames)(ITextPara *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1099. HRESULT (WINAPI *Invoke)(ITextPara *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1100. HRESULT (WINAPI *GetDuplicate)(ITextPara *This,ITextPara **ppPara);
  1101. HRESULT (WINAPI *SetDuplicate)(ITextPara *This,ITextPara *pPara);
  1102. HRESULT (WINAPI *CanChange)(ITextPara *This,__LONG32 *pB);
  1103. HRESULT (WINAPI *IsEqual)(ITextPara *This,ITextPara *pPara,__LONG32 *pB);
  1104. HRESULT (WINAPI *Reset)(ITextPara *This,__LONG32 Value);
  1105. HRESULT (WINAPI *GetStyle)(ITextPara *This,__LONG32 *pValue);
  1106. HRESULT (WINAPI *SetStyle)(ITextPara *This,__LONG32 Value);
  1107. HRESULT (WINAPI *GetAlignment)(ITextPara *This,__LONG32 *pValue);
  1108. HRESULT (WINAPI *SetAlignment)(ITextPara *This,__LONG32 Value);
  1109. HRESULT (WINAPI *GetHyphenation)(ITextPara *This,__LONG32 *pValue);
  1110. HRESULT (WINAPI *SetHyphenation)(ITextPara *This,__LONG32 Value);
  1111. HRESULT (WINAPI *GetFirstLineIndent)(ITextPara *This,float *pValue);
  1112. HRESULT (WINAPI *GetKeepTogether)(ITextPara *This,__LONG32 *pValue);
  1113. HRESULT (WINAPI *SetKeepTogether)(ITextPara *This,__LONG32 Value);
  1114. HRESULT (WINAPI *GetKeepWithNext)(ITextPara *This,__LONG32 *pValue);
  1115. HRESULT (WINAPI *SetKeepWithNext)(ITextPara *This,__LONG32 Value);
  1116. HRESULT (WINAPI *GetLeftIndent)(ITextPara *This,float *pValue);
  1117. HRESULT (WINAPI *GetLineSpacing)(ITextPara *This,float *pValue);
  1118. HRESULT (WINAPI *GetLineSpacingRule)(ITextPara *This,__LONG32 *pValue);
  1119. HRESULT (WINAPI *GetListAlignment)(ITextPara *This,__LONG32 *pValue);
  1120. HRESULT (WINAPI *SetListAlignment)(ITextPara *This,__LONG32 Value);
  1121. HRESULT (WINAPI *GetListLevelIndex)(ITextPara *This,__LONG32 *pValue);
  1122. HRESULT (WINAPI *SetListLevelIndex)(ITextPara *This,__LONG32 Value);
  1123. HRESULT (WINAPI *GetListStart)(ITextPara *This,__LONG32 *pValue);
  1124. HRESULT (WINAPI *SetListStart)(ITextPara *This,__LONG32 Value);
  1125. HRESULT (WINAPI *GetListTab)(ITextPara *This,float *pValue);
  1126. HRESULT (WINAPI *SetListTab)(ITextPara *This,float Value);
  1127. HRESULT (WINAPI *GetListType)(ITextPara *This,__LONG32 *pValue);
  1128. HRESULT (WINAPI *SetListType)(ITextPara *This,__LONG32 Value);
  1129. HRESULT (WINAPI *GetNoLineNumber)(ITextPara *This,__LONG32 *pValue);
  1130. HRESULT (WINAPI *SetNoLineNumber)(ITextPara *This,__LONG32 Value);
  1131. HRESULT (WINAPI *GetPageBreakBefore)(ITextPara *This,__LONG32 *pValue);
  1132. HRESULT (WINAPI *SetPageBreakBefore)(ITextPara *This,__LONG32 Value);
  1133. HRESULT (WINAPI *GetRightIndent)(ITextPara *This,float *pValue);
  1134. HRESULT (WINAPI *SetRightIndent)(ITextPara *This,float Value);
  1135. HRESULT (WINAPI *SetIndents)(ITextPara *This,float StartIndent,float LeftIndent,float RightIndent);
  1136. HRESULT (WINAPI *SetLineSpacing)(ITextPara *This,__LONG32 LineSpacingRule,float LineSpacing);
  1137. HRESULT (WINAPI *GetSpaceAfter)(ITextPara *This,float *pValue);
  1138. HRESULT (WINAPI *SetSpaceAfter)(ITextPara *This,float Value);
  1139. HRESULT (WINAPI *GetSpaceBefore)(ITextPara *This,float *pValue);
  1140. HRESULT (WINAPI *SetSpaceBefore)(ITextPara *This,float Value);
  1141. HRESULT (WINAPI *GetWidowControl)(ITextPara *This,__LONG32 *pValue);
  1142. HRESULT (WINAPI *SetWidowControl)(ITextPara *This,__LONG32 Value);
  1143. HRESULT (WINAPI *GetTabCount)(ITextPara *This,__LONG32 *pCount);
  1144. HRESULT (WINAPI *AddTab)(ITextPara *This,float tbPos,__LONG32 tbAlign,__LONG32 tbLeader);
  1145. HRESULT (WINAPI *ClearAllTabs)(ITextPara *This);
  1146. HRESULT (WINAPI *DeleteTab)(ITextPara *This,float tbPos);
  1147. HRESULT (WINAPI *GetTab)(ITextPara *This,__LONG32 iTab,float *ptbPos,__LONG32 *ptbAlign,__LONG32 *ptbLeader);
  1148. END_INTERFACE
  1149. } ITextParaVtbl;
  1150. struct ITextPara {
  1151. CONST_VTBL struct ITextParaVtbl *lpVtbl;
  1152. };
  1153. #ifdef COBJMACROS
  1154. #define ITextPara_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1155. #define ITextPara_AddRef(This) (This)->lpVtbl->AddRef(This)
  1156. #define ITextPara_Release(This) (This)->lpVtbl->Release(This)
  1157. #define ITextPara_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1158. #define ITextPara_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1159. #define ITextPara_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1160. #define ITextPara_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1161. #define ITextPara_GetDuplicate(This,ppPara) (This)->lpVtbl->GetDuplicate(This,ppPara)
  1162. #define ITextPara_SetDuplicate(This,pPara) (This)->lpVtbl->SetDuplicate(This,pPara)
  1163. #define ITextPara_CanChange(This,pB) (This)->lpVtbl->CanChange(This,pB)
  1164. #define ITextPara_IsEqual(This,pPara,pB) (This)->lpVtbl->IsEqual(This,pPara,pB)
  1165. #define ITextPara_Reset(This,Value) (This)->lpVtbl->Reset(This,Value)
  1166. #define ITextPara_GetStyle(This,pValue) (This)->lpVtbl->GetStyle(This,pValue)
  1167. #define ITextPara_SetStyle(This,Value) (This)->lpVtbl->SetStyle(This,Value)
  1168. #define ITextPara_GetAlignment(This,pValue) (This)->lpVtbl->GetAlignment(This,pValue)
  1169. #define ITextPara_SetAlignment(This,Value) (This)->lpVtbl->SetAlignment(This,Value)
  1170. #define ITextPara_GetHyphenation(This,pValue) (This)->lpVtbl->GetHyphenation(This,pValue)
  1171. #define ITextPara_SetHyphenation(This,Value) (This)->lpVtbl->SetHyphenation(This,Value)
  1172. #define ITextPara_GetFirstLineIndent(This,pValue) (This)->lpVtbl->GetFirstLineIndent(This,pValue)
  1173. #define ITextPara_GetKeepTogether(This,pValue) (This)->lpVtbl->GetKeepTogether(This,pValue)
  1174. #define ITextPara_SetKeepTogether(This,Value) (This)->lpVtbl->SetKeepTogether(This,Value)
  1175. #define ITextPara_GetKeepWithNext(This,pValue) (This)->lpVtbl->GetKeepWithNext(This,pValue)
  1176. #define ITextPara_SetKeepWithNext(This,Value) (This)->lpVtbl->SetKeepWithNext(This,Value)
  1177. #define ITextPara_GetLeftIndent(This,pValue) (This)->lpVtbl->GetLeftIndent(This,pValue)
  1178. #define ITextPara_GetLineSpacing(This,pValue) (This)->lpVtbl->GetLineSpacing(This,pValue)
  1179. #define ITextPara_GetLineSpacingRule(This,pValue) (This)->lpVtbl->GetLineSpacingRule(This,pValue)
  1180. #define ITextPara_GetListAlignment(This,pValue) (This)->lpVtbl->GetListAlignment(This,pValue)
  1181. #define ITextPara_SetListAlignment(This,Value) (This)->lpVtbl->SetListAlignment(This,Value)
  1182. #define ITextPara_GetListLevelIndex(This,pValue) (This)->lpVtbl->GetListLevelIndex(This,pValue)
  1183. #define ITextPara_SetListLevelIndex(This,Value) (This)->lpVtbl->SetListLevelIndex(This,Value)
  1184. #define ITextPara_GetListStart(This,pValue) (This)->lpVtbl->GetListStart(This,pValue)
  1185. #define ITextPara_SetListStart(This,Value) (This)->lpVtbl->SetListStart(This,Value)
  1186. #define ITextPara_GetListTab(This,pValue) (This)->lpVtbl->GetListTab(This,pValue)
  1187. #define ITextPara_SetListTab(This,Value) (This)->lpVtbl->SetListTab(This,Value)
  1188. #define ITextPara_GetListType(This,pValue) (This)->lpVtbl->GetListType(This,pValue)
  1189. #define ITextPara_SetListType(This,Value) (This)->lpVtbl->SetListType(This,Value)
  1190. #define ITextPara_GetNoLineNumber(This,pValue) (This)->lpVtbl->GetNoLineNumber(This,pValue)
  1191. #define ITextPara_SetNoLineNumber(This,Value) (This)->lpVtbl->SetNoLineNumber(This,Value)
  1192. #define ITextPara_GetPageBreakBefore(This,pValue) (This)->lpVtbl->GetPageBreakBefore(This,pValue)
  1193. #define ITextPara_SetPageBreakBefore(This,Value) (This)->lpVtbl->SetPageBreakBefore(This,Value)
  1194. #define ITextPara_GetRightIndent(This,pValue) (This)->lpVtbl->GetRightIndent(This,pValue)
  1195. #define ITextPara_SetRightIndent(This,Value) (This)->lpVtbl->SetRightIndent(This,Value)
  1196. #define ITextPara_SetIndents(This,StartIndent,LeftIndent,RightIndent) (This)->lpVtbl->SetIndents(This,StartIndent,LeftIndent,RightIndent)
  1197. #define ITextPara_SetLineSpacing(This,LineSpacingRule,LineSpacing) (This)->lpVtbl->SetLineSpacing(This,LineSpacingRule,LineSpacing)
  1198. #define ITextPara_GetSpaceAfter(This,pValue) (This)->lpVtbl->GetSpaceAfter(This,pValue)
  1199. #define ITextPara_SetSpaceAfter(This,Value) (This)->lpVtbl->SetSpaceAfter(This,Value)
  1200. #define ITextPara_GetSpaceBefore(This,pValue) (This)->lpVtbl->GetSpaceBefore(This,pValue)
  1201. #define ITextPara_SetSpaceBefore(This,Value) (This)->lpVtbl->SetSpaceBefore(This,Value)
  1202. #define ITextPara_GetWidowControl(This,pValue) (This)->lpVtbl->GetWidowControl(This,pValue)
  1203. #define ITextPara_SetWidowControl(This,Value) (This)->lpVtbl->SetWidowControl(This,Value)
  1204. #define ITextPara_GetTabCount(This,pCount) (This)->lpVtbl->GetTabCount(This,pCount)
  1205. #define ITextPara_AddTab(This,tbPos,tbAlign,tbLeader) (This)->lpVtbl->AddTab(This,tbPos,tbAlign,tbLeader)
  1206. #define ITextPara_ClearAllTabs(This) (This)->lpVtbl->ClearAllTabs(This)
  1207. #define ITextPara_DeleteTab(This,tbPos) (This)->lpVtbl->DeleteTab(This,tbPos)
  1208. #define ITextPara_GetTab(This,iTab,ptbPos,ptbAlign,ptbLeader) (This)->lpVtbl->GetTab(This,iTab,ptbPos,ptbAlign,ptbLeader)
  1209. #endif
  1210. #endif
  1211. HRESULT WINAPI ITextPara_GetDuplicate_Proxy(ITextPara *This,ITextPara **ppPara);
  1212. void __RPC_STUB ITextPara_GetDuplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1213. HRESULT WINAPI ITextPara_SetDuplicate_Proxy(ITextPara *This,ITextPara *pPara);
  1214. void __RPC_STUB ITextPara_SetDuplicate_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1215. HRESULT WINAPI ITextPara_CanChange_Proxy(ITextPara *This,__LONG32 *pB);
  1216. void __RPC_STUB ITextPara_CanChange_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1217. HRESULT WINAPI ITextPara_IsEqual_Proxy(ITextPara *This,ITextPara *pPara,__LONG32 *pB);
  1218. void __RPC_STUB ITextPara_IsEqual_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1219. HRESULT WINAPI ITextPara_Reset_Proxy(ITextPara *This,__LONG32 Value);
  1220. void __RPC_STUB ITextPara_Reset_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1221. HRESULT WINAPI ITextPara_GetStyle_Proxy(ITextPara *This,__LONG32 *pValue);
  1222. void __RPC_STUB ITextPara_GetStyle_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1223. HRESULT WINAPI ITextPara_SetStyle_Proxy(ITextPara *This,__LONG32 Value);
  1224. void __RPC_STUB ITextPara_SetStyle_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1225. HRESULT WINAPI ITextPara_GetAlignment_Proxy(ITextPara *This,__LONG32 *pValue);
  1226. void __RPC_STUB ITextPara_GetAlignment_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1227. HRESULT WINAPI ITextPara_SetAlignment_Proxy(ITextPara *This,__LONG32 Value);
  1228. void __RPC_STUB ITextPara_SetAlignment_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1229. HRESULT WINAPI ITextPara_GetHyphenation_Proxy(ITextPara *This,__LONG32 *pValue);
  1230. void __RPC_STUB ITextPara_GetHyphenation_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1231. HRESULT WINAPI ITextPara_SetHyphenation_Proxy(ITextPara *This,__LONG32 Value);
  1232. void __RPC_STUB ITextPara_SetHyphenation_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1233. HRESULT WINAPI ITextPara_GetFirstLineIndent_Proxy(ITextPara *This,float *pValue);
  1234. void __RPC_STUB ITextPara_GetFirstLineIndent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1235. HRESULT WINAPI ITextPara_GetKeepTogether_Proxy(ITextPara *This,__LONG32 *pValue);
  1236. void __RPC_STUB ITextPara_GetKeepTogether_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1237. HRESULT WINAPI ITextPara_SetKeepTogether_Proxy(ITextPara *This,__LONG32 Value);
  1238. void __RPC_STUB ITextPara_SetKeepTogether_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1239. HRESULT WINAPI ITextPara_GetKeepWithNext_Proxy(ITextPara *This,__LONG32 *pValue);
  1240. void __RPC_STUB ITextPara_GetKeepWithNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1241. HRESULT WINAPI ITextPara_SetKeepWithNext_Proxy(ITextPara *This,__LONG32 Value);
  1242. void __RPC_STUB ITextPara_SetKeepWithNext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1243. HRESULT WINAPI ITextPara_GetLeftIndent_Proxy(ITextPara *This,float *pValue);
  1244. void __RPC_STUB ITextPara_GetLeftIndent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1245. HRESULT WINAPI ITextPara_GetLineSpacing_Proxy(ITextPara *This,float *pValue);
  1246. void __RPC_STUB ITextPara_GetLineSpacing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1247. HRESULT WINAPI ITextPara_GetLineSpacingRule_Proxy(ITextPara *This,__LONG32 *pValue);
  1248. void __RPC_STUB ITextPara_GetLineSpacingRule_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1249. HRESULT WINAPI ITextPara_GetListAlignment_Proxy(ITextPara *This,__LONG32 *pValue);
  1250. void __RPC_STUB ITextPara_GetListAlignment_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1251. HRESULT WINAPI ITextPara_SetListAlignment_Proxy(ITextPara *This,__LONG32 Value);
  1252. void __RPC_STUB ITextPara_SetListAlignment_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1253. HRESULT WINAPI ITextPara_GetListLevelIndex_Proxy(ITextPara *This,__LONG32 *pValue);
  1254. void __RPC_STUB ITextPara_GetListLevelIndex_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1255. HRESULT WINAPI ITextPara_SetListLevelIndex_Proxy(ITextPara *This,__LONG32 Value);
  1256. void __RPC_STUB ITextPara_SetListLevelIndex_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1257. HRESULT WINAPI ITextPara_GetListStart_Proxy(ITextPara *This,__LONG32 *pValue);
  1258. void __RPC_STUB ITextPara_GetListStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1259. HRESULT WINAPI ITextPara_SetListStart_Proxy(ITextPara *This,__LONG32 Value);
  1260. void __RPC_STUB ITextPara_SetListStart_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1261. HRESULT WINAPI ITextPara_GetListTab_Proxy(ITextPara *This,float *pValue);
  1262. void __RPC_STUB ITextPara_GetListTab_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1263. HRESULT WINAPI ITextPara_SetListTab_Proxy(ITextPara *This,float Value);
  1264. void __RPC_STUB ITextPara_SetListTab_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1265. HRESULT WINAPI ITextPara_GetListType_Proxy(ITextPara *This,__LONG32 *pValue);
  1266. void __RPC_STUB ITextPara_GetListType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1267. HRESULT WINAPI ITextPara_SetListType_Proxy(ITextPara *This,__LONG32 Value);
  1268. void __RPC_STUB ITextPara_SetListType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1269. HRESULT WINAPI ITextPara_GetNoLineNumber_Proxy(ITextPara *This,__LONG32 *pValue);
  1270. void __RPC_STUB ITextPara_GetNoLineNumber_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1271. HRESULT WINAPI ITextPara_SetNoLineNumber_Proxy(ITextPara *This,__LONG32 Value);
  1272. void __RPC_STUB ITextPara_SetNoLineNumber_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1273. HRESULT WINAPI ITextPara_GetPageBreakBefore_Proxy(ITextPara *This,__LONG32 *pValue);
  1274. void __RPC_STUB ITextPara_GetPageBreakBefore_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1275. HRESULT WINAPI ITextPara_SetPageBreakBefore_Proxy(ITextPara *This,__LONG32 Value);
  1276. void __RPC_STUB ITextPara_SetPageBreakBefore_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1277. HRESULT WINAPI ITextPara_GetRightIndent_Proxy(ITextPara *This,float *pValue);
  1278. void __RPC_STUB ITextPara_GetRightIndent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1279. HRESULT WINAPI ITextPara_SetRightIndent_Proxy(ITextPara *This,float Value);
  1280. void __RPC_STUB ITextPara_SetRightIndent_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1281. HRESULT WINAPI ITextPara_SetIndents_Proxy(ITextPara *This,float StartIndent,float LeftIndent,float RightIndent);
  1282. void __RPC_STUB ITextPara_SetIndents_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1283. HRESULT WINAPI ITextPara_SetLineSpacing_Proxy(ITextPara *This,__LONG32 LineSpacingRule,float LineSpacing);
  1284. void __RPC_STUB ITextPara_SetLineSpacing_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1285. HRESULT WINAPI ITextPara_GetSpaceAfter_Proxy(ITextPara *This,float *pValue);
  1286. void __RPC_STUB ITextPara_GetSpaceAfter_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1287. HRESULT WINAPI ITextPara_SetSpaceAfter_Proxy(ITextPara *This,float Value);
  1288. void __RPC_STUB ITextPara_SetSpaceAfter_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1289. HRESULT WINAPI ITextPara_GetSpaceBefore_Proxy(ITextPara *This,float *pValue);
  1290. void __RPC_STUB ITextPara_GetSpaceBefore_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1291. HRESULT WINAPI ITextPara_SetSpaceBefore_Proxy(ITextPara *This,float Value);
  1292. void __RPC_STUB ITextPara_SetSpaceBefore_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1293. HRESULT WINAPI ITextPara_GetWidowControl_Proxy(ITextPara *This,__LONG32 *pValue);
  1294. void __RPC_STUB ITextPara_GetWidowControl_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1295. HRESULT WINAPI ITextPara_SetWidowControl_Proxy(ITextPara *This,__LONG32 Value);
  1296. void __RPC_STUB ITextPara_SetWidowControl_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1297. HRESULT WINAPI ITextPara_GetTabCount_Proxy(ITextPara *This,__LONG32 *pCount);
  1298. void __RPC_STUB ITextPara_GetTabCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1299. HRESULT WINAPI ITextPara_AddTab_Proxy(ITextPara *This,float tbPos,__LONG32 tbAlign,__LONG32 tbLeader);
  1300. void __RPC_STUB ITextPara_AddTab_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1301. HRESULT WINAPI ITextPara_ClearAllTabs_Proxy(ITextPara *This);
  1302. void __RPC_STUB ITextPara_ClearAllTabs_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1303. HRESULT WINAPI ITextPara_DeleteTab_Proxy(ITextPara *This,float tbPos);
  1304. void __RPC_STUB ITextPara_DeleteTab_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1305. HRESULT WINAPI ITextPara_GetTab_Proxy(ITextPara *This,__LONG32 iTab,float *ptbPos,__LONG32 *ptbAlign,__LONG32 *ptbLeader);
  1306. void __RPC_STUB ITextPara_GetTab_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1307. #endif
  1308. #ifndef __ITextStoryRanges_INTERFACE_DEFINED__
  1309. #define __ITextStoryRanges_INTERFACE_DEFINED__
  1310. EXTERN_C const IID IID_ITextStoryRanges;
  1311. #if defined(__cplusplus) && !defined(CINTERFACE)
  1312. struct ITextStoryRanges : public IDispatch {
  1313. public:
  1314. virtual HRESULT WINAPI _NewEnum(IUnknown **ppunkEnum) = 0;
  1315. virtual HRESULT WINAPI Item(__LONG32 Index,ITextRange **ppRange) = 0;
  1316. virtual HRESULT WINAPI GetCount(__LONG32 *pCount) = 0;
  1317. };
  1318. #else
  1319. typedef struct ITextStoryRangesVtbl {
  1320. BEGIN_INTERFACE
  1321. HRESULT (WINAPI *QueryInterface)(ITextStoryRanges *This,REFIID riid,void **ppvObject);
  1322. ULONG (WINAPI *AddRef)(ITextStoryRanges *This);
  1323. ULONG (WINAPI *Release)(ITextStoryRanges *This);
  1324. HRESULT (WINAPI *GetTypeInfoCount)(ITextStoryRanges *This,UINT *pctinfo);
  1325. HRESULT (WINAPI *GetTypeInfo)(ITextStoryRanges *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1326. HRESULT (WINAPI *GetIDsOfNames)(ITextStoryRanges *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1327. HRESULT (WINAPI *Invoke)(ITextStoryRanges *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1328. HRESULT (WINAPI *_NewEnum)(ITextStoryRanges *This,IUnknown **ppunkEnum);
  1329. HRESULT (WINAPI *Item)(ITextStoryRanges *This,__LONG32 Index,ITextRange **ppRange);
  1330. HRESULT (WINAPI *GetCount)(ITextStoryRanges *This,__LONG32 *pCount);
  1331. END_INTERFACE
  1332. } ITextStoryRangesVtbl;
  1333. struct ITextStoryRanges {
  1334. CONST_VTBL struct ITextStoryRangesVtbl *lpVtbl;
  1335. };
  1336. #ifdef COBJMACROS
  1337. #define ITextStoryRanges_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1338. #define ITextStoryRanges_AddRef(This) (This)->lpVtbl->AddRef(This)
  1339. #define ITextStoryRanges_Release(This) (This)->lpVtbl->Release(This)
  1340. #define ITextStoryRanges_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1341. #define ITextStoryRanges_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1342. #define ITextStoryRanges_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1343. #define ITextStoryRanges_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1344. #define ITextStoryRanges__NewEnum(This,ppunkEnum) (This)->lpVtbl->_NewEnum(This,ppunkEnum)
  1345. #define ITextStoryRanges_Item(This,Index,ppRange) (This)->lpVtbl->Item(This,Index,ppRange)
  1346. #define ITextStoryRanges_GetCount(This,pCount) (This)->lpVtbl->GetCount(This,pCount)
  1347. #endif
  1348. #endif
  1349. HRESULT WINAPI ITextStoryRanges__NewEnum_Proxy(ITextStoryRanges *This,IUnknown **ppunkEnum);
  1350. void __RPC_STUB ITextStoryRanges__NewEnum_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1351. HRESULT WINAPI ITextStoryRanges_Item_Proxy(ITextStoryRanges *This,__LONG32 Index,ITextRange **ppRange);
  1352. void __RPC_STUB ITextStoryRanges_Item_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1353. HRESULT WINAPI ITextStoryRanges_GetCount_Proxy(ITextStoryRanges *This,__LONG32 *pCount);
  1354. void __RPC_STUB ITextStoryRanges_GetCount_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1355. #endif
  1356. #ifndef __ITextDocument2_INTERFACE_DEFINED__
  1357. #define __ITextDocument2_INTERFACE_DEFINED__
  1358. EXTERN_C const IID IID_ITextDocument2;
  1359. #if defined(__cplusplus) && !defined(CINTERFACE)
  1360. struct ITextDocument2 : public ITextDocument {
  1361. public:
  1362. virtual HRESULT WINAPI AttachMsgFilter(IUnknown *pFilter) = 0;
  1363. virtual HRESULT WINAPI SetEffectColor(__LONG32 Index,COLORREF cr) = 0;
  1364. virtual HRESULT WINAPI GetEffectColor(__LONG32 Index,COLORREF *pcr) = 0;
  1365. virtual HRESULT WINAPI GetCaretType(__LONG32 *pCaretType) = 0;
  1366. virtual HRESULT WINAPI SetCaretType(__LONG32 CaretType) = 0;
  1367. virtual HRESULT WINAPI GetImmContext(__LONG32 *pContext) = 0;
  1368. virtual HRESULT WINAPI ReleaseImmContext(__LONG32 Context) = 0;
  1369. virtual HRESULT WINAPI GetPreferredFont(__LONG32 cp,__LONG32 CodePage,__LONG32 Option,__LONG32 curCodepage,__LONG32 curFontSize,BSTR *pbstr,__LONG32 *pPitchAndFamily,__LONG32 *pNewFontSize) = 0;
  1370. virtual HRESULT WINAPI GetNotificationMode(__LONG32 *pMode) = 0;
  1371. virtual HRESULT WINAPI SetNotificationMode(__LONG32 Mode) = 0;
  1372. virtual HRESULT WINAPI GetClientRect(__LONG32 Type,__LONG32 *pLeft,__LONG32 *pTop,__LONG32 *pRight,__LONG32 *pBottom) = 0;
  1373. virtual HRESULT WINAPI GetSelectionEx(ITextSelection **ppSel) = 0;
  1374. virtual HRESULT WINAPI GetWindow(__LONG32 *phWnd) = 0;
  1375. virtual HRESULT WINAPI GetFEFlags(__LONG32 *pFlags) = 0;
  1376. virtual HRESULT WINAPI UpdateWindow(void) = 0;
  1377. virtual HRESULT WINAPI CheckTextLimit(__LONG32 cch,__LONG32 *pcch) = 0;
  1378. virtual HRESULT WINAPI IMEInProgress(__LONG32 Mode) = 0;
  1379. virtual HRESULT WINAPI SysBeep(void) = 0;
  1380. virtual HRESULT WINAPI Update(__LONG32 Mode) = 0;
  1381. virtual HRESULT WINAPI Notify(__LONG32 Notify) = 0;
  1382. };
  1383. #else
  1384. typedef struct ITextDocument2Vtbl {
  1385. BEGIN_INTERFACE
  1386. HRESULT (WINAPI *QueryInterface)(ITextDocument2 *This,REFIID riid,void **ppvObject);
  1387. ULONG (WINAPI *AddRef)(ITextDocument2 *This);
  1388. ULONG (WINAPI *Release)(ITextDocument2 *This);
  1389. HRESULT (WINAPI *GetTypeInfoCount)(ITextDocument2 *This,UINT *pctinfo);
  1390. HRESULT (WINAPI *GetTypeInfo)(ITextDocument2 *This,UINT iTInfo,LCID lcid,ITypeInfo **ppTInfo);
  1391. HRESULT (WINAPI *GetIDsOfNames)(ITextDocument2 *This,REFIID riid,LPOLESTR *rgszNames,UINT cNames,LCID lcid,DISPID *rgDispId);
  1392. HRESULT (WINAPI *Invoke)(ITextDocument2 *This,DISPID dispIdMember,REFIID riid,LCID lcid,WORD wFlags,DISPPARAMS *pDispParams,VARIANT *pVarResult,EXCEPINFO *pExcepInfo,UINT *puArgErr);
  1393. HRESULT (WINAPI *GetName)(ITextDocument2 *This,BSTR *pName);
  1394. HRESULT (WINAPI *GetSelection)(ITextDocument2 *This,ITextSelection **ppSel);
  1395. HRESULT (WINAPI *GetStoryCount)(ITextDocument2 *This,__LONG32 *pCount);
  1396. HRESULT (WINAPI *GetStoryRanges)(ITextDocument2 *This,ITextStoryRanges **ppStories);
  1397. HRESULT (WINAPI *GetSaved)(ITextDocument2 *This,__LONG32 *pValue);
  1398. HRESULT (WINAPI *SetSaved)(ITextDocument2 *This,__LONG32 Value);
  1399. HRESULT (WINAPI *GetDefaultTabStop)(ITextDocument2 *This,float *pValue);
  1400. HRESULT (WINAPI *SetDefaultTabStop)(ITextDocument2 *This,float Value);
  1401. HRESULT (WINAPI *New)(ITextDocument2 *This);
  1402. HRESULT (WINAPI *Open)(ITextDocument2 *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  1403. HRESULT (WINAPI *Save)(ITextDocument2 *This,VARIANT *pVar,__LONG32 Flags,__LONG32 CodePage);
  1404. HRESULT (WINAPI *Freeze)(ITextDocument2 *This,__LONG32 *pCount);
  1405. HRESULT (WINAPI *Unfreeze)(ITextDocument2 *This,__LONG32 *pCount);
  1406. HRESULT (WINAPI *BeginEditCollection)(ITextDocument2 *This);
  1407. HRESULT (WINAPI *EndEditCollection)(ITextDocument2 *This);
  1408. HRESULT (WINAPI *Undo)(ITextDocument2 *This,__LONG32 Count,__LONG32 *prop);
  1409. HRESULT (WINAPI *Redo)(ITextDocument2 *This,__LONG32 Count,__LONG32 *prop);
  1410. HRESULT (WINAPI *Range)(ITextDocument2 *This,__LONG32 cp1,__LONG32 cp2,ITextRange **ppRange);
  1411. HRESULT (WINAPI *RangeFromPoint)(ITextDocument2 *This,__LONG32 x,__LONG32 y,ITextRange **ppRange);
  1412. HRESULT (WINAPI *AttachMsgFilter)(ITextDocument2 *This,IUnknown *pFilter);
  1413. HRESULT (WINAPI *SetEffectColor)(ITextDocument2 *This,__LONG32 Index,COLORREF cr);
  1414. HRESULT (WINAPI *GetEffectColor)(ITextDocument2 *This,__LONG32 Index,COLORREF *pcr);
  1415. HRESULT (WINAPI *GetCaretType)(ITextDocument2 *This,__LONG32 *pCaretType);
  1416. HRESULT (WINAPI *SetCaretType)(ITextDocument2 *This,__LONG32 CaretType);
  1417. HRESULT (WINAPI *GetImmContext)(ITextDocument2 *This,__LONG32 *pContext);
  1418. HRESULT (WINAPI *ReleaseImmContext)(ITextDocument2 *This,__LONG32 Context);
  1419. HRESULT (WINAPI *GetPreferredFont)(ITextDocument2 *This,__LONG32 cp,__LONG32 CodePage,__LONG32 Option,__LONG32 curCodepage,__LONG32 curFontSize,BSTR *pbstr,__LONG32 *pPitchAndFamily,__LONG32 *pNewFontSize);
  1420. HRESULT (WINAPI *GetNotificationMode)(ITextDocument2 *This,__LONG32 *pMode);
  1421. HRESULT (WINAPI *SetNotificationMode)(ITextDocument2 *This,__LONG32 Mode);
  1422. HRESULT (WINAPI *GetClientRect)(ITextDocument2 *This,__LONG32 Type,__LONG32 *pLeft,__LONG32 *pTop,__LONG32 *pRight,__LONG32 *pBottom);
  1423. HRESULT (WINAPI *GetSelectionEx)(ITextDocument2 *This,ITextSelection **ppSel);
  1424. HRESULT (WINAPI *GetWindow)(ITextDocument2 *This,__LONG32 *phWnd);
  1425. HRESULT (WINAPI *GetFEFlags)(ITextDocument2 *This,__LONG32 *pFlags);
  1426. HRESULT (WINAPI *UpdateWindow)(ITextDocument2 *This);
  1427. HRESULT (WINAPI *CheckTextLimit)(ITextDocument2 *This,__LONG32 cch,__LONG32 *pcch);
  1428. HRESULT (WINAPI *IMEInProgress)(ITextDocument2 *This,__LONG32 Mode);
  1429. HRESULT (WINAPI *SysBeep)(ITextDocument2 *This);
  1430. HRESULT (WINAPI *Update)(ITextDocument2 *This,__LONG32 Mode);
  1431. HRESULT (WINAPI *Notify)(ITextDocument2 *This,__LONG32 Notify);
  1432. END_INTERFACE
  1433. } ITextDocument2Vtbl;
  1434. struct ITextDocument2 {
  1435. CONST_VTBL struct ITextDocument2Vtbl *lpVtbl;
  1436. };
  1437. #ifdef COBJMACROS
  1438. #define ITextDocument2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1439. #define ITextDocument2_AddRef(This) (This)->lpVtbl->AddRef(This)
  1440. #define ITextDocument2_Release(This) (This)->lpVtbl->Release(This)
  1441. #define ITextDocument2_GetTypeInfoCount(This,pctinfo) (This)->lpVtbl->GetTypeInfoCount(This,pctinfo)
  1442. #define ITextDocument2_GetTypeInfo(This,iTInfo,lcid,ppTInfo) (This)->lpVtbl->GetTypeInfo(This,iTInfo,lcid,ppTInfo)
  1443. #define ITextDocument2_GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId) (This)->lpVtbl->GetIDsOfNames(This,riid,rgszNames,cNames,lcid,rgDispId)
  1444. #define ITextDocument2_Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr) (This)->lpVtbl->Invoke(This,dispIdMember,riid,lcid,wFlags,pDispParams,pVarResult,pExcepInfo,puArgErr)
  1445. #define ITextDocument2_GetName(This,pName) (This)->lpVtbl->GetName(This,pName)
  1446. #define ITextDocument2_GetSelection(This,ppSel) (This)->lpVtbl->GetSelection(This,ppSel)
  1447. #define ITextDocument2_GetStoryCount(This,pCount) (This)->lpVtbl->GetStoryCount(This,pCount)
  1448. #define ITextDocument2_GetStoryRanges(This,ppStories) (This)->lpVtbl->GetStoryRanges(This,ppStories)
  1449. #define ITextDocument2_GetSaved(This,pValue) (This)->lpVtbl->GetSaved(This,pValue)
  1450. #define ITextDocument2_SetSaved(This,Value) (This)->lpVtbl->SetSaved(This,Value)
  1451. #define ITextDocument2_GetDefaultTabStop(This,pValue) (This)->lpVtbl->GetDefaultTabStop(This,pValue)
  1452. #define ITextDocument2_SetDefaultTabStop(This,Value) (This)->lpVtbl->SetDefaultTabStop(This,Value)
  1453. #define ITextDocument2_New(This) (This)->lpVtbl->New(This)
  1454. #define ITextDocument2_Open(This,pVar,Flags,CodePage) (This)->lpVtbl->Open(This,pVar,Flags,CodePage)
  1455. #define ITextDocument2_Save(This,pVar,Flags,CodePage) (This)->lpVtbl->Save(This,pVar,Flags,CodePage)
  1456. #define ITextDocument2_Freeze(This,pCount) (This)->lpVtbl->Freeze(This,pCount)
  1457. #define ITextDocument2_Unfreeze(This,pCount) (This)->lpVtbl->Unfreeze(This,pCount)
  1458. #define ITextDocument2_BeginEditCollection(This) (This)->lpVtbl->BeginEditCollection(This)
  1459. #define ITextDocument2_EndEditCollection(This) (This)->lpVtbl->EndEditCollection(This)
  1460. #define ITextDocument2_Undo(This,Count,prop) (This)->lpVtbl->Undo(This,Count,prop)
  1461. #define ITextDocument2_Redo(This,Count,prop) (This)->lpVtbl->Redo(This,Count,prop)
  1462. #define ITextDocument2_Range(This,cp1,cp2,ppRange) (This)->lpVtbl->Range(This,cp1,cp2,ppRange)
  1463. #define ITextDocument2_RangeFromPoint(This,x,y,ppRange) (This)->lpVtbl->RangeFromPoint(This,x,y,ppRange)
  1464. #define ITextDocument2_AttachMsgFilter(This,pFilter) (This)->lpVtbl->AttachMsgFilter(This,pFilter)
  1465. #define ITextDocument2_SetEffectColor(This,Index,cr) (This)->lpVtbl->SetEffectColor(This,Index,cr)
  1466. #define ITextDocument2_GetEffectColor(This,Index,pcr) (This)->lpVtbl->GetEffectColor(This,Index,pcr)
  1467. #define ITextDocument2_GetCaretType(This,pCaretType) (This)->lpVtbl->GetCaretType(This,pCaretType)
  1468. #define ITextDocument2_SetCaretType(This,CaretType) (This)->lpVtbl->SetCaretType(This,CaretType)
  1469. #define ITextDocument2_GetImmContext(This,pContext) (This)->lpVtbl->GetImmContext(This,pContext)
  1470. #define ITextDocument2_ReleaseImmContext(This,Context) (This)->lpVtbl->ReleaseImmContext(This,Context)
  1471. #define ITextDocument2_GetPreferredFont(This,cp,CodePage,Option,curCodepage,curFontSize,pbstr,pPitchAndFamily,pNewFontSize) (This)->lpVtbl->GetPreferredFont(This,cp,CodePage,Option,curCodepage,curFontSize,pbstr,pPitchAndFamily,pNewFontSize)
  1472. #define ITextDocument2_GetNotificationMode(This,pMode) (This)->lpVtbl->GetNotificationMode(This,pMode)
  1473. #define ITextDocument2_SetNotificationMode(This,Mode) (This)->lpVtbl->SetNotificationMode(This,Mode)
  1474. #define ITextDocument2_GetClientRect(This,Type,pLeft,pTop,pRight,pBottom) (This)->lpVtbl->GetClientRect(This,Type,pLeft,pTop,pRight,pBottom)
  1475. #define ITextDocument2_GetSelectionEx(This,ppSel) (This)->lpVtbl->GetSelectionEx(This,ppSel)
  1476. #define ITextDocument2_GetWindow(This,phWnd) (This)->lpVtbl->GetWindow(This,phWnd)
  1477. #define ITextDocument2_GetFEFlags(This,pFlags) (This)->lpVtbl->GetFEFlags(This,pFlags)
  1478. #define ITextDocument2_UpdateWindow(This) (This)->lpVtbl->UpdateWindow(This)
  1479. #define ITextDocument2_CheckTextLimit(This,cch,pcch) (This)->lpVtbl->CheckTextLimit(This,cch,pcch)
  1480. #define ITextDocument2_IMEInProgress(This,Mode) (This)->lpVtbl->IMEInProgress(This,Mode)
  1481. #define ITextDocument2_SysBeep(This) (This)->lpVtbl->SysBeep(This)
  1482. #define ITextDocument2_Update(This,Mode) (This)->lpVtbl->Update(This,Mode)
  1483. #define ITextDocument2_Notify(This,Notify) (This)->lpVtbl->Notify(This,Notify)
  1484. #endif
  1485. #endif
  1486. HRESULT WINAPI ITextDocument2_AttachMsgFilter_Proxy(ITextDocument2 *This,IUnknown *pFilter);
  1487. void __RPC_STUB ITextDocument2_AttachMsgFilter_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1488. HRESULT WINAPI ITextDocument2_SetEffectColor_Proxy(ITextDocument2 *This,__LONG32 Index,COLORREF cr);
  1489. void __RPC_STUB ITextDocument2_SetEffectColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1490. HRESULT WINAPI ITextDocument2_GetEffectColor_Proxy(ITextDocument2 *This,__LONG32 Index,COLORREF *pcr);
  1491. void __RPC_STUB ITextDocument2_GetEffectColor_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1492. HRESULT WINAPI ITextDocument2_GetCaretType_Proxy(ITextDocument2 *This,__LONG32 *pCaretType);
  1493. void __RPC_STUB ITextDocument2_GetCaretType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1494. HRESULT WINAPI ITextDocument2_SetCaretType_Proxy(ITextDocument2 *This,__LONG32 CaretType);
  1495. void __RPC_STUB ITextDocument2_SetCaretType_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1496. HRESULT WINAPI ITextDocument2_GetImmContext_Proxy(ITextDocument2 *This,__LONG32 *pContext);
  1497. void __RPC_STUB ITextDocument2_GetImmContext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1498. HRESULT WINAPI ITextDocument2_ReleaseImmContext_Proxy(ITextDocument2 *This,__LONG32 Context);
  1499. void __RPC_STUB ITextDocument2_ReleaseImmContext_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1500. HRESULT WINAPI ITextDocument2_GetPreferredFont_Proxy(ITextDocument2 *This,__LONG32 cp,__LONG32 CodePage,__LONG32 Option,__LONG32 curCodepage,__LONG32 curFontSize,BSTR *pbstr,__LONG32 *pPitchAndFamily,__LONG32 *pNewFontSize);
  1501. void __RPC_STUB ITextDocument2_GetPreferredFont_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1502. HRESULT WINAPI ITextDocument2_GetNotificationMode_Proxy(ITextDocument2 *This,__LONG32 *pMode);
  1503. void __RPC_STUB ITextDocument2_GetNotificationMode_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1504. HRESULT WINAPI ITextDocument2_SetNotificationMode_Proxy(ITextDocument2 *This,__LONG32 Mode);
  1505. void __RPC_STUB ITextDocument2_SetNotificationMode_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1506. HRESULT WINAPI ITextDocument2_GetClientRect_Proxy(ITextDocument2 *This,__LONG32 Type,__LONG32 *pLeft,__LONG32 *pTop,__LONG32 *pRight,__LONG32 *pBottom);
  1507. void __RPC_STUB ITextDocument2_GetClientRect_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1508. HRESULT WINAPI ITextDocument2_GetSelectionEx_Proxy(ITextDocument2 *This,ITextSelection **ppSel);
  1509. void __RPC_STUB ITextDocument2_GetSelectionEx_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1510. HRESULT WINAPI ITextDocument2_GetWindow_Proxy(ITextDocument2 *This,__LONG32 *phWnd);
  1511. void __RPC_STUB ITextDocument2_GetWindow_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1512. HRESULT WINAPI ITextDocument2_GetFEFlags_Proxy(ITextDocument2 *This,__LONG32 *pFlags);
  1513. void __RPC_STUB ITextDocument2_GetFEFlags_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1514. HRESULT WINAPI ITextDocument2_UpdateWindow_Proxy(ITextDocument2 *This);
  1515. void __RPC_STUB ITextDocument2_UpdateWindow_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1516. HRESULT WINAPI ITextDocument2_CheckTextLimit_Proxy(ITextDocument2 *This,__LONG32 cch,__LONG32 *pcch);
  1517. void __RPC_STUB ITextDocument2_CheckTextLimit_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1518. HRESULT WINAPI ITextDocument2_IMEInProgress_Proxy(ITextDocument2 *This,__LONG32 Mode);
  1519. void __RPC_STUB ITextDocument2_IMEInProgress_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1520. HRESULT WINAPI ITextDocument2_SysBeep_Proxy(ITextDocument2 *This);
  1521. void __RPC_STUB ITextDocument2_SysBeep_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1522. HRESULT WINAPI ITextDocument2_Update_Proxy(ITextDocument2 *This,__LONG32 Mode);
  1523. void __RPC_STUB ITextDocument2_Update_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1524. HRESULT WINAPI ITextDocument2_Notify_Proxy(ITextDocument2 *This,__LONG32 Notify);
  1525. void __RPC_STUB ITextDocument2_Notify_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1526. #endif
  1527. #ifndef __ITextMsgFilter_INTERFACE_DEFINED__
  1528. #define __ITextMsgFilter_INTERFACE_DEFINED__
  1529. EXTERN_C const IID IID_ITextMsgFilter;
  1530. #if defined(__cplusplus) && !defined(CINTERFACE)
  1531. struct ITextMsgFilter : public IUnknown {
  1532. public:
  1533. virtual HRESULT WINAPI AttachDocument(HWND hwnd,ITextDocument2 *pTextDoc) = 0;
  1534. virtual HRESULT WINAPI HandleMessage(UINT *pmsg,WPARAM *pwparam,LPARAM *plparam,LRESULT *plres) = 0;
  1535. virtual HRESULT WINAPI AttachMsgFilter(ITextMsgFilter *pMsgFilter) = 0;
  1536. };
  1537. #else
  1538. typedef struct ITextMsgFilterVtbl {
  1539. BEGIN_INTERFACE
  1540. HRESULT (WINAPI *QueryInterface)(ITextMsgFilter *This,REFIID riid,void **ppvObject);
  1541. ULONG (WINAPI *AddRef)(ITextMsgFilter *This);
  1542. ULONG (WINAPI *Release)(ITextMsgFilter *This);
  1543. HRESULT (WINAPI *AttachDocument)(ITextMsgFilter *This,HWND hwnd,ITextDocument2 *pTextDoc);
  1544. HRESULT (WINAPI *HandleMessage)(ITextMsgFilter *This,UINT *pmsg,WPARAM *pwparam,LPARAM *plparam,LRESULT *plres);
  1545. HRESULT (WINAPI *AttachMsgFilter)(ITextMsgFilter *This,ITextMsgFilter *pMsgFilter);
  1546. END_INTERFACE
  1547. } ITextMsgFilterVtbl;
  1548. struct ITextMsgFilter {
  1549. CONST_VTBL struct ITextMsgFilterVtbl *lpVtbl;
  1550. };
  1551. #ifdef COBJMACROS
  1552. #define ITextMsgFilter_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
  1553. #define ITextMsgFilter_AddRef(This) (This)->lpVtbl->AddRef(This)
  1554. #define ITextMsgFilter_Release(This) (This)->lpVtbl->Release(This)
  1555. #define ITextMsgFilter_AttachDocument(This,hwnd,pTextDoc) (This)->lpVtbl->AttachDocument(This,hwnd,pTextDoc)
  1556. #define ITextMsgFilter_HandleMessage(This,pmsg,pwparam,plparam,plres) (This)->lpVtbl->HandleMessage(This,pmsg,pwparam,plparam,plres)
  1557. #define ITextMsgFilter_AttachMsgFilter(This,pMsgFilter) (This)->lpVtbl->AttachMsgFilter(This,pMsgFilter)
  1558. #endif
  1559. #endif
  1560. HRESULT WINAPI ITextMsgFilter_AttachDocument_Proxy(ITextMsgFilter *This,HWND hwnd,ITextDocument2 *pTextDoc);
  1561. void __RPC_STUB ITextMsgFilter_AttachDocument_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1562. HRESULT WINAPI ITextMsgFilter_HandleMessage_Proxy(ITextMsgFilter *This,UINT *pmsg,WPARAM *pwparam,LPARAM *plparam,LRESULT *plres);
  1563. void __RPC_STUB ITextMsgFilter_HandleMessage_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1564. HRESULT WINAPI ITextMsgFilter_AttachMsgFilter_Proxy(ITextMsgFilter *This,ITextMsgFilter *pMsgFilter);
  1565. void __RPC_STUB ITextMsgFilter_AttachMsgFilter_Stub(IRpcStubBuffer *This,IRpcChannelBuffer *_pRpcChannelBuffer,PRPC_MESSAGE _pRpcMessage,DWORD *_pdwStubPhase);
  1566. #endif
  1567. #endif
  1568. ULONG __RPC_API BSTR_UserSize(ULONG *,ULONG,BSTR *);
  1569. unsigned char *__RPC_API BSTR_UserMarshal(ULONG *,unsigned char *,BSTR *);
  1570. unsigned char *__RPC_API BSTR_UserUnmarshal(ULONG *,unsigned char *,BSTR *);
  1571. void __RPC_API BSTR_UserFree(ULONG *,BSTR *);
  1572. ULONG __RPC_API HWND_UserSize(ULONG *,ULONG,HWND *);
  1573. unsigned char *__RPC_API HWND_UserMarshal(ULONG *,unsigned char *,HWND *);
  1574. unsigned char *__RPC_API HWND_UserUnmarshal(ULONG *,unsigned char *,HWND *);
  1575. void __RPC_API HWND_UserFree(ULONG *,HWND *);
  1576. ULONG __RPC_API VARIANT_UserSize(ULONG *,ULONG,VARIANT *);
  1577. unsigned char *__RPC_API VARIANT_UserMarshal(ULONG *,unsigned char *,VARIANT *);
  1578. unsigned char *__RPC_API VARIANT_UserUnmarshal(ULONG *,unsigned char *,VARIANT *);
  1579. void __RPC_API VARIANT_UserFree(ULONG *,VARIANT *);
  1580. #ifdef __cplusplus
  1581. }
  1582. #endif
  1583. #endif