textserv.h revision af062818b47340eef15700d2f0211576ba3506ee
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2005 Mike McCormack
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is free software; you can redistribute it and/or
af062818b47340eef15700d2f0211576ba3506eevboxsync * modify it under the terms of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License as published by the Free Software Foundation; either
af062818b47340eef15700d2f0211576ba3506eevboxsync * version 2.1 of the License, or (at your option) any later version.
af062818b47340eef15700d2f0211576ba3506eevboxsync * This library is distributed in the hope that it will be useful,
af062818b47340eef15700d2f0211576ba3506eevboxsync * but WITHOUT ANY WARRANTY; without even the implied warranty of
af062818b47340eef15700d2f0211576ba3506eevboxsync * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
af062818b47340eef15700d2f0211576ba3506eevboxsync * Lesser General Public License for more details.
af062818b47340eef15700d2f0211576ba3506eevboxsync * You should have received a copy of the GNU Lesser General Public
af062818b47340eef15700d2f0211576ba3506eevboxsync * License along with this library; if not, write to the Free Software
af062818b47340eef15700d2f0211576ba3506eevboxsync * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
af062818b47340eef15700d2f0211576ba3506eevboxsyncextern "C" {
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(IID_ITextServices,0x8d33f740,0xcf58,0x11ce,0xa8,0x9d,0x00,0xaa,0x00,0x6c,0xad,0xc5);
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(IID_ITextHost, 0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
af062818b47340eef15700d2f0211576ba3506eevboxsyncDEFINE_GUID(IID_ITextHost2, 0xc5bdd8d0,0xd26e,0x11ce,0xa8,0x9e,0x00,0xaa,0x00,0x6c,0xad,0xc5);
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * ITextServices interface
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** ITextServices methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync UINT msg, WPARAM wparam, LPARAM lparam, LRESULT* plresult) PURE;
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextServices_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextServices_AddRef(p) (p)->lpVtbl->AddRef(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextServices_Release(p) (p)->lpVtbl->Release(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * ITextHost interface
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync /*** ITextHost methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** IUnknown methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_Release(p) (p)->lpVtbl->Release(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync/*** ITextHost methods ***/
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetDC(p) (p)->lpVtbl->TxGetDC(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxReleaseDC(p,a) (p)->lpVtbl->TxReleaseDC(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxShowScrollBar(p,a,b) (p)->lpVtbl->TxShowScrollBar(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxEnableScrollBar(p,a,b) (p)->lpVtbl->TxEnableScrollBar(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetScrollRange(p,a,b,c,d) (p)->lpVtbl->TxSetScrollRange(p,a,b,c,d)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetScrollPos(p,a,b,c) (p)->lpVtbl->TxSetScrollPos(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxInvalidateRect(p,a,b) (p)->lpVtbl->TxInvalidateRect(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxViewChange(p,a) (p)->lpVtbl->TxViewChange(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxCreateCaret(p,a,b,c) (p)->lpVtbl->TxCreateCaret(p,a,b,c)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxShowCaret(p,a) (p)->lpVtbl->TxShowCaret(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetCarentPos(p,a,b) (p)->lpVtbl->TxSetCarentPos(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetTimer(p,a,b) (p)->lpVtbl->TxSetTimer(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxKillTimer(p,a) (p)->lpVtbl->TxKillTimer(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxScrollWindowEx(p,a,b,c,d,e,f,g) (p)->lpVtbl->TxScrollWindowEx(p,a,b,c,d,e,f,g)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetCapture(p,a) (p)->lpVtbl->TxSetCapture(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetFocus(p) (p)->lpVtbl->TxSetFocus(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxSetCursor(p,a,b) (p)->lpVtbl->TxSetCursor(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxScreenToClient(p,a) (p)->lpVtbl->TxScreenToClient(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxClientToScreen(p,a) (p)->lpVtbl->TxClientToScreen(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxActivate(p,a) (p)->lpVtbl->TxActivate(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxDeactivate(p,a) (p)->lpVtbl->TxDeactivate(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetClientRect(p,a) (p)->lpVtbl->TxGetClientRect(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetViewInset(p,a) (p)->lpVtbl->TxGetViewInset(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetCharFormat(p,a) (p)->lpVtbl->TxGetCharFormat(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetParaFormat(p,a) (p)->lpVtbl->TxGetParaFormat(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetSysColor(p,a) (p)->lpVtbl->TxGetSysColor(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetBackStyle(p,a) (p)->lpVtbl->TxGetBackStyle(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetMaxLength(p,a) (p)->lpVtbl->TxGetMaxLength(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetScrollbars(p,a) (p)->lpVtbl->TxGetScrollbars(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetPasswordChar(p,a) (p)->lpVtbl->TxGetPasswordChar(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetAcceleratorPos(p,a) (p)->lpVtbl->TxGetAcceleratorPos(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetExtent(p,a) (p)->lpVtbl->TxGetExtent(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_OnTxCharFormatChange(p,a) (p)->lpVtbl->OnTxCharFormatChange(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_OnTxParaFormatChange(p,a) (p)->lpVtbl->OnTxParaFormatChange(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetPropertyBits(p,a,b) (p)->lpVtbl->TxGetPropertyBits(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxNotify(p,a,b) (p)->lpVtbl->TxNotify(p,a,b)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxImmGetContext(p) (p)->lpVtbl->TxImmGetContext(p)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxImmReleaseContext(p,a) (p)->lpVtbl->TxImmReleaseContext(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsync#define ITextHost_TxGetSelectionBarWidth(p,a) (p)->lpVtbl->TxGetSelectionBarWidth(p,a)
af062818b47340eef15700d2f0211576ba3506eevboxsyncHRESULT WINAPI CreateTextServices(IUnknown*,ITextHost*,IUnknown**);
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef HRESULT (WINAPI *PCreateTextServices)(IUnknown*,ITextHost*,IUnknown**);
af062818b47340eef15700d2f0211576ba3506eevboxsync#endif /* _TEXTSERV_H */