summaryrefslogtreecommitdiff
path: root/fpcsrc/packages/cocoaint/src/appkit/NSTextList.inc
blob: aa1b583360083e9b62c13e3621b103fc55860282 (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
{ Parsed from Appkit.framework NSTextList.h }

{$ifdef TYPES}
{$ifndef NSTEXTLIST_PAS_T}
{$define NSTEXTLIST_PAS_T}

{ Constants }

const
  NSTextListPrependEnclosingMarker = 1 shl 0;

{$endif}
{$endif}

{$ifdef RECORDS}
{$ifndef NSTEXTLIST_PAS_R}
{$define NSTEXTLIST_PAS_R}

{$endif}
{$endif}

{$ifdef FUNCTIONS}
{$ifndef NSTEXTLIST_PAS_F}
{$define NSTEXTLIST_PAS_F}

{$endif}
{$endif}

{$ifdef EXTERNAL_SYMBOLS}
{$ifndef NSTEXTLIST_PAS_S}
{$define NSTEXTLIST_PAS_S}

{$endif}
{$endif}

{$ifdef FORWARD}
  NSTextList = objcclass;
  NSTextListPointer = ^NSTextList;
  NSTextListPtr = NSTextListPointer;

{$endif}

{$ifdef CLASSES}
{$ifndef NSTEXTLIST_PAS_C}
{$define NSTEXTLIST_PAS_C}

{ NSTextList }
  NSTextList = objcclass external (NSObject, NSCodingProtocol, NSCopyingProtocol)
  private
    _markerFormat: NSString;
    _listFlags: NSUInteger;
    _startIndex: NSInteger;
    _listSecondary: Pointer;
    
  public
    function initWithMarkerFormat_options(format: NSString; mask: NSUInteger): id; message 'initWithMarkerFormat:options:';
    function markerFormat: NSString; message 'markerFormat';
    function listOptions: NSUInteger; message 'listOptions';
    function markerForItemNumber(itemNum: NSInteger): NSString; message 'markerForItemNumber:';
    procedure setStartingItemNumber(itemNum: NSInteger); message 'setStartingItemNumber:';
    function startingItemNumber: NSInteger; message 'startingItemNumber';

    { Adopted Protocols }
    procedure encodeWithCoder(aCoder: NSCoder);
    function initWithCoder(aDecoder: NSCoder): id;
    function copyWithZone(zone_: NSZonePtr): id;
  end;

{$endif}
{$endif}