/Lib/plat-mac/lib-scriptpackages/Netscape/Text.py

http://unladen-swallow.googlecode.com/ · Python · 122 lines · 87 code · 12 blank · 23 comment · 0 complexity · 367c07c1484f59563690f5f19fcff03b MD5 · raw file

  1. """Suite Text:
  2. Level 0, version 0
  3. Generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
  4. AETE/AEUT resource version 1/0, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = 'TEXT'
  9. from StdSuites.Text_Suite import *
  10. class Text_Events(Text_Suite_Events):
  11. pass
  12. class text(aetools.ComponentItem):
  13. """text - independent text view objects """
  14. want = 'ctxt'
  15. class _Prop_beginning(aetools.NProperty):
  16. """beginning - Beginning of element """
  17. which = 'bgng'
  18. want = 'obj '
  19. class _Prop_end(aetools.NProperty):
  20. """end - Ending of element """
  21. which = 'end '
  22. want = 'obj '
  23. class _Prop_infront(aetools.NProperty):
  24. """infront - Immediately before element """
  25. which = 'pBef'
  26. want = 'obj '
  27. class _Prop_justbehind(aetools.NProperty):
  28. """justbehind - Immediately after element """
  29. which = 'pAft'
  30. want = 'obj '
  31. class _Prop_updateLevel(aetools.NProperty):
  32. """updateLevel - updating level. Can only be incremented or decremented. Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """
  33. which = 'pUpL'
  34. want = 'long'
  35. # element 'stys' as ['indx', 'name']
  36. class styleset(aetools.ComponentItem):
  37. """styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """
  38. want = 'stys'
  39. class _Prop_color(aetools.NProperty):
  40. """color - the color """
  41. which = 'colr'
  42. want = 'RGB '
  43. class _Prop_font(aetools.NProperty):
  44. """font - font name """
  45. which = 'font'
  46. want = 'TEXT'
  47. class _Prop_name(aetools.NProperty):
  48. """name - style name """
  49. which = 'pnam'
  50. want = 'TEXT'
  51. class _Prop_size(aetools.NProperty):
  52. """size - the size in points """
  53. which = 'ptsz'
  54. want = 'long'
  55. class _Prop_style(aetools.NProperty):
  56. """style - the text styles or face attributes """
  57. which = 'txst'
  58. want = 'tsty'
  59. class _Prop_writing_code(aetools.NProperty):
  60. """writing code - the script system and language """
  61. which = 'psct'
  62. want = 'tsty'
  63. stylesets = styleset
  64. text._superclassnames = []
  65. text._privpropdict = {
  66. 'beginning' : _Prop_beginning,
  67. 'end' : _Prop_end,
  68. 'infront' : _Prop_infront,
  69. 'justbehind' : _Prop_justbehind,
  70. 'updateLevel' : _Prop_updateLevel,
  71. }
  72. text._privelemdict = {
  73. 'styleset' : styleset,
  74. }
  75. styleset._superclassnames = []
  76. styleset._privpropdict = {
  77. 'color' : _Prop_color,
  78. 'font' : _Prop_font,
  79. 'name' : _Prop_name,
  80. 'size' : _Prop_size,
  81. 'style' : _Prop_style,
  82. 'writing_code' : _Prop_writing_code,
  83. }
  84. styleset._privelemdict = {
  85. }
  86. #
  87. # Indices of types declared in this module
  88. #
  89. _classdeclarations = {
  90. 'ctxt' : text,
  91. 'stys' : styleset,
  92. }
  93. _propdeclarations = {
  94. 'bgng' : _Prop_beginning,
  95. 'colr' : _Prop_color,
  96. 'end ' : _Prop_end,
  97. 'font' : _Prop_font,
  98. 'pAft' : _Prop_justbehind,
  99. 'pBef' : _Prop_infront,
  100. 'pUpL' : _Prop_updateLevel,
  101. 'pnam' : _Prop_name,
  102. 'psct' : _Prop_writing_code,
  103. 'ptsz' : _Prop_size,
  104. 'txst' : _Prop_style,
  105. }
  106. _compdeclarations = {
  107. }
  108. _enumdeclarations = {
  109. }