home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 December / PCWKCD1296.iso / vjplusb / activex / inetsdk / include / docobj.idl < prev    next >
Text File  |  1996-07-03  |  19KB  |  522 lines

  1. //+---------------------------------------------------------------------------
  2. //
  3. //  Copyright 1995 - 1996 Microsoft Corporation. All Rights Reserved.
  4. //
  5. //  Contents:   OLE Document Object interfaces
  6. //
  7. //----------------------------------------------------------------------------
  8.  
  9. cpp_quote("//=--------------------------------------------------------------------------=")
  10. cpp_quote("// DocObj.h")
  11. cpp_quote("//=--------------------------------------------------------------------------=")
  12. cpp_quote("// (C) Copyright 1995-1996 Microsoft Corporation.  All Rights Reserved.")
  13. cpp_quote("//")
  14. cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF")
  15. cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO")
  16. cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A")
  17. cpp_quote("// PARTICULAR PURPOSE.")
  18. cpp_quote("//=--------------------------------------------------------------------------=")
  19. cpp_quote("")
  20. cpp_quote("#pragma comment(lib,\"uuid.lib\")")
  21. cpp_quote("")
  22. cpp_quote("//--------------------------------------------------------------------------")
  23. cpp_quote("// OLE Document Object Interfaces.")
  24.  
  25.  
  26. import "ocidl.idl";
  27. import "objidl.idl";
  28. import "oleidl.idl";
  29. import "oaidl.idl";
  30. import "servprov.idl";
  31.  
  32. #define HWND        UserHWND
  33. #define HACCEL      UserHACCEL
  34. #define HDC         UserHDC
  35. #define HFONT       UserHFONT
  36. #define MSG         UserMSG
  37. #define BSTR        UserBSTR
  38. #define EXCEPINFO   UserEXCEPINFO
  39. #define VARIANT     UserVARIANT
  40.  
  41. interface IOleDocument;
  42. interface IOleDocumentSite;
  43. interface IOleDocumentView;
  44. interface IEnumOleDocumentViews;
  45. interface IContinueCallback;
  46. interface IPrint;
  47. interface IOleCommandTarget;
  48.  
  49.  
  50. cpp_quote("")
  51. cpp_quote("////////////////////////////////////////////////////////////////////////////")
  52. cpp_quote("//  Interface Definitions")
  53.  
  54.  
  55. //+---------------------------------------------------------------------------
  56. //
  57. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  58. //
  59. //  Contents:    IOleDocument interface definition
  60. //
  61. //----------------------------------------------------------------------------
  62. cpp_quote("#ifndef _LPOLEDOCUMENT_DEFINED")
  63. cpp_quote("#define _LPOLEDOCUMENT_DEFINED")
  64. [
  65.         object,
  66.         uuid(b722bcc5-4e68-101b-a2bc-00aa00404770),
  67.         pointer_default(unique)
  68. ]
  69. interface IOleDocument : IUnknown
  70. {
  71.         typedef [unique] IOleDocument *LPOLEDOCUMENT;
  72.  
  73.         typedef enum {
  74.                 DOCMISC_CANCREATEMULTIPLEVIEWS          = 1,
  75.                 DOCMISC_SUPPORTCOMPLEXRECTANGLES        = 2,
  76.                 DOCMISC_CANTOPENEDIT                        = 4,        // fails the IOleDocumentView::Open  method
  77.                 DOCMISC_NOFILESUPPORT                       = 8,        //  does not support read/writing to a file
  78.         } DOCMISC;
  79.  
  80.  
  81.         HRESULT CreateView(
  82.                 [in, unique] IOleInPlaceSite *pIPSite,
  83.                 [in, unique] IStream *pstm,
  84.                 [in] DWORD dwReserved,
  85.                 [out] IOleDocumentView **ppView);
  86.  
  87.         HRESULT GetDocMiscStatus(
  88.                 [out] DWORD *pdwStatus);
  89.  
  90.         HRESULT EnumViews(
  91.                 [out] IEnumOleDocumentViews **ppEnum,
  92.                 [out] IOleDocumentView **ppView);
  93. }
  94. cpp_quote("#endif")
  95.  
  96.  
  97. //+---------------------------------------------------------------------------
  98. //
  99. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  100. //
  101. //  Contents:    IOleDocumentSite interface definition
  102. //
  103. //----------------------------------------------------------------------------
  104. cpp_quote("#ifndef _LPOLEDOCUMENTSITE_DEFINED")
  105. cpp_quote("#define _LPOLEDOCUMENTSITE_DEFINED")
  106. [
  107.         object,
  108.         uuid(b722bcc7-4e68-101b-a2bc-00aa00404770),
  109.         pointer_default(unique)
  110. ]
  111. interface IOleDocumentSite : IUnknown
  112. {
  113.         typedef [unique] IOleDocumentSite *LPOLEDOCUMENTSITE;
  114.  
  115.         HRESULT ActivateMe(
  116.                 [in] IOleDocumentView *pViewToActivate);
  117. }
  118. cpp_quote("#endif")
  119.  
  120.  
  121. //+---------------------------------------------------------------------------
  122. //
  123. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  124. //
  125. //  Contents:    IOleDocumentView interface definition
  126. //
  127. //----------------------------------------------------------------------------
  128. cpp_quote("#ifndef _LPOLEDOCUMENTVIEW_DEFINED")
  129. cpp_quote("#define _LPOLEDOCUMENTVIEW_DEFINED")
  130. [
  131.         object,
  132.         uuid(b722bcc6-4e68-101b-a2bc-00aa00404770),
  133.         pointer_default(unique)
  134. ]
  135. interface IOleDocumentView : IUnknown
  136. {
  137.         typedef [unique] IOleDocumentView *LPOLEDOCUMENTVIEW;
  138.  
  139.         HRESULT SetInPlaceSite(
  140.                 [in, unique] IOleInPlaceSite *pIPSite);
  141.  
  142.         HRESULT GetInPlaceSite(
  143.                 [out] IOleInPlaceSite **ppIPSite);
  144.  
  145.         HRESULT GetDocument(
  146.                 [out] IUnknown **ppunk);
  147.  
  148.         [input_sync]
  149.         HRESULT SetRect(
  150.         [in] LPRECT prcView);
  151.  
  152.         HRESULT GetRect(
  153.         [out] LPRECT prcView);
  154.  
  155.         [input_sync]
  156.         HRESULT SetRectComplex(
  157.                 [in, unique] LPRECT prcView,
  158.                 [in, unique] LPRECT prcHScroll,
  159.                 [in, unique] LPRECT prcVScroll,
  160.                 [in, unique] LPRECT prcSizeBox);
  161.  
  162.         HRESULT Show(
  163.                 [in] BOOL fShow);
  164.  
  165.         HRESULT UIActivate(
  166.                 [in] BOOL fUIActivate);
  167.  
  168.         HRESULT Open(void);
  169.  
  170.         HRESULT CloseView(DWORD dwReserved);
  171.  
  172.         HRESULT SaveViewState(
  173.                 [in] LPSTREAM pstm);
  174.  
  175.         HRESULT ApplyViewState(
  176.                 [in] LPSTREAM pstm);
  177.  
  178.         HRESULT Clone(
  179.                 [in] IOleInPlaceSite *pIPSiteNew,
  180.                 [out] IOleDocumentView **ppViewNew);
  181. }
  182. cpp_quote("#endif")
  183.  
  184.  
  185. //+---------------------------------------------------------------------------
  186. //
  187. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  188. //
  189. //  Contents:    IEnumOleDocumentViews interface definition
  190. //
  191. //----------------------------------------------------------------------------
  192. cpp_quote("#ifndef _LPENUMOLEDOCUMENTVIEWS_DEFINED")
  193. cpp_quote("#define _LPENUMOLEDOCUMENTVIEWS_DEFINED")
  194. [
  195.         object,
  196.         uuid(b722bcc8-4e68-101b-a2bc-00aa00404770),
  197.         pointer_default(unique)
  198. ]
  199. interface IEnumOleDocumentViews : IUnknown
  200. {
  201.  
  202.         typedef [unique] IEnumOleDocumentViews *LPENUMOLEDOCUMENTVIEWS;
  203.  
  204.         [local]
  205.         HRESULT __stdcall Next(
  206.         [in] ULONG cViews,
  207.                 [out] IOleDocumentView **rgpView,
  208.                 [out] ULONG *pcFetched);
  209.  
  210.         [call_as(Next)]
  211.         HRESULT __stdcall RemoteNext(
  212.         [in] ULONG cViews,
  213.                 [out, size_is(cViews), length_is(*pcFetched)]
  214.                 IOleDocumentView **rgpView,
  215.                 [out] ULONG *pcFetched);
  216.  
  217.         HRESULT Skip(
  218.                 [in] ULONG cViews);
  219.  
  220.         HRESULT Reset();
  221.  
  222.         HRESULT Clone(
  223.                 [out] IEnumOleDocumentViews **ppEnum);
  224. }
  225. cpp_quote("#endif")
  226.  
  227.  
  228. //+---------------------------------------------------------------------------
  229. //
  230. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  231. //
  232. //  Contents:    IContinueCallback interface definition
  233. //
  234. //----------------------------------------------------------------------------
  235. cpp_quote("#ifndef _LPCONTINUECALLBACK_DEFINED")
  236. cpp_quote("#define _LPCONTINUECALLBACK_DEFINED")
  237. [
  238.         object,
  239.         uuid(b722bcca-4e68-101b-a2bc-00aa00404770),
  240.         pointer_default(unique)
  241. ]
  242. interface IContinueCallback : IUnknown
  243. {
  244.         typedef [unique] IContinueCallback *LPCONTINUECALLBACK;
  245.  
  246.         HRESULT FContinue();
  247.  
  248.         HRESULT FContinuePrinting(
  249.                 [in] LONG nCntPrinted,
  250.                 [in] LONG nCurPage,
  251.                 [in, unique] wchar_t * pwszPrintStatus);
  252. }
  253. cpp_quote("#endif")
  254.  
  255.  
  256. //+---------------------------------------------------------------------------
  257. //
  258. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  259. //
  260. //  Contents:    IPrint interface definition
  261. //
  262. //----------------------------------------------------------------------------
  263. cpp_quote("#ifndef _LPPRINT_DEFINED")
  264. cpp_quote("#define _LPPRINT_DEFINED")
  265. [
  266.         object,
  267.         uuid(b722bcc9-4e68-101b-a2bc-00aa00404770),
  268.         pointer_default(unique)
  269. ]
  270. interface IPrint : IUnknown
  271. {
  272.         typedef [unique] IPrint *LPPRINT;
  273.  
  274.         typedef enum
  275.         {
  276.                 PRINTFLAG_MAYBOTHERUSER         = 1,
  277.                 PRINTFLAG_PROMPTUSER            = 2,
  278.                 PRINTFLAG_USERMAYCHANGEPRINTER  = 4,
  279.                 PRINTFLAG_RECOMPOSETODEVICE     = 8,
  280.                 PRINTFLAG_DONTACTUALLYPRINT     = 16,
  281.                 PRINTFLAG_FORCEPROPERTIES       = 32,
  282.                 PRINTFLAG_PRINTTOFILE           = 64
  283.         } PRINTFLAG;
  284.  
  285.         typedef struct  tagPAGERANGE
  286.         {
  287.                 LONG nFromPage;
  288.                 LONG nToPage;
  289.         } PAGERANGE;
  290.  
  291.         typedef struct  tagPAGESET
  292.         {
  293.                 ULONG   cbStruct;
  294.                 BOOL    fOddPages;
  295.                 BOOL    fEvenPages;
  296.                 ULONG   cPageRange;
  297.                 [size_is(cPageRange)]
  298.                 PAGERANGE rgPages[];
  299.         } PAGESET;
  300.  
  301.         cpp_quote("#define PAGESET_TOLASTPAGE   ((WORD)(-1L))")
  302.  
  303.         HRESULT SetInitialPageNum(
  304.                 [in] LONG nFirstPage);
  305.  
  306.         HRESULT GetPageInfo(
  307.                 [out] LONG *pnFirstPage,
  308.                 [out] LONG *pcPages);
  309.  
  310.         [local]
  311.         HRESULT __stdcall Print(
  312.                 [in] DWORD grfFlags,
  313.                 [in, out] DVTARGETDEVICE **pptd,
  314.                 [in, out] PAGESET ** ppPageSet,
  315.                 [in, out, unique] STGMEDIUM * pstgmOptions,
  316.                 [in] IContinueCallback *pcallback,
  317.                 [in]  LONG nFirstPage,
  318.                 [out] LONG *pcPagesPrinted,
  319.                 [out] LONG *pnLastPage);
  320.  
  321.         [call_as(Print)]
  322.         HRESULT __stdcall RemotePrint(
  323.                 [in] DWORD grfFlags,
  324.                 [in, out] DVTARGETDEVICE **pptd,
  325.                 [in, out] PAGESET ** pppageset,
  326.                 [in, out, unique] RemSTGMEDIUM * pstgmOptions,
  327.                 [in] IContinueCallback * pcallback,
  328.                 [in]  LONG nFirstPage,
  329.                 [out] LONG * pcPagesPrinted,
  330.                 [out] LONG * pnLastPage);
  331. }
  332. cpp_quote("#endif")
  333.  
  334.  
  335. //+---------------------------------------------------------------------------
  336. //
  337. //  Copyright (C) Microsoft Corporation, 1995 - 1996.
  338. //
  339. //  Contents:    IOleCommandTarget interface definition
  340. //
  341. //----------------------------------------------------------------------------
  342. cpp_quote("#ifndef _LPOLECOMMANDTARGET_DEFINED")
  343. cpp_quote("#define _LPOLECOMMANDTARGET_DEFINED")
  344. [
  345.         //local,
  346.         object,
  347.         uuid(b722bccb-4e68-101b-a2bc-00aa00404770),
  348.         pointer_default(unique)
  349. ]
  350. interface IOleCommandTarget : IUnknown
  351. {
  352.         typedef [unique] IOleCommandTarget *LPOLECOMMANDTARGET;
  353.  
  354.         typedef enum
  355.         {
  356.                 OLECMDF_SUPPORTED       = 0x00000001,
  357.                 OLECMDF_ENABLED         = 0x00000002,
  358.                 OLECMDF_LATCHED         = 0x00000004,
  359.                 OLECMDF_NINCHED         = 0x00000008,
  360.         } OLECMDF;
  361.  
  362.  
  363.         typedef struct _tagOLECMD {
  364.                 ULONG   cmdID;
  365.                 DWORD   cmdf;
  366.         } OLECMD;
  367.  
  368.         typedef struct _tagOLECMDTEXT{
  369.                 DWORD cmdtextf;
  370.                 ULONG cwActual;
  371.                 ULONG cwBuf;    /* size in wide chars of the buffer for text */
  372.                 [size_is(cwBuf)]
  373.                 wchar_t rgwz[]; /* Array into which callee writes the text */
  374.         } OLECMDTEXT;
  375.  
  376.         typedef enum
  377.         {
  378.                 OLECMDTEXTF_NONE        = 0,
  379.                 OLECMDTEXTF_NAME        = 1,
  380.                 OLECMDTEXTF_STATUS      = 2,
  381.         } OLECMDTEXTF;
  382.  
  383.         typedef enum
  384.         {
  385.                 OLECMDEXECOPT_DODEFAULT         = 0,
  386.                 OLECMDEXECOPT_PROMPTUSER        = 1,
  387.                 OLECMDEXECOPT_DONTPROMPTUSER    = 2,
  388.                 OLECMDEXECOPT_SHOWHELP          = 3
  389.         } OLECMDEXECOPT;
  390.  
  391. cpp_quote("/* OLECMDID_STOPDOWNLOAD is supported for QueryStatus Only */")
  392.  
  393.         typedef enum {
  394.                 OLECMDID_OPEN                           = 1,
  395.                 OLECMDID_NEW                            = 2,
  396.                 OLECMDID_SAVE                           = 3,
  397.                 OLECMDID_SAVEAS                         = 4,
  398.                 OLECMDID_SAVECOPYAS                     = 5,
  399.                 OLECMDID_PRINT                          = 6,
  400.                 OLECMDID_PRINTPREVIEW                   = 7,
  401.                 OLECMDID_PAGESETUP                      = 8,
  402.                 OLECMDID_SPELL                          = 9,
  403.                 OLECMDID_PROPERTIES                     = 10,
  404.                 OLECMDID_CUT                            = 11,
  405.                 OLECMDID_COPY                           = 12,
  406.                 OLECMDID_PASTE                          = 13,
  407.                 OLECMDID_PASTESPECIAL                   = 14,
  408.                 OLECMDID_UNDO                           = 15,
  409.                 OLECMDID_REDO                           = 16,
  410.                 OLECMDID_SELECTALL                      = 17,
  411.                 OLECMDID_CLEARSELECTION                 = 18,
  412.                 OLECMDID_ZOOM                           = 19,
  413.                 OLECMDID_GETZOOMRANGE                   = 20,
  414.                 OLECMDID_UPDATECOMMANDS                 = 21,
  415.                 OLECMDID_REFRESH                        = 22,
  416.                 OLECMDID_STOP                           = 23,
  417.                 OLECMDID_HIDETOOLBARS                   = 24,
  418.                 OLECMDID_SETPROGRESSMAX                 = 25,
  419.                 OLECMDID_SETPROGRESSPOS                 = 26,
  420.                 OLECMDID_SETPROGRESSTEXT                = 27,
  421.                 OLECMDID_SETTITLE                       = 28,
  422.                 OLECMDID_SETDOWNLOADSTATE               = 29,
  423.                 OLECMDID_STOPDOWNLOAD                   = 30
  424.         } OLECMDID;
  425.  
  426. /* error codes */
  427. cpp_quote("#define OLECMDERR_E_FIRST            (OLE_E_LAST+1)")
  428. cpp_quote("#define OLECMDERR_E_NOTSUPPORTED (OLECMDERR_E_FIRST)")
  429. cpp_quote("#define OLECMDERR_E_DISABLED         (OLECMDERR_E_FIRST+1)")
  430. cpp_quote("#define OLECMDERR_E_NOHELP           (OLECMDERR_E_FIRST+2)")
  431. cpp_quote("#define OLECMDERR_E_CANCELED         (OLECMDERR_E_FIRST+3)")
  432. cpp_quote("#define OLECMDERR_E_UNKNOWNGROUP     (OLECMDERR_E_FIRST+4)")
  433.  
  434. cpp_quote("#define MSOCMDERR_E_FIRST OLECMDERR_E_FIRST")
  435. cpp_quote("#define MSOCMDERR_E_NOTSUPPORTED OLECMDERR_E_NOTSUPPORTED")
  436. cpp_quote("#define MSOCMDERR_E_DISABLED OLECMDERR_E_DISABLED")
  437. cpp_quote("#define MSOCMDERR_E_NOHELP OLECMDERR_E_NOHELP")
  438. cpp_quote("#define MSOCMDERR_E_CANCELED OLECMDERR_E_CANCELED")
  439. cpp_quote("#define MSOCMDERR_E_UNKNOWNGROUP OLECMDERR_E_UNKNOWNGROUP")
  440.  
  441.         [input_sync]
  442.         HRESULT QueryStatus(
  443.         [in, unique] const GUID *pguidCmdGroup,
  444.                 [in] ULONG cCmds,
  445.                 [size_is(cCmds)]
  446.                 [in, out] OLECMD prgCmds[],
  447.                 [in, out, unique] OLECMDTEXT *pCmdText);
  448.  
  449.  
  450.         HRESULT Exec(
  451.         [in, unique] const GUID *pguidCmdGroup,
  452.                 [in] DWORD nCmdID,
  453.                 [in] DWORD nCmdexecopt,
  454.                 [in, unique] VARIANT *pvaIn,
  455.                 [in, out, unique] VARIANT *pvaOut);
  456. }
  457. cpp_quote("#endif")
  458.  
  459. cpp_quote("typedef enum")
  460. cpp_quote("{")
  461. cpp_quote("      OLECMDIDF_REFRESH_NORMAL     = 0,")
  462. cpp_quote("      OLECMDIDF_REFRESH_IFEXPIRED  = 1,")
  463. cpp_quote("      OLECMDIDF_REFRESH_CONTINUE   = 2,")
  464. cpp_quote("      OLECMDIDF_REFRESH_COMPLETELY = 3,")
  465. cpp_quote("} OLECMDID_REFRESHFLAG;")
  466.  
  467. cpp_quote("")
  468. cpp_quote("////////////////////////////////////////////////////////////////////////////")
  469. cpp_quote("//  Aliases to original office-compatible names")
  470. cpp_quote("#define IMsoDocument             IOleDocument")
  471. cpp_quote("#define IMsoDocumentSite         IOleDocumentSite")
  472. cpp_quote("#define IMsoView                 IOleDocumentView")
  473. cpp_quote("#define IEnumMsoView             IEnumOleDocumentViews")
  474. cpp_quote("#define IMsoCommandTarget        IOleCommandTarget")
  475. cpp_quote("#define LPMSODOCUMENT            LPOLEDOCUMENT")
  476. cpp_quote("#define LPMSODOCUMENTSITE        LPOLEDOCUMENTSITE")
  477. cpp_quote("#define LPMSOVIEW                LPOLEDOCUMENTVIEW")
  478. cpp_quote("#define LPENUMMSOVIEW            LPENUMOLEDOCUMENTVIEWS")
  479. cpp_quote("#define LPMSOCOMMANDTARGET       LPOLECOMMANDTARGET")
  480. cpp_quote("#define MSOCMD                   OLECMD")
  481. cpp_quote("#define MSOCMDTEXT               OLECMDTEXT")
  482. cpp_quote("#define IID_IMsoDocument         IID_IOleDocument")
  483. cpp_quote("#define IID_IMsoDocumentSite     IID_IOleDocumentSite")
  484. cpp_quote("#define IID_IMsoView             IID_IOleDocumentView")
  485. cpp_quote("#define IID_IEnumMsoView         IID_IEnumOleDocumentViews")
  486. cpp_quote("#define IID_IMsoCommandTarget    IID_IOleCommandTarget")
  487. cpp_quote("#define MSOCMDF_SUPPORTED OLECMDF_SUPPORTED")
  488. cpp_quote("#define MSOCMDF_ENABLED OLECMDF_ENABLED")
  489. cpp_quote("#define MSOCMDF_LATCHED OLECMDF_LATCHED")
  490. cpp_quote("#define MSOCMDF_NINCHED OLECMDF_NINCHED")
  491. cpp_quote("#define MSOCMDTEXTF_NONE OLECMDTEXTF_NONE")
  492. cpp_quote("#define MSOCMDTEXTF_NAME OLECMDTEXTF_NAME")
  493. cpp_quote("#define MSOCMDTEXTF_STATUS OLECMDTEXTF_STATUS")
  494. cpp_quote("#define MSOCMDEXECOPT_DODEFAULT OLECMDEXECOPT_DODEFAULT")
  495. cpp_quote("#define MSOCMDEXECOPT_PROMPTUSER OLECMDEXECOPT_PROMPTUSER")
  496. cpp_quote("#define MSOCMDEXECOPT_DONTPROMPTUSER OLECMDEXECOPT_DONTPROMPTUSER")
  497. cpp_quote("#define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP")
  498. cpp_quote("#define MSOCMDID_OPEN OLECMDID_OPEN")
  499. cpp_quote("#define MSOCMDID_NEW OLECMDID_NEW")
  500. cpp_quote("#define MSOCMDID_SAVE OLECMDID_SAVE")
  501. cpp_quote("#define MSOCMDID_SAVEAS OLECMDID_SAVEAS")
  502. cpp_quote("#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS")
  503. cpp_quote("#define MSOCMDID_PRINT OLECMDID_PRINT")
  504. cpp_quote("#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW")
  505. cpp_quote("#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP")
  506. cpp_quote("#define MSOCMDID_SPELL OLECMDID_SPELL")
  507. cpp_quote("#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES")
  508. cpp_quote("#define MSOCMDID_CUT OLECMDID_CUT")
  509. cpp_quote("#define MSOCMDID_COPY OLECMDID_COPY")
  510. cpp_quote("#define MSOCMDID_PASTE OLECMDID_PASTE")
  511. cpp_quote("#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL")
  512. cpp_quote("#define MSOCMDID_UNDO OLECMDID_UNDO")
  513. cpp_quote("#define MSOCMDID_REDO OLECMDID_REDO")
  514. cpp_quote("#define MSOCMDID_SELECTALL OLECMDID_SELECTALL")
  515. cpp_quote("#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION")
  516. cpp_quote("#define MSOCMDID_ZOOM OLECMDID_ZOOM")
  517. cpp_quote("#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE")
  518.  
  519. cpp_quote("EXTERN_C const GUID SID_SContainerDispatch;")
  520.  
  521.  
  522.