/Lib/plat-mac/lib-scriptpackages/Terminal/Text_Suite.py

http://unladen-swallow.googlecode.com/ · Python · 195 lines · 132 code · 19 blank · 44 comment · 0 complexity · 38d9e7a289a579468632de6780ed8148 MD5 · raw file

  1. """Suite Text Suite: A set of basic classes for text processing.
  2. Level 1, version 1
  3. Generated from /Applications/Utilities/Terminal.app
  4. AETE/AEUT resource version 1/0, language 0, script 0
  5. """
  6. import aetools
  7. import MacOS
  8. _code = '????'
  9. class Text_Suite_Events:
  10. pass
  11. class attachment(aetools.ComponentItem):
  12. """attachment - Represents an inline text attachment. This class is used mainly for make commands. """
  13. want = 'atts'
  14. class _Prop__3c_Inheritance_3e_(aetools.NProperty):
  15. """<Inheritance> - All of the properties of the superclass. """
  16. which = 'c@#^'
  17. want = 'ctxt'
  18. class _Prop_file_name(aetools.NProperty):
  19. """file name - The path to the file for the attachment """
  20. which = 'atfn'
  21. want = 'utxt'
  22. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  23. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  24. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  25. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  26. class attribute_run(aetools.ComponentItem):
  27. """attribute run - This subdivides the text into chunks that all have the same attributes. """
  28. want = 'catr'
  29. class _Prop_color(aetools.NProperty):
  30. """color - The color of the first character. """
  31. which = 'colr'
  32. want = 'colr'
  33. class _Prop_font(aetools.NProperty):
  34. """font - The name of the font of the first character. """
  35. which = 'font'
  36. want = 'utxt'
  37. class _Prop_size(aetools.NProperty):
  38. """size - The size in points of the first character. """
  39. which = 'ptsz'
  40. want = 'long'
  41. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  42. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  43. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  44. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  45. attribute_runs = attribute_run
  46. class character(aetools.ComponentItem):
  47. """character - This subdivides the text into characters. """
  48. want = 'cha '
  49. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  50. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  51. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  52. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  53. characters = character
  54. class paragraph(aetools.ComponentItem):
  55. """paragraph - This subdivides the text into paragraphs. """
  56. want = 'cpar'
  57. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  58. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  59. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  60. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  61. paragraphs = paragraph
  62. class text(aetools.ComponentItem):
  63. """text - Rich (styled) text """
  64. want = 'ctxt'
  65. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  66. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  67. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  68. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  69. class word(aetools.ComponentItem):
  70. """word - This subdivides the text into words. """
  71. want = 'cwor'
  72. # element 'catr' as ['indx', 'rele', 'rang', 'test']
  73. # element 'cha ' as ['indx', 'rele', 'rang', 'test']
  74. # element 'cpar' as ['indx', 'rele', 'rang', 'test']
  75. # element 'cwor' as ['indx', 'rele', 'rang', 'test']
  76. words = word
  77. attachment._superclassnames = ['text']
  78. attachment._privpropdict = {
  79. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  80. 'file_name' : _Prop_file_name,
  81. }
  82. attachment._privelemdict = {
  83. 'attribute_run' : attribute_run,
  84. 'character' : character,
  85. 'paragraph' : paragraph,
  86. 'word' : word,
  87. }
  88. import Standard_Suite
  89. attribute_run._superclassnames = ['item']
  90. attribute_run._privpropdict = {
  91. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  92. 'color' : _Prop_color,
  93. 'font' : _Prop_font,
  94. 'size' : _Prop_size,
  95. }
  96. attribute_run._privelemdict = {
  97. 'attribute_run' : attribute_run,
  98. 'character' : character,
  99. 'paragraph' : paragraph,
  100. 'word' : word,
  101. }
  102. character._superclassnames = ['item']
  103. character._privpropdict = {
  104. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  105. 'color' : _Prop_color,
  106. 'font' : _Prop_font,
  107. 'size' : _Prop_size,
  108. }
  109. character._privelemdict = {
  110. 'attribute_run' : attribute_run,
  111. 'character' : character,
  112. 'paragraph' : paragraph,
  113. 'word' : word,
  114. }
  115. paragraph._superclassnames = ['item']
  116. paragraph._privpropdict = {
  117. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  118. 'color' : _Prop_color,
  119. 'font' : _Prop_font,
  120. 'size' : _Prop_size,
  121. }
  122. paragraph._privelemdict = {
  123. 'attribute_run' : attribute_run,
  124. 'character' : character,
  125. 'paragraph' : paragraph,
  126. 'word' : word,
  127. }
  128. text._superclassnames = ['item']
  129. text._privpropdict = {
  130. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  131. 'color' : _Prop_color,
  132. 'font' : _Prop_font,
  133. 'size' : _Prop_size,
  134. }
  135. text._privelemdict = {
  136. 'attribute_run' : attribute_run,
  137. 'character' : character,
  138. 'paragraph' : paragraph,
  139. 'word' : word,
  140. }
  141. word._superclassnames = ['item']
  142. word._privpropdict = {
  143. '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
  144. 'color' : _Prop_color,
  145. 'font' : _Prop_font,
  146. 'size' : _Prop_size,
  147. }
  148. word._privelemdict = {
  149. 'attribute_run' : attribute_run,
  150. 'character' : character,
  151. 'paragraph' : paragraph,
  152. 'word' : word,
  153. }
  154. #
  155. # Indices of types declared in this module
  156. #
  157. _classdeclarations = {
  158. 'atts' : attachment,
  159. 'catr' : attribute_run,
  160. 'cha ' : character,
  161. 'cpar' : paragraph,
  162. 'ctxt' : text,
  163. 'cwor' : word,
  164. }
  165. _propdeclarations = {
  166. 'atfn' : _Prop_file_name,
  167. 'c@#^' : _Prop__3c_Inheritance_3e_,
  168. 'colr' : _Prop_color,
  169. 'font' : _Prop_font,
  170. 'ptsz' : _Prop_size,
  171. }
  172. _compdeclarations = {
  173. }
  174. _enumdeclarations = {
  175. }