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.
This commit is contained in:
Jack Jansen 2003-04-12 22:27:11 +00:00
parent 7b01a83488
commit 3576066cad
56 changed files with 13056 additions and 11895 deletions

View file

@ -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,
}