Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

511 lines
12 KiB

  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. local,
  47. uuid( E1AA6466-9DB4-40ba-BE03-77C38E8E60B2 ),
  48. pointer_default( unique ),
  49. //oleautomation
  50. ]
  51. interface IInternalDocWrap: IUnknown
  52. {
  53. HRESULT NotifyRevoke ( );
  54. }
  55. //
  56. // ITextStoreACPEx Interface
  57. // ITextStoreAnchorEx Interface
  58. //
  59. [
  60. object,
  61. uuid( A2DE3BC2-3D8E-11d3-81A9-F753FBE61A00 ),
  62. pointer_default( unique ),
  63. //oleautomation
  64. ]
  65. interface ITextStoreACPEx: IUnknown
  66. {
  67. HRESULT ScrollToRect (
  68. [in] LONG acpStart,
  69. [in] LONG acpEnd,
  70. [in] RECT rc,
  71. [in] DWORD dwPosition
  72. );
  73. }
  74. [
  75. object,
  76. uuid( A2DE3BC1-3D8E-11d3-81A9-F753FBE61A00 ),
  77. pointer_default( unique ),
  78. //oleautomation
  79. ]
  80. interface ITextStoreAnchorEx: IUnknown
  81. {
  82. HRESULT ScrollToRect (
  83. [in] IAnchor * pStart,
  84. [in] IAnchor * pEnd,
  85. [in] RECT rc,
  86. [in] DWORD dwPosition
  87. );
  88. }
  89. const int TS_STRF_START = 0;
  90. const int TS_STRF_MID = 1;
  91. const int TS_STRF_END = 2;
  92. //
  93. // ITextStoreACPSinkEx Interface
  94. // ITextStoreSinkAnchorEx Interface
  95. //
  96. [
  97. object,
  98. uuid( 2bdf9464-41e2-43e3-950c-a6865ba25cd4 ), pointer_default( unique ),
  99. //oleautomation
  100. ]
  101. interface ITextStoreACPSinkEx: ITextStoreACPSink
  102. {
  103. HRESULT OnDisconnect ( );
  104. }
  105. [
  106. object,
  107. uuid( 25642426-028d-4474-977b-111bb114fe3e ), pointer_default( unique ),
  108. //oleautomation
  109. ]
  110. interface ITextStoreSinkAnchorEx: ITextStoreAnchorSink
  111. {
  112. HRESULT OnDisconnect ( );
  113. }
  114. //
  115. // IAccDictionary Interface
  116. //
  117. [
  118. object,
  119. uuid( 1DC4CB5F-D737-474d-ADE9-5CCFC9BC1CC9 ),
  120. pointer_default( unique ),
  121. ]
  122. interface IAccDictionary: IUnknown
  123. {
  124. HRESULT GetLocalizedString (
  125. [in] REFGUID Term,
  126. [in] LCID lcid,
  127. [out] BSTR * pResult,
  128. [out] LCID * plcid
  129. );
  130. // return S_OK/NULL if not a recognized term (try default dictionary instead.)
  131. HRESULT GetParentTerm (
  132. [in] REFGUID Term,
  133. [out] GUID * pParentTerm
  134. );
  135. // only default dictionary should return NULL for this.
  136. HRESULT GetMnemonicString (
  137. [in] REFGUID Term,
  138. [out] BSTR * pResult
  139. );
  140. // non-localizable string
  141. HRESULT LookupMnemonicTerm (
  142. [in] BSTR bstrMnemonic,
  143. [out] GUID * pTerm
  144. );
  145. // convert term->mnemonic
  146. // single term at a time, or allow it to deep-parse? (how to let caller know how far it got in string?)
  147. HRESULT ConvertValueToString (
  148. [in] REFGUID Term,
  149. [in] LCID lcid,
  150. [in] VARIANT varValue,
  151. [out] BSTR * pbstrResult,
  152. [out] LCID * plcid
  153. );
  154. }
  155. //
  156. // IVersionInfo Interface
  157. //
  158. [
  159. object,
  160. uuid( 401518EC-DB00-4611-9B29-2A0E4B9AFA85 ),
  161. pointer_default( unique ),
  162. ]
  163. interface IVersionInfo: IUnknown
  164. {
  165. HRESULT GetSubcomponentCount(
  166. [in] ULONG ulSub,
  167. [out] ULONG * ulCount
  168. );
  169. HRESULT GetImplementationID (
  170. [in] ULONG ulSub,
  171. [out] GUID * implid
  172. );
  173. HRESULT GetBuildVersion (
  174. [in] ULONG ulSub,
  175. [out] DWORD * pdwMajor,
  176. [out] DWORD * pdwMinor
  177. );
  178. // Expect string of the form "Company suite component version"
  179. // for human consumption only - not expected to be parsed.
  180. HRESULT GetComponentDescription (
  181. [in] ULONG ulSub,
  182. [out] BSTR * pImplStr
  183. );
  184. // Implementation can put any useful string here. (eg. internal object state)
  185. HRESULT GetInstanceDescription (
  186. [in] ULONG ulSub,
  187. [out] BSTR * pImplStr
  188. );
  189. // Other strings - to eg. list suppd interfaces?
  190. }
  191. //
  192. // ICoCreateLocally Interface
  193. // ICoCreatedLocally Interface
  194. //
  195. [
  196. object,
  197. uuid( 03DE00AA-F272-41e3-99CB-03C5E8114EA0 ),
  198. pointer_default( unique ),
  199. ]
  200. interface ICoCreateLocally: IUnknown
  201. {
  202. HRESULT CoCreateLocally(
  203. [in] REFCLSID rclsid,
  204. [in] DWORD dwClsContext,
  205. [in] REFIID riid,
  206. [out, iid_is(riid)] IUnknown ** punk,
  207. [in] REFIID riidParam,
  208. [in, iid_is(riidParam)] IUnknown * punkParam,
  209. [in] VARIANT varParam
  210. );
  211. }
  212. [
  213. object,
  214. uuid( 0A53EB6C-1908-4742-8CFF-2CEE2E93F94C ),
  215. pointer_default( unique ),
  216. ]
  217. interface ICoCreatedLocally: IUnknown
  218. {
  219. HRESULT LocalInit(
  220. [in] IUnknown * punkLocalObject,
  221. [in] REFIID riidParam,
  222. [in, iid_is(riidParam)] IUnknown * punkParam,
  223. [in] VARIANT varParam
  224. );
  225. }
  226. //
  227. // AccStore Interface
  228. //
  229. [
  230. object,
  231. uuid(E2CD4A63-2B72-4D48-B739-95E4765195BA),
  232. helpstring("IAccStore Interface"),
  233. pointer_default(unique)
  234. ]
  235. interface IAccStore : IUnknown
  236. {
  237. HRESULT Register (
  238. [in] REFIID riid,
  239. [in,iid_is(riid)] IUnknown * punk
  240. );
  241. HRESULT Unregister (
  242. [in] IUnknown * punk
  243. );
  244. HRESULT GetDocuments (
  245. [out] IEnumUnknown ** enumUnknown
  246. );
  247. HRESULT LookupByHWND (
  248. [in] HWND hWnd,
  249. [in] REFIID riid,
  250. [out,iid_is(riid)] IUnknown ** ppunk
  251. );
  252. HRESULT LookupByPoint (
  253. [in] POINT pt,
  254. [in] REFIID riid,
  255. [out,iid_is(riid)] IUnknown ** ppunk
  256. );
  257. HRESULT OnDocumentFocus (
  258. [in] IUnknown * punk
  259. );
  260. HRESULT GetFocused (
  261. [in] REFIID riid,
  262. [out,iid_is(riid)] IUnknown ** ppunk
  263. );
  264. };
  265. //
  266. // IAccServerDocMgr Interface
  267. //
  268. [
  269. object,
  270. uuid(AD7C73CF-6DD5-4855-ABC2-B04BAD5B9153),
  271. helpstring("IAccServerDocMgr Interface"),
  272. pointer_default(unique)
  273. ]
  274. interface IAccServerDocMgr : IUnknown
  275. {
  276. HRESULT NewDocument (
  277. [in] REFIID riid,
  278. [in, iid_is(riid)] IUnknown * punk );
  279. HRESULT RevokeDocument (
  280. [in] IUnknown * punk
  281. );
  282. HRESULT OnDocumentFocus (
  283. [in] IUnknown * punk
  284. );
  285. };
  286. //
  287. // AccClientDocMgr Interface
  288. //
  289. [
  290. object,
  291. uuid(4C896039-7B6D-49e6-A8C1-45116A98292B),
  292. helpstring("IAccClientDocMgr Interface"),
  293. pointer_default(unique)
  294. ]
  295. interface IAccClientDocMgr : IUnknown
  296. {
  297. HRESULT GetDocuments (
  298. [out] IEnumUnknown ** enumUnknown
  299. );
  300. HRESULT LookupByHWND (
  301. [in] HWND hWnd,
  302. [in] REFIID riid,
  303. [out,iid_is(riid)] IUnknown ** ppunk
  304. );
  305. HRESULT LookupByPoint (
  306. [in] POINT pt,
  307. [in] REFIID riid,
  308. [out,iid_is(riid)] IUnknown ** ppunk
  309. );
  310. HRESULT GetFocused (
  311. [in] REFIID riid,
  312. [out,iid_is(riid)] IUnknown ** ppunk
  313. );
  314. };
  315. //
  316. // IDocWrap Interface
  317. //
  318. [
  319. object,
  320. uuid(DCD285FE-0BE0-43BD-99C9-AAAEC513C555),
  321. helpstring("IDocWrap Interface"),
  322. pointer_default(unique)
  323. ]
  324. interface IDocWrap : IUnknown
  325. {
  326. HRESULT SetDoc(
  327. [in] REFIID riid,
  328. [in, iid_is(riid)] IUnknown * punk
  329. );
  330. HRESULT GetWrappedDoc (
  331. [in] REFIID riid,
  332. [out, iid_is(riid)] IUnknown ** ppunk
  333. );
  334. };
  335. //
  336. // IClonableWrapper Interface
  337. //
  338. [
  339. object,
  340. uuid(B33E75FF-E84C-4dca-A25C-33B8DC003374),
  341. helpstring("IClonableWrapper Interface"),
  342. pointer_default(unique)
  343. ]
  344. interface IClonableWrapper : IUnknown
  345. {
  346. HRESULT CloneNewWrapper(
  347. [in] REFIID riid,
  348. [out, iid_is(riid)] void ** ppv
  349. );
  350. };
  351. //
  352. //
  353. //
  354. [
  355. uuid(150E2D7A-DAC1-4582-947D-2A8FD78B82CD),
  356. version(1.0),
  357. helpstring("MSAAText 1.0 Type Library")
  358. ]
  359. library MSAATEXTLib
  360. {
  361. importlib("stdole2.tlb");
  362. //
  363. // MSAAControl CoClass
  364. //
  365. [
  366. uuid(08cd963f-7a3e-4f5c-9bd8-d692bb043c5b),
  367. helpstring("MSAAControl Class")
  368. ]
  369. coclass MSAAControl
  370. {
  371. [default] interface ITfMSAAControl;
  372. };
  373. //
  374. // AccStore CoClass
  375. //
  376. [
  377. uuid(5440837F-4BFF-4AE5-A1B1-7722ECC6332A),
  378. helpstring("AccStore Class")
  379. ]
  380. coclass AccStore
  381. {
  382. [default] interface IAccStore;
  383. };
  384. //
  385. // AccDictionary CoClass
  386. //
  387. [
  388. uuid(6572EE16-5FE5-4331-BB6D-76A49C56E423),
  389. helpstring("AccDictionary Class")
  390. ]
  391. coclass AccDictionary
  392. {
  393. [default] interface IAccDictionary;
  394. };
  395. //
  396. // AccServerDocMgr CoClass
  397. //
  398. [
  399. uuid(6089A37E-EB8A-482D-BD6F-F9F46904D16D),
  400. helpstring("AccServerDocMgr Class")
  401. ]
  402. coclass AccServerDocMgr
  403. {
  404. [default] interface IAccServerDocMgr;
  405. };
  406. //
  407. // AccClientDocMgr CoClass
  408. //
  409. [
  410. uuid(FC48CC30-4F3E-4fa1-803B-AD0E196A83B1),
  411. helpstring("AccClientDocMgr Class")
  412. ]
  413. coclass AccClientDocMgr
  414. {
  415. [default] interface IAccClientDocMgr;
  416. };
  417. //
  418. // DocWrap CoClass
  419. //
  420. [
  421. uuid(BF426F7E-7A5E-44D6-830C-A390EA9462A3),
  422. helpstring("DocWrap Class")
  423. ]
  424. coclass DocWrap
  425. {
  426. [default] interface IDocWrap;
  427. };
  428. };
  429. cpp_quote("DEFINE_GUID(IID_ITextStoreACP, 0x28888fe3,0xc2a0,0x483a,0xa3,0xea,0x8c,0xb1,0xce,0x51,0xff,0x3d);")
  430. cpp_quote("DEFINE_GUID(IID_ITextStoreAnchor, 0x9b2077b0,0x5f18,0x4dec,0xbe,0xe9,0x3c,0xc7,0x22,0xf5,0xdf,0xe0);")
  431. cpp_quote("DEFINE_GUID(IID_IAnchor, 0x0feb7e34,0x5a60,0x4356,0x8e,0xf7,0xab,0xde,0xc2,0xff,0x7c,0xf8);")
  432. cpp_quote("DEFINE_GUID(IID_ITextStoreAnchorSink, 0xaa80e905,0x2021,0x11d2,0x93,0xe0,0x00,0x60,0xb0,0x67,0xb8,0x6e);")
  433. cpp_quote("DEFINE_GUID(IID_ITextStoreACPSink, 0x22d44c94,0xa419,0x4542,0xa2,0x72,0xae,0x26,0x09,0x3e,0xce,0xcf);")