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