blob: ff1dbf7514b1d51a951e606677a7554ea08eb7fa [file] [log] [blame]
Jack Jansen21b5d601997-08-27 13:49:18 +00001"""Suite Table Suite: Classes for manipulating tables
2Level 1, version 1
3
4Generated from flap:System Folder:Extensions:Scripting Additions:Dialects:English Dialect
5AETE/AEUT resource version 1/0, language 0, script 0
6"""
7
8import aetools
9import MacOS
10
11_code = 'tbls'
12
13class Table_Suite:
14
15 pass
16
17
18class cell(aetools.ComponentItem):
19 """cell - A cell"""
20 want = 'ccel'
21class _class(aetools.NProperty):
22 """class - the class"""
23 which = 'pcls'
24 want = 'type'
25class formula(aetools.NProperty):
26 """formula - the formula of the cell"""
27 which = 'pfor'
28 want = 'ctxt'
29class protection(aetools.NProperty):
30 """protection - Indicates whether value or formula in the cell can be changed"""
31 which = 'ppro'
32 want = 'prtn'
33
34cells = cell
35
36class column(aetools.ComponentItem):
37 """column - A column"""
38 want = 'ccol'
39class name(aetools.NProperty):
40 """name - the name"""
41 which = 'pnam'
42 want = 'itxt'
43
44columns = column
45
46class row(aetools.ComponentItem):
47 """row - A row"""
48 want = 'crow'
49
50rows = row
51
52class table(aetools.ComponentItem):
53 """table - A table"""
54 want = 'ctbl'
55
56tables = table
57cell._propdict = {
58 '_class' : _class,
59 'formula' : formula,
60 'protection' : protection,
61}
62cell._elemdict = {
63}
64column._propdict = {
65 'name' : name,
66}
67column._elemdict = {
68}
69row._propdict = {
70}
71row._elemdict = {
72}
73table._propdict = {
74}
75table._elemdict = {
76}
77_Enum_prtn = {
78 'read_only' : 'nmod', # Can't change values or formulas
79 'formulas_protected' : 'fpro', # Can changes values but not formulas
80 'read_2f_write' : 'modf', # Can change values and formulas
81}
82
83
84#
85# Indices of types declared in this module
86#
87_classdeclarations = {
88 'ccel' : cell,
89 'ctbl' : table,
90 'ccol' : column,
91 'crow' : row,
92}
93
94_propdeclarations = {
95 'ppro' : protection,
96 'pnam' : name,
97 'pfor' : formula,
98 'pcls' : _class,
99}
100
101_compdeclarations = {
102}
103
104_enumdeclarations = {
105 'prtn' : _Enum_prtn,
106}