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