IWebView.idl 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239
  1. /*
  2. * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
  3. *
  4. * Redistribution and use in source and binary forms, with or without
  5. * modification, are permitted provided that the following conditions
  6. * are met:
  7. * 1. Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * 2. Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. *
  13. * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
  14. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  15. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  16. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR
  17. * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  18. * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  19. * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
  20. * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
  21. * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  22. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  23. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  24. */
  25. cpp_quote("/* identifiers for commands that can be called by the webview's frame */")
  26. cpp_quote("enum WebViewCmd { Cut = 100, Copy, Paste, ForwardDelete, SelectAll, Undo, Redo };")
  27. cpp_quote("#define WebViewProgressStartedNotification TEXT(\"WebProgressStartedNotification\")")
  28. cpp_quote("#define WebViewProgressEstimateChangedNotification TEXT(\"WebProgressEstimateChangedNotification\")")
  29. cpp_quote("#define WebViewProgressFinishedNotification TEXT(\"WebProgressFinishedNotification\")")
  30. cpp_quote("#define WebViewDidChangeSelectionNotification TEXT(\"WebViewDidChangeSelectionNotification\")")
  31. #ifndef DO_NO_IMPORTS
  32. import "oaidl.idl";
  33. import "ocidl.idl";
  34. import "IWebUIDelegate.idl";
  35. import "IWebURLResponse.idl";
  36. import "IWebResourceLoadDelegate.idl";
  37. import "IWebDownload.idl";
  38. import "IWebFrameLoadDelegate.idl";
  39. import "IWebPolicyDelegate.idl";
  40. import "IWebBackForwardList.idl";
  41. import "IWebHistoryItem.idl";
  42. import "IWebPreferences.idl";
  43. import "DOMCSS.idl";
  44. import "IWebUndoManager.idl";
  45. import "IWebEditingDelegate.idl";
  46. import "DOMRange.idl";
  47. #endif
  48. interface IDOMCSSStyleDeclaration;
  49. interface IDOMDocument;
  50. interface IDOMElement;
  51. interface IDOMNode;
  52. interface IDOMRange;
  53. interface IWebArchive;
  54. interface IWebBackForwardList;
  55. interface IWebDataSource;
  56. interface IWebFrame;
  57. interface IWebFrameView;
  58. interface IWebHistoryItem;
  59. interface IWebPreferences;
  60. interface IWebScriptObject;
  61. interface IWebUIDelegate;
  62. interface IWebResourceLoadDelegate;
  63. interface IWebDownloadDelegate;
  64. interface IWebEditingDelegate;
  65. interface IWebFrameLoadDelegate;
  66. interface IWebPolicyDelegate;
  67. interface IWebDocumentView;
  68. interface IWebDocumentRepresentation;
  69. interface IWebUndoManager;
  70. /* These are the keys for the WebElementPropertyBag */
  71. const LPCOLESTR WebElementDOMNodeKey = L"WebElementDOMNodeKey";
  72. const LPCOLESTR WebElementFrameKey = L"WebElementFrameKey";
  73. const LPCOLESTR WebElementImageAltStringKey = L"WebElementImageAltStringKey";
  74. const LPCOLESTR WebElementImageKey = L"WebElementImageKey";
  75. const LPCOLESTR WebElementImageRectKey = L"WebElementImageRectKey";
  76. const LPCOLESTR WebElementImageURLKey = L"WebElementImageURLKey";
  77. const LPCOLESTR WebElementIsSelectedKey = L"WebElementIsSelectedKey";
  78. const LPCOLESTR WebElementMediaURLKey = L"WebElementMediaURLKey";
  79. const LPCOLESTR WebElementSpellingToolTipKey = L"WebElementSpellingToolTipKey";
  80. const LPCOLESTR WebElementTitleKey = L"WebElementTitleKey";
  81. const LPCOLESTR WebElementLinkURLKey = L"WebElementLinkURLKey";
  82. const LPCOLESTR WebElementLinkTargetFrameKey = L"WebElementLinkTargetFrameKey";
  83. const LPCOLESTR WebElementLinkTitleKey = L"WebElementLinkTitleKey";
  84. const LPCOLESTR WebElementLinkLabelKey = L"WebElementLinkLabelKey";
  85. const LPCOLESTR WebElementIsContentEditableKey = L"WebElementIsContentEditableKey";
  86. /*!
  87. @class IEnumTextMatches
  88. */
  89. [
  90. object,
  91. oleautomation,
  92. uuid(C0CDE63A-5ED1-453f-B937-93B1A61AD3B3),
  93. pointer_default(unique)
  94. ]
  95. interface IEnumTextMatches : IUnknown
  96. {
  97. HRESULT Next(ULONG celt, RECT* rect, ULONG* pceltFetched);
  98. HRESULT Skip(ULONG celt);
  99. HRESULT Reset(void);
  100. HRESULT Clone(IEnumTextMatches** ppenum);
  101. };
  102. /*!
  103. @class WebView
  104. WebView manages the interaction between WebFrameViews and WebDataSources. Modification
  105. of the policies and behavior of the WebKit is largely managed by WebViews and their
  106. delegates.
  107. <p>
  108. Typical usage:
  109. </p>
  110. <pre>
  111. WebView *webView;
  112. WebFrame *mainFrame;
  113. webView = [[WebView alloc] initWithFrame: NSMakeRect (0,0,640,480)];
  114. mainFrame = [webView mainFrame];
  115. [mainFrame loadRequest:request];
  116. </pre>
  117. WebViews have the following delegates: WebUIDelegate, WebResourceLoadDelegate,
  118. WebFrameLoadDelegate, and WebPolicyDelegate.
  119. WebKit depends on the WebView's WebUIDelegate for all window
  120. related management, including opening new windows and controlling the user interface
  121. elements in those windows.
  122. WebResourceLoadDelegate is used to monitor the progress of resources as they are
  123. loaded. This delegate may be used to present users with a progress monitor.
  124. The WebFrameLoadDelegate receives messages when the URL in a WebFrame is
  125. changed.
  126. WebView's WebPolicyDelegate can make determinations about how
  127. content should be handled, based on the resource's URL and MIME type.
  128. @interface WebView : NSView
  129. */
  130. [
  131. object,
  132. oleautomation,
  133. hidden,
  134. uuid(174BBEFD-058E-49c7-91DF-6F110AA4AC28),
  135. pointer_default(unique)
  136. ]
  137. interface IWebView : IUnknown
  138. {
  139. /*!
  140. @method canShowMIMEType:
  141. @abstract Checks if the WebKit can show content of a certain MIME type.
  142. @param MIMEType The MIME type to check.
  143. @result YES if the WebKit can show content with MIMEtype.
  144. + (BOOL)canShowMIMEType:(NSString *)MIMEType;
  145. */
  146. HRESULT canShowMIMEType([in] BSTR mimeType, [out, retval] BOOL* canShow);
  147. /*!
  148. @method canShowMIMETypeAsHTML:
  149. @abstract Checks if the the MIME type is a type that the WebKit will interpret as HTML.
  150. @param MIMEType The MIME type to check.
  151. @result YES if the MIMEtype in an HTML type.
  152. + (BOOL)canShowMIMETypeAsHTML:(NSString *)MIMEType;
  153. */
  154. HRESULT canShowMIMETypeAsHTML([in] BSTR mimeType, [out, retval] BOOL* canShow);
  155. /*!
  156. @method MIMETypesShownAsHTML
  157. @result Returns an array of NSStrings that describe the MIME types
  158. WebKit will attempt to render as HTML.
  159. + (NSArray *)MIMETypesShownAsHTML;
  160. */
  161. HRESULT MIMETypesShownAsHTML([out, retval] IEnumVARIANT** enumVariant);
  162. /*!
  163. @method setMIMETypesShownAsHTML:
  164. @discussion Sets the array of NSString MIME types that WebKit will
  165. attempt to render as HTML. Typically you will retrieve the built-in
  166. array using MIMETypesShownAsHTML and add additional MIME types to that
  167. array.
  168. + (void)setMIMETypesShownAsHTML:(NSArray *)MIMETypes;
  169. */
  170. HRESULT setMIMETypesShownAsHTML([in, size_is(cMimeTypes)] BSTR* mimeTypes, [in] int cMimeTypes);
  171. /*!
  172. @method URLFromPasteboard:
  173. @abstract Returns a URL from a pasteboard
  174. @param pasteboard The pasteboard with a URL
  175. @result A URL if the pasteboard has one. Nil if it does not.
  176. @discussion This method differs than NSURL's URLFromPasteboard method in that it tries multiple pasteboard types
  177. including NSURLPboardType to find a URL on the pasteboard.
  178. + (NSURL *)URLFromPasteboard:(NSPasteboard *)pasteboard;
  179. */
  180. HRESULT URLFromPasteboard([in] IDataObject* pasteboard, [out, retval] BSTR* url);
  181. /*!
  182. @method URLTitleFromPasteboard:
  183. @abstract Returns a URL title from a pasteboard
  184. @param pasteboard The pasteboard with a URL title
  185. @result A URL title if the pasteboard has one. Nil if it does not.
  186. @discussion This method returns a title that refers a URL on the pasteboard. An example of this is the link label
  187. which is the text inside the anchor tag.
  188. + (NSString *)URLTitleFromPasteboard:(NSPasteboard *)pasteboard;
  189. */
  190. HRESULT URLTitleFromPasteboard([in] IDataObject* pasteboard, [out, retval] BSTR* urlTitle);
  191. /*!
  192. @method initWithFrame:frameName:groupName:
  193. @abstract The designated initializer for WebView.
  194. @discussion Initialize a WebView with the supplied parameters. This method will
  195. create a main WebFrame with the view. Passing a top level frame name is useful if you
  196. handle a targetted frame navigation that would normally open a window in some other
  197. way that still ends up creating a new WebView.
  198. @param frame The frame used to create the view.
  199. @param frameName The name to use for the top level frame. May be nil.
  200. @param groupName The name of the webView set to which this webView will be added. May be nil.
  201. @result Returns an initialized WebView.
  202. - (id)initWithFrame:(NSRect)frame frameName:(NSString *)frameName groupName:(NSString *)groupName;
  203. */
  204. HRESULT initWithFrame([in] RECT frame, [in] BSTR frameName, [in] BSTR groupName);
  205. /*!
  206. @method accessibilityDelegate:
  207. @abstract Return the WebView's accessibilityDelegate.
  208. @param delegate The WebUIDelegate to set as the delegate.
  209. - (void)setUIDelegate:(id)delegate;
  210. */
  211. HRESULT setAccessibilityDelegate([in] IAccessibilityDelegate *d);
  212. /*!
  213. @method setAccessibilityDelegate:
  214. @abstract Set the WebView's accessibilityDelegate.
  215. @result The WebView's WebUIDelegate.
  216. - (id)UIDelegate;
  217. */
  218. HRESULT accessibilityDelegate([out][retval] IAccessibilityDelegate **d);
  219. /*!
  220. @method setUIDelegate:
  221. @abstract Set the WebView's WebUIDelegate.
  222. @param delegate The WebUIDelegate to set as the delegate.
  223. - (void)setUIDelegate:(id)delegate;
  224. */
  225. HRESULT setUIDelegate([in] IWebUIDelegate* d);
  226. /*!
  227. @method UIDelegate
  228. @abstract Return the WebView's WebUIDelegate.
  229. @result The WebView's WebUIDelegate.
  230. - (id)UIDelegate;
  231. */
  232. HRESULT uiDelegate([retval, out] IWebUIDelegate** d);
  233. /*!
  234. @method setResourceLoadDelegate:
  235. @abstract Set the WebView's WebResourceLoadDelegate load delegate.
  236. @param delegate The WebResourceLoadDelegate to set as the load delegate.
  237. - (void)setResourceLoadDelegate:(id)delegate;
  238. */
  239. HRESULT setResourceLoadDelegate([in] IWebResourceLoadDelegate* d);
  240. /*!
  241. @method resourceLoadDelegate
  242. @result Return the WebView's WebResourceLoadDelegate.
  243. - (id)resourceLoadDelegate;
  244. */
  245. HRESULT resourceLoadDelegate([retval, out] IWebResourceLoadDelegate** d);
  246. /*!
  247. @method setDownloadDelegate:
  248. @abstract Set the WebView's WebDownloadDelegate.
  249. @discussion The download delegate is retained by WebDownload when any downloads are in progress.
  250. @param delegate The WebDownloadDelegate to set as the download delegate.
  251. - (void)setDownloadDelegate:(id)delegate;
  252. */
  253. HRESULT setDownloadDelegate([in] IWebDownloadDelegate* d);
  254. /*!
  255. @method downloadDelegate
  256. @abstract Return the WebView's WebDownloadDelegate.
  257. @result The WebView's WebDownloadDelegate.
  258. - (id)downloadDelegate;
  259. */
  260. HRESULT downloadDelegate([retval, out] IWebDownloadDelegate** d);
  261. /*!
  262. @method setFrameLoadDelegate:
  263. @abstract Set the WebView's WebFrameLoadDelegate delegate.
  264. @param delegate The WebFrameLoadDelegate to set as the delegate.
  265. - (void)setFrameLoadDelegate:(id)delegate;
  266. */
  267. HRESULT setFrameLoadDelegate([in] IWebFrameLoadDelegate* d);
  268. /*!
  269. @method frameLoadDelegate
  270. @abstract Return the WebView's WebFrameLoadDelegate delegate.
  271. @result The WebView's WebFrameLoadDelegate delegate.
  272. - (id)frameLoadDelegate;
  273. */
  274. HRESULT frameLoadDelegate([retval, out] IWebFrameLoadDelegate** d);
  275. /*!
  276. @method setPolicyDelegate:
  277. @abstract Set the WebView's WebPolicyDelegate delegate.
  278. @param delegate The WebPolicyDelegate to set as the delegate.
  279. - (void)setPolicyDelegate:(id)delegate;
  280. */
  281. HRESULT setPolicyDelegate([in] IWebPolicyDelegate* d);
  282. /*!
  283. @method policyDelegate
  284. @abstract Return the WebView's WebPolicyDelegate.
  285. @result The WebView's WebPolicyDelegate.
  286. - (id)policyDelegate;
  287. */
  288. HRESULT policyDelegate([retval, out] IWebPolicyDelegate** d);
  289. /*!
  290. @method mainFrame
  291. @abstract Return the top level frame.
  292. @discussion Note that even document that are not framesets will have a
  293. mainFrame.
  294. @result The main frame.
  295. - (WebFrame *)mainFrame;
  296. */
  297. HRESULT mainFrame([retval, out] IWebFrame** frame);
  298. /*!
  299. @method focusedFrame
  300. @abstract Return the frame that has the current focus.
  301. */
  302. HRESULT focusedFrame([retval, out] IWebFrame** frame);
  303. /*!
  304. @method backForwardList
  305. @result The backforward list for this webView.
  306. - (WebBackForwardList *)backForwardList;
  307. */
  308. HRESULT backForwardList([retval, out] IWebBackForwardList** list);
  309. /*!
  310. @method setMaintainsBackForwardList:
  311. @abstract Enable or disable the use of a backforward list for this webView.
  312. @param flag Turns use of the back forward list on or off
  313. - (void)setMaintainsBackForwardList:(BOOL)flag;
  314. */
  315. HRESULT setMaintainsBackForwardList([in] BOOL flag);
  316. /*!
  317. @method goBack
  318. @abstract Go back to the previous URL in the backforward list.
  319. @result YES if able to go back in the backforward list, NO otherwise.
  320. - (BOOL)goBack;
  321. */
  322. HRESULT goBack([out, retval] BOOL* succeeded);
  323. /*!
  324. @method goForward
  325. @abstract Go forward to the next URL in the backforward list.
  326. @result YES if able to go forward in the backforward list, NO otherwise.
  327. - (BOOL)goForward;
  328. */
  329. HRESULT goForward([out, retval] BOOL* succeeded);
  330. /*!
  331. @method goToBackForwardItem:
  332. @abstract Go back or forward to an item in the backforward list.
  333. @result YES if able to go to the item, NO otherwise.
  334. - (BOOL)goToBackForwardItem:(WebHistoryItem *)item;
  335. */
  336. HRESULT goToBackForwardItem([in] IWebHistoryItem* item, [out, retval] BOOL* succeeded);
  337. /*!
  338. @method setTextSizeMultiplier:
  339. @abstract Change the size of the text rendering in views managed by this webView.
  340. @param multiplier A fractional percentage value, 1.0 is 100%.
  341. - (void)setTextSizeMultiplier:(float)multiplier;
  342. */
  343. HRESULT setTextSizeMultiplier([in] float multiplier);
  344. /*!
  345. @method textSizeMultiplier
  346. @result The text size multipler.
  347. - (float)textSizeMultiplier;
  348. */
  349. HRESULT textSizeMultiplier([out, retval] float* multiplier);
  350. /*!
  351. @method setApplicationNameForUserAgent:
  352. @abstract Set the application name.
  353. @discussion This name will be used in user-agent strings
  354. that are chosen for best results in rendering web pages.
  355. @param applicationName The application name
  356. - (void)setApplicationNameForUserAgent:(NSString *)applicationName;
  357. */
  358. HRESULT setApplicationNameForUserAgent([in] BSTR applicationName);
  359. /*!
  360. @method applicationNameForUserAgent
  361. @result The name of the application as used in the user-agent string.
  362. - (NSString *)applicationNameForUserAgent;
  363. */
  364. HRESULT applicationNameForUserAgent([out, retval] BSTR* applicationName);
  365. /*!
  366. @method setCustomUserAgent:
  367. @abstract Set the user agent.
  368. @discussion Setting this means that the webView should use this user-agent string
  369. instead of constructing a user-agent string for each URL. Setting it to nil
  370. causes the webView to construct the user-agent string for each URL
  371. for best results rendering web pages.
  372. @param userAgentString The user agent description
  373. - (void)setCustomUserAgent:(NSString *)userAgentString;
  374. */
  375. HRESULT setCustomUserAgent([in] BSTR userAgentString);
  376. /*!
  377. @method customUserAgent
  378. @result The custom user-agent string or nil if no custom user-agent string has been set.
  379. - (NSString *)customUserAgent;
  380. */
  381. HRESULT customUserAgent([out, retval] BSTR* userAgentString);
  382. /*!
  383. @method userAgentForURL:
  384. @abstract Get the appropriate user-agent string for a particular URL.
  385. @param URL The URL.
  386. @result The user-agent string for the supplied URL.
  387. - (NSString *)userAgentForURL:(NSURL *)URL;
  388. */
  389. HRESULT userAgentForURL([in] BSTR url, [out, retval] BSTR* userAgent);
  390. /*!
  391. @method supportsTextEncoding
  392. @abstract Find out if the current web page supports text encodings.
  393. @result YES if the document view of the current web page can
  394. support different text encodings.
  395. - (BOOL)supportsTextEncoding;
  396. */
  397. HRESULT supportsTextEncoding([out, retval] BOOL* supports);
  398. /*!
  399. @method setCustomTextEncodingName:
  400. @discussion Make the page display with a different text encoding; stops any load in progress.
  401. The text encoding passed in overrides the normal text encoding smarts including
  402. what's specified in a web page's header or HTTP response.
  403. The text encoding automatically goes back to the default when the top level frame
  404. changes to a new location.
  405. Setting the text encoding name to nil makes the webView use default encoding rules.
  406. @param encoding The text encoding name to use to display a page or nil.
  407. - (void)setCustomTextEncodingName:(NSString *)encodingName;
  408. */
  409. HRESULT setCustomTextEncodingName([in] BSTR encodingName);
  410. /*!
  411. @method customTextEncodingName
  412. @result The custom text encoding name or nil if no custom text encoding name has been set.
  413. - (NSString *)customTextEncodingName;
  414. */
  415. HRESULT customTextEncodingName([out, retval] BSTR* encodingName);
  416. /*!
  417. @method setMediaStyle:
  418. @discussion Set the media style for the WebView. The mediaStyle will override the normal value
  419. of the CSS media property. Setting the value to nil will restore the normal value.
  420. @param mediaStyle The value to use for the CSS media property.
  421. - (void)setMediaStyle:(NSString *)mediaStyle;
  422. */
  423. HRESULT setMediaStyle([in] BSTR media);
  424. /*!
  425. @method mediaStyle
  426. @result mediaStyle The value to use for the CSS media property, as set by setMediaStyle:. It
  427. will be nil unless set by that method.
  428. - (NSString *)mediaStyle;
  429. */
  430. HRESULT mediaStyle([out, retval] BSTR* media);
  431. /*!
  432. @method stringByEvaluatingJavaScriptFromString:
  433. @param script The text of the JavaScript.
  434. @result The result of the script, converted to a string, or nil for failure.
  435. - (NSString *)stringByEvaluatingJavaScriptFromString:(NSString *)script;
  436. */
  437. HRESULT stringByEvaluatingJavaScriptFromString([in] BSTR script, [out, retval] BSTR* result);
  438. /*!
  439. @method windowScriptObject
  440. @discussion windowScriptObject return a WebScriptObject that represents the
  441. window object from the script environment.
  442. @result Returns the window object from the script environment.
  443. - (WebScriptObject *)windowScriptObject;
  444. */
  445. HRESULT windowScriptObject([out, retval] IWebScriptObject** webScriptObject);
  446. /*!
  447. @method setPreferences:
  448. @param preferences The preferences to use for the webView.
  449. @abstract Override the standard setting for the webView.
  450. - (void)setPreferences: (WebPreferences *)prefs;
  451. */
  452. HRESULT setPreferences([in] IWebPreferences* prefs);
  453. /*!
  454. @method preferences
  455. @result Returns the preferences used by this webView.
  456. @discussion This method will return [WebPreferences standardPreferences] if no
  457. other instance of WebPreferences has been set.
  458. - (WebPreferences *)preferences;
  459. */
  460. HRESULT preferences([out, retval] IWebPreferences** prefs);
  461. /*!
  462. @method setPreferencesIdentifier:
  463. @param anIdentifier The string to use a prefix for storing values for this WebView in the user
  464. defaults database.
  465. @discussion If the WebPreferences for this WebView are stored in the user defaults database, the
  466. string set in this method will be used a key prefix.
  467. - (void)setPreferencesIdentifier:(NSString *)anIdentifier;
  468. */
  469. HRESULT setPreferencesIdentifier([in] BSTR anIdentifier);
  470. /*!
  471. @method preferencesIdentifier
  472. @result Returns the WebPreferences key prefix.
  473. - (NSString *)preferencesIdentifier;
  474. */
  475. HRESULT preferencesIdentifier([out, retval] BSTR* anIdentifier);
  476. /*!
  477. @method setHostWindow:
  478. @param hostWindow The host window for the web view.
  479. @discussion Parts of WebKit (such as plug-ins and JavaScript) depend on a window to function
  480. properly. Set a host window so these parts continue to function even when the web view is
  481. not in an actual window.
  482. - (void)setHostWindow:(NSWindow *)hostWindow;
  483. */
  484. HRESULT setHostWindow([in] OLE_HANDLE window);
  485. /*!
  486. @method hostWindow
  487. @result The host window for the web view.
  488. - (NSWindow *)hostWindow;
  489. */
  490. HRESULT hostWindow([out, retval] OLE_HANDLE* window);
  491. /*!
  492. @method searchFor:direction:caseSensitive:
  493. @abstract Searches a document view for a string and highlights the string if it is found.
  494. Starts the search from the current selection. Will search across all frames.
  495. @param string The string to search for.
  496. @param forward YES to search forward, NO to seach backwards.
  497. @param caseFlag YES to for case-sensitive search, NO for case-insensitive search.
  498. @result YES if found, NO if not found.
  499. - (BOOL)searchFor:(NSString *)string direction:(BOOL)forward caseSensitive:(BOOL)caseFlag wrap:(BOOL)wrapFlag;
  500. */
  501. HRESULT searchFor([in] BSTR str, [in] BOOL forward, [in] BOOL caseFlag, [in] BOOL wrapFlag, [out, retval] BOOL* found);
  502. /*!
  503. @method registerViewClass:representationClass:forMIMEType:
  504. @discussion Register classes that implement WebDocumentView and WebDocumentRepresentation respectively.
  505. A document class may register for a primary MIME type by excluding
  506. a subtype, i.e. "video/" will match the document class with
  507. all video types. More specific matching takes precedence
  508. over general matching.
  509. @param viewClass The WebDocumentView class to use to render data for a given MIME type.
  510. @param representationClass The WebDocumentRepresentation class to use to represent data of the given MIME type.
  511. @param MIMEType The MIME type to represent with an object of the given class.
  512. + (void)registerViewClass:(Class)viewClass representationClass:(Class)representationClass forMIMEType:(NSString *)MIMEType;
  513. */
  514. HRESULT registerViewClass([in] IWebDocumentView* view, [in] IWebDocumentRepresentation* representation, [in] BSTR forMIMEType);
  515. /*!
  516. @method setGroupName:
  517. @param groupName The name of the group for this WebView.
  518. @discussion JavaScript may access named frames within the same group.
  519. - (void)setGroupName:(NSString *)groupName;
  520. */
  521. HRESULT setGroupName([in] BSTR groupName);
  522. /*!
  523. @method groupName
  524. @discussion The group name for this WebView.
  525. - (NSString *)groupName;
  526. */
  527. HRESULT groupName([out, retval] BSTR* groupName);
  528. /*!
  529. @method estimatedProgress
  530. @discussion An estimate of the percent complete for a document load. This
  531. value will range from 0 to 1.0 and, once a load completes, will remain at 1.0
  532. until a new load starts, at which point it will be reset to 0. The value is an
  533. estimate based on the total number of bytes expected to be received
  534. for a document, including all it's possible subresources. For more accurate progress
  535. indication it is recommended that you implement a WebFrameLoadDelegate and a
  536. WebResourceLoadDelegate.
  537. - (double)estimatedProgress;
  538. */
  539. HRESULT estimatedProgress([out, retval] double* estimatedProgress);
  540. /*!
  541. @method isLoading
  542. @discussion Returns YES if there are any pending loads.
  543. - (BOOL)isLoading;
  544. */
  545. HRESULT isLoading([out, retval] BOOL* isLoading);
  546. /*!
  547. @method elementAtPoint:
  548. @param point A point in the coordinates of the WebView
  549. @result An element dictionary describing the point
  550. - (NSDictionary *)elementAtPoint:(NSPoint)point;
  551. */
  552. HRESULT elementAtPoint([in] LPPOINT point, [out, retval] IPropertyBag** elementDictionary);
  553. /*!
  554. @method pasteboardTypesForSelection
  555. @abstract Returns the pasteboard types that WebView can use for the current selection
  556. - (NSArray *)pasteboardTypesForSelection;
  557. */
  558. HRESULT pasteboardTypesForSelection([out, retval] IEnumVARIANT** enumVariant);
  559. /*!
  560. @method writeSelectionWithPasteboardTypes:toPasteboard:
  561. @abstract Writes the current selection to the pasteboard
  562. @param types The types that WebView will write to the pasteboard
  563. @param pasteboard The pasteboard to write to
  564. - (void)writeSelectionWithPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
  565. */
  566. HRESULT writeSelectionWithPasteboardTypes([in, size_is(cTypes)] BSTR* types, [in] int cTypes, [in] IDataObject* pasteboard);
  567. /*!
  568. @method pasteboardTypesForElement:
  569. @abstract Returns the pasteboard types that WebView can use for an element
  570. @param element The element
  571. - (NSArray *)pasteboardTypesForElement:(NSDictionary *)element;
  572. */
  573. HRESULT pasteboardTypesForElement([in] IPropertyBag* elementDictionary, [out, retval] IEnumVARIANT** enumVariant);
  574. /*!
  575. @method writeElement:withPasteboardTypes:toPasteboard:
  576. @abstract Writes an element to the pasteboard
  577. @param element The element to write to the pasteboard
  578. @param types The types that WebView will write to the pasteboard
  579. @param pasteboard The pasteboard to write to
  580. - (void)writeElement:(NSDictionary *)element withPasteboardTypes:(NSArray *)types toPasteboard:(NSPasteboard *)pasteboard;
  581. */
  582. HRESULT writeElement([in] IPropertyBag* elementDictionary, [in, size_is(cWithPasteboardTypes)] BSTR* withPasteboardTypes, [in] int cWithPasteboardTypes, [in] IDataObject* pasteboard);
  583. /*!
  584. @method selectedText
  585. @abstract Returns the selection as a string
  586. */
  587. HRESULT selectedText([out, retval] BSTR* text);
  588. /*!
  589. @method centerSelectionInVisibleArea
  590. @abstract Centers the selected text in the WebView
  591. - (void)centerSelectionInVisibleArea:(id)sender;
  592. */
  593. HRESULT centerSelectionInVisibleArea([in] IUnknown* sender);
  594. /*!
  595. @method moveDragCaretToPoint:
  596. @param point A point in the coordinates of the WebView
  597. @discussion This method moves the caret that shows where something being dragged will be dropped. It may cause the WebView to scroll
  598. to make the new position of the drag caret visible.
  599. - (void)moveDragCaretToPoint:(NSPoint)point;
  600. */
  601. HRESULT moveDragCaretToPoint([in] LPPOINT point);
  602. /*!
  603. @method removeDragCaret
  604. @abstract Removes the drag caret from the WebView
  605. - (void)removeDragCaret;
  606. */
  607. HRESULT removeDragCaret();
  608. /*!
  609. @method setDrawsBackground:
  610. @param drawsBackround YES to cause the receiver to draw a default white background, NO otherwise.
  611. @abstract Sets whether the receiver draws a default white background when the loaded page has no background specified.
  612. - (void)setDrawsBackground:(BOOL)drawsBackround;
  613. */
  614. HRESULT setDrawsBackground([in] BOOL drawsBackground);
  615. /*!
  616. @method drawsBackground
  617. @result Returns YES if the receiver draws a default white background, NO otherwise.
  618. - (BOOL)drawsBackground;
  619. */
  620. HRESULT drawsBackground([out, retval] BOOL* drawsBackground);
  621. /*!
  622. @method setMainFrameURL:
  623. @param URLString The URL to load in the mainFrame.
  624. - (void)setMainFrameURL:(NSString *)URLString;
  625. */
  626. HRESULT setMainFrameURL([in] BSTR urlString);
  627. /*!
  628. @method mainFrameURL
  629. @result Returns the main frame's current URL.
  630. - (NSString *)mainFrameURL;
  631. */
  632. HRESULT mainFrameURL([out, retval] BSTR* urlString);
  633. /*!
  634. @method mainFrameDocument
  635. @result Returns the main frame's DOMDocument.
  636. - (DOMDocument *)mainFrameDocument;
  637. */
  638. HRESULT mainFrameDocument([out, retval] IDOMDocument** document);
  639. /*!
  640. @method mainFrameTitle
  641. @result Returns the main frame's title if any, otherwise an empty string.
  642. - (NSString *)mainFrameTitle;
  643. */
  644. HRESULT mainFrameTitle([out, retval] BSTR* title);
  645. /*!
  646. @method mainFrameIcon
  647. @discussion The methods returns the site icon for the current page loaded in the mainFrame.
  648. @result Returns the main frame's icon if any, otherwise nil.
  649. - (NSImage *)mainFrameIcon;
  650. */
  651. HRESULT mainFrameIcon([out, retval] OLE_HANDLE* hBitmap);
  652. /*!
  653. @method registerURLSchemeAsLocal
  654. @discussion Adds the scheme to the list of schemes to be treated as local.
  655. @param scheme The scheme to register.
  656. + (void)registerURLSchemeAsLocal:(NSString *)scheme;
  657. */
  658. HRESULT registerURLSchemeAsLocal([in] BSTR scheme);
  659. /*!
  660. @method close
  661. @abstract Closes the receiver, unloading its web page and canceling any pending loads.
  662. Once the receiver has closed, it will no longer respond to requests or fire delegate methods.
  663. (However, the -close method itself may fire delegate methods.)
  664. @discussion A garbage collected application is required to call close when the receiver is no longer needed.
  665. The close method will be called automatically when the window or hostWindow closes and shouldCloseWithWindow returns YES.
  666. A non-garbage collected application can still call close, providing a convenient way to prevent receiver
  667. from doing any more loading and firing any future delegate methods.
  668. */
  669. HRESULT close();
  670. }
  671. /*
  672. @interface WebView (WebIBActions) <NSUserInterfaceValidations>
  673. */
  674. [
  675. object,
  676. oleautomation,
  677. uuid(8F0E3A30-B924-44f8-990A-1AE61ED6C632),
  678. pointer_default(unique)
  679. ]
  680. interface IWebIBActions : IUnknown
  681. {
  682. /*
  683. - (IBAction)takeStringURLFrom:(id)sender;
  684. */
  685. HRESULT takeStringURLFrom([in] IUnknown* sender);
  686. /*
  687. - (IBAction)stopLoading:(id)sender;
  688. */
  689. HRESULT stopLoading([in] IUnknown* sender);
  690. /*
  691. - (IBAction)reload:(id)sender;
  692. */
  693. HRESULT reload([in] IUnknown* sender);
  694. /*
  695. - (BOOL)canGoBack;
  696. */
  697. HRESULT canGoBack([in] IUnknown* sender, [out, retval] BOOL* result);
  698. /*
  699. - (IBAction)goBack:(id)sender;
  700. */
  701. HRESULT goBack([in] IUnknown* sender);
  702. /*
  703. - (BOOL)canGoForward;
  704. */
  705. HRESULT canGoForward([in] IUnknown* sender, [out, retval] BOOL* result);
  706. /*
  707. - (IBAction)goForward:(id)sender;
  708. */
  709. HRESULT goForward([in] IUnknown* sender);
  710. /*
  711. - (BOOL)canMakeTextLarger;
  712. */
  713. HRESULT canMakeTextLarger([in] IUnknown* sender, [out, retval] BOOL* result);
  714. /*
  715. - (IBAction)makeTextLarger:(id)sender;
  716. */
  717. HRESULT makeTextLarger([in] IUnknown* sender);
  718. /*
  719. - (BOOL)canMakeTextSmaller;
  720. */
  721. HRESULT canMakeTextSmaller([in] IUnknown* sender, [out, retval] BOOL* result);
  722. /*
  723. - (IBAction)makeTextSmaller:(id)sender;
  724. */
  725. HRESULT makeTextSmaller([in] IUnknown* sender);
  726. /*
  727. - (BOOL)canMakeTextStandardSize;
  728. */
  729. HRESULT canMakeTextStandardSize([in] IUnknown* sender, [out, retval] BOOL* result);
  730. /*
  731. - (IBAction)makeTextStandardSize:(id)sender;
  732. */
  733. HRESULT makeTextStandardSize([in] IUnknown* sender);
  734. /*
  735. - (IBAction)toggleContinuousSpellChecking:(id)sender;
  736. */
  737. HRESULT toggleContinuousSpellChecking([in] IUnknown* sender);
  738. /*
  739. - (IBAction)toggleSmartInsertDelete:(id)sender;
  740. */
  741. HRESULT toggleSmartInsertDelete([in] IUnknown* sender);
  742. /*
  743. - (void)toggleGrammarChecking:(id)sender
  744. */
  745. HRESULT toggleGrammarChecking([in] IUnknown* sender);
  746. /*!
  747. @method setPageSizeMultiplier:
  748. @abstract Set a zoom factor for all views managed by this webView.
  749. @param multiplier A fractional percentage value, 1.0 is 100%.
  750. - (void)setPageSizeMultiplier:(float)multiplier;
  751. */
  752. HRESULT setPageSizeMultiplier([in] float multiplier);
  753. /*!
  754. @method pageSizeMultiplier
  755. @result The page size multipler.
  756. - (float)pageSizeMultiplier;
  757. */
  758. HRESULT pageSizeMultiplier([out, retval] float* multiplier);
  759. /*
  760. - (BOOL)canZoomPageIn;
  761. */
  762. HRESULT canZoomPageIn([in] IUnknown* sender, [out, retval] BOOL* result);
  763. /*
  764. - (IBAction)zoomPageIn:(id)sender;
  765. */
  766. HRESULT zoomPageIn([in] IUnknown* sender);
  767. /*
  768. - (BOOL)canZoomPageOut;
  769. */
  770. HRESULT canZoomPageOut([in] IUnknown* sender, [out, retval] BOOL* result);
  771. /*
  772. - (IBAction)zoomPageOut:(id)sender;
  773. */
  774. HRESULT zoomPageOut([in] IUnknown* sender);
  775. /*
  776. - (BOOL)canResetPageZoom;
  777. */
  778. HRESULT canResetPageZoom([in] IUnknown* sender, [out, retval] BOOL* result);
  779. /*
  780. - (IBAction)resetPageZoom:(id)sender;
  781. */
  782. HRESULT resetPageZoom([in] IUnknown* sender);
  783. /*
  784. - (IBAction)reloadFromOrigin:(id)sender;
  785. */
  786. HRESULT reloadFromOrigin([in] IUnknown* sender);
  787. }
  788. /*
  789. @interface WebView (WebViewCSS)
  790. */
  791. [
  792. object,
  793. oleautomation,
  794. uuid(ADF68A8C-336F-405c-A053-3D11A9D5B092),
  795. pointer_default(unique)
  796. ]
  797. interface IWebViewCSS : IUnknown
  798. {
  799. /*
  800. - (DOMCSSStyleDeclaration *)computedStyleForElement:(DOMElement *)element pseudoElement:(NSString *)pseudoElement;
  801. */
  802. HRESULT computedStyleForElement([in] IDOMElement* element, [in] BSTR pseudoElement, [out, retval] IDOMCSSStyleDeclaration** style);
  803. }
  804. /*
  805. @interface WebView (WebViewEditing)
  806. */
  807. [
  808. object,
  809. oleautomation,
  810. uuid(07BDAC9A-19A1-4086-864D-BAD9E0F00D5C),
  811. pointer_default(unique)
  812. ]
  813. interface IWebViewEditing : IUnknown
  814. {
  815. /*
  816. - (DOMRange *)editableDOMRangeForPoint:(NSPoint)point;
  817. */
  818. HRESULT editableDOMRangeForPoint([in] LPPOINT point, [out, retval] IDOMRange** range);
  819. /*
  820. - (void)setSelectedDOMRange:(DOMRange *)range affinity:(NSSelectionAffinity)selectionAffinity;
  821. */
  822. HRESULT setSelectedDOMRange([in] IDOMRange* range, [in] WebSelectionAffinity affinity);
  823. /*
  824. - (DOMRange *)selectedDOMRange;
  825. */
  826. HRESULT selectedDOMRange([out, retval] IDOMRange** range);
  827. /*
  828. - (NSSelectionAffinity)selectionAffinity;
  829. */
  830. HRESULT selectionAffinity([out, retval] [out, retval] WebSelectionAffinity* affinity);
  831. /*
  832. - (void)setEditable:(BOOL)flag;
  833. */
  834. HRESULT setEditable([in] BOOL flag);
  835. /*
  836. - (BOOL)isEditable;
  837. */
  838. HRESULT isEditable([out, retval] BOOL* isEditable);
  839. /*
  840. - (void)setTypingStyle:(DOMCSSStyleDeclaration *)style;
  841. */
  842. HRESULT setTypingStyle([in] IDOMCSSStyleDeclaration* style);
  843. /*
  844. - (DOMCSSStyleDeclaration *)typingStyle;
  845. */
  846. HRESULT typingStyle([out, retval] IDOMCSSStyleDeclaration** style);
  847. /*
  848. - (void)setSmartInsertDeleteEnabled:(BOOL)flag;
  849. */
  850. HRESULT setSmartInsertDeleteEnabled([in] BOOL flag);
  851. /*
  852. - (BOOL)smartInsertDeleteEnabled;
  853. */
  854. HRESULT smartInsertDeleteEnabled([out, retval] BOOL* enabled);
  855. /*
  856. - (void)setContinuousSpellCheckingEnabled:(BOOL)flag;
  857. */
  858. HRESULT setContinuousSpellCheckingEnabled([in] BOOL flag);
  859. /*
  860. - (BOOL)isContinuousSpellCheckingEnabled;
  861. */
  862. HRESULT isContinuousSpellCheckingEnabled([out, retval] BOOL* enabled);
  863. /*
  864. - (WebNSInt)spellCheckerDocumentTag;
  865. */
  866. HRESULT spellCheckerDocumentTag([out, retval] int* tag);
  867. /*
  868. - (NSUndoManager *)undoManager;
  869. */
  870. HRESULT undoManager([out, retval] IWebUndoManager** manager);
  871. /*
  872. - (void)setEditingDelegate:(id)delegate;
  873. */
  874. HRESULT setEditingDelegate([in] IWebEditingDelegate* d);
  875. /*
  876. - (id)editingDelegate;
  877. */
  878. HRESULT editingDelegate([out, retval] IWebEditingDelegate** d);
  879. /*
  880. - (DOMCSSStyleDeclaration *)styleDeclarationWithText:(NSString *)text;
  881. */
  882. HRESULT styleDeclarationWithText([in] BSTR text, [out, retval] IDOMCSSStyleDeclaration** style);
  883. /*
  884. - (BOOL)hasSelectedRange;
  885. */
  886. HRESULT hasSelectedRange([out, retval] BOOL* hasSelectedRange);
  887. /*
  888. - (BOOL)cutEnabled;
  889. */
  890. HRESULT cutEnabled([out, retval] BOOL* enabled);
  891. /*
  892. - (BOOL)copyEnabled;
  893. */
  894. HRESULT copyEnabled([out, retval] BOOL* enabled);
  895. /*
  896. - (BOOL)pasteEnabled;
  897. */
  898. HRESULT pasteEnabled([out, retval] BOOL* enabled);
  899. /*
  900. - (BOOL)deleteEnabled;
  901. */
  902. HRESULT deleteEnabled([out, retval] BOOL* enabled);
  903. /*
  904. - (BOOL)editingEnabled;
  905. */
  906. HRESULT editingEnabled([out, retval] BOOL* enabled);
  907. /*
  908. - (BOOL)isGrammarCheckingEnabled
  909. */
  910. HRESULT isGrammarCheckingEnabled([out, retval] BOOL* enabled);
  911. /*
  912. - (void)setGrammarCheckingEnabled:(BOOL)flag
  913. */
  914. HRESULT setGrammarCheckingEnabled(BOOL enabled);
  915. /*
  916. - (void)setSelectTrailingWhitespaceEnabled:(BOOL)flag;
  917. */
  918. HRESULT setSelectTrailingWhitespaceEnabled([in] BOOL flag);
  919. /*
  920. - (BOOL)selectTrailingWhitespaceEnabled;
  921. */
  922. HRESULT isSelectTrailingWhitespaceEnabled([out, retval] BOOL* enabled);
  923. }
  924. /*
  925. @interface WebView (WebViewUndoableEditing)
  926. */
  927. [
  928. object,
  929. oleautomation,
  930. uuid(639E7121-13C8-4a12-BC18-6E1F3D68F3C3),
  931. pointer_default(unique)
  932. ]
  933. interface IWebViewUndoableEditing : IUnknown
  934. {
  935. /*
  936. - (void)replaceSelectionWithNode:(DOMNode *)node;
  937. */
  938. HRESULT replaceSelectionWithNode([in] IDOMNode* node);
  939. /*
  940. - (void)replaceSelectionWithText:(NSString *)text;
  941. */
  942. HRESULT replaceSelectionWithText([in] BSTR text);
  943. /*
  944. - (void)replaceSelectionWithMarkupString:(NSString *)markupString;
  945. */
  946. HRESULT replaceSelectionWithMarkupString([in] BSTR markupString);
  947. /*
  948. - (void)replaceSelectionWithArchive:(WebArchive *)archive;
  949. */
  950. HRESULT replaceSelectionWithArchive([in] IWebArchive* archive);
  951. /*
  952. - (void)deleteSelection;
  953. */
  954. HRESULT deleteSelection();
  955. /*
  956. - (void)clearSelection;
  957. */
  958. HRESULT clearSelection();
  959. /*
  960. - (void)applyStyle:(DOMCSSStyleDeclaration *)style;
  961. */
  962. HRESULT applyStyle([in] IDOMCSSStyleDeclaration* style);
  963. }
  964. /*
  965. @interface WebView (WebViewEditingActions)
  966. */
  967. [
  968. object,
  969. oleautomation,
  970. uuid(7E066C42-8E81-4778-888D-D6CC93E27D4C),
  971. pointer_default(unique)
  972. ]
  973. interface IWebViewEditingActions : IUnknown
  974. {
  975. /*
  976. - (void)copy:(id)sender;
  977. */
  978. HRESULT copy([in] IUnknown* sender);
  979. /*
  980. - (void)cut:(id)sender;
  981. */
  982. HRESULT cut([in] IUnknown* sender);
  983. /*
  984. - (void)paste:(id)sender;
  985. */
  986. HRESULT paste([in] IUnknown* sender);
  987. /*
  988. - (void)copyURL:(id)sender;
  989. */
  990. HRESULT copyURL([in] BSTR url);
  991. /*
  992. - (void)copyFont:(id)sender;
  993. */
  994. HRESULT copyFont([in] IUnknown* sender);
  995. /*
  996. - (void)pasteFont:(id)sender;
  997. */
  998. HRESULT pasteFont([in] IUnknown* sender);
  999. /*
  1000. - (void)delete:(id)sender;
  1001. */
  1002. HRESULT delete_([in] IUnknown* sender);
  1003. /*
  1004. - (void)pasteAsPlainText:(id)sender;
  1005. */
  1006. HRESULT pasteAsPlainText([in] IUnknown* sender);
  1007. /*
  1008. - (void)pasteAsRichText:(id)sender;
  1009. */
  1010. HRESULT pasteAsRichText([in] IUnknown* sender);
  1011. /*
  1012. - (void)changeFont:(id)sender;
  1013. */
  1014. HRESULT changeFont([in] IUnknown* sender);
  1015. /*
  1016. - (void)changeAttributes:(id)sender;
  1017. */
  1018. HRESULT changeAttributes([in] IUnknown* sender);
  1019. /*
  1020. - (void)changeDocumentBackgroundColor:(id)sender;
  1021. */
  1022. HRESULT changeDocumentBackgroundColor([in] IUnknown* sender);
  1023. /*
  1024. - (void)changeColor:(id)sender;
  1025. */
  1026. HRESULT changeColor([in] IUnknown* sender);
  1027. /*
  1028. - (void)alignCenter:(id)sender;
  1029. */
  1030. HRESULT alignCenter([in] IUnknown* sender);
  1031. /*
  1032. - (void)alignJustified:(id)sender;
  1033. */
  1034. HRESULT alignJustified([in] IUnknown* sender);
  1035. /*
  1036. - (void)alignLeft:(id)sender;
  1037. */
  1038. HRESULT alignLeft([in] IUnknown* sender);
  1039. /*
  1040. - (void)alignRight:(id)sender;
  1041. */
  1042. HRESULT alignRight([in] IUnknown* sender);
  1043. /*
  1044. - (void)checkSpelling:(id)sender;
  1045. */
  1046. HRESULT checkSpelling([in] IUnknown* sender);
  1047. /*
  1048. - (void)showGuessPanel:(id)sender;
  1049. */
  1050. HRESULT showGuessPanel([in] IUnknown* sender);
  1051. /*
  1052. - (void)performFindPanelAction:(id)sender;
  1053. */
  1054. HRESULT performFindPanelAction([in] IUnknown* sender);
  1055. /*
  1056. - (void)startSpeaking:(id)sender;
  1057. */
  1058. HRESULT startSpeaking([in] IUnknown* sender);
  1059. /*
  1060. - (void)stopSpeaking:(id)sender;
  1061. */
  1062. HRESULT stopSpeaking([in] IUnknown* sender);
  1063. }