/Lib/plat-mac/lib-scriptpackages/StdSuites/Table_Suite.py

http://unladen-swallow.googlecode.com/ · Python · 104 lines · 70 code · 18 blank · 16 comment · 0 complexity · bf9395b89be524f6b0e958a4cdc9ebae MD5 · raw file

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