diff options
| author | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-12 22:27:11 (GMT) |
|---|---|---|
| committer | Jack Jansen <jack.jansen@cwi.nl> | 2003-04-12 22:27:11 (GMT) |
| commit | 3576066cad445e0b3870766fa661b534f9799de7 (patch) | |
| tree | a0251816bb4ef3bbc54468d20e752a3896a9f827 /Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py | |
| parent | 7b01a83488ebe1969b416d579e7df58576bb3c44 (diff) | |
| download | cpython-3576066cad445e0b3870766fa661b534f9799de7.zip cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.gz cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.bz2 | |
Oops, _propdeclarations and friends are needed: gensuitemodule uses them
to lookup properties declared in base classes. Looking at it I'm not sure
what the official scope if the property codes is, maybe it is only the
(OSA) class in which they are used. But giving them global scope hasn't been
a problem so far.
Regenerated the standard suites, which are now also space-indented.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py')
| -rw-r--r-- | Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py | 69 |
1 files changed, 41 insertions, 28 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py b/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py index 09e326c..d4a00a4 100644 --- a/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py +++ b/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py @@ -12,54 +12,54 @@ _code = 'tbls' class Table_Suite_Events: - pass + pass class cell(aetools.ComponentItem): - """cell - A cell """ - want = 'ccel' + """cell - A cell """ + want = 'ccel' class _Prop_formula(aetools.NProperty): - """formula - the formula of the cell """ - which = 'pfor' - want = 'ctxt' + """formula - the formula of the cell """ + which = 'pfor' + want = 'ctxt' class _Prop_protection(aetools.NProperty): - """protection - Indicates whether value or formula in the cell can be changed """ - which = 'ppro' - want = 'prtn' + """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' + """column - A column """ + want = 'ccol' class _Prop_name(aetools.NProperty): - """name - the name of the column """ - which = 'pnam' - want = 'itxt' + """name - the name of the column """ + which = 'pnam' + want = 'itxt' columns = column class rows(aetools.ComponentItem): - """rows - """ - want = 'crow' + """rows - """ + want = 'crow' row = rows class tables(aetools.ComponentItem): - """tables - """ - want = 'ctbl' + """tables - """ + want = 'ctbl' table = tables cell._superclassnames = [] cell._privpropdict = { - 'formula' : _Prop_formula, - 'protection' : _Prop_protection, + 'formula' : _Prop_formula, + 'protection' : _Prop_protection, } cell._privelemdict = { } column._superclassnames = [] column._privpropdict = { - 'name' : _Prop_name, + 'name' : _Prop_name, } column._privelemdict = { } @@ -74,9 +74,9 @@ tables._privpropdict = { tables._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 + '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 } @@ -84,8 +84,21 @@ _Enum_prtn = { # Indices of types declared in this module # _classdeclarations = { - 'ccel' : cell, - 'ccol' : column, - 'crow' : rows, - 'ctbl' : tables, + 'ccel' : cell, + 'ccol' : column, + 'crow' : rows, + 'ctbl' : tables, +} + +_propdeclarations = { + 'pfor' : _Prop_formula, + 'pnam' : _Prop_name, + 'ppro' : _Prop_protection, +} + +_compdeclarations = { +} + +_enumdeclarations = { + 'prtn' : _Enum_prtn, } |
