IWebEditingDelegate.idl [plain text]
#ifndef DO_NO_IMPORTS
import "oaidl.idl";
import "ocidl.idl";
import "IWebNotification.idl";
import "DOMCore.idl";
import "DOMCSS.idl";
import "DOMRange.idl";
import "IWebUndoManager.idl";
import "IWebView.idl";
#endif
interface IDOMCSSStyleDeclaration;
interface IDOMNode;
interface IDOMRange;
interface IWebView;
interface IWebNotification;
interface IWebUndoManager;
typedef enum _WebViewInsertAction {
WebViewInsertActionTyped,
WebViewInsertActionPasted,
WebViewInsertActionDropped,
} WebViewInsertAction;
[
object,
oleautomation,
uuid(B0F960E7-FB81-447f-A958-E02DA02ADBB7),
pointer_default(unique)
]
interface IEnumSpellingGuesses : IUnknown
{
HRESULT Next(ULONG celt, [out] BSTR* guess, [out] ULONG* pceltFetched);
HRESULT Skip(ULONG celt);
HRESULT Reset(void);
HRESULT Clone([out, retval] IEnumSpellingGuesses** ppenum);
};
[
object,
oleautomation,
uuid(8B95C1B3-E1B3-4f97-80D6-2240417E3E0C),
pointer_default(unique)
]
interface IWebGrammarDetail : IUnknown
{
HRESULT location([out, retval] int* value);
HRESULT length([out, retval] int* value);
HRESULT userDescription([out, retval] BSTR* value);
HRESULT guesses([out, retval] IEnumSpellingGuesses** guesses);
}
[
object,
oleautomation,
uuid(FABCC69A-5917-4242-A19A-42E8B62227A7),
pointer_default(unique)
]
interface IEnumWebGrammarDetails : IUnknown
{
HRESULT Next(ULONG celt, [out] IWebGrammarDetail** detail, [out] ULONG* pceltFetched);
HRESULT Skip(ULONG celt);
HRESULT Reset(void);
HRESULT Clone([out, retval] IEnumSpellingGuesses** ppenum);
};
[
object,
oleautomation,
uuid(2C75A1E3-EE9D-45c8-A385-19DE68AC5675),
pointer_default(unique)
]
interface IWebEditingDelegate : IUnknown
{
HRESULT shouldBeginEditingInDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result);
HRESULT shouldEndEditingInDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result);
HRESULT shouldInsertNode([in] IWebView* webView, [in] IDOMNode* node, [in] IDOMRange* range, [in] WebViewInsertAction action);
HRESULT shouldInsertText([in] IWebView* webView, [in] BSTR text, [in] IDOMRange* range, [in] WebViewInsertAction action, [out, retval] BOOL* result);
HRESULT shouldDeleteDOMRange([in] IWebView* webView, [in] IDOMRange* range, [out, retval] BOOL* result);
HRESULT shouldChangeSelectedDOMRange([in] IWebView* webView, [in] IDOMRange* currentRange, [in] IDOMRange* proposedRange, [in] WebSelectionAffinity selectionAffinity, [in] BOOL stillSelecting, [out, retval] BOOL* result);
HRESULT shouldApplyStyle([in] IWebView* webView, [in] IDOMCSSStyleDeclaration* style, [in] IDOMRange* range, [out, retval] BOOL* result);
HRESULT shouldChangeTypingStyle([in] IWebView* webView, [in] IDOMCSSStyleDeclaration* currentStyle, [in] IDOMCSSStyleDeclaration* proposedStyle, [out, retval] BOOL* result);
HRESULT doPlatformCommand([in] IWebView* webView, [in] BSTR command, [out, retval] BOOL* result);
HRESULT webViewDidBeginEditing([in] IWebNotification* notification);
HRESULT webViewDidChange([in] IWebNotification* notification);
HRESULT webViewDidEndEditing([in] IWebNotification* notification);
HRESULT webViewDidChangeTypingStyle([in] IWebNotification* notification);
HRESULT webViewDidChangeSelection([in] IWebNotification* notification);
HRESULT undoManagerForWebView([in] IWebView* webView, [out, retval] IWebUndoManager** undoManager);
HRESULT ignoreWordInSpellDocument([in] IWebView* view, [in] BSTR word);
HRESULT learnWord([in] BSTR word);
HRESULT checkSpellingOfString([in] IWebView* view, [in] LPCTSTR text, [in] int length, [out] int* misspellingLocation, [out] int* misspellingLength);
HRESULT checkGrammarOfString([in] IWebView* view, [in] LPCTSTR text, [in] int length, [out] IEnumWebGrammarDetails** grammarDetails, [out] int* badGrammarLocation, [out] int* badGrammarLength);
HRESULT updateSpellingUIWithGrammarString([in] BSTR string, [in] int location, [in] int length, [in] BSTR userDescription, [in] BSTR* guesses, [in] int guessesCount);
HRESULT updateSpellingUIWithMisspelledWord([in] BSTR word);
HRESULT showSpellingUI([in] BOOL show);
HRESULT spellingUIIsShowing([out, retval] BOOL* result);
HRESULT guessesForWord([in] BSTR word, [out, retval] IEnumSpellingGuesses** guesses);
HRESULT closeSpellDocument([in] IWebView* view);
HRESULT sharedSpellCheckerExists([out, retval] BOOL* exists);
HRESULT preflightChosenSpellServer();
HRESULT updateGrammar();
}
cpp_quote("#if defined(__GNUC__) || defined(__clang__)")
cpp_quote("#pragma GCC diagnostic push")
cpp_quote("#pragma GCC diagnostic ignored \"-Woverloaded-virtual\"")
cpp_quote("#endif")
[
uuid(9973D190-3346-4CAA-AB76-F070CAB0B59B)
]
interface IWebEditingDelegate2 : IWebEditingDelegate
{
HRESULT shouldInsertNode([in] IWebView* webView, [in] IDOMNode* node, [in] IDOMRange* range, [in] WebViewInsertAction action, [out, retval] BOOL* result);
}
cpp_quote("#if defined(__GNUC__) || defined(__clang__)")
cpp_quote("#pragma GCC diagnostic pop")
cpp_quote("#endif")