4 #pragma GCC system_header
11 #define REO_GETOBJ_NO_INTERFACES 0
12 #define REO_GETOBJ_POLEOBJ 1
13 #define REO_GETOBJ_PSTG 2
14 #define REO_GETOBJ_POLESITE 4
15 #define REO_GETOBJ_ALL_INTERFACES 7
16 #define REO_CP_SELECTION ((ULONG)-1)
17 #define REO_IOB_SELECTION ((ULONG)-1)
18 #define REO_IOB_USE_CP ((ULONG)-2)
20 #define REO_READWRITEMASK 0x3FL
21 #define REO_DONTNEEDPALETTE 32
23 #define REO_DYNAMICSIZE 8
24 #define REO_INVERTEDSELECT 4
25 #define REO_BELOWBASELINE 2
26 #define REO_RESIZABLE 1
27 #define REO_LINK 0x80000000
28 #define REO_STATIC 0x40000000
29 #define REO_SELECTED 0x08000000
30 #define REO_OPEN 0x4000000
31 #define REO_INPLACEACTIVE 0x2000000
32 #define REO_HILITED 0x1000000
33 #define REO_LINKAVAILABLE 0x800000
34 #define REO_GETMETAFILE 0x400000
41 extern const GUID IID_IRichEditOle
;
42 extern const GUID IID_IRichEditOleCallback
;
44 typedef struct _reobject
{
50 LPOLECLIENTSITE polesite
;
57 #define INTERFACE IRichEditOle
58 DECLARE_INTERFACE_(IRichEditOle
, IUnknown
)
60 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
61 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
62 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
63 STDMETHOD(GetClientSite
)(THIS_ LPOLECLIENTSITE
*) PURE
;
64 STDMETHOD_(LONG
,GetObjectCount
)(THIS
) PURE
;
65 STDMETHOD_(LONG
,GetLinkCount
)(THIS
) PURE
;
66 STDMETHOD(GetObject
)(THIS_ LONG
, REOBJECT
*,DWORD
) PURE
;
67 STDMETHOD(InsertObject
)(THIS_ REOBJECT
*) PURE
;
68 STDMETHOD(ConvertObject
)(THIS_ LONG
,REFCLSID
,LPCSTR
) PURE
;
69 STDMETHOD(ActivateAs
)(THIS_ REFCLSID
,REFCLSID
) PURE
;
70 STDMETHOD(SetHostNames
)(THIS_ LPCSTR
,LPCSTR
) PURE
;
71 STDMETHOD(SetLinkAvailable
)(THIS_ LONG
,BOOL
) PURE
;
72 STDMETHOD(SetDvaspect
)(THIS_ LONG
,DWORD
) PURE
;
73 STDMETHOD(HandsOffStorage
)(THIS_ LONG
) PURE
;
74 STDMETHOD(SaveCompleted
)(THIS_ LONG
,LPSTORAGE
) PURE
;
75 STDMETHOD(InPlaceDeactivate
)(THIS
) PURE
;
76 STDMETHOD(ContextSensitiveHelp
)(THIS_ BOOL
) PURE
;
77 STDMETHOD(GetClipboardData
)(THIS_ CHARRANGE
*,DWORD
,LPDATAOBJECT
*) PURE
;
78 STDMETHOD(ImportDataObject
)(THIS_ LPDATAOBJECT
,CLIPFORMAT
,HGLOBAL
) PURE
;
81 typedef IRichEditOle
*LPRICHEDITOLE
;
83 #define INTERFACE IRichEditOleCallback
84 DECLARE_INTERFACE_(IRichEditOleCallback
, IUnknown
)
86 STDMETHOD(QueryInterface
)(THIS_ REFIID
,PVOID
*) PURE
;
87 STDMETHOD_(ULONG
,AddRef
)(THIS
) PURE
;
88 STDMETHOD_(ULONG
,Release
)(THIS
) PURE
;
89 STDMETHOD(GetNewStorage
)(THIS_ LPSTORAGE
*) PURE
;
90 STDMETHOD(GetInPlaceContext
)(THIS_ LPOLEINPLACEFRAME
*,LPOLEINPLACEUIWINDOW
*,LPOLEINPLACEFRAMEINFO
) PURE
;
91 STDMETHOD(ShowContainerUI
)(THIS_ BOOL
) PURE
;
92 STDMETHOD(QueryInsertObject
)(THIS_ LPCLSID
,LPSTORAGE
,LONG
) PURE
;
93 STDMETHOD(DeleteObject
)(THIS_ LPOLEOBJECT
) PURE
;
94 STDMETHOD(QueryAcceptData
) (THIS_ LPDATAOBJECT
,CLIPFORMAT
*,DWORD
,BOOL
,HGLOBAL
) PURE
;
95 STDMETHOD(ContextSensitiveHelp
) (THIS_ BOOL
) PURE
;
96 STDMETHOD(GetClipboardData
) (THIS_ CHARRANGE
*,DWORD
,LPDATAOBJECT
*) PURE
;
97 STDMETHOD(GetDragDropEffect
) (THIS_ BOOL
,DWORD
,PDWORD
) PURE
;
98 STDMETHOD(GetContextMenu
) (THIS_ WORD
,LPOLEOBJECT
,CHARRANGE
*,HMENU
*) PURE
;
101 typedef IRichEditOleCallback FAR
* LPRICHEDITOLECALLBACK
;