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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
|
{
File: HIToolbox/HIToolbar.h
Contains: Toolbar and Toolbar Item API
Version: HIToolbox-437~1
Copyright: © 2001-2008 by Apple Computer, Inc., all rights reserved.
Bugs?: For bug reports, consult the following page on
the World Wide Web:
http://www.freepascal.org/bugs.html
}
{ File: HIToolbar.p(.pas) }
{ }
{ Contains: CodeWarrior Pascal(GPC) translation of Apple's Mac OS X 10.2 introduced HIToolbar.h. }
{ Translation compatible with make-gpc-interfaces.pl generated MWPInterfaces }
{ is linkable with Mac OS X 10.2.x or higher CFM CarbonLib and the GPC translation is }
{ linkable with Mac OS X 10.2.x or higher Mach-O Carbon.framework. For the 10.3 }
{ available APIs, the CodeWarrior Pascal translation is only selectively linkable with }
{ Mac OS X 10.3.x or higher CFM CarbonLib and the GPC translation is linkable with Mac }
{ OS X 10.3.x or higher Mach-O Carbon.framework. }
{ }
{ Version: 1.1 }
{ }
{ Pascal Translation: Gale Paeper, <gpaeper@empirenet.com>, 2004 }
{ }
{ Copyright: Subject to the constraints of Apple's original rights, you're free to use this }
{ translation as you deem fit. }
{ }
{ Bugs?: This is an AS IS translation with no express guarentees of any kind. }
{ If you do find a bug, please help out the Macintosh Pascal programming community by }
{ reporting your bug finding and possible fix to either personal e-mail to Gale Paeper }
{ or a posting to the MacPascal mailing list. }
{ }
{
Change History (most recent first):
<4> 5/8/04 GRP Completed new additions from HIToolbar.h, version HIToolbox-145.33~1.
<3> ?/?/04 PNL Added most new additions from HIToolbar.h, version HIToolbox-145.33~1.
<2> 10/02/04 GRP Added support for GPC as well as CodeWarrior Pascal.
<1> 9/8/03 GRP First Pascal translation of HIToolbar.h, version HIToolbox-123.6~10.
}
{ Translation assisted by: }
{This file was processed by Dan's Source Converter}
{version 1.3 (this version modified by Ingemar Ragnemalm)}
{ Pascal Translation Updated: Peter N Lewis, <peter@stairways.com.au>, August 2005 }
{ Pascal Translation Updated: Jonas Maebe, <jonas@freepascal.org>, October 2009 }
{ Pascal Translation Updated: Gorazd Krosl, <gorazd_1957@yahoo.ca>, October 2009 }
{
Modified for use with Free Pascal
Version 308
Please report any bugs to <gpc@microbizz.nl>
}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
{$mode macpas}
{$packenum 1}
{$macro on}
{$inline on}
{$calling mwpascal}
unit HIToolbar;
interface
{$setc UNIVERSAL_INTERFACES_VERSION := $0400}
{$setc GAP_INTERFACES_VERSION := $0308}
{$ifc not defined USE_CFSTR_CONSTANT_MACROS}
{$setc USE_CFSTR_CONSTANT_MACROS := TRUE}
{$endc}
{$ifc defined CPUPOWERPC and defined CPUI386}
{$error Conflicting initial definitions for CPUPOWERPC and CPUI386}
{$endc}
{$ifc defined FPC_BIG_ENDIAN and defined FPC_LITTLE_ENDIAN}
{$error Conflicting initial definitions for FPC_BIG_ENDIAN and FPC_LITTLE_ENDIAN}
{$endc}
{$ifc not defined __ppc__ and defined CPUPOWERPC32}
{$setc __ppc__ := 1}
{$elsec}
{$setc __ppc__ := 0}
{$endc}
{$ifc not defined __ppc64__ and defined CPUPOWERPC64}
{$setc __ppc64__ := 1}
{$elsec}
{$setc __ppc64__ := 0}
{$endc}
{$ifc not defined __i386__ and defined CPUI386}
{$setc __i386__ := 1}
{$elsec}
{$setc __i386__ := 0}
{$endc}
{$ifc not defined __x86_64__ and defined CPUX86_64}
{$setc __x86_64__ := 1}
{$elsec}
{$setc __x86_64__ := 0}
{$endc}
{$ifc not defined __arm__ and defined CPUARM}
{$setc __arm__ := 1}
{$elsec}
{$setc __arm__ := 0}
{$endc}
{$ifc defined cpu64}
{$setc __LP64__ := 1}
{$elsec}
{$setc __LP64__ := 0}
{$endc}
{$ifc defined __ppc__ and __ppc__ and defined __i386__ and __i386__}
{$error Conflicting definitions for __ppc__ and __i386__}
{$endc}
{$ifc defined __ppc__ and __ppc__}
{$setc TARGET_CPU_PPC := TRUE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __ppc64__ and __ppc64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := TRUE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __i386__ and __i386__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := TRUE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := FALSE}
{$ifc defined(iphonesim)}
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := TRUE}
{$elsec}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$endc}
{$elifc defined __x86_64__ and __x86_64__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := TRUE}
{$setc TARGET_CPU_ARM := FALSE}
{$setc TARGET_OS_MAC := TRUE}
{$setc TARGET_OS_IPHONE := FALSE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elifc defined __arm__ and __arm__}
{$setc TARGET_CPU_PPC := FALSE}
{$setc TARGET_CPU_PPC64 := FALSE}
{$setc TARGET_CPU_X86 := FALSE}
{$setc TARGET_CPU_X86_64 := FALSE}
{$setc TARGET_CPU_ARM := TRUE}
{ will require compiler define when/if other Apple devices with ARM cpus ship }
{$setc TARGET_OS_MAC := FALSE}
{$setc TARGET_OS_IPHONE := TRUE}
{$setc TARGET_IPHONE_SIMULATOR := FALSE}
{$elsec}
{$error __ppc__ nor __ppc64__ nor __i386__ nor __x86_64__ nor __arm__ is defined.}
{$endc}
{$ifc defined __LP64__ and __LP64__ }
{$setc TARGET_CPU_64 := TRUE}
{$elsec}
{$setc TARGET_CPU_64 := FALSE}
{$endc}
{$ifc defined FPC_BIG_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := TRUE}
{$setc TARGET_RT_LITTLE_ENDIAN := FALSE}
{$elifc defined FPC_LITTLE_ENDIAN}
{$setc TARGET_RT_BIG_ENDIAN := FALSE}
{$setc TARGET_RT_LITTLE_ENDIAN := TRUE}
{$elsec}
{$error Neither FPC_BIG_ENDIAN nor FPC_LITTLE_ENDIAN are defined.}
{$endc}
{$setc ACCESSOR_CALLS_ARE_FUNCTIONS := TRUE}
{$setc CALL_NOT_IN_CARBON := FALSE}
{$setc OLDROUTINENAMES := FALSE}
{$setc OPAQUE_TOOLBOX_STRUCTS := TRUE}
{$setc OPAQUE_UPP_TYPES := TRUE}
{$setc OTCARBONAPPLICATION := TRUE}
{$setc OTKERNEL := FALSE}
{$setc PM_USE_SESSION_APIS := TRUE}
{$setc TARGET_API_MAC_CARBON := TRUE}
{$setc TARGET_API_MAC_OS8 := FALSE}
{$setc TARGET_API_MAC_OSX := TRUE}
{$setc TARGET_CARBON := TRUE}
{$setc TARGET_CPU_68K := FALSE}
{$setc TARGET_CPU_MIPS := FALSE}
{$setc TARGET_CPU_SPARC := FALSE}
{$setc TARGET_OS_UNIX := FALSE}
{$setc TARGET_OS_WIN32 := FALSE}
{$setc TARGET_RT_MAC_68881 := FALSE}
{$setc TARGET_RT_MAC_CFM := FALSE}
{$setc TARGET_RT_MAC_MACHO := TRUE}
{$setc TYPED_FUNCTION_POINTERS := TRUE}
{$setc TYPE_BOOL := FALSE}
{$setc TYPE_EXTENDED := FALSE}
{$setc TYPE_LONGLONG := TRUE}
uses MacTypes,CFArray,CFBase,CGImage,IconsCore,Menus,HIObject,QuickdrawTypes;
{$endc} {not MACOSALLINCLUDE}
{$ifc TARGET_OS_MAC}
{$ALIGN POWER}
type
HIToolbarRef = HIObjectRef;
HIToolbarItemRef = HIObjectRef;
{----------------------------------------------------------------------------------}
{ Config data keys used in HIToolbarSetItemsWithIdentifiers }
{----------------------------------------------------------------------------------}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarIdentifierKey CFSTRP('identifier')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarDataKey CFSTRP('data')}
{$endc}
{----------------------------------------------------------------------------------}
{ Standard Toolbox-provided item identifiers }
{----------------------------------------------------------------------------------}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarSeparatorIdentifier CFSTRP('com.apple.hitoolbox.toolbar.separator')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarSpaceIdentifier CFSTRP('com.apple.hitoolbox.toolbar.space')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarFlexibleSpaceIdentifier CFSTRP('com.apple.hitoolbox.toolbar.flexiblespace')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarCustomizeIdentifier CFSTRP('com.apple.hitoolbox.toolbar.customize')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarPrintItemIdentifier CFSTRP('com.apple.hitoolbox.toolbar.print')}
{$endc}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarFontsItemIdentifier CFSTRP('com.apple.hitoolbox.toolbar.fonts')}
{$endc}
{
* Summary:
* Toolbar Display Mode
}
const
{
* This indicates to use the default display mode. Currently, this is
* defined as being both icon and label, but could change in the
* future.
}
kHIToolbarDisplayModeDefault = 0;
{
* This indicates to display the image as well as the label of the
* toolbar items.
}
kHIToolbarDisplayModeIconAndLabel = 1;
{
* This indicates that only the image should be shown.
}
kHIToolbarDisplayModeIconOnly = 2;
{
* This indicates that only the label should be shown.
}
kHIToolbarDisplayModeLabelOnly = 3;
type
HIToolbarDisplayMode = UInt32;
{
* Summary:
* Toolbar Display Size
}
const
{
* This indicates to use the default display size. Currently, this is
* defined as using 32 x 32 icons ("normal" size).
}
kHIToolbarDisplaySizeDefault = 0;
{
* This size uses a larger text and icon size.
}
kHIToolbarDisplaySizeNormal = 1;
{
* This size uses a smaller text and icon size.
}
kHIToolbarDisplaySizeSmall = 2;
type
HIToolbarDisplaySize = UInt32;
{
* Summary:
* Toolbar Attributes
}
const
{
* Pass this to indicate no attributes at all.
}
kHIToolbarNoAttributes = 0;
{
* Pass this attribute to allow the toolbar to save its configuration
* automatically to your application's preferences. You must make
* sure to synchronize the prefs at some point to ensure it gets
* written to disk. The toolbar will also read its config from the
* prefs if this attribute is set.
}
kHIToolbarAutoSavesConfig = 1 shl 0;
{
* This attribute indicates that the toolbar is configurable, i.e.
* the user can drag items around and bring up the configuration
* palette, etc.
}
kHIToolbarIsConfigurable = 1 shl 1;
kHIToolbarValidAttrs = kHIToolbarAutoSavesConfig or kHIToolbarIsConfigurable;
{
* Summary:
* Toolbar Commands
}
const
{
* Sending this to a window with a toolbar will cause the
* configuration sheet to appear. You can set a menu item's command
* to this command ID and it will be handled and updated
* automatically for you.
}
kHICommandCustomizeToolbar = FourCharCode('tcfg');
{
* This command causes a window's toolbar to be shown. You can set a
* menu item's command to this ID and it will be handled and updated
* automatically for you.
}
kHICommandShowToolbar = FourCharCode('tbsh');
{
* This command causes a window's toolbar to be hidden. You can set a
* menu item's command to this ID and it will be handled and updated
* automatically for you.
}
kHICommandHideToolbar = FourCharCode('tbhd');
{
* This command causes a window's toolbar visibility to be toggled:
* if the toolbar is currently visible, then the toolbar is hidden,
* and vice versa. You can set a menu item's command to this ID and
* it will be handled and updated automatically for you. The text of
* the menu item will also be updated to indicate whether the toolbar
* will be shown or hidden. The standard window frame view sends a
* command event with this command ID when the toolbar button is
* clicked. Available in Mac OS X 10.5 and later.
}
kHICommandToggleToolbar = FourCharCode('tbtg');
{
* This command causes the visibility of all toolbars with the same
* ID as the toolbar in the target window to be toggled. The standard
* window frame view sends a command event with this command ID when
* the toolbar button is option-clicked. Available in Mac OS X 10.5
* and later.
}
kHICommandToggleAllToolbars = FourCharCode('tbta');
{
* This command causes the display mode and size of a window's
* toolbar to be cycled to the next smaller combination. For example,
* if the toolbar is currently displaying IconOnly at the Normal
* size, then the toolbar will switch display size to Small. The
* standard window frame view sends a command event with this command
* ID when the toolbar button is command-clicked. Available in Mac OS
* X 10.5 and later.
}
kHICommandCycleToolbarModeSmaller = FourCharCode('tbms');
{
* This command causes the display mode and size of a window's
* toolbar to be cycled to the next larger combination. For example,
* if the toolbar is currently displaying IconOnly at the Normal
* size, then the toolbar will switch display mode to IconAndLabel
* and display size to Small. The standard window frame view sends a
* command event with this command ID when the toolbar button is
* command-shift-clicked. Available in Mac OS X 10.5 and later.
}
kHICommandCycleToolbarModeLarger = FourCharCode('tbml');
{
* This command, when specified as a toolbar itemÕs command ID, will
* cause a kEventToolbarItemPerformAction event to be generated when
* the toolbar itemÕs menu item in the toolbar overflow menu is
* selected. If the item has any other command ID, a
* kEventCommandProcess event will be generated instead, containing
* the itemÕs command ID.
}
kHIToolbarCommandPressAction = FourCharCode('tbpr');
{
kEventClassToolbar quick reference:
kEventToolbarGetDefaultIdentifiers = 1,
kEventToolbarGetAllowedIdentifiers = 2,
kEventToolbarCreateItemWithIdentifier = 3,
kEventToolbarCreateItemFromDrag = 4,
kEventToolbarItemAdded = 5,
kEventToolbarItemRemoved = 6,
kEventToolbarDisplayModeChanged = 7,
kEventToolbarDisplaySizeChanged = 8,
kEventToolbarLayoutChanged = 9,
kEventToolbarGetSelectableIdentifiers = 10,
kEventToolbarBeginMultiChange = 12,
kEventToolbarEndMultiChange = 13
}
{ Toolbar event parameters and types}
const
kEventParamToolbar = FourCharCode('tbar'); { typeHIToolbarRef}
kEventParamToolbarItem = FourCharCode('tbit'); { typeHIToolbarItemRef}
kEventParamToolbarItemIdentifier = FourCharCode('tbii'); { typeCFStringRef}
kEventParamToolbarItemConfigData = FourCharCode('tbid'); { typeCFTypeRef}
typeHIToolbarRef = FourCharCode('tbar'); { HIToolbarRef}
typeHIToolbarItemRef = FourCharCode('tbit'); { HIToolbarItemRef}
{
* kEventClassToolbar / kEventToolbarGetDefaultIdentifiers
*
* Summary:
* This event is sent to the delegate to get a list of all of the
* default item identifiers that should be created for a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbar (in, typeHIToolbarRef)
* The toolbar for which to retrieve identifiers.
*
* --> kEventParamMutableArray (in, typeCFMutableArrayRef)
* A mutable array to fill in with the identifiers.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarGetDefaultIdentifiers = 1;
{
* kEventClassToolbar / kEventToolbarGetAllowedIdentifiers
*
* Summary:
* This event is sent to the delegate to get a list of all the items
* which could possibly be added to the toolbar. This is sent out
* when the configuration sheet is about to be displayed. You are
* passed a mutable array to fill in with the identifiers.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbar (in, typeHIToolbarRef)
* The toolbar for which to retrieve identifiers.
*
* --> kEventParamMutableArray (in, typeCFMutableArrayRef)
* A mutable array to fill in with the identifiers.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarGetAllowedIdentifiers = 2;
{
* kEventClassToolbar / kEventToolbarGetSelectableIdentifiers
*
* Summary:
* This event is sent to the delegate to get a list of all the items
* which can acquire a selection highlight when clicked. This is
* sent out after a toolbar item is clicked by the user. You are
* passed a mutable array to fill in with the identifiers. If you
* pass back a non-empty array, and the clicked item's identifier
* matches one of the identifiers that is in the list, then the
* toolbar will automatically draw that item with a selected
* highlight, and unhighlight the previously selected item. Note
* that the selection will only change in the clicked window; it
* will not change in other windows that share the same toolbar. To
* share the selection across all windows that use the same toolbar,
* you will need to manually change the kHIToolbarItemSelected
* attribute for the clicked item using
* HIToolbarItemChangeAttributes; in this case, you should not
* handle the kEventToolbarGetSelectableIdentifiers event.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbar (in, typeHIToolbarRef)
* The toolbar for which to retrieve identifiers.
*
* --> kEventParamMutableArray (in, typeCFMutableArrayRef)
* A mutable array to fill in with the identifiers.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarGetSelectableIdentifiers = 10;
{
* kEventClassToolbar / kEventToolbarCreateItemWithIdentifier
*
* Summary:
* This event is sent to the delegate when we need to create an item
* from an identifier.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbar (in, typeHIToolbarRef)
* The toolbar for which to create an item.
*
* --> kEventParamToolbarItemIdentifier (in, typeCFStringRef)
* The toolbar item identifier.
*
* --> kEventParamToolbarItemConfigData (in, typeCFTypeRef)
* The toolbar item configuration data. This parameter is
* optional and may not be present in all instances of this
* event.
*
* <-- kEventParamToolbarItem (out, typeHIToolbarItemRef)
* On exit, contains the new toolbar item.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarCreateItemWithIdentifier = 3;
{
* kEventClassToolbar / kEventToolbarCreateItemFromDrag
*
* Summary:
* This event is sent to the delegate to when we need to create an
* item from a drag.
*
* Discussion:
* This event allows you to be able to drag items into a toolbar
* that arenÕt normal toolbar items. You might use this to allow
* your toolbar to accept file system items, for example.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamDragRef (in, typeDragRef)
* The DragRef with information about the drag.
*
* <-- kEventParamToolbarItem (out, typeHIToolbarItemRef)
* On exit, contains the new toolbar item.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarCreateItemFromDrag = 4;
{
* kEventClassToolbar / kEventToolbarItemAdded
*
* Summary:
* Sent to interested parties when an item is added to the toolbar.
* The toolbar object sends this event to itself, so you'd need to
* install a handler on the toolbar to receive this event.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbarItem (in, typeHIToolbarItemRef)
* The item that was just added.
*
* --> kEventParamIndex (in, typeCFIndex)
* The index at which the item now exists.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemAdded = 5;
{
* kEventClassToolbar / kEventToolbarItemRemoved
*
* Summary:
* Sent to interested parties when an item is removed from toolbar.
* It is called after the item has already been removed. The toolbar
* object sends this event to itself, so you'd need to install a
* handler on the toolbar to receive this event.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbarItem (in, typeHIToolbarItemRef)
* The item that was just removed.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemRemoved = 6;
{
* kEventClassToolbar / kEventToolbarDisplayModeChanged
*
* Summary:
* Sent to interested parties when an the display mode is changed
* for a toolbar. The toolbar object sends this event to itself, so
* you'd need to install a handler on the toolbar to receive this
* event.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarDisplayModeChanged = 7;
{
* kEventClassToolbar / kEventToolbarDisplaySizeChanged
*
* Summary:
* Sent to interested parties when an the display size is changed
* for a toolbar. The toolbar object sends this event to itself, so
* you'd need to install a handler on the toolbar to receive this
* event.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarDisplaySizeChanged = 8;
{
* kEventClassToolbar / kEventToolbarLayoutChanged
*
* Summary:
* Sent to interested parties when the layout of a toolbar changes
* (either an item has been moved, or the entire contents have been
* replaced). Basically it is sent for changes which would require a
* total resync with the current state of things. The toolbar object
* sends this event to itself, so you'd need to install a handler on
* the toolbar to receive this event.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarLayoutChanged = 9;
{
* kEventClassToolbar / kEventToolbarBeginMultiChange
*
* Summary:
* Sent to interested parties when multiple attributes are going to
* be changed at once. For example, it is possible for the display
* mode and size to change at the same time. When this happens,
* instead of reacting two times (one for display mode changed and
* one for display size changed), you can listen to see if we are
* going to change multiple attributes and hold off on doing any
* relayout, etc. until the EndMultiChange event comes in. The
* toolbar object sends this event to itself, so you'd need to
* install a handler on the toolbar to receive this event.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarBeginMultiChange = 12;
{
* kEventClassToolbar / kEventToolbarEndMultiChange
*
* Summary:
* Sent to interested parties when the toolbar is done adjusting
* multiple attributes. See kEventToolbarBeginMultiChange for more
* information. The toolbar object sends this event to itself, so
* you'd need to install a handler on the toolbar to receive this
* event.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarEndMultiChange = 13;
{
kEventClassToolbarItem quick reference:
kEventToolbarItemImageChanged = 1,
kEventToolbarItemLabelChanged = 2,
kEventToolbarItemHelpTextChanged = 3,
kEventToolbarItemCommandIDChanged = 4,
kEventToolbarItemGetPersistentData = 5,
kEventToolbarItemCreateCustomView = 6,
kEventToolbarItemEnabledStateChanged = 7,
kEventToolbarItemPerformAction = 8,
kEventToolbarItemWouldAcceptDrop = 10,
kEventToolbarItemAcceptDrop = 11,
kEventToolbarItemSelectedStateChanged = 12
}
{
* kEventClassToolbarItem / kEventToolbarItemImageChanged
*
* Summary:
* This event is sent to the item when the image changes. Any
* interested parties can install handlers on the toolbar item to
* receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemImageChanged = 1;
{
* kEventClassToolbarItem / kEventToolbarItemLabelChanged
*
* Summary:
* This event is sent to the item when the label changes. Any
* interested parties can install handlers on the toolbar item to
* receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemLabelChanged = 2;
{
* kEventClassToolbarItem / kEventToolbarItemHelpTextChanged
*
* Summary:
* This event is sent to the item when the help text changes. Any
* interested parties can install handlers on the toolbar item to
* receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemHelpTextChanged = 3;
{
* kEventClassToolbarItem / kEventToolbarItemCommandIDChanged
*
* Summary:
* This event is sent to the item when the command ID changes. Any
* interested parties can install handlers on the toolbar item to
* receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemCommandIDChanged = 4;
{
* kEventClassToolbarItem / kEventToolbarItemGetPersistentData
*
* Summary:
* This event is sent to the item when the toolbar is going to write
* out the configuration information for the item. Any custom items
* can listen for this event and add any extra information to what
* is written out into the config so that it can be reanimated later
* on from the same config data. Typically, you'd not need to handle
* this event.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* <-- kEventParamToolbarItemConfigData (out, typeCFTypeRef)
* On exit, contains configuration information for the item.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemGetPersistentData = 5;
{
* kEventClassToolbarItem / kEventToolbarItemCreateCustomView
*
* Summary:
* This event is sent to the toolbar item when it is time to create
* a view for it to display its contents. Implementors of custom
* toolbar items can install a handler for this event to create
* their own custom views for their items.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* <-- kEventParamControlRef (out, typeControlRef)
* On exit, contains the itemÕs custom view.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemCreateCustomView = 6;
{
* kEventClassToolbarItem / kEventToolbarItemEnabledStateChanged
*
* Summary:
* This event is sent to the item when the enabled state changes.
* Any interested parties can install handlers on the toolbar item
* to receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* <-- kEventParamControlRef (out, typeControlRef)
* The window in which the item is changing state. This
* parameter is optional and may not be present in all
* instances of this event. If not present, the item is
* changing state across all windows that share the same
* toolbar.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemEnabledStateChanged = 7;
{
* kEventClassToolbarItem / kEventToolbarItemSelectedStateChanged
*
* Summary:
* This event is sent to the item when the selected state changes.
* Any interested parties can install handlers on the toolbar item
* to receive notifications.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamWindowRef (in, typeWindowRef)
* The window in which the item is changing state. This
* parameter is optional and may not be present in all
* instances of this event. If not present, the item is
* changing state across all windows that share the same
* toolbar.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemSelectedStateChanged = 12;
{
* kEventClassToolbarItem / kEventToolbarItemPerformAction
*
* Summary:
* This event is sent when a toolbar item is clicked. Subclasses of
* toolbar items can choose to do special actions by overriding this
* event. If this event is unhandled, the default action of sending
* a command event will occur.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemPerformAction = 8;
{
* kEventClassToolbarItem / kEventToolbarItemWouldAcceptDrop
*
* Summary:
* This event is sent when a drag enters a toolbar item. If the
* toolbar item wants to accept drags (like finder items can when
* they represent containers), simply respond to this event and
* return true in the kEventParamResult parameter. The toolbar item
* will hilite appropriately. If you are using a custom view, you do
* not need to respond to this, since you'll have full drag and drop
* capability via the view system. This is to support custom items
* which are using the standard view.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamDragRef (in, typeDragRef)
* The drag to test for tastiness of flavors.
*
* <-- kEventParamResult (out, typeBoolean)
* A boolean value representing whether the drag was something
* the item wants to accept (true) or not (false). If this
* parameter does not exist or is false, we do not consult any
* other parameters in this event.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemWouldAcceptDrop = 10;
{
* kEventClassToolbarItem / kEventToolbarItemAcceptDrop
*
* Summary:
* If you responded to kEventToolbarItemLikesDrag and returned true
* in the kEventParamResult parameter, and the user drops the drag
* onto your item, you will be called with this event.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamDragRef (in, typeDragRef)
* The drag that was just dropped.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemAcceptDrop = 11;
{
kEventClassToolbarItemView quick reference:
kEventToolbarItemViewConfigForMode = 3,
kEventToolbarItemViewConfigForSize = 4,
kEventToolbarItemViewEnterConfigMode = 5,
kEventToolbarItemViewExitConfigMode = 6
}
const
kEventParamToolbarDisplayMode = FourCharCode('tbdm'); { typeHIToolbarDisplayMode}
kEventParamToolbarDisplaySize = FourCharCode('tbds'); { typeHIToolbarDisplaySize}
typeHIToolbarDisplayMode = FourCharCode('tbdm'); { HIToolbarDisplayMode}
typeHIToolbarDisplaySize = FourCharCode('tbds'); { HIToolbarDisplaySize}
{
* kEventClassToolbarItemView / kEventToolbarItemViewConfigForMode
*
* Summary:
* Notifies a toolbar item view that the toolbar's display mode has
* changed.
*
* Discussion:
* Notifies a toolbar item view that the toolbar's display mode has
* changed. A custom toolbar item view can respond to this in any
* way it sees fit. Most times, responding to this is not necessary
* Ñ when the toolbar goes from icon to text only, for example, the
* view is automatically hidden, so there is not much to do. It is
* here for informational purposes only.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbarDisplayMode (in, typeHIToolbarDisplayMode)
* The toolbar item view's new display mode.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemViewConfigForMode = 3;
{
* kEventClassToolbarItemView / kEventToolbarItemViewConfigForSize
*
* Summary:
* Notifies a toolbar item view that the toolbar's display size has
* changed.
*
* Discussion:
* Notifies a toolbar item view that the toolbar's display size has
* changed. A custom toolbar item view can respond to this in any
* way it sees fit. Most times, responding to this is not necessary.
* However, some custom views might need to flush metrics caches
* when the display size changes.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* --> kEventParamToolbarDisplaySize (in, typeHIToolbarDisplaySize)
* The toolbar item view's new display size.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemViewConfigForSize = 4;
{
* kEventClassToolbarItemView / kEventToolbarItemViewEnterConfigMode
*
* Summary:
* Notifies a toolbar item view that we've entered configure mode.
*
* Discussion:
* Notifies a toolbar item view that we've entered configure mode. A
* custom toolbar item view can respond to this in any way it sees
* fit. For example, the space and flexible space mark themselves to
* draw a rectangle and merely invalidate so they get redrawn so you
* can see them during configure.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemViewEnterConfigMode = 5;
{
* kEventClassToolbarItemView / kEventToolbarItemViewExitConfigMode
*
* Summary:
* Notifies a toolbar item view that we've finished with configure
* mode.
*
* Discussion:
* Notifies a toolbar item view that we're now out of configure
* mode. A custom toolbar item view can respond to this in any way
* it sees fit.
*
* Mac OS X threading:
* Not thread safe
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework
* CarbonLib: not available
}
const
kEventToolbarItemViewExitConfigMode = 6;
{
* Summary:
* Toolbar Item Attributes
}
const
{
* Pass this to indicate no attributes at all.
}
kHIToolbarItemNoAttributes = 0;
{
* This indicates that an item can have more than one instance of
* itself in the toolbar. If this is not set, only one can be
* present. By default, the determining factor for what determines if
* two items are identical is the toolbar identifier. Subclasses of
* HIToolbarItem can specify more elaborate equality.
}
kHIToolbarItemAllowDuplicates = 1 shl 0;
{
* This item can be rearranged, but it cannot be removed from the
* Toolbar by the user.
}
kHIToolbarItemCantBeRemoved = 1 shl 1;
{
* This item cannot be moved at all by the user. It is anchored to
* the left of the toolbar. It is important that there not be any
* unanchored items to the left of this item, else dragging items
* around will be a bit wacky. It is up you you, the home viewer, to
* make sure that anchored items are all on the left. This allows you
* to do toolbars like the the one in the System Preferences app,
* where the first couple of items are stuck in place.
}
kHIToolbarItemAnchoredLeft = 1 shl 2;
{
* This indicates the item acts as a separator. This means two things
* at present. First, it means that it automatically shows up as a
* divider line in a menu representation of the toolbar, and second
* it means the view that represents this item can draw in the full
* top to bottom space that the toolbar item occupies in the toolbar.
}
kHIToolbarItemIsSeparator = 1 shl 3;
{
* If this attribute bit is set, the command that gets sent out will
* be directed at the user focus instead of at the window the toolbar
* is attached to.
}
kHIToolbarItemSendCmdToUserFocus = 1 shl 4;
{
* If this attribute bit is set, clicking on the label of an item
* does nothing. This attribute is ONLY considered when a custom view
* is present. What it really does is make the toolbar item view dead
* to clicks while still allowing clicks to be sent to the custom
* view. When the toolbar is in text-only mode and this attribute is
* set, it displays the label in a disabled (grayed) appearance. You
* might want to change this attribute when switching between display
* modes. For example, the view switcher in finder does not allow
* clicks on the label when in icon and text mode, but it does
* respond to clicks when in text only mode. To change this on the
* fly, you should listen for kEventToolbarItemViewConfigForMode in
* your custom view and adjust this attribute as you desire. This
* attribute is available in Mac OS X 10.3 and later.
}
kHIToolbarItemLabelDisabled = 1 shl 5;
{
* This item is disabled. Setting this attribute is the same as
* calling HIToolbarItemSetEnabled( item, false ). Available on Mac
* OS X 10.4 and later.
}
kHIToolbarItemDisabled = 1 shl 6;
{
* This item is drawn with a selected appearance. Available on Mac OS
* X 10.4 and later.
}
kHIToolbarItemSelected = 1 shl 7;
{
* The set of all valid toolbar item attributes.
}
kHIToolbarItemValidAttrs = kHIToolbarItemAllowDuplicates or kHIToolbarItemIsSeparator or kHIToolbarItemCantBeRemoved or kHIToolbarItemAnchoredLeft or kHIToolbarItemSendCmdToUserFocus or kHIToolbarItemLabelDisabled or kHIToolbarItemDisabled or kHIToolbarItemSelected;
{
* The set of toolbar item attributes that can be changed with
* HIToolbarItemChangeAttributes.
}
kHIToolbarItemMutableAttrs = kHIToolbarItemCantBeRemoved or kHIToolbarItemAnchoredLeft or kHIToolbarItemLabelDisabled or kHIToolbarItemDisabled or kHIToolbarItemSelected;
{======================================================================================}
{ FUNCTIONS }
{======================================================================================}
{$ifc not TARGET_CPU_64}
{
* HIToolbarCreate()
*
* Summary:
* Creates a toolbar.
*
* Discussion:
* After creating a toolbar, one would normally attach it to a
* window using SetWindowToolbar, described in MacWindows.h. Since
* the toolbar is merely the model (as opposed to the view), there
* are no routines to hide or show it here. Please look to
* MacWindows.h for the routines ShowHideWindowToolbar and
* IsWindowToolbarVisible for more information.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inIdentifier:
* The identifier of the toolbar. If you specify that the toolbar
* auto-saves its configuration, this identifier is used to mark
* the config info in your application's preferences. You must
* specify an identifier.
*
* inAttributes:
* Any toolbar attributes you wish to specify, such as
* kHIToolbarAutoSavesConfig or kHIToolbarIsConfigurable.
*
* outToolbar:
* The toolbar reference to your new toolbar.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarCreate( inIdentifier: CFStringRef; inAttributes: OptionBits; var outToolbar: HIToolbarRef ): OSStatus; external name '_HIToolbarCreate';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarGetAttributes()
*
* Summary:
* Returns the attributes for the given toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose attributes to retrieve.
*
* outAttributes:
* The attributes.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarGetAttributes( inToolbar: HIToolbarRef; var outAttributes: OptionBits ): OSStatus; external name '_HIToolbarGetAttributes';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarChangeAttributes()
*
* Summary:
* Changes the attributes of a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose attributes you want to change.
*
* inAttrsToSet:
* The attributes you wish to set/enable.
*
* inAttrsToClear:
* The attributes you wish to clear/disable.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarChangeAttributes( inToolbar: HIToolbarRef; inAttrsToSet: OptionBits; inAttrsToClear: OptionBits ): OSStatus; external name '_HIToolbarChangeAttributes';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarGetDisplayMode()
*
* Summary:
* Returns the current display mode of a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose display mode you wish to receive.
*
* outDisplayMode:
* The display mode.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarGetDisplayMode( inToolbar: HIToolbarRef; var outDisplayMode: HIToolbarDisplayMode ): OSStatus; external name '_HIToolbarGetDisplayMode';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarSetDisplayMode()
*
* Summary:
* Sets the current display mode of a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose display mode you wish to set.
*
* inDisplayMode:
* The display mode. If the toolbar is visible, it will be redrawn.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarSetDisplayMode( inToolbar: HIToolbarRef; inDisplayMode: HIToolbarDisplayMode ): OSStatus; external name '_HIToolbarSetDisplayMode';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarGetDisplaySize()
*
* Summary:
* Gets the current display size of a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose display size you wish to get.
*
* outSize:
* The display size.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarGetDisplaySize( inToolbar: HIToolbarRef; var outSize: HIToolbarDisplaySize ): OSStatus; external name '_HIToolbarGetDisplaySize';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarSetDisplaySize()
*
* Summary:
* Sets the current display size of a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose display size you wish to set.
*
* inSize:
* The display size. If the toolbar is visible, it will be redrawn.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarSetDisplaySize( inToolbar: HIToolbarRef; inSize: HIToolbarDisplaySize ): OSStatus; external name '_HIToolbarSetDisplaySize';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarCopyIdentifier()
*
* Summary:
* Returns the identifier for a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose identifier you wish to get.
*
* outIdentifier:
* The identifier. You must release it when you are finished with
* it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarCopyIdentifier( inToolbar: HIToolbarRef; var outIdentifier: CFStringRef ): OSStatus; external name '_HIToolbarCopyIdentifier';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarSetItemsWithIdentifiers()
*
* Summary:
* Allows you to set a toolbar's items all at once.
*
* Discussion:
* The entries in the array must be either CFStringRefs or
* CFDictionaryRefs. You do not need to use the same type for all
* entries; different entries can use different types. If an array
* entry is a CFStringRef, the string must contain a toolbar item
* identifier. If an array entry is a dictionary, the dictionary
* must contain a CFStringRef specifying a toolbar item identifier,
* and may optionally also contain a CFTypeRef specifying the
* toolbar item's configuration data, if the item requires it. The
* key for the identifier string is kHIToolbarIdentifierKey, and the
* key for the config data string is kHIToolbarDataKey.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose items you wish to set.
*
* inArray:
* The array of toolbar items to create.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
* Non-Carbon CFM: not available
}
function HIToolbarSetItemsWithIdentifiers( inToolbar: HIToolbarRef; inArray: CFArrayRef ): OSStatus; external name '_HIToolbarSetItemsWithIdentifiers';
(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
{
* HIToolbarCopyItems()
*
* Summary:
* Returns the array of toolbar items for a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose items you wish to receive.
*
* outItems:
* The array of toolbar items owned by the toolbar. You must
* release the array when you are finished with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarCopyItems( inToolbar: HIToolbarRef; var outItems: CFArrayRef ): OSStatus; external name '_HIToolbarCopyItems';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarCreateItemWithIdentifier()
*
* Summary:
* Creates an item specified by a particular identifier.
*
* Discussion:
* Using this function allows you to create any item a delegate
* supports by naming its identifier. It also allows you to create
* standard items supplied by the Toolbox, such as the separator
* item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar you are adding to.
*
* inIdentifier:
* The identifier of the item you wish to add.
*
* inConfigData:
* Any config data required by the item to safely construct.
* Standard items do not require any extra data, so NULL can be
* passed.
*
* outItem:
* The newly created toolbar item.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarCreateItemWithIdentifier( inToolbar: HIToolbarRef; inIdentifier: CFStringRef; inConfigData: CFTypeRef { can be NULL }; var outItem: HIToolbarItemRef ): OSStatus; external name '_HIToolbarCreateItemWithIdentifier';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarInsertItemAtIndex()
*
* Summary:
* Inserts a toolbar item at a given index into a toolbar.
*
* Discussion:
* Generally, you should always add items via identifier, and not
* with this routine.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar to receive the new item.
*
* inItem:
* The item reference of the toolbar item you are adding.
*
* inIndex:
* The index you wish to add the item at. This index is zero-based.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarInsertItemAtIndex( inToolbar: HIToolbarRef; inItem: HIToolbarItemRef; inIndex: CFIndex ): OSStatus; external name '_HIToolbarInsertItemAtIndex';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarAppendItem()
*
* Summary:
* Appends an item to the end of a toolbar.
*
* Discussion:
* Generally, you should always add items via identifier, and not
* with this routine.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar to receive the new item.
*
* inItem:
* The item reference of the toolbar item you are adding.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarAppendItem( inToolbar: HIToolbarRef; inItem: HIToolbarItemRef ): OSStatus; external name '_HIToolbarAppendItem';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarRemoveItemAtIndex()
*
* Summary:
* Removes an item at a given index from a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar you are removing the item from.
*
* inIndex:
* The index of the item to remove. This index is zero-based.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarRemoveItemAtIndex( inToolbar: HIToolbarRef; inIndex: CFIndex ): OSStatus; external name '_HIToolbarRemoveItemAtIndex';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarSetDelegate()
*
* Discussion:
* A delegate is required for the toolbar to work properly if the
* toolbar uses custom toolbar items. The delegate is asked to
* create toolbar items. If the delegate does not respond, the
* toolbar will attempt to create a toolbar item, but it can only
* create the standard items defined at the top of this header.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar whose delegate you want to set.
*
* inDelegate:
* The HIObjectRef to act as the delegate.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarSetDelegate( inToolbar: HIToolbarRef; inDelegate: HIObjectRef ): OSStatus; external name '_HIToolbarSetDelegate';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarGetDelegate()
*
* Discussion:
* Returns the current delegate in use by a toolbar.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar you want the delegate from.
*
* Result:
* An HIObjectRef.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarGetDelegate( inToolbar: HIToolbarRef ): HIObjectRef; external name '_HIToolbarGetDelegate';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{==========================================================================}
{ HITOOLBARITEM }
{==========================================================================}
{ The HIObject class ID for the ToolbarItem class. }
{$endc} {not TARGET_CPU_64}
{$ifc USE_CFSTR_CONSTANT_MACROS}
{$definec kHIToolbarItemClassID CFSTRP('com.apple.hitoolbaritem')}
{$endc}
{ Required construction parameters }
{ You must pass these parameters in the initialization event if you are }
{ subclassing the toolbar item }
{ kEventParamToolbarItemIdentifier typeCFStringRef }
{ kEventParamAttributes typeUInt32 }
{$ifc not TARGET_CPU_64}
{
* HIToolbarItemCreate()
*
* Discussion:
* Creates a toolbar item for use in a toolbar. Typically, you would
* create toolbar items in your delegate. When a toolbar needs to
* create an item with a given identifier, your delegate is asked to
* create it.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inIdentifier:
* The identifier of the item in question.
*
* inOptions:
* Any options for the item.
*
* outItem:
* The item you created.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCreate( inIdentifier: CFStringRef; inOptions: OptionBits; var outItem: HIToolbarItemRef ): OSStatus; external name '_HIToolbarItemCreate';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyIdentifier()
*
* Discussion:
* Returns the identifier of the given item. The toolbar uses this
* identifier when writing the config information to the preferences
* (if set up for auto-config).
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outIdentifier:
* The identifier of the item. You should release this string when
* you are finished with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyIdentifier( inItem: HIToolbarItemRef; var outIdentifier: CFStringRef ): OSStatus; external name '_HIToolbarItemCopyIdentifier';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemGetAttributes()
*
* Discussion:
* Returns the attributes of the given item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outAttributes:
* The attributes of the item.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemGetAttributes( inItem: HIToolbarItemRef; var outAttributes: OptionBits ): OSStatus; external name '_HIToolbarItemGetAttributes';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemChangeAttributes()
*
* Discussion:
* Changes the attributes of a toolbar item. Only those attributes
* defined by the kHIToolbarItemMutableAttrs can be passed into this
* API. All other options can only be specified at creation.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inAttrsToSet:
* The attributes to set on the item. This value can be
* kHIToolbarItemNoAttributes if you are only clearing attributes.
*
* inAttrsToClear:
* The attributes to clear on the item. This value can be
* kHIToolbarItemNoAttributes if you are only setting attributes.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemChangeAttributes( inItem: HIToolbarItemRef; inAttrsToSet: OptionBits; inAttrsToClear: OptionBits ): OSStatus; external name '_HIToolbarItemChangeAttributes';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemGetAttributesInWindow()
*
* Summary:
* Returns the attributes of the given item in a given window, and
* information about which attributes are overridden for that window.
*
* Discussion:
* The HIToolbarItemGetAttributesInWindow returns the combined
* attributes that control a toolbar item view in a specific window.
* It also returns a bitmask of toolbar item attributes indicating
* which attributes are overridden for this particular window, and
* which are inherited from the non-window-specific toolbar item
* attributes.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inWindow:
* The window containing the item. Passing NULL is equivalent to
* calling HIToolbarItemGetAttributes; it returns the
* non-window-specific attributes for the item with no per-window
* modifications.
*
* outOverriddenAttributes:
* On exit, contains a bitmask indicating which attributes are
* overridden for this particular window. May be NULL if you don't
* need this information.
*
* outCombinedAttributes:
* On exit, contains the effective attributes for this item in
* this window, produced by combining the item's
* non-window-specific attributes with the overridden attributes
* for this window. May be NULL if you don't need this information.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemGetAttributesInWindow( inItem: HIToolbarItemRef; inWindow: WindowRef { can be NULL }; outOverriddenAttributes: OptionBitsPtr { can be NULL }; outCombinedAttributes: OptionBitsPtr { can be NULL } ): OSStatus; external name '_HIToolbarItemGetAttributesInWindow';
(* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
{
* HIToolbarItemChangeAttributesInWindow()
*
* Summary:
* Changes the attributes of a toolbar item in a specific window.
*
* Discussion:
* The HIToolbarItemChangeAttributesInWindow API allows the
* attributes of a toolbar item to be overridden on a per-window
* basis. The attributes used to draw a toolbar item view in a
* particular window are determined by combining the
* non-window-specific attributes for the item (set by
* HIToolbarItemChangeAttributes) with the window-specific
* attributes (set by HIToolbarItemChangeAttributesInWindow). For
* example, your application might have a toolbar that is shared
* across several windows, but in some windows a toolbar item might
* be enabled, and in other windows the same item might be disabled.
*
*
* Whenever HIToolbarChangeAttributesInWindow is used to set or
* clear attributes, the toolbar item adds the modified attributes
* to a bitmask of attributes recording which attributes are
* overridden for that particular window. Once an attribute is
* overridden for a window (whether it is set or cleared), the
* attribute remains overridden for that window until
* HIToolbarItemChangeAttributesInWindow is called with that
* attribute specified in the inAttrsToNoLongerOverride parameter.
* The attributes specified in that parameter will be removed from
* the override mask for the toolbar item in the specified window.
* The effective value of attributes removed from the override mask
* will then revert back to the non-window- specific value of the
* attributes for the toolbar item.
*
* Only those attributes defined by the kHIToolbarItemMutableAttrs
* can be passed into this API. All other options can only be
* specified at creation.
*
* The per-window attributes for an item are not saved in the
* toolbar preferences.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inWindow:
* The window containing the item. Passing NULL is equivalent to
* calling HIToolbarItemChangeAttributes; the item's
* non-window-specific attributes will be changed, rather than its
* per-window attributes.
*
* inAttrsToSet:
* The attributes to set on the item. Pass
* kHIToolbarItemNoAttributes if you are only clearing attributes.
* These attributes will be added to the overridden attribute mask
* associated with this item in this window.
*
* inAttrsToClear:
* The attributes to clear on the item. Pass
* kHIToolbarItemNoAttributes if you are only setting attributes.
* These attributes will be added to the overridden attribute mask
* associated with this item in this window.
*
* inAttrsToNoLongerOverride:
* The attributes that should no longer be overridden at the
* per-window level for this toolbar item; pass
* kHIToolbarItemNoAttributes if all attributes should remain
* overridden. If an attribute is in both this parameter and
* either the inAttrsToSet or inAttrsToClear parameters, the
* attribute will no longer be overridden. If the inWindow
* parameter is NULL, this parameter must be
* kHIToolbarItemNoAttributes; if not, paramErr will be returned.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemChangeAttributesInWindow( inItem: HIToolbarItemRef; inWindow: WindowRef { can be NULL }; inAttrsToSet: OptionBits; inAttrsToClear: OptionBits; inAttrsToNoLongerOverride: OptionBits ): OSStatus; external name '_HIToolbarItemChangeAttributesInWindow';
(* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
{
* HIToolbarGetSelectedItemInWindow()
*
* Summary:
* Returns the toolbar item that is selected in a given window.
*
* Discussion:
* Each window that shares a toolbar may have a different selected
* item. This API returns the selected item in a particular window.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inToolbar:
* The toolbar in question.
*
* inWindow:
* A window containing the toolbar.
*
* outItem:
* On exit, contains the toolbar item that is selected in the
* specified window, or NULL if there is no selected item.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.4 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.4 and later
* Non-Carbon CFM: not available
}
function HIToolbarGetSelectedItemInWindow( inToolbar: HIToolbarRef; inWindow: WindowRef; var outItem: HIToolbarItemRef ): OSStatus; external name '_HIToolbarGetSelectedItemInWindow';
(* AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER *)
{
* HIToolbarItemSetLabel()
*
* Discussion:
* Sets the label of a toolbar item. This is what the toolbar view
* will display underneath the image. It is also used in the
* configuration palette for configurable toolbars.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inLabel:
* The label. The toolbox will copy the string passed in.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetLabel( inItem: HIToolbarItemRef; inLabel: CFStringRef ): OSStatus; external name '_HIToolbarItemSetLabel';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyLabel()
*
* Discussion:
* Returns the label of a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outLabel:
* The label of the item. You should release this when you are
* finished with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyLabel( inItem: HIToolbarItemRef; var outLabel: CFStringRef ): OSStatus; external name '_HIToolbarItemCopyLabel';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemSetHelpText()
*
* Discussion:
* Sets the text used for help tags for a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inShortText:
* The short help text. This is what is displayed normally by the
* help tag system when the user hovers over the toolbar item with
* the mouse.
*
* inLongText:
* The long help text. This is what is displayed by the help tag
* system when the user hovers over the toolbar item with the
* mouse and holds the command key down. This parameter is
* optional; you may pass NULL.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetHelpText( inItem: HIToolbarItemRef; inShortText: CFStringRef; inLongText: CFStringRef { can be NULL } ): OSStatus; external name '_HIToolbarItemSetHelpText';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyHelpText()
*
* Discussion:
* Returns the text used for help tags for a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outShortText:
* The short help text. This is what is displayed normally by the
* help tag system when the user hovers over the toolbar item with
* the mouse. You should release this string when you are finished
* with it. If you do not wish to receive the short help text,
* pass NULL for this parameter.
*
* outLongText:
* The long help text. This is what is displayed by the help tag
* system when the user hovers over the toolbar item with the
* mouse and holds the command key down. You should release this
* string when you are finished with it. If you do not wish to
* receive the long help text, pass NULL for this parameter.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyHelpText( inItem: HIToolbarItemRef; outShortText: CFStringRefPtr { can be NULL }; outLongText: CFStringRefPtr { can be NULL } ): OSStatus; external name '_HIToolbarItemCopyHelpText';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemSetCommandID()
*
* Discussion:
* Sets the command ID of a toolbar item. When an toolbar item is
* clicked, the default behavior is to send out the command assigned
* to the item. This API lets you set that command ID. The command
* is sent out via the ProcessHICommand API, so it uses Carbon
* Events.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inCommandID:
* The command ID.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetCommandID( inItem: HIToolbarItemRef; inCommandID: MenuCommand ): OSStatus; external name '_HIToolbarItemSetCommandID';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemGetCommandID()
*
* Discussion:
* Gets the command ID of a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outCommandID:
* The command ID.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemGetCommandID( inItem: HIToolbarItemRef; var outCommandID: MenuCommand ): OSStatus; external name '_HIToolbarItemGetCommandID';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemSetIconRef()
*
* Discussion:
* Sets the icon for a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inIcon:
* The icon ref. The toolbar will create an appropriate CGImageRef
* for the icon passed in. The icon can be released after this API
* is called.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetIconRef( inItem: HIToolbarItemRef; inIcon: IconRef ): OSStatus; external name '_HIToolbarItemSetIconRef';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyIconRef()
*
* Discussion:
* Returns the icon for a toolbar item. This icon is already
* retained by the time you receive it, so you can release it when
* you are done with it.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outIcon:
* The retained icon. You should release it when finished with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.5 and later in Carbon.framework [32-bit only]
* CarbonLib: not available
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyIconRef( inItem: HIToolbarItemRef; var outIcon: IconRef ): OSStatus; external name '_HIToolbarItemCopyIconRef';
(* AVAILABLE_MAC_OS_X_VERSION_10_5_AND_LATER *)
{
* HIToolbarItemSetImage()
*
* Discussion:
* Sets the image for a toolbar item. Currently, the image should be
* no higher than 32 pixels. This image is used both in the toolbar
* as well as the configuration sheet, if the toolbar is
* configurable.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inImage:
* The image. This image is retained by the toolbar item. You may
* release it after calling this API.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetImage( inItem: HIToolbarItemRef; inImage: CGImageRef ): OSStatus; external name '_HIToolbarItemSetImage';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyImage()
*
* Discussion:
* Returns the image for a toolbar item. This image is already
* retained by the time you receive it, so you can release it when
* you are done with it.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outImage:
* The retained image. You should release it when finished with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyImage( inItem: HIToolbarItemRef; var outImage: CGImageRef ): OSStatus; external name '_HIToolbarItemCopyImage';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemSetMenu()
*
* Discussion:
* Sets the submenu for a toolbar item. Normally, items do not have
* a submenu. You can attach one with this API. The submenu will, by
* default, show up in the 'more items' indicator popup, as a
* submenu of the menu item corresponding to the toolbar item. It
* will also appear if the toolbar is in text only mode and the
* label is clicked. You should attach a Carbon Event handler to the
* menu to handle updating the menu items as appropriate before the
* menu is displayed.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inMenu:
* The menu. It is retained by the toolbar item, so you can safely
* release it after calling this API. On Mac OS X 10.3 and later,
* you can pass NULL for this parameter to remove and release any
* menu that might be attached.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetMenu( inItem: HIToolbarItemRef; inMenu: MenuRef { can be NULL } ): OSStatus; external name '_HIToolbarItemSetMenu';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemCopyMenu()
*
* Discussion:
* Gets the submenu for a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* outMenu:
* The retained menu. You should release it when you are finished
* with it.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemCopyMenu( inItem: HIToolbarItemRef; var outMenu: MenuRef ): OSStatus; external name '_HIToolbarItemCopyMenu';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemGetToolbar()
*
* Discussion:
* Returns the toolbar containing a toolbar item.
*
* Due to a bug in the toolbar item implementation in Mac OS X 10.2,
* Mac OS X 10.3, and Mac OS X 10.4, this function may crash or
* return an invalid HIToolbarRef if called before toolbar item is
* inserted into a toolbar. This bug is fixed in Mac OS X 10.5 and
* later.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* Result:
* The toolbar item reference of the toolbar this item is bound to,
* or NULL if this toolbar item is not attached to any toolbar.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemGetToolbar( inItem: HIToolbarItemRef ): HIToolbarRef; external name '_HIToolbarItemGetToolbar';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemIsEnabled()
*
* Discussion:
* Used to determine if a toolbar item is enabled.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* Result:
* A boolean result.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemIsEnabled( inItem: HIToolbarItemRef ): Boolean; external name '_HIToolbarItemIsEnabled';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemSetEnabled()
*
* Discussion:
* Enables or disables a toolbar item.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item in question.
*
* inEnabled:
* The new enabled state.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.2 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.2 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemSetEnabled( inItem: HIToolbarItemRef; inEnabled: Boolean ): OSStatus; external name '_HIToolbarItemSetEnabled';
(* AVAILABLE_MAC_OS_X_VERSION_10_2_AND_LATER *)
{
* HIToolbarItemConfigDataChanged()
*
* Discussion:
* Informs the toolbar that the config data for a toolbar item has
* changed and should be written to the toolbar config prefs. This
* is used when a custom toolbar item has extra data (config data)
* that has changed (perhaps you've changed an alias that a toolbar
* item points to, for example). This function does nothing if the
* toolbar is not set to auto save its configuration.
*
* Mac OS X threading:
* Not thread safe
*
* Parameters:
*
* inItem:
* The item whose information has changed.
*
* Result:
* An operating system result code.
*
* Availability:
* Mac OS X: in version 10.3 and later in Carbon.framework [32-bit only]
* CarbonLib: not available in CarbonLib 1.x, is available on Mac OS X version 10.3 and later
* Non-Carbon CFM: not available
}
function HIToolbarItemConfigDataChanged( inItem: HIToolbarItemRef ): OSStatus; external name '_HIToolbarItemConfigDataChanged';
(* AVAILABLE_MAC_OS_X_VERSION_10_3_AND_LATER *)
{$endc} {not TARGET_CPU_64}
{$endc} {TARGET_OS_MAC}
{$ifc not defined MACOSALLINCLUDE or not MACOSALLINCLUDE}
end.
{$endc} {not MACOSALLINCLUDE}
|