summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py
blob: 522f04cf7226e84b3d74c5ca5374ff861cd50b07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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
"""Suite Table Suite: Classes for manipulating tables
Level 1, version 1

Generated from /Volumes/Moes/Systeemmap/Extensies/AppleScript
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'tbls'

class Table_Suite_Events:

	pass


class cell(aetools.ComponentItem):
	"""cell - A cell """
	want = 'ccel'
class formula(aetools.NProperty):
	"""formula - the formula of the cell """
	which = 'pfor'
	want = 'ctxt'
class protection(aetools.NProperty):
	"""protection - Indicates whether value or formula in the cell can be changed """
	which = 'ppro'
	want = 'prtn'

cells = cell

class column(aetools.ComponentItem):
	"""column - A column """
	want = 'ccol'
class name(aetools.NProperty):
	"""name - the name of the column """
	which = 'pnam'
	want = 'itxt'

columns = column

class row(aetools.ComponentItem):
	"""row - A row """
	want = 'crow'

rows = row

class table(aetools.ComponentItem):
	"""table - A table """
	want = 'ctbl'

tables = table
cell._superclassnames = []
cell._privpropdict = {
	'formula' : formula,
	'protection' : protection,
}
cell._privelemdict = {
}
column._superclassnames = []
column._privpropdict = {
	'name' : name,
}
column._privelemdict = {
}
row._superclassnames = []
row._privpropdict = {
}
row._privelemdict = {
}
table._superclassnames = []
table._privpropdict = {
}
table._privelemdict = {
}
_Enum_prtn = {
	'read_only' : 'nmod',	# Can\xd5t change values or formulas
	'formulas_protected' : 'fpro',	# Can changes values but not formulas
	'read_2f_write' : 'modf',	# Can change values and formulas
}


#
# Indices of types declared in this module
#
_classdeclarations = {
	'ccel' : cell,
	'ccol' : column,
	'crow' : row,
	'ctbl' : table,
}

_propdeclarations = {
	'pfor' : formula,
	'pnam' : name,
	'ppro' : protection,
}

_compdeclarations = {
}

_enumdeclarations = {
	'prtn' : _Enum_prtn,
}