af062818b47340eef15700d2f0211576ba3506eevboxsync/*
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2002 Andriy Palamarchuk
af062818b47340eef15700d2f0211576ba3506eevboxsync * Copyright (C) 2004 Mike McCormack
af062818b47340eef15700d2f0211576ba3506eevboxsync *
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 *
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 *
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
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync/*
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
4b9d6701570cb98fd36e209314239d104ec584d3vboxsync * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * a choice of LGPL license versions is made available with the language indicating
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * that LGPLv2 or any later version may be used, or where a choice of which version
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync * of the LGPL is applied is otherwise unspecified.
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync */
589fd26cedb2b4ebbed14f2964cad03cc8ebbca2vboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#if 0") /* not included on Windows */
af062818b47340eef15700d2f0211576ba3506eevboxsyncimport "oleidl.idl";
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#endif")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/* REOBJECT structure flags */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETOBJ_NO_INTERFACES 0x00000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETOBJ_POLEOBJ 0x00000001")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETOBJ_PSTG 0x00000002")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETOBJ_POLESITE 0x00000004")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETOBJ_ALL_INTERFACES 0x00000007")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_CP_SELECTION 0xFFFFFFFF")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_IOB_SELECTION 0xFFFFFFFF")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_IOB_USE_CP 0xFFFFFFFE")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_NULL 0x00000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_READWRITEMASK 0x0000003F")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_DONTNEEDPALETTE 0x00000020")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_BLANK 0x00000010")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_DYNAMICSIZE 0x00000008")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_INVERTEDSELECT 0x00000004")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_BELOWBASELINE 0x00000002")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_RESIZABLE 0x00000001")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_LINK 0x80000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_STATIC 0x40000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_SELECTED 0x08000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_OPEN 0x04000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_INPLACEACTIVE 0x02000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_HILITED 0x01000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_LINKAVAILABLE 0x00800000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define REO_GETMETAFILE 0x00400000")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/* clipboard operation flags */
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define RECO_PASTE 0x00000000")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define RECO_DROP 0x00000001")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define RECO_COPY 0x00000002")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define RECO_CUT 0x00000003")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define RECO_DRAG 0x00000004")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _reobject {
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD cbStruct;
af062818b47340eef15700d2f0211576ba3506eevboxsync LONG cp;
af062818b47340eef15700d2f0211576ba3506eevboxsync CLSID clsid;
af062818b47340eef15700d2f0211576ba3506eevboxsync LPOLEOBJECT poleobj;
af062818b47340eef15700d2f0211576ba3506eevboxsync LPSTORAGE pstg;
af062818b47340eef15700d2f0211576ba3506eevboxsync LPOLECLIENTSITE polesite;
af062818b47340eef15700d2f0211576ba3506eevboxsync SIZEL sizel;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD dvaspect;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD dwFlags;
af062818b47340eef15700d2f0211576ba3506eevboxsync DWORD dwUser;
af062818b47340eef15700d2f0211576ba3506eevboxsync} REOBJECT;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#ifndef __RICHEDIT_CHARRANGE_DEFINED")
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#define __RICHEDIT_CHARRANGE_DEFINED")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynctypedef struct _charrange
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync LONG cpMin;
af062818b47340eef15700d2f0211576ba3506eevboxsync LONG cpMax;
af062818b47340eef15700d2f0211576ba3506eevboxsync} CHARRANGE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsynccpp_quote("#endif /* __RICHEDIT_CHARRANGE_DEFINED */")
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IRichEditOle
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00020d00-0000-0000-c000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IRichEditOle : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IRichEditOle *LPRICHEDITOLE;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetClientSite(LPOLECLIENTSITE *lplpolesite);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetObjectCount();
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetLinkCount();
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetObject(LONG iob, REOBJECT *lpreobject, DWORD dwFlags);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT InsertObject(REOBJECT *lpreobject);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ConvertObject(LONG iob, REFCLSID rclsidNew, LPCSTR lpstrUserTypeNew);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ActivateAs(REFCLSID rclsid, REFCLSID rclsidAs);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetHostNames(LPCSTR lpstrContainerApp, LPCSTR lpstrContainerObj);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetLinkAvailable(LONG iob, BOOL fAvailable);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SetDvaspect(LONG iob, DWORD dvaspect);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT HandsOffStorage(LONG iob);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT SaveCompleted(LONG iob, LPSTORAGE lpstg);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT InPlaceDeactivate();
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ContextSensitiveHelp(BOOL fEnterMode);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetClipboardData(CHARRANGE* lpchrg, DWORD reco, LPDATAOBJECT *lplpdataobj);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ImportDataObject(LPDATAOBJECT lpdataobj, CLIPFORMAT cf, HGLOBAL hMetaPict);
af062818b47340eef15700d2f0211576ba3506eevboxsync}
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync/*****************************************************************************
af062818b47340eef15700d2f0211576ba3506eevboxsync * IRichEditOleCallback
af062818b47340eef15700d2f0211576ba3506eevboxsync */
af062818b47340eef15700d2f0211576ba3506eevboxsync[
af062818b47340eef15700d2f0211576ba3506eevboxsync object,
af062818b47340eef15700d2f0211576ba3506eevboxsync uuid(00020d03-0000-0000-c000-000000000046),
af062818b47340eef15700d2f0211576ba3506eevboxsync pointer_default(unique)
af062818b47340eef15700d2f0211576ba3506eevboxsync]
af062818b47340eef15700d2f0211576ba3506eevboxsyncinterface IRichEditOleCallback : IUnknown
af062818b47340eef15700d2f0211576ba3506eevboxsync{
af062818b47340eef15700d2f0211576ba3506eevboxsync typedef [unique] IRichEditOleCallback *LPRICHEDITOLECALLBACK;
af062818b47340eef15700d2f0211576ba3506eevboxsync
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetNewStorage(LPSTORAGE *lplpstg);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetInPlaceContext(LPOLEINPLACEFRAME *lplpFrame, LPOLEINPLACEUIWINDOW *lplpDoc, LPOLEINPLACEFRAMEINFO lpFrameInfo);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ShowContainerUI(BOOL fShow);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT QueryInsertObject(LPCLSID lpclsid, LPSTORAGE lpstg, LONG cp);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT DeleteObject(LPOLEOBJECT lpoleobj);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT QueryAcceptData(LPDATAOBJECT lpdataobj, CLIPFORMAT *lpcfFormat, DWORD reco, BOOL fReally, HGLOBAL hMetaPict);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT ContextSensitiveHelp(BOOL fEnterMode);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetClipboardData(CHARRANGE *lpchrg, DWORD reco, LPDATAOBJECT *lplpdataobj);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetDragDropEffect(BOOL fDrag, DWORD grfKeyState, LPDWORD pdwEffect);
af062818b47340eef15700d2f0211576ba3506eevboxsync HRESULT GetContextMenu(WORD seltype, LPOLEOBJECT lpoleobj, CHARRANGE *lpchrg, HMENU *lphmenu);
af062818b47340eef15700d2f0211576ba3506eevboxsync}