summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/webkit/WebDocument.inc
blob: c1bfff196b53eb631a50ff4f7aece2baeaf6e88e (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
{ Parsed from WebKit.framework WebDocument.h }


{$ifdef TYPES}
type
  WebDocumentViewProtocolPtr = ^WebDocumentViewProtocol;
  WebDocumentSearchingProtocolPtr = ^WebDocumentSearchingProtocol;
  WebDocumentTextProtocolPtr = ^WebDocumentTextProtocol;
  WebDocumentRepresentationProtocolPtr = ^WebDocumentRepresentationProtocol;
{$endif}

{$ifdef PROTOCOLS}

type
  WebDocumentViewProtocol = objcprotocol external name 'WebDocumentView' (NSObjectProtocol)
    procedure setDataSource (dataSource: WebDataSource); message 'setDataSource:';
    procedure dataSourceUpdated (dataSource: WebDataSource); message 'dataSourceUpdated:';
    procedure setNeedsLayout (flag: ObjCBOOL); message 'setNeedsLayout:';
    procedure layout; message 'layout';
    procedure viewWillMoveToHostWindow (hostWindow: NSWindow); message 'viewWillMoveToHostWindow:';
    procedure viewDidMoveToHostWindow; message 'viewDidMoveToHostWindow';
  end;

type
  WebDocumentSearchingProtocol = objcprotocol external name 'WebDocumentSearching' (NSObjectProtocol)
    function searchFor_direction_caseSensitive_wrap (string_: NSString; forward: ObjCBOOL; caseFlag: ObjCBOOL; wrapFlag: ObjCBOOL): ObjCBOOL; message 'searchFor:direction:caseSensitive:wrap:';
  end;

type
  WebDocumentTextProtocol = objcprotocol external name 'WebDocumentText' (NSObjectProtocol)
    function supportsTextEncoding: ObjCBOOL; message 'supportsTextEncoding';
    function string_: NSString; message 'string';
    function attributedString: NSAttributedString; message 'attributedString';
    function selectedString: NSString; message 'selectedString';
    function selectedAttributedString: NSAttributedString; message 'selectedAttributedString';
    procedure selectAll; message 'selectAll';
    procedure deselectAll; message 'deselectAll';
  end;

type
  WebDocumentRepresentationProtocol = objcprotocol external name 'WebDocumentRepresentation' (NSObjectProtocol)
    procedure setDataSource (dataSource: WebDataSource); message 'setDataSource:';
    procedure receivedData_withDataSource (data: NSData; dataSource: WebDataSource); message 'receivedData:withDataSource:';
    procedure receivedError_withDataSource (error: NSError; dataSource: WebDataSource); message 'receivedError:withDataSource:';
    procedure finishedLoadingWithDataSource (dataSource: WebDataSource); message 'finishedLoadingWithDataSource:';
    function canProvideDocumentSource: ObjCBOOL; message 'canProvideDocumentSource';
    function documentSource: NSString; message 'documentSource';
    function title: NSString; message 'title';
  end;
{$endif}