DocObj.Idl
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:21k
源码类别:

模拟服务器

开发平台:

C/C++

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