summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/webkit/WebEditingDelegate.inc
blob: dc3398c912e8d78c4f22ec0f78d138011a6a3c98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ Parsed from Webkit.framework WebEditingDelegate.h }

{$ifdef TYPES}
{$ifndef WEBEDITINGDELEGATE_PAS_T}
{$define WEBEDITINGDELEGATE_PAS_T}

{ Types }
type
  
  WebViewInsertAction = culong;

{ Constants }

const
  WebViewInsertActionTyped = 0;
  WebViewInsertActionPasted = 1;
  WebViewInsertActionDropped = 2;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef WEBEDITINGDELEGATE_PAS_R}
{$define WEBEDITINGDELEGATE_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef WEBEDITINGDELEGATE_PAS_F}
{$define WEBEDITINGDELEGATE_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef WEBEDITINGDELEGATE_PAS_S}
{$define WEBEDITINGDELEGATE_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}

{$endif}

{$ifdef CLASSES}
{$ifndef WEBEDITINGDELEGATE_PAS_C}
{$define WEBEDITINGDELEGATE_PAS_C}

{ WebViewEditingDelegateCategory }
  WebViewEditingDelegateCategory = objccategory external (NSObject)
    function webView_shouldBeginEditingInDOMRange(webView_: WebView; range: DOMRange): Boolean; message 'webView:shouldBeginEditingInDOMRange:';
    function webView_shouldEndEditingInDOMRange(webView_: WebView; range: DOMRange): Boolean; message 'webView:shouldEndEditingInDOMRange:';
    function webView_shouldInsertNode_replacingDOMRange_givenAction(webView_: WebView; node: DOMNode; range: DOMRange; action: WebViewInsertAction): Boolean; message 'webView:shouldInsertNode:replacingDOMRange:givenAction:';
    function webView_shouldInsertText_replacingDOMRange_givenAction(webView_: WebView; text: NSString; range: DOMRange; action: WebViewInsertAction): Boolean; message 'webView:shouldInsertText:replacingDOMRange:givenAction:';
    function webView_shouldDeleteDOMRange(webView_: WebView; range: DOMRange): Boolean; message 'webView:shouldDeleteDOMRange:';
    function webView_shouldChangeSelectedDOMRange_toDOMRange_affinity_stillSelecting(webView_: WebView; currentRange: DOMRange; proposedRange: DOMRange; selectionAffinity: NSSelectionAffinity; flag: Boolean): Boolean; message 'webView:shouldChangeSelectedDOMRange:toDOMRange:affinity:stillSelecting:';
    function webView_shouldApplyStyle_toElementsInDOMRange(webView_: WebView; style: DOMCSSStyleDeclaration; range: DOMRange): Boolean; message 'webView:shouldApplyStyle:toElementsInDOMRange:';
    function webView_shouldChangeTypingStyle_toStyle(webView_: WebView; currentStyle: DOMCSSStyleDeclaration; proposedStyle: DOMCSSStyleDeclaration): Boolean; message 'webView:shouldChangeTypingStyle:toStyle:';
    function webView_doCommandBySelector(webView_: WebView; selector: SEL): Boolean; message 'webView:doCommandBySelector:';
    procedure webViewDidBeginEditing(notification: NSNotification); message 'webViewDidBeginEditing:';
    procedure webViewDidChange(notification: NSNotification); message 'webViewDidChange:';
    procedure webViewDidEndEditing(notification: NSNotification); message 'webViewDidEndEditing:';
    procedure webViewDidChangeTypingStyle(notification: NSNotification); message 'webViewDidChangeTypingStyle:';
    procedure webViewDidChangeSelection(notification: NSNotification); message 'webViewDidChangeSelection:';
    function undoManagerForWebView(webView_: WebView): NSUndoManager; message 'undoManagerForWebView:';
  end;

{$endif}
{$endif}