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

模拟服务器

开发平台:

C/C++

  1. // MSAAText.idl : IDL source for MSAAText.dll
  2. //
  3. // This file will be processed by the MIDL tool to
  4. // produce the type library (MSAAText.tlb) and marshalling code.
  5. cpp_quote( "DEFINE_GUID( IID_ITfMSAAControl, 0xb5f8fb3b,0x393f,0x4f7c,0x84,0xcb,0x50,0x49,0x24,0xc2,0x70,0x5a);" )
  6. cpp_quote( "DEFINE_GUID( IID_IInternalDocWrap, 0xE1AA6466,0x9DB4,0x40ba,0xBE,0x03,0x77,0xC3,0x8E,0x8E,0x60,0xB2);" )
  7. cpp_quote( "DEFINE_GUID( IID_ITextStoreACPEx, 0xA2DE3BC2,0x3D8E,0x11d3,0x81,0xA9,0xF7,0x53,0xFB,0xE6,0x1A,0x00);" )
  8. cpp_quote( "DEFINE_GUID( IID_ITextStoreAnchorEx, 0xA2DE3BC1,0x3D8E,0x11d3,0x81,0xA9,0xF7,0x53,0xFB,0xE6,0x1A,0x00);" )
  9. cpp_quote( "DEFINE_GUID( IID_ITextStoreACPSinkEx, 0x2bdf9464,0x41e2,0x43e3,0x95,0x0c,0xa6,0x86,0x5b,0xa2,0x5c,0xd4);" )
  10. cpp_quote( "DEFINE_GUID( IID_ITextStoreSinkAnchorEx, 0x25642426,0x028d,0x4474,0x97,0x7b,0x11,0x1b,0xb1,0x14,0xfe,0x3e);" )
  11. cpp_quote( "DEFINE_GUID( IID_IAccDictionary, 0x1DC4CB5F,0xD737,0x474d,0xAD,0xE9,0x5C,0xCF,0xC9,0xBC,0x1C,0xC9);" )
  12. cpp_quote( "DEFINE_GUID( IID_IVersionInfo, 0x401518EC,0xDB00,0x4611,0x9B,0x29,0x2A,0x0E,0x4B,0x9A,0xFA,0x85);" )
  13. cpp_quote( "DEFINE_GUID( IID_ICoCreateLocally, 0x03DE00AA,0xF272,0x41e3,0x99,0xCB,0x03,0xC5,0xE8,0x11,0x4E,0xA0);" )
  14. cpp_quote( "DEFINE_GUID( IID_ICoCreatedLocally, 0x0A53EB6C,0x1908,0x4742,0x8C,0xFF,0x2C,0xEE,0x2E,0x93,0xF9,0x4C);" )
  15. cpp_quote( "DEFINE_GUID( IID_IAccStore, 0xE2CD4A63,0x2B72,0x4D48,0xB7,0x39,0x95,0xE4,0x76,0x51,0x95,0xBA);" )
  16. cpp_quote( "DEFINE_GUID( IID_IAccServerDocMgr, 0xAD7C73CF,0x6DD5,0x4855,0xAB,0xC2,0xB0,0x4B,0xAD,0x5B,0x91,0x53);" )
  17. cpp_quote( "DEFINE_GUID( IID_IAccClientDocMgr, 0x4C896039,0x7B6D,0x49e6,0xA8,0xC1,0x45,0x11,0x6A,0x98,0x29,0x2B);" )
  18. cpp_quote( "DEFINE_GUID( IID_IDocWrap, 0xDCD285FE,0x0BE0,0x43BD,0x99,0xC9,0xAA,0xAE,0xC5,0x13,0xC5,0x55);" )
  19. cpp_quote( "DEFINE_GUID( IID_IClonableWrapper, 0xB33E75FF,0xE84C,0x4dca,0xA2,0x5C,0x33,0xB8,0xDC,0x00,0x33,0x74);" )
  20. cpp_quote( "DEFINE_GUID( LIBID_MSAATEXTLib, 0x150E2D7A,0xDAC1,0x4582,0x94,0x7D,0x2A,0x8F,0xD7,0x8B,0x82,0xCD);" )
  21. cpp_quote( "DEFINE_GUID( CLSID_MSAAControl, 0x08cd963f,0x7a3e,0x4f5c,0x9b,0xd8,0xd6,0x92,0xbb,0x04,0x3c,0x5b );")
  22. cpp_quote( "DEFINE_GUID( CLSID_AccStore, 0x5440837F,0x4BFF,0x4AE5,0xA1,0xB1,0x77,0x22,0xEC,0xC6,0x33,0x2A );" )
  23. cpp_quote( "DEFINE_GUID( CLSID_AccDictionary, 0x6572EE16,0x5FE5,0x4331,0xBB,0x6D,0x76,0xA4,0x9C,0x56,0xE4,0x23 );" )
  24. cpp_quote( "DEFINE_GUID( CLSID_AccServerDocMgr, 0x6089A37E,0xEB8A,0x482D,0xBD,0x6F,0xF9,0xF4,0x69,0x04,0xD1,0x6D );" )
  25. cpp_quote( "DEFINE_GUID( CLSID_AccClientDocMgr, 0xFC48CC30,0x4F3E,0x4fa1,0x80,0x3B,0xAD,0x0E,0x19,0x6A,0x83,0xB1 );" )
  26. cpp_quote( "DEFINE_GUID( CLSID_DocWrap, 0xBF426F7E,0x7A5E,0x44D6,0x83,0x0C,0xA3,0x90,0xEA,0x94,0x62,0xA3 );" )
  27. import "oaidl.idl";
  28. import "ocidl.idl";
  29. import "objidl.idl";
  30. import "textstor.idl";
  31. [
  32.     object,
  33.     uuid(b5f8fb3b-393f-4f7c-84cb-504924c2705a),
  34.     pointer_default(unique)
  35. ]
  36. interface ITfMSAAControl : IUnknown
  37. {
  38.     HRESULT SystemEnableMSAA();
  39.     HRESULT SystemDisableMSAA();
  40. };
  41. // Private interface used by the AccServerDocMgr to notify the DocWrapper that
  42. // the document has been revoked.
  43. // Obtained by QI'ing any wrapped interface from the wrapper.
  44. [
  45.     object,
  46.     uuid( E1AA6466-9DB4-40ba-BE03-77C38E8E60B2 ),
  47.     pointer_default( unique ),
  48.     //oleautomation
  49. ]
  50. interface IInternalDocWrap: IUnknown
  51. {
  52. HRESULT NotifyRevoke ( );
  53. }
  54. //
  55. // ITextStoreACPEx Interface
  56. // ITextStoreAnchorEx Interface
  57. //
  58. [
  59.     object,
  60.     uuid( A2DE3BC2-3D8E-11d3-81A9-F753FBE61A00 ),
  61.     pointer_default( unique ),
  62.     //oleautomation
  63. ]
  64. interface ITextStoreACPEx: IUnknown
  65. {
  66. HRESULT ScrollToRect (
  67. [in] LONG acpStart,
  68. [in] LONG acpEnd,
  69. [in] RECT rc,
  70. [in] DWORD dwPosition
  71. );
  72. }
  73. [
  74.     object,
  75.     uuid( A2DE3BC1-3D8E-11d3-81A9-F753FBE61A00 ),
  76.     pointer_default( unique ),
  77.     //oleautomation
  78. ]
  79. interface ITextStoreAnchorEx: IUnknown
  80. {
  81. HRESULT ScrollToRect (
  82. [in] IAnchor * pStart,
  83. [in] IAnchor * pEnd,
  84. [in] RECT rc,
  85. [in] DWORD dwPosition
  86. );
  87. }
  88. const int TS_STRF_START = 0;
  89. const int TS_STRF_MID   = 1;
  90. const int TS_STRF_END   = 2;
  91. //
  92. // ITextStoreACPSinkEx Interface
  93. // ITextStoreSinkAnchorEx Interface
  94. //
  95. [
  96. object,
  97. uuid( 2bdf9464-41e2-43e3-950c-a6865ba25cd4 ), pointer_default( unique ),
  98. //oleautomation
  99. ]
  100. interface ITextStoreACPSinkEx: ITextStoreACPSink
  101. {
  102. HRESULT OnDisconnect ( );
  103. }
  104. [
  105. object,
  106. uuid( 25642426-028d-4474-977b-111bb114fe3e ), pointer_default( unique ),
  107. //oleautomation
  108. ]
  109. interface ITextStoreSinkAnchorEx: ITextStoreAnchorSink
  110. {
  111. HRESULT OnDisconnect ( );
  112. }
  113. //
  114. // IAccDictionary Interface
  115. //
  116. [
  117. object,
  118. uuid( 1DC4CB5F-D737-474d-ADE9-5CCFC9BC1CC9 ),
  119. pointer_default( unique ),
  120. ]
  121. interface IAccDictionary: IUnknown
  122. {
  123. HRESULT GetLocalizedString (
  124. [in] REFGUID Term,
  125. [in] LCID lcid,
  126. [out] BSTR * pResult,
  127. [out] LCID * plcid
  128. );
  129. // return S_OK/NULL if not a recognized term (try default dictionary instead.)
  130. HRESULT GetParentTerm (
  131. [in] REFGUID Term,
  132. [out] GUID * pParentTerm
  133. );
  134. // only default dictionary should return NULL for this.
  135. HRESULT GetMnemonicString (
  136. [in] REFGUID Term,
  137. [out] BSTR * pResult
  138. );
  139. // non-localizable string 
  140. HRESULT LookupMnemonicTerm (
  141. [in] BSTR bstrMnemonic,
  142. [out] GUID * pTerm
  143. );
  144. // convert term->mnemonic
  145. // single term at a time, or allow it to deep-parse? (how to let caller know how far it got in string?)
  146. HRESULT ConvertValueToString (
  147. [in] REFGUID Term,
  148. [in] LCID lcid,
  149. [in] VARIANT varValue,
  150. [out] BSTR * pbstrResult,
  151. [out] LCID * plcid
  152. );
  153. }
  154. //
  155. // IVersionInfo Interface
  156. //
  157. [
  158. object,
  159. uuid( 401518EC-DB00-4611-9B29-2A0E4B9AFA85 ),
  160. pointer_default( unique ),
  161. ]
  162. interface IVersionInfo: IUnknown
  163. {
  164. HRESULT GetSubcomponentCount(
  165. [in] ULONG ulSub,
  166. [out] ULONG * ulCount
  167. );
  168. HRESULT GetImplementationID (
  169. [in] ULONG ulSub,
  170. [out] GUID * implid
  171. );
  172. HRESULT GetBuildVersion (
  173. [in] ULONG ulSub,
  174. [out] DWORD * pdwMajor,
  175. [out] DWORD * pdwMinor
  176. );
  177. // Expect string of the form "Company suite component version"
  178. // for human consumption only - not expected to be parsed.
  179. HRESULT GetComponentDescription (
  180. [in] ULONG ulSub,
  181. [out] BSTR * pImplStr
  182. );
  183. // Implementation can put any useful string here. (eg. internal object state)
  184. HRESULT GetInstanceDescription (
  185. [in] ULONG ulSub,
  186. [out] BSTR * pImplStr
  187. );
  188. // Other strings - to eg. list suppd interfaces?
  189. }
  190. //
  191. // ICoCreateLocally Interface
  192. // ICoCreatedLocally Interface
  193. //
  194. [
  195. object,
  196. uuid( 03DE00AA-F272-41e3-99CB-03C5E8114EA0 ),
  197. pointer_default( unique ),
  198. ]
  199. interface ICoCreateLocally: IUnknown
  200. {
  201. HRESULT CoCreateLocally(
  202. [in] REFCLSID rclsid,
  203. [in] DWORD dwClsContext,
  204. [in] REFIID riid,
  205. [out, iid_is(riid)] IUnknown ** punk,
  206. [in] REFIID riidParam,
  207. [in, iid_is(riidParam)] IUnknown * punkParam,
  208. [in] VARIANT varParam
  209. );
  210. }
  211. [
  212. object,
  213. uuid( 0A53EB6C-1908-4742-8CFF-2CEE2E93F94C ),
  214. pointer_default( unique ),
  215. ]
  216. interface ICoCreatedLocally: IUnknown
  217. {
  218. HRESULT LocalInit(
  219. [in] IUnknown * punkLocalObject,
  220. [in] REFIID riidParam,
  221. [in, iid_is(riidParam)] IUnknown * punkParam,
  222. [in] VARIANT varParam
  223. );
  224. }
  225. //
  226. // AccStore Interface
  227. //
  228. [
  229. object,
  230. uuid(E2CD4A63-2B72-4D48-B739-95E4765195BA),
  231. helpstring("IAccStore Interface"),
  232. pointer_default(unique)
  233. ]
  234. interface IAccStore : IUnknown
  235. {
  236. HRESULT Register (
  237. [in] REFIID riid,
  238. [in,iid_is(riid)] IUnknown * punk
  239. );
  240. HRESULT Unregister (
  241. [in] IUnknown * punk
  242. );
  243. HRESULT GetDocuments (
  244. [out] IEnumUnknown ** enumUnknown
  245. );
  246. HRESULT LookupByHWND (
  247. [in] HWND hWnd,
  248. [in] REFIID riid,
  249. [out,iid_is(riid)] IUnknown ** ppunk
  250. );
  251. HRESULT LookupByPoint (
  252. [in] POINT pt,
  253. [in] REFIID riid,
  254. [out,iid_is(riid)] IUnknown ** ppunk
  255. );
  256. HRESULT OnDocumentFocus (
  257.     [in] IUnknown * punk
  258. );
  259. HRESULT GetFocused (
  260. [in] REFIID riid,
  261. [out,iid_is(riid)] IUnknown ** ppunk
  262. );
  263. };
  264. //
  265. // IAccServerDocMgr Interface
  266. //
  267. [
  268. object,
  269. uuid(AD7C73CF-6DD5-4855-ABC2-B04BAD5B9153),
  270. helpstring("IAccServerDocMgr Interface"),
  271. pointer_default(unique)
  272. ]
  273. interface IAccServerDocMgr : IUnknown
  274. {
  275. HRESULT NewDocument (
  276. [in] REFIID riid,
  277. [in, iid_is(riid)] IUnknown * punk );
  278. HRESULT RevokeDocument (
  279. [in] IUnknown * punk
  280. );
  281. HRESULT OnDocumentFocus (
  282. [in] IUnknown * punk
  283. );
  284. };
  285. //
  286. // AccClientDocMgr Interface
  287. //
  288. [
  289. object,
  290. uuid(4C896039-7B6D-49e6-A8C1-45116A98292B),
  291. helpstring("IAccClientDocMgr Interface"),
  292. pointer_default(unique)
  293. ]
  294. interface IAccClientDocMgr : IUnknown
  295. {
  296. HRESULT GetDocuments (
  297. [out] IEnumUnknown ** enumUnknown
  298. );
  299. HRESULT LookupByHWND (
  300. [in] HWND hWnd,
  301. [in] REFIID riid,
  302. [out,iid_is(riid)] IUnknown ** ppunk
  303. );
  304. HRESULT LookupByPoint (
  305. [in] POINT pt,
  306. [in] REFIID riid,
  307. [out,iid_is(riid)] IUnknown ** ppunk
  308. );
  309. HRESULT GetFocused (
  310. [in] REFIID riid,
  311. [out,iid_is(riid)] IUnknown ** ppunk
  312. );
  313. };
  314. //
  315. // IDocWrap Interface
  316. //
  317. [
  318. object,
  319. uuid(DCD285FE-0BE0-43BD-99C9-AAAEC513C555),
  320. helpstring("IDocWrap Interface"),
  321. pointer_default(unique)
  322. ]
  323. interface IDocWrap : IUnknown
  324. {
  325. HRESULT SetDoc(
  326. [in] REFIID riid,
  327. [in, iid_is(riid)] IUnknown * punk
  328. );
  329. HRESULT GetWrappedDoc (
  330. [in] REFIID riid,
  331. [out, iid_is(riid)] IUnknown ** ppunk
  332. );
  333. };
  334. //
  335. // IClonableWrapper Interface
  336. //
  337. [
  338. object,
  339. uuid(B33E75FF-E84C-4dca-A25C-33B8DC003374),
  340. helpstring("IClonableWrapper Interface"),
  341. pointer_default(unique)
  342. ]
  343. interface IClonableWrapper : IUnknown
  344. {
  345. HRESULT CloneNewWrapper(
  346. [in] REFIID riid,
  347. [out, iid_is(riid)] void ** ppv
  348. );
  349. };
  350. //
  351. //
  352. //
  353. [
  354. uuid(150E2D7A-DAC1-4582-947D-2A8FD78B82CD),
  355. version(1.0),
  356. helpstring("MSAAText 1.0 Type Library")
  357. ]
  358. library MSAATEXTLib
  359. {
  360. importlib("stdole2.tlb");
  361. //
  362. // MSAAControl CoClass
  363. //
  364. [
  365. uuid(08cd963f-7a3e-4f5c-9bd8-d692bb043c5b),
  366. helpstring("MSAAControl Class")
  367. ]
  368. coclass MSAAControl
  369. {
  370. [default] interface ITfMSAAControl;
  371. };
  372. //
  373. // AccStore CoClass
  374. //
  375. [
  376. uuid(5440837F-4BFF-4AE5-A1B1-7722ECC6332A),
  377. helpstring("AccStore Class")
  378. ]
  379. coclass AccStore
  380. {
  381. [default] interface IAccStore;
  382. };
  383. //
  384. // AccDictionary CoClass
  385. //
  386. [
  387. uuid(6572EE16-5FE5-4331-BB6D-76A49C56E423),
  388. helpstring("AccDictionary Class")
  389. ]
  390. coclass AccDictionary
  391. {
  392. [default] interface IAccDictionary;
  393. };
  394. //
  395. // AccServerDocMgr CoClass
  396. //
  397. [
  398. uuid(6089A37E-EB8A-482D-BD6F-F9F46904D16D),
  399. helpstring("AccServerDocMgr Class")
  400. ]
  401. coclass AccServerDocMgr
  402. {
  403. [default] interface IAccServerDocMgr;
  404. };
  405. //
  406. // AccClientDocMgr CoClass
  407. //
  408. [
  409. uuid(FC48CC30-4F3E-4fa1-803B-AD0E196A83B1),
  410. helpstring("AccClientDocMgr Class")
  411. ]
  412. coclass AccClientDocMgr
  413. {
  414. [default] interface IAccClientDocMgr;
  415. };
  416. //
  417. // DocWrap CoClass
  418. //
  419. [
  420. uuid(BF426F7E-7A5E-44D6-830C-A390EA9462A3),
  421. helpstring("DocWrap Class")
  422. ]
  423. coclass DocWrap
  424. {
  425. [default] interface IDocWrap;
  426. };
  427. };
  428. cpp_quote("DEFINE_GUID(IID_ITextStoreACP,               0x28888fe3,0xc2a0,0x483a,0xa3,0xea,0x8c,0xb1,0xce,0x51,0xff,0x3d);")
  429. cpp_quote("DEFINE_GUID(IID_ITextStoreAnchor,            0x9b2077b0,0x5f18,0x4dec,0xbe,0xe9,0x3c,0xc7,0x22,0xf5,0xdf,0xe0);")
  430. cpp_quote("DEFINE_GUID(IID_IAnchor,                     0x0feb7e34,0x5a60,0x4356,0x8e,0xf7,0xab,0xde,0xc2,0xff,0x7c,0xf8);")
  431. cpp_quote("DEFINE_GUID(IID_ITextStoreAnchorSink,        0xaa80e905,0x2021,0x11d2,0x93,0xe0,0x00,0x60,0xb0,0x67,0xb8,0x6e);")
  432. cpp_quote("DEFINE_GUID(IID_ITextStoreACPSink,           0x22d44c94,0xa419,0x4542,0xa2,0x72,0xae,0x26,0x09,0x3e,0xce,0xcf);")