105 lines
1.8 KiB
Python
105 lines
1.8 KiB
Python
"""Suite Table Suite: Classes for manipulating tables
|
|
Level 1, version 1
|
|
|
|
Generated from /Volumes/Sap/System Folder/Extensions/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,
|
|
'ctbl' : table,
|
|
'crow' : row,
|
|
}
|
|
|
|
_propdeclarations = {
|
|
'pnam' : name,
|
|
'pfor' : formula,
|
|
'ppro' : protection,
|
|
}
|
|
|
|
_compdeclarations = {
|
|
}
|
|
|
|
_enumdeclarations = {
|
|
'prtn' : _Enum_prtn,
|
|
}
|