zjf
2023-03-06 392b76515f40376b6d36f40a114850ef63650384
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
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
/////////////////////////////////////////////////////////////////////////////// 
// Copyright (C) 2002-2016, Open Design Alliance (the "Alliance"). 
// All rights reserved. 
// 
// This software and its documentation and related materials are owned by 
// the Alliance. The software may only be incorporated into application 
// programs owned by members of the Alliance, subject to a signed 
// Membership Agreement and Supplemental Software License Agreement with the
// Alliance. The structure and organization of this software are the valuable  
// trade secrets of the Alliance and its suppliers. The software is also 
// protected by copyright law and international treaty provisions. Application  
// programs incorporating this software must include the following statement 
// with their copyright notices:
//   
//   This application incorporates Teigha(R) software pursuant to a license 
//   agreement with Open Design Alliance.
//   Teigha(R) Copyright (C) 2002-2016 by Open Design Alliance. 
//   All rights reserved.
//
// By use of this software, its documentation or related materials, you 
// acknowledge and accept the above terms.
///////////////////////////////////////////////////////////////////////////////
 
 
#ifndef OD_DBTABLE_H
#define OD_DBTABLE_H
 
#include "TD_PackPush.h"
#include "DbBlockReference.h"
#include "DbTableStyle.h"
#include "DbDataLink.h"
#include "UInt32Array.h"
 
// typedef for OdSubentPathArray
//
 
class OdDbTableImpl;
class OdDbLinkedTableData;
 
namespace OdDb
{
  /** \details
  Enumerator representing table break options.
  */
  enum TableBreakOption  
  { 
    /** None.*/  
    kTableBreakNone                 = 0,
    /** Enable table breaking.*/ 
    kTableBreakEnableBreaking       = 0x01,
    /** Repeat top labels for all tables.*/
    kTableBreakRepeatTopLabels      = 0x02,
    /** Repeat bottom labels for all tables.*/
    kTableBreakRepeatBottomLabels   = 0x04,
    /** Allow manual positions for individual tables.*/
    kTableBreakAllowManualPositions = 0x08,
    /** Allow setting manual height of all tables individually.*/
    kTableBreakAllowManualHeights   = 0x10
  };
  
  /** \details
  Enumerator representing flow direction options for table breaking.
  */
  enum TableBreakFlowDirection 
  { 
    /** Break tables in the direction from left to right.*/  
    kTableBreakFlowRight      = 0x1,
    /** Break tables in the directions from top to bottom (for top to bottom flow table) or from bottom to top (for bottom to top flow table).*/  
    kTableBreakFlowDownOrUp   = 0x2,
    /** Break tables in the direction from right to left.*/ 
    kTableBreakFlowLeft       = 0x4
  };
 
  /** \details
  Enumerator representing a location of the item in the table.
  */
  enum TableHitItem        
  { 
    /** There is no item at the specified point.*/  
    kTableHitNone            = 0,
    /** The item is a cell.*/  
    kTableHitCell            = 0x1,
    /** The item is at a row.*/
    kTableHitRowIndicator    = 0x2,
    /** The item is at a column.*/
    kTableHitColumnIndicator = 0x4,
    /** The item is at a grid line.*/
    kTableHitGridLine        = 0x8,
  };
};
 
/** \details
    This class represents table entities in an OdDbDatabase instance.
 
    \sa
    TD_Db
 
    <group OdDb_Classes> 
*/
class TOOLKIT_EXPORT OdDbTable: public OdDbBlockReference
{
public:
  ODDB_DECLARE_MEMBERS(OdDbTable);
 
  /** \details
  Enumerator representing the table style overrides for an OdDbTable object.
  */
  enum TableStyleOverrides 
  {
    /** Title suppressed table style override for OdDbTable object.*/
    kTitleSuppressed             = 1,
    /** Header suppressed table style override for OdDbTable object.*/
    kHeaderSuppressed            = 2,
    /** Flow direction table style override for OdDbTable object.*/
    kFlowDirection               = 3,   
    /** Horizontal cell margin table style override for OdDbTable object.*/    
    kHorzCellMargin              = 4,
    /** Vertical cell margin table style override for OdDbTable object.*/    
    kVertCellMargin              = 5,
    /** Title row color table style override for OdDbTable object.*/   
    kTitleRowColor               = 6,
    /** Header row color table style override for OdDbTable object.*/ 
    kHeaderRowColor              = 7,
    /** Data row color table style override for OdDbTable object.*/ 
    kDataRowColor                = 8,
    /** Title row no fill table style override for OdDbTable object.*/
    kTitleRowFillNone            = 9,
    /** Header row no fill table style override for OdDbTable object.*/
    kHeaderRowFillNone           = 10,
    /** Data row no fill table style override for OdDbTable object.*/
    kDataRowFillNone             = 11,
    /** Title row fill color table style override for OdDbTable object.*/
    kTitleRowFillColor           = 12,
    /** Header row fill color table style override for OdDbTable object.*/
    kHeaderRowFillColor          = 13,
    /** Data row fill color table style override for OdDbTable object.*/
    kDataRowFillColor            = 14,
    /** Title row alignment table style override for OdDbTable object.*/
    kTitleRowAlignment           = 15,
    /** Header row alignment table style override for OdDbTable object.*/
    kHeaderRowAlignment          = 16,
    /** Data row alignment table style override for OdDbTable object.*/
    kDataRowAlignment            = 17,
    /** Title row text style table style override for OdDbTable object.*/
    kTitleRowTextStyle           = 18,
    /** Header row text style table style override for OdDbTable object.*/
    kHeaderRowTextStyle          = 19,
    /** Data row text style table style override for OdDbTable object.*/
    kDataRowTextStyle            = 20,
    /** Title row text height table style override for OdDbTable object.*/
    kTitleRowTextHeight          = 21,
    /** Header row text height table style override for OdDbTable object.*/
    kHeaderRowTextHeight         = 22,
    /** Data row text height table style override for OdDbTable object.*/
    kDataRowTextHeight           = 23,
    /** Title row data type table style override for OdDbTable object.*/
    kTitleRowDataType            = 24,
    /** Header row data type table style override for OdDbTable object.*/
    kHeaderRowDataType           = 25,
    /** Data row data type table style override for OdDbTable object.*/
    kDataRowDataType             = 26,
    /** Title row horizontal top gridline color table style override for OdDbTable object.*/
    kTitleHorzTopColor           = 40,
    /** Title row horizontal inside gridline color table style override for OdDbTable object.*/
    kTitleHorzInsideColor        = 41,
    /** Title row horizontal bottom gridline color table style override for OdDbTable object.*/
    kTitleHorzBottomColor        = 42,
    /** Title row vertical left gridline color table style override for OdDbTable object.*/
    kTitleVertLeftColor          = 43,
    /** Title row vertical inside gridline color table style override for OdDbTable object.*/
    kTitleVertInsideColor        = 44,
    /** Title row vertical right gridline color table style override for OdDbTable object.*/
    kTitleVertRightColor         = 45,
    /** Header row horizontal top gridline color table style override for OdDbTable object.*/
    kHeaderHorzTopColor          = 46,
    /** Header row horizontal inside gridline color table style override for OdDbTable object.*/
    kHeaderHorzInsideColor       = 47,
    /** Header row horizontal bottom gridline color table style override for OdDbTable object.*/
    kHeaderHorzBottomColor       = 48,
    /** Header row vertical left gridline color table style override for OdDbTable object.*/
    kHeaderVertLeftColor         = 49,
    /** Header row vertical inside gridline color table style override for OdDbTable object.*/
    kHeaderVertInsideColor       = 50,
    /** Header row vertical right gridline color table style override for OdDbTable object.*/
    kHeaderVertRightColor        = 51,
    /** Data row horizontal top gridline color table style override for OdDbTable object.*/
    kDataHorzTopColor            = 52,
    /** Data row horizontal inside gridline color table style override for OdDbTable object.*/
    kDataHorzInsideColor         = 53,
    /** Data row horizontal bottom gridline color table style override for OdDbTable object.*/
    kDataHorzBottomColor         = 54,
    /** Data row vertical left gridline color table style override for OdDbTable object.*/
    kDataVertLeftColor           = 55,
    /** Data row vertical inside gridline color table style override for OdDbTable object.*/
    kDataVertInsideColor         = 56,
    /** Data row vertical right gridline color table style override for OdDbTable object.*/
    kDataVertRightColor          = 57,
    /** Title row horizontal top gridline lineweight table style override for OdDbTable object.*/
    kTitleHorzTopLineWeight      = 70,
    /** Title row horizontal inside gridline lineweight table style override for OdDbTable object.*/
    kTitleHorzInsideLineWeight   = 71,
    /** Title row horizontal bottom gridline lineweight table style override for OdDbTable object.*/
    kTitleHorzBottomLineWeight   = 72,
    /** Title row vertical left gridline lineweight table style override for OdDbTable object.*/
    kTitleVertLeftLineWeight     = 73,
    /** Title row vertical inside gridline lineweight table style override for OdDbTable object.*/
    kTitleVertInsideLineWeight   = 74,
    /** Title row vertical right gridline lineweight table style override for OdDbTable object.*/
    kTitleVertRightLineWeight    = 75,
    /** Header row horizontal top gridline lineweight table style override for OdDbTable object.*/
    kHeaderHorzTopLineWeight     = 76,
    /** Header row horizontal inside gridline lineweight table style override for OdDbTable object.*/
    kHeaderHorzInsideLineWeight  = 77,
    /** Header row horizontal bottom gridline lineweight table style override for OdDbTable object.*/
    kHeaderHorzBottomLineWeight  = 78,
    /** Header row vertical left gridline lineweight table style override for OdDbTable object.*/
    kHeaderVertLeftLineWeight    = 79,
    /** Header row vertical inside gridline lineweight table style override for OdDbTable object.*/
    kHeaderVertInsideLineWeight  = 80,
    /** Header row vertical right gridline lineweight table style override for OdDbTable object.*/
    kHeaderVertRightLineWeight   = 81,
    /** Data row horizontal top gridline lineweight table style override for OdDbTable object.*/
    kDataHorzTopLineWeight       = 82,
    /** Data row horizontal inside gridline lineweight table style override for OdDbTable object.*/
    kDataHorzInsideLineWeight    = 83,
    /** Data row horizontal bottom gridline lineweight table style override for OdDbTable object.*/
    kDataHorzBottomLineWeight    = 84,
    /** Data row vertical left gridline lineweight table style override for OdDbTable object.*/
    kDataVertLeftLineWeight      = 85,
    /** Data row vertical inside gridline lineweight table style override for OdDbTable object.*/
    kDataVertInsideLineWeight    = 86,
    /** Data row vertical right gridline lineweight table style override for OdDbTable object.*/
    kDataVertRightLineWeight     = 87,
 
    /** Title row horizontal top gridline visibility table style override for OdDbTable object.*/
    kTitleHorzTopVisibility      = 100,
    /** Title row horizontal inside gridline visibility table style override for OdDbTable object.*/
    kTitleHorzInsideVisibility   = 101,
    /** Title row horizontal bottom gridline visibility table style override for OdDbTable object.*/
    kTitleHorzBottomVisibility   = 102,
    /** Title row vertical left gridline visibility table style override for OdDbTable object.*/
    kTitleVertLeftVisibility     = 103,
    /** Title row vertical inside gridline visibility table style override for OdDbTable object.*/
    kTitleVertInsideVisibility   = 104,
    /** Title row vertical right gridline visibility table style override for OdDbTable object.*/
    kTitleVertRightVisibility    = 105,
    /** Header row horizontal top gridline visibility table style override for OdDbTable object.*/
    kHeaderHorzTopVisibility     = 106,
    /** Header row horizontal inside gridline visibility table style override for OdDbTable object.*/
    kHeaderHorzInsideVisibility  = 107,
    /** Header row horizontal bottom gridline visibility table style override for OdDbTable object.*/
    kHeaderHorzBottomVisibility  = 108,
    /** Header row vertical left gridline visibility table style override for OdDbTable object.*/
    kHeaderVertLeftVisibility    = 109,
    /** Header row vertical inside gridline visibility table style override for OdDbTable object.*/
    kHeaderVertInsideVisibility  = 110,
    /** Header row vertical right gridline visibility table style override for OdDbTable object.*/
    kHeaderVertRightVisibility   = 111,
    /** Data row horizontal top gridline visibility table style override for OdDbTable object.*/
    kDataHorzTopVisibility       = 112,
    /** Data row horizontal inside gridline visibility table style override for OdDbTable object.*/
    kDataHorzInsideVisibility    = 113,
    /** Data row horizontal bottom gridline visibility table style override for OdDbTable object..*/
    kDataHorzBottomVisibility    = 114,
    /** Data row vertical left gridline visibility table style override for OdDbTable object..*/
    kDataVertLeftVisibility      = 115,
    /** Data row vertical inside gridline visibility table style override for OdDbTable object..*/
    kDataVertInsideVisibility    = 116,
    /** Data row vertical right gridline visibility table style override for OdDbTable object..*/
    kDataVertRightVisibility     = 117,
 
    /** Alignment table style override for table cell.*/
    kCellAlignment               = 130,
    /** Background no fill table style override for table cell.*/
    kCellBackgroundFillNone      = 131,
    /** Background color table style override for table cell.*/
    kCellBackgroundColor         = 132,
    /** Content color table style override for table cell.*/
    kCellContentColor            = 133,
    /** Text style table style override for table cell.*/
    kCellTextStyle               = 134,
    /** Text height table style override for table cell.*/
    kCellTextHeight              = 135,
    /** Top edge grid color table style override for table cell.*/
    kCellTopGridColor            = 136,
    /** Right edge grid color table style override for table cell.*/
    kCellRightGridColor          = 137,
    /** Bottom edge grid color table style override for table cell.*/
    kCellBottomGridColor         = 138,
    /** Left edge grid color table style override for table cell.*/
    kCellLeftGridColor           = 139,
    /** Top edge grid lineweight table style override for table cell.*/
    kCellTopGridLineWeight       = 140,
    /** Right edge grid lineweight table style override for table cell.*/
    kCellRightGridLineWeight     = 141,
    /** Bottom edge grid lineweight table style override for table cell.*/
    kCellBottomGridLineWeight    = 142,
    /** Left edge grid lineweight table style override for table cell.*/
    kCellLeftGridLineWeight      = 143,
    /** Top edge grid visibility table style override for table cell.*/
    kCellTopVisibility           = 144,
    /** Right edge grid visibility table style override for table cell.*/
    kCellRightVisibility         = 145,
    /** Bottom edge grid visibility table style override for table cell.*/
    kCellBottomVisibility        = 146,
    /** Left edge grid visibility table style override for table cell.*/
    kCellLeftVisibility          = 147    
  };
 
  OdDbTable();
  // virtual ~OdDbTable();
 
 
  /** \details
    Returns the Object ID of the OdDbTableStyle used by this table entity (DXF 342).
  */
  virtual OdDbObjectId tableStyle() const;
 
  /** \details
    Sets the Object ID of the OdDbTableStyle for use by this table entity (DXF 342).
 
    \param tableStyleId [in]  Object ID of the table style.
 
    \remarks
    Method generates the eInvalidInput exception when the object ID is invalid.
  */
  virtual void setTableStyle(
    const OdDbObjectId& tableStyleId);
 
  /** \details
    Returns the unit X-axis for this table entity in WCS coordinates (DXF 11, 21, 31).
  */
  virtual OdGeVector3d direction() const;
  
  /** \details
    Sets the X-axis for this table entity in WCS coordinates (DXF 11, 21, 31).
    
    \param horizVector [in] Horizontal vector.
  */
  virtual void setDirection(
    const OdGeVector3d& horizVector);
 
  /** \details
    Returns the number of rows in this table entity (DXF 91).
    
    \remarks
    This includes title and header rows, if any. 
  */
  virtual OdUInt32 numRows() const;
 
  /** \details
    Sets the number of rows for this table entity (DXF 91).
    
    \param numRows [in]  Number of rows.
    
    \remarks
    This includes title and header rows, if any. The number of rows must be greater than zero.
    
    Method generates the eInvalidInput exception when the number of rows is less than one.
  */
  virtual void setNumRows(
    OdUInt32 numRows);
 
  /** \details
    Returns the number of columns in this table entity (DXF 92). 
  */
  virtual OdUInt32 numColumns() const;
 
  /** \details
    Sets the number of columns for this table entity (DXF 92). 
    
    \param numColumns [in]  Number of columns.
    
    \remarks
    The number of columns must be greater than zero.
    
    Method generates the eInvalidInput exception when the number of columns is less than one.
  */
  virtual void setNumColumns(OdUInt32 numColumns);
 
  /** \details
    Returns the overall width of this table entity.
  */
  virtual double width() const;
 
  /** \details
    Sets the overall width for this table entity. 
    
    \param width [in]  Overall width.
    
    \remarks
    Column widths may be adjusted proportionally.
    
    Method generates the eInvalidInput exception when the width is negative.
 
    \sa
    columWidth
  */
  virtual void setWidth(double width);
 
  /** \details
    Returns the width of the specified column in this table entity (DXF 142).
    
    \param column [in]  Column index. 
  */
  virtual double columnWidth(OdUInt32 column) const;
  
  /** \details
    Sets the width of the specified column in this table entity (DXF 142).
 
    \param column [in]  Column index. 
    \param width [in]  Column width.
 
    \remarks
    Method generates the eInvalidInput exception when the column width is negative.
  */
  virtual void setColumnWidth(
    OdUInt32 column, 
    double width);
  
  /** \details
    Sets the width of all columns in this table entity (DXF 142).
 
    \param width [in]  Column width.
 
    \remarks
    Method generates the eInvalidInput exception when the column width is negative.
  */
  virtual void setColumnWidth(
    double width);
 
  /** \details
    Returns the overall height of this table entity.
  */
  virtual double height() const;
 
  /** \details
    Sets the overall height of this table entity.
    
    \param height [in]  Overall height.
      
    \remarks
    Row heights may be adjusted proportionally.
    
    Method generates the eInvalidInput exception when the height is negative.
  */
  virtual void setHeight(
    double height);
 
  /** \details
    Returns the height of the specified row in this table entity (DXF 141).
    
    \param row [in]  Row index.
  */
  virtual double rowHeight(
    OdUInt32 row) const;
  
  /** \details
    Sets the height of the specified row in this table entity (DXF 141).
 
    \param row [in]  Row index.
    \param height [in]  Row height.
 
    \remarks
    Method generates the eInvalidInput exception when the row height is negative.
  */
  virtual void setRowHeight(
    OdUInt32 row, 
    double height);
    
  /** \details
    Sets the height of all rows in this table entity (DXF 141).
 
    \param height [in]  Row height.
 
    \remarks
    Method generates the eInvalidInput exception when the row height is negative.
  */
  virtual void setRowHeight(
    double height);
  
  /** \details
    Returns the minimum column width for the specified column in this table entity.
    
    \param column [in]  Column index. 
  */
  virtual double minimumColumnWidth(
    OdUInt32 column) const;
 
  /** \details
    Returns the minimum row height for the specified row in this table entity.
    
    \param row [in]  Row index.
  */
  virtual double minimumRowHeight(
    OdUInt32 row) const;    
 
  /** \details
    Returns the minimum overall width for this table entity.
  */
  virtual double minimumTableWidth() const;
  
  /** \details
    Returns the minimum overall height for this table entity.
  */
  virtual double minimumTableHeight() const;        
 
  //********************************************************************
  // Get and set methods for table style overrides
  //********************************************************************
  
  /** \details
    Returns the horizontal cell margin for this table entity (DXF 40). 
 
    \remarks
    The horizontal cell margin is the horizontal space between the cell text and the cell border.
  */
  virtual double horzCellMargin() const;
 
  /** \details
    Sets the horizontal cell margin for this table entity (DXF 40).
    
    \param cellMargin [in]  Cell margin.
    
    \remarks
    The horizontal cell margin is the horizontal space between the horizontal cell text and the cell border.
    
    Method generates the eInvalidInput exception when the cell margin is negative or zero.
  */
  virtual void setHorzCellMargin(
    double cellMargin);
 
  /** \details
    Returns the vertical cell margin for this table entity (DXF 41). 
 
    \remarks
    The vertical cell margin is the vertical space between the cell text and the cell border.
  */
  virtual double vertCellMargin() const;
 
  /** \details
    Sets the vertical cell margin for this table entity (DXF 41).
    
    \param cellMargin [in]  Cell margin.
    
    \remarks
    The vertical cell margin is the vertical space between the cell text and the cell border.
    
    Method generates the eInvalidInput exception when the vertical cell margin is negative or zero.
  */
  virtual void setVertCellMargin(double cellMargin);
 
  /** \details
    Returns the direction that this table entity flows from its first row to its last (DXF 70).
 
    \remarks
    flowDirection() Returns one of the following:
    
    <table>
    Name          Value   Description
    OdDb::kTtoB   0       Top to Bottom
    OdDb::kBtoT   1       Bottom to Top
    </table>
  */
  virtual OdDb::FlowDirection flowDirection() const; 
 
  /** \details
    Sets the direction that this table entity flows from its first row to its last. (DXF 70).
 
    \param flowDirection [in]  Flow direction.
    
    \remarks
    flowDirection must be one of the following: 
         
    <table>
    Name          Value   Description
    OdDb::kTtoB   0       Top to Bottom
    OdDb::kBtoT   1       Bottom to Top
    </table>
 
    Method generates the eInvalidInput exception when the flow direction is not equal to 0 or 1.
  */
  virtual void setFlowDirection(
    OdDb::FlowDirection flowDirection);
 
  /** \details
      Returns true if and only if the title row is suppressed for this table entity (DXF 280).
  */
  virtual bool isTitleSuppressed() const;
 
  /** \details
    Controls the suppression of the title row (DXF 280).
    
    \param suppress [in]  Controls suppression.
  */
  virtual void suppressTitleRow(
    bool suppress);
 
  /** \details
    Returns true if and only if the header row is suppressed for this table entity (DXF 281). 
  */
  virtual bool isHeaderSuppressed() const;
 
  /** \details
    Controls the suppression of the header row for this table entity (DXF 280).
    
    \param suppress [in]  Controls suppression.
  */
  virtual void suppressHeaderRow(
    bool suppress);
 
  /** \details
    Returns the cell alignment for the specified row type in this table entity (DXF 170).
 
    \param rowType [in]  Row type.
    
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
    
    alignment() returns one of the following:
    
    <table>
    Name                    Value   
    OdDb::kTopLeft          1       
    OdDb::kTopCenter        2 
    OdDb::kTopRight         3
    OdDb::kMiddleLeft       4
    OdDb::kMiddleCenter     5
    OdDb::kMiddleRight      6
    OdDb::kBottomLeft       7 
    OdDb::kBottomCenter     8
    OdDb::kBottomRight      9
    </table>
  */
  virtual OdDb::CellAlignment alignment(
    OdDb::RowType rowType = OdDb::kDataRow) const;
    
/** \details
    Returns the cell alignment for the specified cell in this table entity (DXF 170).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    
    alignment() returns one of the following:
    
    <table>
    Name                    Value
    OdDb::kTopLeft          1
    OdDb::kTopCenter        2 
    OdDb::kTopRight         3
    OdDb::kMiddleLeft       4
    OdDb::kMiddleCenter     5
    OdDb::kMiddleRight      6
    OdDb::kBottomLeft       7 
    OdDb::kBottomCenter     8
    OdDb::kBottomRight      9
    </table>
  */
  virtual OdDb::CellAlignment alignment(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the cell alignment for the specified row types in this table entity (DXF 170).
    
    \param alignment [in]  Alignment.
    \param rowTypes [in]  Row types.
 
    \remarks
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
    
    alignment must be one of the following:
    
    <table>
    Name                    Value
    OdDb::kTopLeft          1
    OdDb::kTopCenter        2 
    OdDb::kTopRight         3
    OdDb::kMiddleLeft       4
    OdDb::kMiddleCenter     5
    OdDb::kMiddleRight      6
    OdDb::kBottomLeft       7 
    OdDb::kBottomCenter     8
    OdDb::kBottomRight      9
    </table>
 
    Method generates the eInvalidInput exception when the alignment is out of the available range 1 to 9, 
    when the row argument is more than the number of rows, or when the column argument is more than the number of columns.
  */
  virtual void setAlignment(
    OdDb::CellAlignment alignment, 
    OdUInt32 rowTypes = OdDb::kAllRows);
 
  /** \details
    Sets the cell alignment for the specified cell in this table entity (DXF 170).
    
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param alignment [in]  Alignment.
 
    Alignment must be one of the following:
    
    <table>
    Name                    Value
    OdDb::kTopLeft          1
    OdDb::kTopCenter        2 
    OdDb::kTopRight         3
    OdDb::kMiddleLeft       4
    OdDb::kMiddleCenter     5
    OdDb::kMiddleRight      6
    OdDb::kBottomLeft       7 
    OdDb::kBottomCenter     8
    OdDb::kBottomRight      9
    </table>
 
    Method generates the eInvalidInput exception when the alignment is out of the available range 1 to 9, 
    when the row argument is more than the number of rows, or when the column argument is more than the number of columns.
  */ 
  virtual void setAlignment(
    OdUInt32 row, 
    OdUInt32 column, 
    OdDb::CellAlignment alignment);
 
  /** \details
    Returns true if and only if the background color for the specified row type is disabled for this table entity (DXF 283).
 
    \param rowType [in]  Row type.
 
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual bool isBackgroundColorNone(
    OdDb::RowType rowType = OdDb::kDataRow) const;
    
  /** \details
    Returns true if and only if the background color for the specified cell is disabled for this table entity (DXF 283).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual bool isBackgroundColorNone(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Controls the background color setting for the specified row types in this table entity (DXF 283). 
 
    \param disable [in]  Disables the background color if true, enables if false.
    \param rowTypes [in]  Row types.
 
    \remarks
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row type mask is more than 7, 
    the row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setBackgroundColorNone(
    bool disable, 
    OdUInt32 rowTypes = OdDb::kAllRows);
    
  /** \details
    Controls the background color setting for the specified cell in this table entity (DXF 283). 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param disable [in]  Disables the background color if true, enables if false.
 
    Method generates the eInvalidInput exception when the row type mask is more than 7, 
    the row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setBackgroundColorNone(
    OdUInt32 row, 
    OdUInt32 column, 
    bool disable);
    
  /** \details
    Returns the background color for the specified row type in this table entity (DXF 63).
 
    \param rowType [in]  Row type.
 
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdCmColor backgroundColor(
    OdDb::RowType rowType = OdDb::kDataRow) const;
    
  /** \details
    Returns the background color for the specified cell in this table entity (DXF 63).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */    
  virtual OdCmColor backgroundColor(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the background color for the specified row types in this table entity (DXF 63). 
 
    \param color [in]  Background color.
    \param rowTypes [in]  Row types.
    
    \remarks
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row type mask is more than 7, 
    the row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setBackgroundColor(
    const OdCmColor& color, 
    OdUInt32 rowTypes = OdDb::kAllRows);
    
  /** \details
    Sets the background color for the specified cell in this table entity (DXF 63). 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param color [in]  Background color.
    
    Method generates the eInvalidInput exception when the row type mask is more than 7, 
    the row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setBackgroundColor(
    OdUInt32 row, 
    OdUInt32 column,
    const OdCmColor& color);
 
  /** \details
    Returns the content color for the specified row type in this table entity (DXF 64).
 
    \param rowType [in]  Row type.
 
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdCmColor contentColor(
    OdDb::RowType rowType = OdDb::kDataRow) const;
  
  /** \details
    Returns the content color for the specified cell in this table entity (DXF 64).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual OdCmColor contentColor(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the content color for the specified row types in this table entity (DXF 64). 
 
    \param color [in]  Content color.
    \param nRowType [in]  Row types.
 
    \remarks
    nRowType must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row type mask is more than 7, the 
    row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setContentColor(
    const OdCmColor& color, 
    OdUInt32 nRowType = OdDb::kAllRows);
  
  /** \details
    Sets the content color for the specified cell in this table entity (DXF 64). 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param color [in]  Content color.
   
    Method generates the eInvalidInput exception when the row type mask is more than 7, the 
    row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setContentColor(
    OdUInt32 row, 
    OdUInt32 column,
    const OdCmColor& color);
 
  /** \details
    Returns the Object ID of the text style for the specified row type in this table entity (DXF 7).
 
    \param rowType [in]  Row type.
    
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdDbObjectId textStyle(
    OdDb::RowType rowType = OdDb::kDataRow) const;
  
  /** \details
    Returns the Object ID of the text style for the specified cell in this table entity (DXF 7).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual OdDbObjectId textStyle(
    OdUInt32 row, 
    OdUInt32 column) const;
 
    
  /** \details
    Sets the Object ID of the text style for the specified row types in this table entity (DXF 7).
    
    \param textStyleId [in]  Text style Object ID.
    \param rowTypes [in]  Row types.
 
    \remarks
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row type mask is more than 7 
    or the object ID is invalid or kNull.
  */
  virtual void setTextStyle(
    const OdDbObjectId& textStyleId, 
    OdUInt32 rowTypes = OdDb::kAllRows);
    
  /** \details
    Sets the Object ID of the text style for the specified cell in this table entity (DXF 7).
    
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param textStyleId [in]  Text style Object ID.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument is more than the number of columns, or the cell type is not OdDb::kTextCell.
  */
  virtual void setTextStyle(
    OdUInt32 row, 
    OdUInt32 column, 
    const OdDbObjectId& textStyleId);
    
  /** \details
    Returns the text height for the specified row type in this table entity (DXF 140).
 
    \param rowType [in]  Row type.
    
    \remarks
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual double textHeight(
    OdDb::RowType rowType = OdDb::kDataRow) const;
    
  /** \details
    Returns the text height for the specified cell in this table entity (DXF 140).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual double textHeight(
    OdUInt32 row, 
    OdUInt32 column) const;
 
 
  /** \details
    Sets the text height for the specified row types or cell in this table entity (DXF 140).
 
    \param height [in]  Text height.
    \param rowTypes [in]  Row types.
 
 
    \remarks
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
    
    Method generates the eInvalidInput exception when the row type mask is more than 7 or the text 
    height is negative.
  */
  virtual void setTextHeight(
    double height, 
    OdUInt32 rowTypes = OdDb::kAllRows);
    
    
  /** \details
    Sets the text height for the specified cell in this table entity (DXF 140).
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param height [in]  Text height.
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument is more than the number of columns, or the cell type is not OdDb::kTextCell.
  */
  virtual void setTextHeight(
    OdUInt32 row, 
    OdUInt32 column, 
    double height);
 
  /** \details
    Returns the grid lineweight for the specified gridline type and row type in this table entity (DXF 274-279).
      
    \param gridlineType [in]  Gridline type.
    \param rowType [in]  Row type.
 
    \remarks
    gridlineType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kVertLeft         8       Left-most table's grid line.
    OdDb::kVertInside       0x10    All vertical grid lines, excluding the left-most and right-most lines.
    OdDb::kVertRight        0x20    Right-most table's grid line.
    </table>
    
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdDb::LineWeight gridLineWeight(
    OdDb::GridLineType gridlineType,
    OdDb::RowType rowType = OdDb::kDataRow) const; 
 
  /** \details
    Returns the grid lineweight for the specified cell and edge in this table entity (DXF 274-279).
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeType [in]  Edge type.
 
 
    \remarks
    edgeType must be one of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
  */
  virtual OdDb::LineWeight gridLineWeight(
    OdUInt32 row, 
    OdUInt32 column,
    OdDb::CellEdgeMask edgeType) const;
    
  /** \details
    Sets the grid lineweight for the specified gridline types and row types in this table entity (DXF 274-279).
      
    \param lineWeight [in]  Lineweight.      
    \param gridlineTypes [in]  Gridline types.
    \param rowTypes [in]  Row types.
 
    \remarks
    gridlineTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kVertLeft         8       Left-most table's grid line.
    OdDb::kVertInside       0x10    All vertical grid lines, excluding the left-most and right-most lines.
    OdDb::kVertRight        0x20    Right-most table's grid line.
    </table>
    
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows 
    or the column argument is more than the number of columns.
  */
  virtual void setGridLineWeight(
    OdDb::LineWeight lineWeight, 
    OdUInt32 gridlineTypes, 
    OdUInt32 rowTypes);
    
  /** \details
    Sets the grid lineweight for the specified cell and edges in this table entity (DXF 274-279).
       
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeTypes [in]  Edge types.
    \param lineWeight [in]  Lineweight. 
 
    \remarks
    edgeTypes must be a combination of one or more of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows 
    or the column argument is more than the number of columns.
  */    
  virtual void setGridLineWeight(
    OdUInt32 row, 
    OdUInt32 column, 
    OdInt16 edgeTypes,
    OdDb::LineWeight lineWeight);
 
  /** \details
    Returns the grid color for the specified gridline type and row type in this table entity (DXF 63,64,65,66,68,69).
      
    \param gridlineType [in]  Gridline type.
    \param rowType [in]  Row type.
 
    \remarks
    gridlineType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    </table>
    
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdCmColor gridColor(
    OdDb::GridLineType gridlineType,
    OdDb::RowType rowType = OdDb::kDataRow) const; 
    
  /** \details
    Returns the grid color for the specified cell and edge in this table entity (DXF 63,64,65,66,68,69).
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeType [in]  Edge type.
 
    \remarks
    edgeType must be one of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
  */
  virtual OdCmColor gridColor(
    OdUInt32 row, 
    OdUInt32 column,
    OdDb::CellEdgeMask edgeType) const;
 
  /** \details
    Returns the grid visibility for the specified gridline type and row type in this table entity (DXF 284-289).
      
    \param gridlineType [in]  Gridline type.
    \param rowType [in]  Row type.
 
    \remarks
    gridVisibility() returns one of the following:
    
    <table>
    Name                    Value
    OdDb::kInvisible        1
    OdDb::kVisible          0 
    </table>
        
    gridlineType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kVertLeft         8       Left-most table's grid line.
    OdDb::kVertInside       0x10    All vertical grid lines, excluding the left-most and right-most lines.
    OdDb::kVertRight        0x20    Right-most table's grid line.
    </table>
    
    rowType must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdDb::Visibility gridVisibility(
    OdDb::GridLineType gridlineType,
    OdDb::RowType rowType = OdDb::kDataRow) const; 
    
  /** \details
    Returns the grid visibility for the specified cell and edge in this table entity (DXF 284-289).
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeType [in]  Edge type.
 
    \remarks
    gridVisibility() returns one of the following:
    
    <table>
    Name                    Value
    OdDb::kInvisible        1
    OdDb::kVisible          0 
    </table>
        
    edgeType must be one of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
  */
  virtual OdDb::Visibility gridVisibility(
    OdUInt32 row, 
    OdUInt32 column,
    OdDb::CellEdgeMask edgeType) const;
    
/** \details
    Sets the grid visibility for the specified gridline types and row types in this table entity (DXF 284-289).
      
    \param gridVisibility [in]  Grid visibility.      
    \param gridlineTypes [in]  Gridline types.
    \param rowTypes [in]  Row types.
 
    \remarks
    gridVisibility must be one of the following:
    
    <table>
    Name                    Value
    OdDb::kInvisible        1
    OdDb::kVisible          0 
    </table>
        
    gridlineTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kVertLeft         8       Left-most table's grid line.
    OdDb::kVertInside       0x10    All vertical grid lines, excluding the left-most and right-most lines.
    OdDb::kVertRight        0x20    Right-most table's grid line.
    </table>
    
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows 
    or the column argument is more than the number of columns.
  */
  virtual void setGridVisibility(
    OdDb::Visibility gridVisiblity, 
    OdUInt32 gridlineTypes, 
    OdUInt32 rowTypes);
 
  /** \details
    Sets the grid visibility for the specified cell and edges in this table entity (DXF 284-289).
       
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeTypes [in]  Edge types.
    \param gridVisibility [in]  Grid visibility. 
 
    \remarks
    gridVisibility must be one of the following:
    
    <table>
    Name                    Value
    OdDb::kInvisible        1
    OdDb::kVisible          0 
    </table>
        
    edgeTypes must be a combination of one or more of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows 
    or the column argument is more than the number of columns.
*/
  virtual void setGridVisibility(
    OdUInt32 row, 
    OdUInt32 column, 
    OdInt16 edgeTypes,
    OdDb::Visibility gridVisibility);
 
  /** \details
    Returns the table style overrides for this table entity. 
 
    \param overrides [out]  Receives an array of table style overrides for this table entity.         
    
    \remarks
    Returns true only if successful.
  */
  virtual bool tableStyleOverrides( 
    OdUInt32Array& overrides) const;
 
  /** \details
    Clears the table style overrides for this table entity and/or its cells. 
 
    \param option [in]  Option.
        
    \remarks
    option can be one of the following:
    
    <table>
    Value   Description
    0       Clears all overrides.         
    1       Clears all table overrides.   
    2       Clears all cell overrides.    
    </table>
  */
  virtual void clearTableStyleOverrides(
    int option = 0);
   
  /** \details
    Returns the cell type of the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
 
    \remarks
    cellType() returns one of the following:
    
    <table>
    Name               Value    Description
    OdDb::kTextCell    1        Text cell type
    OdDb::kBlockCell   2        Block cell type
    </table>
  */
  virtual OdDb::CellType cellType(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the cell type for the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param cellType [in]  Cell type.
    
    \remarks
    cellType must be one of the following:
    
    <table>
    Name               Value    Description
    OdDb::kTextCell    1        Text cell type
    OdDb::kBlockCell   2        Block cell type
    </table>
 
    Method generates the eInvalidInput exception when the text cell type number is out of the range 1 to 2, 
    the row argument is more than the number of rows, or the column argument is more than the number of columns.
  */
  virtual void setCellType(
    OdUInt32 row, 
    OdUInt32 column, 
    OdDb::CellType cellType);
 
  /** \details
    Returns the cell extents for the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param isOuterCell [in]  If and only if true, ignores margins.
    \param pts [out]  Receives the cell extents information.
    
    \remarks
    If isOuterCell is true, this function returns the extents of the cell without regard to margins.
    
    If isOuterCell is false, this function returns the extents of cell reduced 
    by the horizontal and vertical cell margins.
 
    Method generates the eInvalidInput exception when the row argument is more than number of rows 
    or the column argument is more than number of columns.
  */
  virtual void getCellExtents(
    OdUInt32 row, 
    OdUInt32 column,
    bool isOuterCell, 
    OdGePoint3dArray& pts) const;
 
  /** \details
    Returns the attachment point of the specified cell in this table entity.
    
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than number of rows 
    or the column argument is more than number of columns.
  */
  virtual OdGePoint3d attachmentPoint(
    OdUInt32 row, 
    OdUInt32 column) const; 
 
 
  /** \details
    Returns the cell style overrides for the specified cell in this table entity.
      
    \param row [in]  Row index of the 
    \param column [in]  Column index of the cell.
    \param overrides [out]  Receives the overrides.   
  */
  virtual bool cellStyleOverrides(
    OdUInt32 row, 
    OdUInt32 column,
    OdUInt32Array& overrides) const;
 
  /** \details
    Clears the cell overrides for the specified cell in this table entity. 
 
    \param row [in]  Row index of the 
    \param column [in]  Column index of the cell.
  */
  void clearCellOverrides(
    OdUInt32 row, 
    OdUInt32 column);
 
  /** \details
    Deletes the content of the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than number of rows 
    or the column argument is more than the number of columns.
  */
  virtual void deleteCellContent(
    OdUInt32 row, 
    OdUInt32 column);
 
  /** \details
    Returns the type of the specified row in this table entity.
    
    \param row [in]  Row index.
  
    \remarks
    rowType() returns one of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual OdDb::RowType rowType(
    OdUInt32 row) const;
 
  /** \details
    Returns the text string in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual OdString textString(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the text string for the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param textString [in]  Text string.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows 
    or the column argument is more than the number of columns.
  */
  virtual void setTextString(
    OdUInt32 row, 
    OdUInt32 column, 
    const OdString& textString);
    
  /** \details
    Returns the Object ID of the OdDbField in the specified cell in this table entity. 
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual OdDbObjectId fieldId(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the Object ID for OdDbField in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param fieldId [in]  Object ID of the AdDbField.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number 
    of rows, the column argument is more than the number of columns, or the cell type is not OdDb::kTextCell.
  */
  virtual void setFieldId(
    OdUInt32 row, 
    OdUInt32 column, 
    const OdDbObjectId& fieldId);
 
 
  /** \details
    Returns the text rotation angle for the specified cell in this table entity. 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
 
    \remarks
    textRotation() returns one of the following:
    
    <table>
    Name                    Value     Description
    OdDb::kDegrees000       0         0°
    OdDb::kDegrees090       1         90° CCW
    OdDb::kDegrees180       2         180°
    OdDb::kDegrees270       3         90° CW
    </table>
  */
  virtual OdDb::RotationAngle textRotation(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the text rotation angle of the text in the specified cell in this table entity. 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param textRotation [in]  Text rotation angle.
    
    \remarks
    textRotation must be one of the following:
    
    <table>
    Name                    Value     Description
    OdDb::kDegrees000       0         0°
    OdDb::kDegrees090       1         90° CCW
    OdDb::kDegrees180       2         180°
    OdDb::kDegrees270       3         90° CW
    </table>
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument s more than the number of columns, or the cell type is not OdDb::kTextCell.
  */
  virtual void setTextRotation(
    OdUInt32 row, 
    OdUInt32 column, 
    OdDb::RotationAngle textRotation);
  
 
  /** \details
    Returns true if and only if the block in the specified cell in this table entity is
    automatically scaled and positioned to fit into the cell.
     
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual bool isAutoScale(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Determines if the block in the specified cell in this table entity is to be
    automatically scaled and positioned to fit into the cell.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param autoScale [in]  True to autoscale the block to the cell.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument is more than the number of columns, or the cell type is not OdDb::kBlockCell.
  */
  virtual void setAutoScale(
    OdUInt32 row, 
    OdUInt32 column, 
    bool autoScale);
 
  /** \details
    Returns the Object ID of the block table record in the specified cell in this table entity. 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual OdDbObjectId blockTableRecordId(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the Object ID of the block table record in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param blockId [in]  Object ID of the block.
    \param autoScale [in]  If true, autoscales the block to the cell.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument is more than the number of columns, the cell type is not OdDb::kBlockCell, or 
    the object ID is invalid or kNull.
  */
  virtual void setBlockTableRecordId(
    OdUInt32 row, 
    OdUInt32 column,
    const OdDbObjectId& blockId, 
    bool autoScale = false);
 
  /** \details
    Returns the scale factor of the block reference in the specified cell in this table entity. 
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual double blockScale(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the scale factor of the block reference in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param blockScale [in]  Uniform scale factor.
    
    \remarks
    blockScale cannot be zero.
 
    Method generates the eInvalidInput exception when the row argument is more than the number of rows,  
    the column argument is more than the number of columns, or the cell type is not OdDb::kBlockCell.
  */
  virtual void setBlockScale(
    OdUInt32 row, 
    OdUInt32 column, 
    double blockScale);
 
  /** \details
    Returns the rotation angle of the block reference in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
  */
  virtual double blockRotation(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Sets the rotation angle of the block reference in the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param blockRotation [in]  Rotation angle.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows,  
    the column argument is more than the number of columns, or the cell type is not OdDb::kBlockCell.
  */
  virtual void setBlockRotation(
    OdUInt32 row, 
    OdUInt32 column, 
    double blockRotation);
 
  /** \details
    Gets the attribute value for the specified Object ID OdDb::key for the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param attdefId [in]  Object ID of the OdDbAttributeDefinition.
    \param attValue [out]  Receives the attribute value.
  */
  virtual void getBlockAttributeValue(
    OdUInt32 row, 
    OdUInt32 column, 
    const OdDbObjectId& attdefId, 
    OdString& attValue) const;
 
  /** \details
    Sets the attribute value for the specified Object ID OdDb::key for the specified cell in this table entity.
 
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param attdefId [in]  Object ID of the OdDbAttributeDefinition.
    \param attValue [out]  Sets the attribute value.
 
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number of rows, 
    the column argument is more than the number of columns, or the cell type is not OdDb::kBlockCell.
  */
  virtual void setBlockAttributeValue(
    OdUInt32 row, 
    OdUInt32 column,
    const OdDbObjectId& attdefId, 
    const OdString& attValue);
 
  /** \details
    Sets the grid color for the specified gridline types and row type in this table entity (DXF 63,64,65,66,68,69).
      
    \param color [in]  Grid color.
    \param gridlineTypes [in]  Gridline types.
    \param rowTypes [in]  Row types.
 
    \remarks
    gridlineTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kHorzTop          1       Top or bottom horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    OdDb::kHorzInside       2       All horizontal grid lines, excluding the bottom and top lines.
    OdDb::kHorzBottom       4       Bottom or top horizontal table's grid line, depending on the flow direction of the table rows (down or up).
    </table>
    
    rowTypes must be a combination of one or more of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
    
    Method generates the eInvalidInput exception when the row argument is more than the number of rows or the 
    column argument is more than the number of columns.
  */
  virtual void setGridColor(
    const OdCmColor& color, 
    OdUInt32 gridlineTypes, 
    OdUInt32 rowTypes);
    
  /** \details
    Sets the grid color for the specified cell and edges in this table entity (DXF 63,64,65,66,68,69).
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param edgeTypes [in]  Edge types.
    \param color [in]  Grid color.
 
    \remarks
    edgeTypes must be a combination of one or more of the following:
 
    <table>
    Name                    Value   Description
    OdDb::kTopMask          1       Top-edge index of the table cell.
    OdDb::kRightMask        2       Right-edge index of the table cell.
    OdDb::kBottomMask       4       Bottom-edge index of the table cell.
    OdDb::kLeftMask         8       Left-edge index of the table cell.
    </table>
    
    Method generates the eInvalidInput exception when the row argument is more than the number of rows or the 
    column argument is more than the number of columns.
  */
  virtual void setGridColor(
    OdUInt32 row, 
    OdUInt32 column, 
    OdInt16 edgeTypes,
    const OdCmColor& color);
  
  /** \details
    Inserts the specified number of columns into this table entity at the specified column index.
    
    \param column [in]  Column index.
    \param width [in]  Width of the inserted columns.
    \param numColumns [in]  Number of columns to insert.
 
    \remarks
    Method generates the eInvalidInput exception when the column argument is more than the number 
    of columns or the width is zero.
  */
  virtual void insertColumns(
    OdUInt32 column, 
    double width, 
    OdUInt32 numColumns = 1);
 
  /** \details
    Deletes the specified number of columns from this table entity.
 
    \param column [in]  Index of first column to delete.
    \param numColumns [in]  Number of columns to delete. 
 
    \remarks
    Method generates the eInvalidInput exception when the number of deleted columns is more 
    than the number of columns.
  */
  virtual void deleteColumns(
    OdUInt32 column, 
    OdUInt32 numColumns = 1);
 
  /** \details
    Inserts the specified number of rows into this table entity at the specified row index.
 
    \param row [in]  Row index.
    \param height [in]  Height of the inserted rows.
    \param numRows [in]  Number of rows to insert.
 
    \remarks
    Method generates the eInvalidInput exception when the height is zero.
  */
    virtual void insertRows(
    OdUInt32 row, 
    double height, 
    OdUInt32 numRows = 1);
  
  /** \details
    Deletes the specified number of rows from this table entity.
 
    \param row [in]  Index of first row to delete.
    \param numRows [in]  Number of rows to delete. 
 
    \remarks
    Method generates the eInvalidInput exception when the number of deleted rows is more 
    than the number of rows.
  */
  virtual void deleteRows(
    OdUInt32 row, 
    OdUInt32 numRows = 1);
 
  /** \details
    Merges a rectangular region of cells in this table entity.
      
    \param minRow [in]  Minimum row index of the merged cells.
    \param maxRow [in]  Maximum row index of the merged cells. 
    \param minColumn [in]  Minimum column index of the merged cells.
    \param maxColumn [in]  Maximum column index of the merged cells. 
 
    \remarks
    Method generates the eInvalidInput exception when the minimum row index is more than the maximum 
    row index, the minimum column index is more than the maximum column index, the maximum row index 
    is more than the number of rows, or the maximum column index is more than the number of columns.
  */
    virtual void mergeCells(
    OdUInt32 minRow, 
    OdUInt32 maxRow,
    OdUInt32 minColumn, 
    OdUInt32 maxColumn);
 
  /** \details
    Unmerges a rectangular region of cells in this table entity.
      
    \param minRow [in]  Minimum row index of the merged cells.
    \param maxRow [in]  Maximum row index of the merged cells. 
    \param minColumn [in]  Minimum column index of the merged cells.
    \param maxColumn [in]  Maximum column index of the merged cells. 
 
    \remarks
    Method generates the eInvalidInput exception when the minimum row index is more than the maximum 
    row index, the minimum column index is more than the maximum column index, the maximum row index 
    is more than the number of rows, or the maximum column index is more than the number of columns.
  */
    virtual void unmergeCells(
    OdUInt32 minRow, 
    OdUInt32 maxRow,
    OdUInt32 minColumn, 
    OdUInt32 maxColumn);
    
  /** \details
    Returns true if and only if the specified cell has been merged, and returns the range of the merged cells 
    in this table entity.
    
    \param row [in]  Row index.
    \param column [in]  Column index.
    \param minRow [out]  Receives the minimum row index of the merged cells.
    \param maxRow [out]  Receives the maximum row index of the merged cells. 
    \param minColumn [out]  Receives the minimum column index of the merged cells.
    \param maxColumn [out]  Receives the maximum column index of the merged cells. 
        
    \remarks
    Method generates the eInvalidInput exception when the row argument is more than the number
    of rows or the column argument is more than the number of columns.
  */
  virtual bool isMergedCell(
    OdUInt32 row, 
    OdUInt32 column, 
    OdUInt32* minRow = 0, 
    OdUInt32* maxRow = 0,
    OdUInt32* minColumn = 0, 
    OdUInt32* maxColumn = 0) const;
 
  /** \details
    Returns cell property "merged height". The first cell may have a value > 1. Next cells have a value equal 1.
 
    \param row [in]  Row index.
    \param column [in]  Column index.
  */
  OdUInt32 mergedHeight(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Returns cell property "merged width". The first cell may have a value > 1. Next cells have a value equal 1.
 
    \param row [in]  Row index.
    \param column [in]  Column index.
  */
  OdUInt32 mergedWidth(
    OdUInt32 row, 
    OdUInt32 column) const;
 
  /** \details
    Returns cell property "merged flag". The first cell has a value equal false. Next cells have a value equal to true.
 
    \param row [in]  Row index.
    \param column [in]  Column index.
  */
  bool mergedFlag(
    OdUInt32 row, 
    OdUInt32 column) const;
  
  /** \details
    Updates this table entity according to its current table style.
    
    \remarks
    Returns eOk if successful or an appropriate error code if not.
  */
  virtual OdResult generateLayout();
 
  /** \details
    Updates the block table record referenced by this table entity.
    
    \param forceUpdate [in]  Force an update of the block table record.
    
    \remarks
    Returns eOk if successful or an appropriate error code if not.
    
    If forceUpdate is false, the block table record is updated 
    if and only if this table entity has been changed since the 
    block table record was last updated.
    
    If forceUpdate is true, the block table will be unconditionally updated.
  */
  virtual OdResult recomputeTableBlock(
    bool forceUpdate = true);
 
  //********************************************************************
  // Methods for sub-selection  
  //********************************************************************
  //
  
  /** \details
    Performs a hit test for the specified point and viewing direction in this table entity. Returns 
    the row index and the column index of the cell, hit by the ray in the output arguments. 
    Returns true if a table set is hit or returns false in the other case.
    
    \param wpt [in]  Input 3D picking point in WCS.
    \param wviewVec [in]  3D vector in WCF that specifies the view direction for the hit test.
    \param wxaper [in]  Width of aperture box centered at the hit point.
    \param wyaper [in]  Height of aperture box centered at the hit point.
    \param resultRowIndex [out]  Row index.
    \param resultColumnIndex [out]  Column index.
  */
  virtual bool  hitTest(const OdGePoint3d& wpt, 
                                    const OdGeVector3d& wviewVec,
                                    double wxaper,
                                    double wyaper,
                                    OdInt32& resultRowIndex, 
                                    OdInt32& resultColumnIndex) const;
  /** \details
    Performs a hit test for the specified point and viewing direction in this table entity. Returns 
    the row index and the column index of the cell, hit by the ray in the output arguments. 
    Returns true if a table set is hit or returns false in the other case.
    
    \param wpt [in]  Input 3D picking point in WCS.
    \param wviewVec [in]  3D vector in WCS that specifies the view direction for the hit test.
    \param wxaper [in]  Width of aperture box centered at the hit point.
    \param wyaper [in]  Height of aperture box centered at the hit point.
    \param resultRowIndex [out]  Row index.
    \param resultColumnIndex [out]  Column index.
    \param contentIndex [out]  Context index.
    \param nItem [out]  Hit flags, which indicate the table item at the specified point.
  */
  virtual bool  hitTest(const OdGePoint3d& wpt, 
                                    const OdGeVector3d& wviewVec,
                                    double wxaper,
                                    double wyaper,
                                    OdInt32& resultRowIndex, 
                                    OdInt32& resultColumnIndex,
                                    OdInt32& contentIndex,
                                    OdDb::TableHitItem& nItem) const;
  /** \details
    Selects a cell in this table by the specified point, viewing direction, and orientation.
    Returns the row index and the column index of the selected cell that encloses the input point.
       
    \param wpt [in]  Input 3D picking point in WCS.
    \param wvwVec [in]  3D vector in WCS that specifies the view direction for the hit test.
    \param wvwxVec [in]  3D vector in WCS that specifies the view orientation for the hit test.
    \param wxaper [in]  Width of aperture box centered at the hit point.
    \param wyaper [in]  Height of aperture box centered at the hit point.
    \param allowOutside [in]  Indicates whether a pick point outside the table will select a cell.
    \param bInPickFirst [in]  If true, the entity is already in the pickfirst set; if false, the pickfirst logic should attempt to sub-select the entity directly.
    \param resultRowIndex [out]  Row index.
    \param resultColumnIndex [out]  Column index.
    \param pPaths [out]  Pointer to an OdDbFullSubentPathArray.
    
    \remarks
    Returns eOk if successful or an appropriate error code if not.
    
    If pPaths is not null, the cell subentities will be returned in pPaths.
  */
  virtual OdResult select(const OdGePoint3d& wpt, 
                                   const OdGeVector3d& wvwVec, 
                                   const OdGeVector3d& wvwxVec, 
                                   double wxaper,
                                   double wyaper,
                                   bool allowOutside,
                                   bool bInPickFirst, 
                                   OdInt32& resultRowIndex, 
                                   OdInt32& resultColumnIndex,
                                   OdDbFullSubentPathArray* pPaths = 0) const;
  /** \details
    Selects a set of cells in this table by the specified window box, viewing direction, and orientation.
    Returns the set of cells in the output arguments rowMin, rowMax, colMin, colMax.
    
    
    \param wpt1 [in]  3D picking point in WCS that specifies the first corner point of the window box selection.
    \param wpt2 [in]  3D picking point in WCS that specifies the second corner point of the window box selection.
    \param wvwVec [in]  3D vector in WCS that specifies the view direction for the selection.
    \param wvwxVec [in]  3D vector in WCS that specifies the view orientation for the hit test.
    \param wxaper [in]  Width of aperture box centered at the hit point.
    \param wyaper [in]  Height of aperture box centered at the hit point.
    \param seltype [in]  Selection type.
    \param bIncludeCurrentSelection [in]  Indicates whether the selected cells will include currently selected cells and newly selected cells or only newly selected cells.
    \param bInPickFirst [in]  If true, the entity is already in the pickfirst set; if false, the pickfirst logic should attempt to sub-select the entity directly.
    \param rowMin [out]  Lower bound of row index.
    \param rowMax [out]  Upper bound of row index.
    \param colMin [out]  Lower bound of column index.
    \param colMax [out]  Upper bound of column index.
    \param pPaths [out]  Pointer to an OdDbFullSubentPathArray.
    
    \remarks
    Returns eOk if successful or an appropriate error code if not.
    
    If pPaths is not null, the cell sub-entities will be returned in pPaths.
  */
  virtual OdResult selectSubRegion(const OdGePoint3d& wpt1, 
                                   const OdGePoint3d& wpt2,
                                   const OdGeVector3d& wvwVec, 
                                   const OdGeVector3d& wvwxVec,
                                   double wxaper,
                                   double wyaper,                             
                                   OdDb::SelectType seltype,
                                   bool bIncludeCurrentSelection,
                                   bool bInPickFirst,                             
                                   OdInt32& rowMin,
                                   OdInt32& rowMax,
                                   OdInt32& colMin,
                                   OdInt32& colMax,
                                   OdDbFullSubentPathArray* pPaths = 0) const;
  /** \details
    Returns an array of sub-entities of the current sub-selection cells in the output argument paths.
    
    \param pPaths [out]  Pointer to an OdDbFullSubentPathArray.
    
    \remarks
    Returns true if successful or returns false if not.
    
    If pPaths is empty, there are no sub-selection cells.
  */
  virtual bool reselectSubRegion(OdDbFullSubentPathArray& paths) const;
          
  /** \details
    Returns the row and column indexes of the cells in the sub-selection set.
    
    \param rowMin [out]  Lower bound of row index.
    \param rowMax [out]  Upper bound of row index.
    \param colMin [out]  Lower bound of column index.
    \param colMax [out]  Upper bound of column index.
    
    \remarks
    Returns eOk if successful, eSubSelectionSetEmpty if there are no sub-selection cells, or an appropriate error code if not.
  */        
  virtual OdResult getSubSelection(OdInt32& rowMin,
                                    OdInt32& rowMax,
                                    OdInt32& colMin,
                                    OdInt32& colMax) const;
 
  /** \details
    Returns the range of cells in the sub-selection set.
    
    \remarks
    If there are no sub-selection cells, returns invalid range.
  */ 
  OdCellRange  getSubSelection (void) const;
 
  /** \details
    Sets the cell range to the sub-selection set.
    
    \param range [in]  Cell range.
    
    \remarks
    Returns eOk if successful or appropriate error code in the other case.
  */  
  virtual OdResult setSubSelection  (const OdCellRange& range);
 
  /** \details
    Sets the row and column indexes of the cells in the sub-selection set.
    
    \param rowMin [in]  Lower bound of row index.
    \param rowMax [in]  Upper bound of row index.
    \param colMin [in]  Lower bound of column index.
    \param colMax [in]  Upper bound of column index.
    
    \remarks
    Returns eOk if successful or eInvalidInput if the input indexes are out of range.
  */
  virtual OdResult setSubSelection(OdInt32 rowMin,
                                    OdInt32 rowMax,
                                    OdInt32 colMin,
                                    OdInt32 colMax);
  /** \details
    Clears the sub-selection set of cells from this table.
  */
  virtual void clearSubSelection();
 
  /** \details
    Returns true if the table has a sub-selection set of cells, or returns false in the other case.
  */
  virtual bool hasSubSelection() const;
  
  virtual OdResult select_next_cell(OdInt32 dir,
                                    OdInt32& resultRowIndex, 
                                    OdInt32& resultColumnIndex,
                                    OdDbFullSubentPathArray* pPaths = NULL,
                                    bool bSupportTextCellOnly = true) const;
 
  //********************************************************************
  // Overridden methods from OdDbObject
  //********************************************************************
  //
 
  virtual OdResult dwgInFields (
    OdDbDwgFiler* pFiler);
  virtual void dwgOutFields(
    OdDbDwgFiler* pFiler) const;
 
  virtual OdResult dxfInFields (
    OdDbDxfFiler* pFiler);
  virtual void dxfOutFields(
    OdDbDxfFiler* pFiler) const;
 
  // virtual OdResult audit(OdDbAuditInfo* pAuditInfo);
 
  void subClose();
  
  /** \remarks
    This function is an override for OdDbEntity::subSetDatabaseDefaults() to set 
    the dimension style of this entity to the current style for the specified database.
  */
  void subSetDatabaseDefaults(
    OdDbDatabase *pDb,
    bool doSubents);
 
  // virtual void              objectClosed(const OdDbObjectId objId);
  // virtual void              erased(const OdDbObject* dbObj,
  //                                  bool pErasing = true);
  virtual void modified(
    const OdDbObject* pObj);
 
  virtual OdResult subGetClassID(
    void* pClsid) const;
 
  //********************************************************************
  // Overridden methods from OdDbEntity
  //********************************************************************
  //
  /*
  virtual void              list() const;
  */
 
  virtual bool subWorldDraw(
    OdGiWorldDraw* pWd) const;
 
  /*
  virtual OdResult getGripPoints(OdGePoint3dArray&, 
                                          OdDbIntArray&,
                                          OdDbIntArray&) const;
 
  virtual OdResult moveGripPointsAt(const OdDbIntArray&,
                                             const OdGeVector3d&);
 
  virtual OdResult getStretchPoints(OdGePoint3dArray& stretchPoints)
                                             const;
 
  virtual OdResult moveStretchPointsAt(const OdDbIntArray& 
                                               indices,
                                               const OdGeVector3d& offset);
 
  virtual OdResult getOsnapPoints(OdDb::OsnapMode osnapMode,
                                           OdGsMarker   gsSelectionMark,
                                           const OdGePoint3d&  pickPoint,
                                           const OdGePoint3d&  lastPoint,
                                           const OdGeMatrix3d& viewXform,
                                           OdGePoint3dArray&      snapPoints,
                                           OdDbIntArray&   geomIds)
                                           const;
  */
 
  virtual OdResult subTransformBy(
    const OdGeMatrix3d& xfm);
 
  virtual OdResult subGetTransformedCopy(
    const OdGeMatrix3d& xfm,
    OdDbEntityPtr& pCopy) const;
 
  virtual OdResult subGetGeomExtents(OdGeExtents3d& extents) const;
 
  /*
  virtual OdResult explode(OdDbVoidPtrArray& entitySet) const;
  */
 
  //********************************************************************
  // Overridden methods from OdDbBlockReference required for OdDbTable
  //********************************************************************
  //
  //OdGePoint3d            position() const;
  // virtual OdResult setPosition(const OdGePoint3d&);
 
  //OdGeVector3d           normal() const;
  // virtual OdResult setNormal(const OdGeVector3d& newVal);
 
  //********************************************************************
  // Methods for internal use only
  //********************************************************************
  //
  // TODO: Temporary method for navigating after editing cells
  /*
  virtual OdResult select_next_cell(int dir,
                                   int& resultRowIndex, 
                                   int& resultColumnIndex,
                                   OdDbFullSubentPathArray* pPaths = 0,
                                   bool bSupportTextCellOnly = true) const;
 
  virtual void              setRegen();
  virtual void              suppressInvisibleGrid(bool value);
  virtual OdResult getCellExtents(int row, 
                                       int column,
                                       double& cellWidth,
                                       double& cellHeight,
                                       bool bAdjustForMargins) const;
  */
  
  // NEW 2007
  /** \details
    Returns the data type and unit type of the specified row type. 
    
    \param nDataType [out]  Data type.
    \param nUnitType [out]  Unit type.
    \param type [in]  Row type.
 
    \remarks  
    type must be one of the following:
    
    <table>
    Name                    Value   Description
    OdDb::kTitleRow         1       The top-most or bottom-most row of the table, depending on the flow direction of the table rows (down or up).
    OdDb::kHeaderRow        2       The first row, which is placed after or before the title row.
    OdDb::kDataRow          4       The row, which is neither title row nor header row.  
    </table>
  */
  virtual void getDataType(OdValue::DataType& nDataType,
    OdValue::UnitType& nUnitType,
    OdDb::RowType type) const;
  
  /** \details
    Sets the data type and unit type for all row types. 
    
    \param nDataType [in]  Data type.
    \param nUnitType [in]  Unit type.
  */
  virtual void setDataType(OdValue::DataType nDataType,
    OdValue::UnitType nUnitType);
 
  /** \details
    Sets the data type and unit type for the specified row types. 
    
    \param nDataType [in]  Data type.
    \param nUnitType [in]  Unit type.
    \param nRowTypes [in]  Row types.
  */
  virtual void setDataType(OdValue::DataType nDataType, 
    OdValue::UnitType nUnitType, 
    int nRowTypes);
 
  virtual OdString format(OdDb::RowType type) const;
 
  virtual void setFormat(const OdString& pszFormat);
 
  virtual void setFormat(const OdString& pszFormat, 
    int nRowTypes);
 
  /** \details
    Returns the data type and unit type of the specified cell. 
    
    \param row [in]  Row index. Should be more than or equal to 0 and less than the number of rows.
    \param col [in]  Column index. Should be more than or equal to 0 and less than the number of columns.
    \param nDataType [out]  Data type.
    \param nUnitType [out]  Unit type.
  */
  void getDataType(OdUInt32 row, OdUInt32 col,
    OdValue::DataType& nDataType,
    OdValue::UnitType& nUnitType) const;
 
  /** \details
    Sets the data type and unit type of the specified cell. 
    
    \param row [in]  Row index. Should be more than or equal to 0 and less than the number of rows.
    \param col [in]  Column index. Should be more than or equal to 0 and less than the number of columns.
    \param nDataType [in]  Data type.
    \param nUnitType [in]  Unit type.
  */
  void setDataType(OdUInt32 row, OdUInt32 col, 
    OdValue::DataType nDataType,
    OdValue::UnitType nUnitType);
  
  /** \details
    Returns the content value at the specified content index. 
    
    \param row [in]  Row index. Should be more than or equal to 0 and less than the number of rows.
    \param col [in]  Column index. Should be more than or equal to 0 and less than the number of columns.
  */
  OdValue value(OdUInt32 row, OdUInt32 col) const;
 
  /** \details
    Sets the value of the first content of a cell. 
    
    \param row [in]  Row index. Should be more than or equal to 0 and less than the number of rows.
    \param col [in]  Column index. Should be more than or equal to 0 and less than the number of columns.
    \param val [in]  Content value.
    
    \returns
    Returns eOk if successful or an appropriate error code.
  */
  void setValue(OdUInt32 row, OdUInt32 col, 
    const OdValue& val);
 
  /** \details
    Sets the value of the first content of a cell. 
    
    \param row [in]  Row index. Should be more than or equal to 0 and less than the number of rows.
    \param col [in]  Column index. Should be more than or equal to 0 and less than the number of columns.
    \param pszText [in]  Text for converting to set value.
    \param nOption [out]  Parse option.
    
    \returns
    Returns eOk if successful or an appropriate error code.
  */
  void setValue(OdUInt32 row, OdUInt32 col, 
    OdString& pszText,
    OdValue::ParseOption nOption);
  
  /** \details
    Resets the value in a specified cell. 
    
    \param row [in]  Row index.
    \param col [in]  Column index.
    
    \returns
    Returns eOk if successful, or returns eInvalidInput if row and col arguments refer to an invalid cell.
  */
  void resetValue(OdUInt32 row, OdUInt32 col);
 
  OdString format(OdUInt32 row, OdUInt32 col) const;
 
  void setFormat(OdUInt32 row, OdUInt32 col, 
    const OdString& pszFormat);
 
  /** \details
    Returns true if the table break is enabled, or false otherwise.
  */
  bool isBreakEnabled(void) const;
  
  /** \details
    Enables or disables table breaking.
 
    \param bEnable [in] Value for enabling or disabling the table breaking.
  */
  void enableBreak (bool bEnable);
  
  /** \details
    Returns table break flow direction of this table entity as an OdDb::TableBreakFlowDirection object.
  */
  OdDb::TableBreakFlowDirection breakFlowDirection(void) const;
 
  /** \details
    Sets table break flow direction of this table entity.
 
    \param flowDir [in] Table break flow direction.
  */
  void setBreakFlowDirection (OdDb::TableBreakFlowDirection flowDir);
 
   
  /** \details
    Returns the table break height of the specified table entity as an OdUInt32 value.
 
    \param index [in] Sub-table index.
    
    \remarks
    index parameter should be more than or equal to 0. 
 
  */
  double breakHeight (OdUInt32 index) const;
  
  /** \details
    Sets the table break height of the specified table entity.
 
    \param index [in] Sub-table index.
    \param height [in] Sub-table break height.
    
    \remarks
    index parameter should be more than or equal to 0. 
 
  */
  void setBreakHeight (OdUInt32 index, 
    double height);
 
  /** \details
    Returns table break offset of the specified table entity as an OdUInt32 value.
 
    \param index [in] Sub-table index.
    
    \remarks
    index parameter should be more than or equal to 1. 
  */
  OdGeVector3d breakOffset (OdUInt32 index) const;
 
  /** \details
    Sets the table break offset of the specified table entity.
 
    \param index [in] Sun-table index.
    \param vec [in] Vector for table break offset.
    
    \remarks
    index parameter should be more than or equal to 1. 
  */
  void setBreakOffset (OdUInt32 index, 
    const OdGeVector3d& vec);
 
  /** \details
    Returns the table break option of this table entity as an OdDb::TableBreakOption object.
    
    \remarks
    breakOption() returns one of the following:
    
    <table>
    Name                                    Value       Description
    OdDb::kTableBreakNone                   0           No table break.
    OdDb::kTableBreakEnableBreaking         0x01        Enable table breaking. 
    OdDb::kTableBreakRepeatTopLabels        0x02        Repeat top labels in all tables.  
    OdDb::kTableBreakRepeatBottomLabels     0x04        Repeat bottom labels in all tables.
    OdDb::kTableBreakAllowManualPositions   0x08        Allow manual position for each sub-table. 
    OdDb::kTableBreakAllowManualHeights     0x10        Allow manual height for each sub-table.  
    </table>
  */
  OdDb::TableBreakOption breakOption (void) const;
 
  /** \details
    Sets the table break option of this table entity.
 
    \param option [in] Table break option.
    
    \remarks
    option should be a combination of one or more of the following:
    
    <table>
    Name                                    Value       Description
    OdDb::kTableBreakNone                   0           No table break.
    OdDb::kTableBreakEnableBreaking         0x01        Enable table breaking. 
    OdDb::kTableBreakRepeatTopLabels        0x02        Repeat top labels in all tables.  
    OdDb::kTableBreakRepeatBottomLabels     0x04        Repeat bottom labels in all tables.
    OdDb::kTableBreakAllowManualPositions   0x08        Allow manual position for each sub-table. 
    OdDb::kTableBreakAllowManualHeights     0x10        Allow manual height for each sub-table.  
    </table>
  */
  void  setBreakOption (OdDb::TableBreakOption option);
 
  /** \details
    Returns the break spacing for this table entity.
  */
  double breakSpacing (void) const;
 
  /** \details
    Sets the break spacing for this table entity.
 
    \param spacing [in]  Spacing value. 
 
    \remarks
    Method generates the eInvalidInput exception when the spacing is negative.
  */
  void setBreakSpacing (double spacing);
 
  //********************************************************************
  // New Methods
  //********************************************************************
 
  /** \details
    Sets the size for this table entity.
 
    \param rows [in]  Number of rows. 
    \param cols [in]  Number of columns. 
 
    \remarks
    Method generates the eInvalidInput exception when the number of rows or columns is zero.
  */
  void setSize ( 
    OdInt32 rows, 
    OdInt32 cols);
 
  /** \details
    Checks if new rows or columns can be inserted into the specified index. Returns true if rows or columns can be inserted.
 
    \param nIndex [in]  Index. 
    \param bRow [in]  Flag that indicates what to check: "true" for rows or "false" for columns. 
 
    \remarks
    Method is not implemented yet and always returns true.
  */
  bool canInsert (
    OdInt32 nIndex, 
    bool bRow) const;
 
  /** \details
    Inserts rows at the specified index.
 
    \param nIndex [in]  Index. 
    \param nInheritFrom [in]  Row number in the table that the format will be inherited from. 
    \param nNumRows [in]  Number of inserted rows. 
  */
  void insertRowsAndInherit  (
    OdInt32 nIndex, 
    OdInt32 nInheritFrom, 
    OdInt32 nNumRows);
 
  /** \details
    Inserts columns at the specified index.
 
    \param col [in]  Index. 
    \param nInheritFrom [in]  Column number in the table that the format will be inherited from. 
    \param nNumCols [in]  Number of inserted columns. 
 
    \remarks
    Method generates the eInvalidInput exception when the number of rows or columns is zero.
  */
  void insertColumnsAndInherit(
    OdInt32 col, 
    OdInt32 nInheritFrom, 
    OdInt32 nNumCols);
 
  /** \details
    Checks if rows or columns can be deleted from the specified index. Returns true if rows or columns can be deleted.
 
    \param nCount [in]  Number of rows or columns. 
    \param bRow [in]  Flag that indicates what to check: "true"" for rows or "false" for columns. 
 
    \remarks
    Method is not implemented yet and always returns true.
  */
  bool canDelete (OdInt32 nIndex, 
    OdInt32 nCount, 
    bool bRow) const;
 
  /** \details
    Returns "empty flag" cell property. Returns true if cell is empty, or false if it is not.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  bool isEmpty (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns merge range of the cell as an object of the OdCellRange class.
    Returns invalid merge range if the cell is not part of the merge range.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
  */
  OdCellRange getMergeRange (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns "editing content flag" cell property. Returns true if cell content can be edited or false if it can not.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
  */
  bool isContentEditable (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns "editing format flag" cell property. Returns true if cell format can be edited or false if it can not.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
  */
  bool isFormatEditable (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns cell state.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Cell state is an enumerator and takes one of the following values:
    
    <table>
    Name                                  Value
    kCellStateNone                        0x00
    kCellStateContentLocked               0x01
    kCellStateContentReadOnly             0x02
    kCellStateLinked                      0x04
    kCellStateContentModifiedAfterUpdate  0x08
    kCellStateFormatLocked                0x10
    kCellStateFormatReadOnly              0x20
    kCellStateFormatModifiedAfterUpdate   0x40
    kAllCellStates                        (kCellStateContentLocked | kCellStateContentReadOnly | kCellStateLinked | kCellStateContentModifiedAfterUpdate | kCellStateFormatLocked | kCellStateFormatReadOnly | kCellStateFormatModifiedAfterUpdate)
    </table>
  */
  OdDb::CellState cellState (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Sets the cell state.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nLock [in]  Cell state.
 
    \remarks
    Cell state should take one of the following values:
    
    <table>
    Name                                  Value
    kCellStateNone                        0x00
    kCellStateContentLocked               0x01
    kCellStateContentReadOnly             0x02
    kCellStateLinked                      0x04
    kCellStateContentModifiedAfterUpdate  0x08
    kCellStateFormatLocked                0x10
    kCellStateFormatReadOnly              0x20
    kCellStateFormatModifiedAfterUpdate   0x40
    kAllCellStates                        (kCellStateContentLocked | kCellStateContentReadOnly | kCellStateLinked | kCellStateContentModifiedAfterUpdate | kCellStateFormatLocked | kCellStateFormatReadOnly | kCellStateFormatModifiedAfterUpdate)
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  setCellState (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::CellState nLock);
 
  /** \details
    Returns the number of contents in the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  OdInt32 numContents (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Creates additional content for the cell. Returns index of the created content.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nIndex [in]  Index at which the content will be created. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  OdInt32 createContent (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nIndex);
 
  /** \details
    Moves content in the cell from one position to another.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nFromIndex [in]  Index of content to move.
    \param nToIndex [in]  Target index of the content where it should be moved to.
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
  void  moveContent (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nFromIndex, 
    OdInt32 nToIndex);
 
  /** \details
    Deletes content from the cells.
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  deleteContent (
    OdInt32 row, 
    OdInt32 col);
 
  /** \details
    Deletes content from the cells.
      
    \param row [in]  Row index of the cell.
    \param column [in]  Column index of the cell.
    \param nIndex [in]  Index of content.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
    */
  void  deleteContent (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nIndex);
 
  /** \details
    Deletes content from the cells.
 
    \param range [in]  Range of the cells.
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
  void  deleteContent (
    const OdCellRange& range);
 
  /** \details
    Returns content type of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Content type is an enumerator and takes one of the following values:
    
    <table>
    Name                     Value
    kCellContentTypeUnknown  0x0
    kCellContentTypeValue    0x1
    kCellContentTypeField    0x2
    kCellContentTypeBlock    0x4
    </table>
  */
  OdDb::CellContentType contentType (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns content type of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nIndex [in]  Index of content.
 
    \remarks
    Content type is an enumerator and takes one of the following values:
    
    <table>
    Name                     Value
    kCellContentTypeUnknown  0x0
    kCellContentTypeValue    0x1
    kCellContentTypeField    0x2
    kCellContentTypeBlock    0x4
    </table>
  */
  OdDb::CellContentType contentType (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nIndex) const;
 
  /** \details
    Returns the value of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdValue value (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Returns the value of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param nOption [in]  Format option of value.
 
    \remarks
    Format option is an enumerator and takes one of the following values:
    
    <table>
    Name                  Value
    kFormatOptionNone     0x00
    kForEditing           0x01
    kForExpression        0x02
    kUseMaximumPrecision  0x04
    kIgnoreMtextFormat    0x08
    </table>
  */
  OdValue value (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    OdValue::FormatOption nOption) const;
 
  /** \details
    Sets a value to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param val [in]  Value.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setValue (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdValue& val);
 
  /** \details
    Sets a value to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param val [in]  Value.
    \param nOption [in]  Parse option of value.
 
    \remarks
    Parse option is an enumerator and takes one of the following values:
    
    <table>
    Name                    Value
    kParseOptionNone        0x00
    kSetDefaultFormat       0x01
    kPreserveMtextFormat    0x02
    kConvertTextToValue     0x04
    kChangeDataType         0x08
    kParseTextForFieldCode  0x10
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setValue (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdValue& val, 
    OdValue::ParseOption nOption);
 
  /** \details
    Sets a value to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param sText [in]  Text of the value.
    \param nOption [in]  Parse option of value.
 
    \remarks
    Parse option is an enumerator and takes one of the following values:
    
    <table>
    Name                    Value
    kParseOptionNone        0x00
    kSetDefaultFormat       0x01
    kPreserveMtextFormat    0x02
    kConvertTextToValue     0x04
    kChangeDataType         0x08
    kParseTextForFieldCode  0x10
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  setValue (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    OdString sText, 
    OdValue::ParseOption nOption);
 
  /** \details
    Returns data format of the cell as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
  */
  OdString dataFormat (
    OdInt32 row,
    OdInt32 col) const;
 
  /** \details
    Returns data format of the cell as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdString dataFormat (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the data format of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param sFormat [in]  Data format.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setDataFormat (
    OdInt32 row, 
    OdInt32 col, 
    const OdString& sFormat);
 
  /** \details
    Sets data format of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param sFormat [in]  Data format.
    \param nContent [in]  Number of content.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setDataFormat (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdString& sFormat);
 
  /** \details
    Returns text string of the cell as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdString textString (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Returns the text string of the cell as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param nOption [in]  Format option of value.
 
    \remarks
    Format option is an enumerator and takes one of the following values:
    
    <table>
    Name                  Value
    kFormatOptionNone     0x00
    kForEditing           0x01
    kForExpression        0x02
    kUseMaximumPrecision  0x04
    kIgnoreMtextFormat    0x08
    </table>
  */
  OdString textString (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    OdValue::FormatOption nOption) const;
 
  /** \details
    Returns the text string of the cell as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nOption [in]  Format option of value.
 
    \remarks
    Format option is an enumerator and takes one of the following values:
    
    <table>
    Name                  Value
    kFormatOptionNone     0x00
    kForEditing           0x01
    kForExpression        0x02
    kUseMaximumPrecision  0x04
    kIgnoreMtextFormat    0x08
    </table>
  */
  OdString textString (
    OdInt32 row, 
    OdInt32 col, 
    OdValue::FormatOption nOption ) const;
 
  /** \details
    Sets a text string to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param text [in]  Text string.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setTextString (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdString& text);
 
  /** \details
    Checks if the cell has a formula.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  bool  hasFormula (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Returns the formula of the cell as an object of the OdString class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdString getFormula (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the formula of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param pszFormula [in]  Formula.
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
  void  setFormula (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdString& pszFormula);
 
  /** \details
    Returns the field id of the cell as an object of the OdDbObjectId class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdDbObjectId  fieldId (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets a field id to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param fieldId [in]  Field id.
    \param nFlag [in]  Cell option.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setFieldId (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdDbObjectId& fieldId, 
    OdDb::CellOption nFlag);
 
  /** \details
    Returns the id of the block table record of the cell as an object of the OdDbObjectId class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
  */
  OdDbObjectId  blockTableRecordId (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the id of the block table record of the cell as an object of the OdDbObjectId class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param blkId [in]  Id of block table record.
    \param autoFit [in]  Flag that indicates whether the block should be auto fit.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setBlockTableRecordId (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdDbObjectId& blkId, 
    bool autoFit);
 
  /** \details
    Returns the attribute value of the block cell using the specified object id key as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param attdefId [in]  Object id.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  OdString  getBlockAttributeValue (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdDbObjectId& attdefId) const;
 
  /** \details
    Sets the attribute value of the block cell using the specified object id key as an OdString value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Number of content.
    \param attdefId [in]  Object id.
    \param atrValue [in]  Attribute value.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when content is not editable ( !isContentEditable() ).
  */
  void  setBlockAttributeValue (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdDbObjectId& attdefId, 
    const OdString& atrValue);
 
  /** \details
    Returns the custom data value of the cell, column, or row as an OdInt32 value.
    Use a valid row index and pass column index -1 to get row data.
    Use a valid column index and pass row index -1 to get column data.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
  */
  OdInt32  getCustomData (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Sets the custom data value of the cell, column, or row.
    Use a valid row index and pass column index -1 to set row data.
    Use a valid column index and pass row index -1 to set column data.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nData [in]  Custom data value. 
  */
  void  setCustomData (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nData);
 
  /** \details
    Returns the custom data value of the cell, column, or row as an OdInt32 value.
    Use a valid row index and pass column index -1 to get row data.
    Use a valid column index and pass row index -1 to get column data.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param sKey [in]  Key to use for the custom data. 
  */
  OdValue getCustomData (
    OdInt32 row, 
    OdInt32 col, 
    const OdString sKey) const;
 
  /** \details
    Sets the custom data value of the cell, column, or row.
    Use a valid row index and pass column index -1 to get row data
    Use a valid column index and pass row index -1 to get column data
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param sKey [in]  Key to use for the custom data. 
    \param pData [in]  Custom data value.  
  */
  void  setCustomData (
    OdInt32 row, 
    OdInt32 col, 
    const OdString& sKey, 
    const OdValue* pData);
 
  /** \details
    Returns the cell style as an OdString value.
    Use a valid row index and pass column index -1 to get style for row.
    Use a valid column index and pass row index -1 to get style for column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Cell style should be one of the following values:
    
    <table>
    Name
    _TITLE  
    _HEADER
    _DATA
    </table>
 
  */
  OdString  cellStyle (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Sets the cell style.
    Use a valid row index and pass column index -1 to set style for row.
    Use a valid column index and pass row index -1 to set style for column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.   
    \param sCellStyle [in]  Cell style.   
 
    \remarks
    Cell style should be one of the following values:
    
    <table>
    Name
    _TITLE  
    _HEADER
    _DATA
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  setCellStyle (
    OdInt32 row, 
    OdInt32 col, 
    const OdString& sCellStyle);
 
  /** \details
    Returns the margin of the cell, row, or column as a double value.
    Use a valid row index and pass column index -1 to get margin for row.
    Use a valid column index and pass row index -1 to get margin for column.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nMargin [in]  Margin type. 
 
    \remarks
    Margin type should be one of following values:
    
    <table>
    Name                    Value
    kCellMarginTop          0x01
    kCellMarginLeft         0x02
    kCellMarginBottom       0x04
    kCellMarginRight        0x08
    kCellMarginHorzSpacing  0x10
    kCellMarginVertSpacing  0x20
    </table>
  */
  double margin (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::CellMargin nMargin) const;
 
  /** \details
    Sets the margin to the cell, row, or column.
    Use a valid row index and pass column index -1 to set margin for row.
    Use a valid column index and pass row index -1 to set margin for column.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nMargins [in]  Margin type. 
    \param fMargin [in]  Margin. 
 
    \remarks
    Margin type should be a combination of one or more following values:
    
    <table>
    Name                    Value
    kCellMarginTop          0x01
    kCellMarginLeft         0x02
    kCellMarginBottom       0x04
    kCellMarginRight        0x08
    kCellMarginHorzSpacing  0x10
    kCellMarginVertSpacing  0x20
    </table>
  */
  void  setMargin (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::CellMargin nMargins, 
    double fMargin);
 
  /** \details
    Returns the attachment point of the cell as an object of the OdGePoint3d class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param content [in]  Content index. 
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
  OdGePoint3d  attachmentPoint (
     OdInt32 row, 
     OdInt32 col, 
     OdInt32 content) const;
 
  /** \details
    Returns the color of the cell content as an object of the OdCmColor class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  OdCmColor  contentColor (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the color of the cell content.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index. 
    \param color [in]  Color content. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setContentColor (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdCmColor& color);
 
  /** \details
    Gets the data type of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index. 
    \param nDataType [out]  Reference to data type. 
    \param nUnitType [out]  Reference to unit type. 
 
    \remarks
    Data type should take one of following values:
    
    <table>
    Name       Value
    kUnknown   0x00
    kLong      0x01
    kDouble    0x02
    kString    0x04
    kDate      0x08
    kPoint     0x10
    k3dPoint   0x20
    kObjectId  0x40
    kBuffer    0x80
    kResbuf    0x100
    kGeneral   0x200
    kColor     0x400
    </table>
 
    Unit type should take one of following values:
    
    <table>
    Name         Value
    kUnitless    0x00
    kDistance    0x01
    kAngle       0x02
    kArea        0x04
    kVolume      0x08
    kCurrency    0x10
    kPercentage  0x20
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  getDataType (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    OdValue::DataType& nDataType, 
    OdValue::UnitType& nUnitType) const;
 
  /** \details
    Sets the data type to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nDataType [in]  Data type. 
    \param nUnitType [in]  Unit type. 
 
    \remarks
    Data type should take one of following values:
    
    <table>
    Name       Value
    kUnknown   0x00
    kLong      0x01
    kDouble    0x02
    kString    0x04
    kDate      0x08
    kPoint     0x10
    k3dPoint   0x20
    kObjectId  0x40
    kBuffer    0x80
    kResbuf    0x100
    kGeneral   0x200
    kColor     0x400
    </table>
 
    Unit type should take one of following values:
    
    <table>
    Name         Value
    kUnitless    0x00,
    kDistance    0x01,
    kAngle       0x02,
    kArea        0x04,
    kVolume      0x08,
    kCurrency    0x10,
    kPercentage  0x20
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setDataType (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    OdValue::DataType nDataType, 
    OdValue::UnitType nUnitType);
 
  /** \details
    Returns the text style of the cell as an object of the OdDbObjectId class.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.  
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  OdDbObjectId  textStyle (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the text style to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.  
    \param id [in]  Text style id.  
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setTextStyle (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    const OdDbObjectId& id);
 
  /** \details
    Returns the text height of the cell as a double value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.  
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  double textHeight (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Returns the text height of the cell as a double value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
    \param height [in]  Text height.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setTextHeight (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    double height);
 
  /** \details
    Returns table rotation in radians as a double value.
  */
  double rotation() const;
 
  /** \details
    Returns the content rotation angle in radians as a double value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  double rotation (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets table rotation in radians as a double value.
 
    \param fAngle [in]  Rotation angle.
  */
  void  setRotation(double fAngle);
 
  /** \details
    Sets the content rotation angle in radians.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
    \param fAngle [in]  Rotation angle. 
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
    */
  void  setRotation (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    double fAngle);
 
  /** \details
    Checks whether data in the cell is auto-scaled or not. Returns the auto-scaled flag as a boolean value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
  */
  bool  isAutoScale (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets the auto-scaled flag to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
    \param autoFit [in]  Auto-scaled flag.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setAutoScale (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    bool autoFit);
 
  /** \details
    Returns the scale value of the cell as a double value.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  double scale (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent) const;
 
  /** \details
    Sets scale value to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nContent [in]  Content index.
    \param scale [in]  Scale value.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  setScale (
    OdInt32 row, 
    OdInt32 col, 
    OdInt32 nContent, 
    double scale);
 
  /** \details
    Returns content layout of the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Returning value should be one of following values:
    
    <table>
    Name                                 Value
    kCellContentLayoutFlow               0x1
    kCellContentLayoutStackedHorizontal  0x2
    kCellContentLayoutStackedVertical    0x4
    </table>
 
  */
  OdDb::CellContentLayout contentLayout (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Sets content layout to the cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nLayout [in]  Content layout.
 
    \remarks
    Content layout should take one of following values:
    
    <table>
    Name                                 Value
    kCellContentLayoutFlow               0x1
    kCellContentLayoutStackedHorizontal  0x2
    kCellContentLayoutStackedVertical    0x4
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
    Method generates the eIsWriteProtected when format is not editable ( !isFormatEditable() ).
  */
  void  setContentLayout (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::CellContentLayout nLayout);
 
   /** \details
    Checks whether the merge-all flag is enabled for the cell, row, or column. 
    Returns true if the merge-all flag is enabled or false if it is not.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
   bool  isMergeAllEnabled (
     OdInt32 row, 
     OdInt32 col) const;
 
  /** \details
    Sets the merge-all flag to enabled for the cell, row, or column. 
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param bEnable [in]  merge-all flag. 
 
    \remarks
    Method generates the eNotImplementedYet exception.
  */
   void  enableMergeAll (
     OdInt32 row, 
     OdInt32 col, 
     bool bEnable);
 
  /** \details
    Returns the override of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row property overrides.
    Use a valid column index and pass row index -1 to get column property overrides.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nContent [in]  Content index. 
 
    \remarks
    Cell property should take one of the next values:
    
    <table>
    Name                        Value
    kCellPropInvalid            0x00000
    kCellPropDataType           0x00001
    kCellPropDataFormat         0x00002
    kCellPropRotation           0x00004
    kCellPropScale              0x00008
    kCellPropAlignment          0x00010
    kCellPropContentColor       0x00020
    kCellPropTextStyle          0x00040
    kCellPropTextHeight         0x00080
    kCellPropAutoScale          0x00100
    kCellPropBackgroundColor    0x00200
    kCellPropMarginLeft         0x00400
    kCellPropMarginTop          0x00800
    kCellPropMarginRight        0x01000
    kCellPropMarginBottom       0x02000
    kCellPropContentLayout      0x04000
    kCellPropMergeAll           0x08000
    kCellPropFlowDirBtoT        0x10000
    kCellPropMarginHorzSpacing  0x20000
    kCellPropMarginVertSpacing  0x40000
    kCellPropDataTypeAndFormat  (kCellPropDataType | kCellPropDataFormat)
    kCellPropContent            (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropContentColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropAutoScale)
    kCellPropBitProperties      (kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT)
    kCellPropAll                (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropAlignment | kCellPropContentColor | kCellPropBackgroundColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropMarginLeft | kCellPropMarginTop | kCellPropMarginRight | kCellPropMarginBottom | kCellPropMarginHorzSpacing | kCellPropMarginVertSpacing | kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT | kCellPropContentLayout)
    </table>
  */
   OdDb::CellProperty getOverride (
     OdInt32 row, 
     OdInt32 col, 
     OdInt32 nContent) const;
 
  /** \details
    Returns the override in the grid line of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row property overrides.
    Use a valid column index and pass row index -1 to get column property overrides.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype. 
 
    \remarks
    Grid property should take one of the following values:
 
    <table>
    Name                        Value
    kGridPropInvalid            0x00
    kGridPropLineStyle          0x01
    kGridPropLineWeight         0x02
    kGridPropLinetype           0x04
    kGridPropColor              0x08
    kGridPropVisibility         0x10
    kGridPropDoubleLineSpacing  0x20
    kGridPropAll                (kGridPropLineStyle | kGridPropLineWeight | kGridPropLinetype | kGridPropColor | kGridPropVisibility | kGridPropDoubleLineSpacing)
    </table>
 
    Grid linetype should take one of the following values:
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
   OdDb::GridProperty getOverride (
     OdInt32 row, 
     OdInt32 col, 
     OdDb::GridLineType nGridLineType) const;
 
  
  /** \details
    Sets the override in the cell, row, column, content, or grid line in the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row property overrides.
    Use a valid column index and pass row index -1 to set column property overrides.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nContent [in]  Content index. 
    \param nOverride [in]  Override. 
 
    \remarks
    Cell property should take one of the following values:
    
    <table>
    Name                        Value
    kCellPropInvalid            0x00000
    kCellPropDataType           0x00001
    kCellPropDataFormat         0x00002
    kCellPropRotation           0x00004
    kCellPropScale              0x00008
    kCellPropAlignment          0x00010
    kCellPropContentColor       0x00020
    kCellPropTextStyle          0x00040
    kCellPropTextHeight         0x00080
    kCellPropAutoScale          0x00100
    kCellPropBackgroundColor    0x00200
    kCellPropMarginLeft         0x00400
    kCellPropMarginTop          0x00800
    kCellPropMarginRight        0x01000
    kCellPropMarginBottom       0x02000
    kCellPropContentLayout      0x04000
    kCellPropMergeAll           0x08000
    kCellPropFlowDirBtoT        0x10000
    kCellPropMarginHorzSpacing  0x20000
    kCellPropMarginVertSpacing  0x40000
    kCellPropDataTypeAndFormat  (kCellPropDataType | kCellPropDataFormat)
    kCellPropContent            (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropContentColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropAutoScale)
    kCellPropBitProperties      (kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT)
    kCellPropAll                (kCellPropDataType | kCellPropDataFormat | kCellPropRotation | kCellPropScale | kCellPropAlignment | kCellPropContentColor | kCellPropBackgroundColor | kCellPropTextStyle | kCellPropTextHeight | kCellPropMarginLeft | kCellPropMarginTop | kCellPropMarginRight | kCellPropMarginBottom | kCellPropMarginHorzSpacing | kCellPropMarginVertSpacing | kCellPropAutoScale | kCellPropMergeAll | kCellPropFlowDirBtoT | kCellPropContentLayout)
    </table>
  */
   void  setOverride (
     OdInt32 row, 
     OdInt32 col, 
     OdInt32 nContent, 
     OdDb::CellProperty nOverride);
 
  /** \details
    Sets the override in the cell, row, column, content, or grid line in the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row property overrides.
    Use a valid column index and pass row index -1 to set column property overrides.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
    \param nOverride [in]  Override. 
 
    \remarks
    Grid linetype should take one of the next values:
 
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
   void  setOverride (
     OdInt32 row, 
     OdInt32 col, 
     OdDb::GridLineType nGridLineType, 
     OdDb::GridProperty nOverride);
 
  /** \details
    Removes all overrides in the cell, row, or column. 
    Use a valid row index and pass column index -1 to remove row property overrides.
    Use a valid column index and pass row index -1 to remove column property overrides.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
  */
   void  removeAllOverrides (
     OdInt32 row, 
     OdInt32 col);
  
  /** \details
    Returns the grid line style of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid line style.
    Use a valid column index and pass row index -1 to get column grid line style.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype. 
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid line style should take one of the following values:
    
    <table>
    Name                  Value
    kGridLineStyleSingle  1
    kGridLineStyleDouble  2
    </table>
  */
  OdDb::GridLineStyle gridLineStyle (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid line style to the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row grid line style.
    Use a valid column index and pass row index -1 to set column grid line style.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype. 
    \param nLineStyle [in]  Grid line style. 
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid line style should take one of the following values:
    
    <table>
    Name                  Value
    kGridLineStyleSingle  1
    kGridLineStyleDouble  2
    </table>
  */
  void  setGridLineStyle (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineTypes, 
    OdDb::GridLineStyle nLineStyle);
 
  /** \details
    Returns the grid lineweight of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid lineweight.
    Use a valid column index and pass row index -1 to get column grid lineweight.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype. 
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid lineweight should take one of the following values:
    
    <table>
    Name              Value
    kLnWt000          0
    kLnWt005          5
    kLnWt009          9
    kLnWt013          13
    kLnWt015          15
    kLnWt018          18
    kLnWt020          20
    kLnWt025          25
    kLnWt030          30
    kLnWt035          35
    kLnWt040          40
    kLnWt050          50
    kLnWt053          53
    kLnWt060          60
    kLnWt070          70
    kLnWt080          80
    kLnWt090          90
    kLnWt100          100
    kLnWt106          106
    kLnWt120          120
    kLnWt140          140
    kLnWt158          158
    kLnWt200          200
    kLnWt211          211
    kLnWtByLayer      -1
    kLnWtByBlock      -2
    kLnWtByLwDefault  -3
    </table>
  */
  OdDb::LineWeight gridLineWeight (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid lineweight of the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row grid lineweight.
    Use a valid column index and pass row index -1 to set column grid lineweight.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
    \param nLineWeight [in]  Grid lineweight.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid lineweight should take one of the following values:
    
    <table>
    Name              Value
    kLnWt000          0
    kLnWt005          5
    kLnWt009          9
    kLnWt013          13
    kLnWt015          15
    kLnWt018          18
    kLnWt020          20
    kLnWt025          25
    kLnWt030          30
    kLnWt035          35
    kLnWt040          40
    kLnWt050          50
    kLnWt053          53
    kLnWt060          60
    kLnWt070          70
    kLnWt080          80
    kLnWt090          90
    kLnWt100          100
    kLnWt106          106
    kLnWt120          120
    kLnWt140          140
    kLnWt158          158
    kLnWt200          200
    kLnWt211          211
    kLnWtByLayer      -1
    kLnWtByBlock      -2
    kLnWtByLwDefault  -3
    </table>
  */
  void  setGridLineWeight (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineTypes, 
    OdDb::LineWeight nLineWeight);
 
  /** \details
    Returns the grid linetype of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid linetype.
    Use a valid column index and pass row index -1 to get column grid linetype.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetypes.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  OdDbObjectId    gridLinetype (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid linetype of the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row grid linetype.
    Use a valid column index and pass row index -1 to set column grid linetype.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineTypes [in]  Grid linetypes.
    \param idLinetype [in]  Grid linetype to set.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  setGridLinetype (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineTypes, 
    const OdDbObjectId& idLinetype);
 
  /** \details
    Returns the grid color of the cell, row, or column as an object of the OdCmColor class. 
    Use a valid row index and pass column index -1 to get row grid line color.
    Use a valid column index and pass row index -1 to get column grid line color.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  OdCmColor gridColor (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid color of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid line color.
    Use a valid column index and pass row index -1 to get column grid line color.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridlineTypes [in]  Grid linetypes.
    \param color [in]  Grid color.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  setGridColor (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridlineTypes, 
    const OdCmColor& color);
 
  /** \details
    Returns the grid visibility of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid visibility .
    Use a valid column index and pass row index -1 to get column grid visibility .
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid visibility should take one of the following values:
    
    <table>
    Name        Value
    kInvisible  1
    kVisible    0
    </table>
  */
  OdDb::Visibility gridVisibility (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid visibility of the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row grid visibility .
    Use a valid column index and pass row index -1 to set column grid visibility .
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineTypes [in]  Grid linetypes.
    \param nVisibility [in]  Grid line visibility.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
 
    Grid visibility should take one of the following values:
    
    <table>
    Name        Value
    kInvisible  1
    kVisible    0
    </table>
  */
  void  setGridVisibility (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineTypes, 
    OdDb::Visibility nVisibility);
 
  /** \details
    Returns the grid double line spacing of the cell, row, or column as a double value. 
    Use a valid row index and pass column index -1 to get row grid double line spacing.
    Use a valid column index and pass row index -1 to get column grid double line spacing.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  double gridDoubleLineSpacing (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType) const;
 
  /** \details
    Sets the grid double line spacing of the cell, row, or column. 
    Use a valid row index and pass column index -1 to set row grid double line spacing.
    Use a valid column index and pass row index -1 to set column grid double line spacing.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineTypes [in]  Grid linetypes.
    \param fSpacing [in]  Grid double line spacing.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  setGridDoubleLineSpacing(
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType 
    nGridLineTypes, 
    double fSpacing);
 
  /** \details
    Returns the grid line property of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid property.
    Use a valid column index and pass row index -1 to get column grid property.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineType [in]  Grid linetype.
    \param gridProp [out]  Grid line property.
 
    \remarks
    Grid linetype should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  getGridProperty (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineType, 
    OdGridProperty& gridProp) const;
 
  /** \details
    Sets the grid line property of the cell, row, or column. 
    Use a valid row index and pass column index -1 to get row grid property.
    Use a valid column index and pass row index -1 to get column grid property.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param nGridLineTypes [in]  Grid linetypes.
    \param gridProp [in]  Grid line property.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  setGridProperty (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::GridLineType nGridLineTypes, 
    const OdGridProperty& gridProp);
 
  /** \details
    Sets the grid line property of the cell, row, or column. 
 
    \param rangeIn [in]  Cell range, row range or column range.
    \param nGridLineTypes [in]  Grid linetypes.
    \param gridProp [in]  Grid line property.
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  void  setGridProperty  (
    const OdCellRange& rangeIn, 
    OdDb::GridLineType nGridLineTypes, 
    const OdGridProperty& gridProp);
 
    /** \details
    Checks if the cell is linked to a data source. 
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
 
    \remarks
    Grid linetypes should take one of the following values:
    
    <table>
    Name                 Value
    kInvalidGridLine     0x00
    kHorzTop             0x01
    kHorzInside          0x02
    kHorzBottom          0x04
    kVertLeft            0x08
    kVertInside          0x10
    kVertRight           0x20
    kHorzGridLineTypes   kHorzTop|kHorzBottom|kHorzInside
    kVertGridLineTypes   kVertLeft|kVertRight|kVertInside
    kOuterGridLineTypes  kHorzTop|kHorzBottom|kVertLeft|kVertRight
    kInnerGridLineTypes  kHorzInside|kVertInside
    kAllGridLineTypes    kOuterGridLineTypes|kInnerGridLineTypes
    </table>
  */
  bool isLinked (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Returns the data link (OdDbDataLink) for the specified row and column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.
  */
  OdDbObjectId getDataLink (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Opens and returns the data link (OdDbDataLink) for the specified row and column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.
    \param mode [in]  Open mode.
 
    \remarks
    Open mode should take one of the following values:
    
    <table>
    Name        Value
    kNotOpen    -1
    kForRead    0
    kForWrite   1
    kForNotify  2
    </table>
  */
  OdDbDataLinkPtr getDataLink (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::OpenMode mode) const;
 
  /** \details
    Returns the number of data links (OdDbDataLink) for the specified cell range.
 
    \param pRange [in]  Cell range. 
    \param dataLinkIds [out]  Array of data link IDs.
  */
  OdInt32 getDataLink (
    const OdCellRange& pRange, 
    OdDbObjectIdArray& dataLinkIds) const;
 
  /** \details
    Sets the data link (OdDbDataLink) for the specified row and column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.
    \param idDataLink [in]  Array of data link IDs.
    \param bUpdate [in]  Flag that indicates whether or not the data link should be updated after setting it.
 
    \remarks
    Method generates the eNotThatKindOfClass exception when idDataLink in not an OdDbDataLink object id.
  */
  void setDataLink (
    OdInt32 row, 
    OdInt32 col, 
    const OdDbObjectId& idDataLink, 
    bool bUpdate);
 
  /** \details
    Sets the data link (OdDbDataLink) for the specified cell range.
 
    \param range [in]  Cell range. 
    \param idDataLink [in]  Array of data link IDs.
    \param bUpdate [in]  Flag that indicates whether or not the data link should be updated after setting it.
 
    \remarks
    Method generates the eNotThatKindOfClass exception when idDataLink in not an OdDbDataLink object id.
  */
  void setDataLink 
    (const OdCellRange& range, 
    const OdDbObjectId& idDataLink, 
    bool bUpdate);
 
  /** \details
    Returns the data link cell range that includes the specified row and column.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.
  */
  OdCellRange getDataLinkRange (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Removes the data link at the specified cell.
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell.
 
    \remarks
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  removeDataLink (
    OdInt32 row, 
    OdInt32 col);
 
  /** \details
    Removes all data links.
  */
  void  removeDataLink (void);
  
  /** \details
    Updates the data link of the cell. 
 
    \param row [in]  Row index of the cell. 
    \param col [in]  Column index of the cell. 
    \param nDir [in]  Direction of update.
    \param nOption [in]  Update option.
 
    \remarks
    Direction of update should take one of the following values:
    
    <table>
    Name                          Value
    kUpdateDirectionSourceToData  0x1
    kUpdateDirectionDataToSource  0x2
    </table>
 
    Update option should take one of the following values:
    
    <table>
    Name                                              Value
    kUpdateOptionNone                                 0
    kUpdateOptionSkipFormat                           0x20000
    kUpdateOptionUpdateRowHeight                      0x40000
    kUpdateOptionUpdateColumnWidth                    0x80000
    kUpdateOptionAllowSourceUpdate                    0x100000
    kUpdateOptionForceFullSourceUpdate                0x200000
    kUpdateOptionOverwriteContentModifiedAfterUpdate  0x400000
    kUpdateOptionOverwriteFormatModifiedAfterUpdate   0x800000
    kUpdateOptionForPreview                           0x1000000
    kUpdateOptionIncludeXrefs                         0x2000000
    kUpdateOptionSkipFormatAfterFirstUpdate           0x4000000
    </table>
 
    Method generates the eInvalidInput exception when input row number and column number are less than 0 or greater than table size.
  */
  void  updateDataLink (
    OdInt32 row, 
    OdInt32 col, 
    OdDb::UpdateDirection nDir, 
    OdDb::UpdateOption nOption);
 
  /** \details
    Updates the data link in the table. 
 
    \param nDir [in]  Direction of update
    \param nOption [out]  Update option.
 
    \remarks
    Direction of update should take one of the following values:
    
    <table>
    Name                          Value
    kUpdateDirectionSourceToData  0x1
    kUpdateDirectionDataToSource  0x2
    </table>
 
    Update option should take one of the following values:
    
    <table>
    Name                                              Value
    kUpdateOptionNone                                 0
    kUpdateOptionSkipFormat                           0x20000
    kUpdateOptionUpdateRowHeight                      0x40000
    kUpdateOptionUpdateColumnWidth                    0x80000
    kUpdateOptionAllowSourceUpdate                    0x100000
    kUpdateOptionForceFullSourceUpdate                0x200000
    kUpdateOptionOverwriteContentModifiedAfterUpdate  0x400000
    kUpdateOptionOverwriteFormatModifiedAfterUpdate   0x800000
    kUpdateOptionForPreview                           0x1000000
    kUpdateOptionIncludeXrefs                         0x2000000
    kUpdateOptionSkipFormatAfterFirstUpdate           0x4000000
    </table>
  */
  void  updateDataLink (
    OdDb::UpdateDirection nDir, 
    OdDb::UpdateOption nOption);
 
  /** \details
    Returns the column name as an OdString value. 
 
    \param nIndex [in]  Column index.
  */
  OdString  getColumnName (
    OdInt32 nIndex) const;
 
  /** \details
    Sets the column name. 
 
    \param nIndex [in]  Column index.
    \param sName [in]  Column name.
  */
  void setColumnName (
    OdInt32 nIndex, 
    const OdString& sName);
 
  /** \details
    Returns the tooltip of the cell as an OdString value. 
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
  */
  OdString getToolTip (
    OdInt32 row, 
    OdInt32 col) const;
 
  /** \details
    Sets the tooltip of the cell.
 
    \param row [in]  Row index. 
    \param col [in]  Column index. 
    \param sToolTip [in]  Tooltip. 
  */
  void  setToolTip (
    OdInt32 row, 
    OdInt32 col, 
    const OdString sToolTip);
  // void  createTemplate (OdDbTableTemplate*& pTemplate, OdDb::TableCopyOption nCopyOption);
  // void  getIndicatorSize (double& fWidth, double& fHeight) const;
 
  /** \details
    Copies the content from the source object. 
 
    \param pSource [in]  Source object.  
  */
  virtual void copyFrom(
    const OdRxObject* pSource);
 
  /** \details
    Copies the content and format from the source table. 
 
    \param pSrc [in]  Source table.  
    \param nOption [in]  Copy option.  
  */
  void copyFrom (
    const OdDbLinkedTableData* pSrc, 
    OdDb::TableCopyOption nOption);
 
  /** \details
    Copies the content and format from the source table. 
  
    \param pSrc [in]  Source table.  
    \param nOption [in]  Copy option.  
    \param srcRange [in]  Source cell range.  
    \param targetRange [in]  Target cell range.  
    \param pNewTargetRangeOut [out]  Target cell range.  
  */
  void copyFrom (const OdDbLinkedTableData* pSrc, 
    OdDb::TableCopyOption nOption, 
    const OdCellRange& srcRange, 
    const OdCellRange& targetRange,
    OdCellRange* pNewTargetRangeOut);
 
  /** \details
    Copies the content and format from the source table. 
  
    \param pSrc [in]  Source table.  
    \param nOption [in]  Copy option.  
    \param srcRange [in]  Source cell range.  
    \param targetRange [in]  Target cell range.  
    \param pNewTargetRangeOut [out]  Target cell range.  
  */
  void copyFrom  (const OdDbTable* pSrc, 
    OdDb::TableCopyOption nOption, 
    const OdCellRange& srcRange, 
    const OdCellRange& targetRange,
    OdCellRange* pNewTargetRangeOut);
 
  /** \details
    Appends this OdDbTable object to the specified owner object.  
  
    \param idPair [in]  ID pair to append.  
    \param pOwnerObject [in]  Pointer to the owner object.  
    \param ownerIdMap [in/out]  Owner's ID map.  
  */  
  void appendToOwner(
    OdDbIdPair& idPair, 
    OdDbObject* pOwnerObject, 
    OdDbIdMapping& ownerIdMap);
 
  /** \details
    Returns true if regeneration of the table block is disabled. Otherwise, returns false.
  */
  bool isRegenerateTableSuppressed() const;
 
  /** \details
    This method allows the user to disable the regeneration of the table block during property changes. 
 
    \param bSuppress [in]   Input boolean value to suppress or enable the regeneration of a table object.
  */
  void suppressRegenerateTable(bool bSuppress);
 
  virtual OdResult subExplode(
    OdRxObjectPtrArray& entitySet) const ODRX_OVERRIDE;
 
};
 
/** \details
  This template class is a specialization of the OdSmartPtr class for OdDbTable object pointers.
*/
typedef OdSmartPtr<OdDbTable> OdDbTablePtr;
 
#include "TD_PackPop.h"
 
#endif