[PATCH 1/3] include: Add ITextDocument2 interface.

Jactry Zeng jactry92 at gmail.com
Tue Sep 11 02:38:01 CDT 2018


Hi Nikolay,

Thanks for review.
What I read was an older SDK so it didn't include this change. Will
send another try later.
Nikolay Sivov <nsivov at codeweavers.com> 于2018年9月11日周二 上午1:00写道:
>
> On 09/10/2018 06:02 PM, Jactry Zeng wrote:
>
> > Signed-off-by: Jactry Zeng <jzeng at codeweavers.com>
> > ---
> >   include/tom.idl | 29 +++++++++++++++++++++++++++++
> >   1 file changed, 29 insertions(+)
> >
> > diff --git a/include/tom.idl b/include/tom.idl
> > index 357b0457a5..7e63e6c301 100644
> > --- a/include/tom.idl
> > +++ b/include/tom.idl
> > @@ -237,6 +237,35 @@ interface ITextDocument : IDispatch
> >       HRESULT RangeFromPoint([in]LONG x, [in]LONG y, [retval, out]ITextRange **ppRange);
> >   }
> >
> > +[
> > +  object,
> > +  uuid(01C25500-4268-11D1-883A-3C8B00C10000)
> > +]
> > +interface ITextDocument2 : ITextDocument
> > +{
> > +    HRESULT AttachMsgFilter([in]IUnknown *filter);
> > +    HRESULT SetEffectColor([in]LONG index, [in]COLORREF cr);
> > +    HRESULT GetEffectColor([in]LONG index, [out]COLORREF *cr);
> > +    HRESULT GetCaretType([retval, out]LONG *type);
> > +    HRESULT SetCaretType([in]LONG type);
> > +    HRESULT GetImmContext([retval, out]LONG *context);
> > +    HRESULT ReleaseImmContext([in]LONG context);
> > +    HRESULT GetPreferredFont([in]LONG cp, [in]LONG codepage, [in]LONG option, [in]LONG current_codepage, [in]LONG current_fontsize,
> > +                             [out]BSTR *bstr, [out]LONG *pitch_family, [out]LONG *new_fontsize);
> > +    HRESULT GetNotificationMode([retval, out]LONG *mode);
> > +    HRESULT SetNotificationMode([in]LONG mode);
> > +    HRESULT GetClientRect([in]LONG type, [out]LONG *left, [out]LONG *top, [out]LONG *right, [out]LONG *bottom);
> > +    HRESULT GetSelectionEx([retval, out]ITextSelection **selection);
> > +    HRESULT GetWindow([out]LONG *hwnd);
> > +    HRESULT GetFEFlags([out]LONG *flags);
> > +    HRESULT UpdateWindow();
> > +    HRESULT CheckTextLimit([in]LONG cch, [out]LONG  *exceed);
> > +    HRESULT IMEInProgress([in]LONG mode);
> > +    HRESULT SysBeep();
> > +    HRESULT Update([in]LONG mode);
> > +    HRESULT Notify([in]LONG notify);
> > +}
> > +
> >   interface ITextFont;
> >   interface ITextPara;
> >
> This uuid is used for ITextDocument2Old in current SDK, and method list
> is longer for it.
>
>


-- 
Regards,
Jactry Zeng



More information about the wine-devel mailing list