PageRenderTime 626ms CodeModel.GetById 141ms app.highlight 230ms RepoModel.GetById 253ms app.codeStats 1ms

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