summaryrefslogtreecommitdiff
path: root/packages/cocoaint/src/pdfkit/PDFSelection.inc
blob: d79e2c99a0a25d8be2d93f40f6a009fb4e049de2 (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
{ Parsed from PDFKit.framework PDFSelection.h }


{ Types from PDFSelection }
{$ifdef TYPES}





{$endif}


{$ifdef TYPES}
type
  PDFSelectionPtr = ^PDFSelection;
{$endif}

{$ifdef CLASSES}

type
  PDFSelection = objcclass external (NSObject, NSCopyingProtocol)
  private
    _pdfPriv: PDFSelectionPrivateVars;
  public
    {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
    function initWithDocument (document: PDFDocument): id; message 'initWithDocument:';
    {$endif}
    function pages: NSArray; message 'pages';
    {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
    function color: NSColor; message 'color';
    procedure setColor (color_: NSColor); message 'setColor:';
    {$endif}
    function string_: NSString; message 'string';
    function attributedString: NSAttributedString; message 'attributedString';
    function boundsForPage (page: PDFPage): NSRect; message 'boundsForPage:';
    {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7)}
    function numberOfTextRangesOnPage (page: PDFPage): NSUInteger; message 'numberOfTextRangesOnPage:';
    function rangeAtIndex_onPage (index: NSUInteger; page: PDFPage): NSRange; message 'rangeAtIndex:onPage:';
    {$endif}
    {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
    function selectionsByLine: NSArray; message 'selectionsByLine';
    {$endif}
    procedure addSelection (selection: PDFSelection); message 'addSelection:';
    {$if (MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5)}
    procedure addSelections (selections: NSArray); message 'addSelections:';
    {$endif}
    procedure extendSelectionAtEnd (succeed: NSInteger); message 'extendSelectionAtEnd:';
    procedure extendSelectionAtStart (precede: NSInteger); message 'extendSelectionAtStart:';
    procedure drawForPage_active (page: PDFPage; active: ObjCBOOL); message 'drawForPage:active:';
    procedure drawForPage_withBox_active (page: PDFPage; box: PDFDisplayBox; active: ObjCBOOL); message 'drawForPage:withBox:active:';

    { Adopted protocols }
    function copyWithZone (zone: NSZonePtr): id; message 'copyWithZone:';
  end;
{$endif}