Fix a bug in the ``compiler`` package that caused invalid code to be
[python/dscho.git] / Lib / plat-mac / lib-scriptpackages / StdSuites / Text_Suite.py
blob1845f4d435240bd83916741bd42cbcf1ebea4565
1 """Suite Text Suite: A set of basic classes for text processing
2 Level 1, version 1
4 Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
5 AETE/AEUT resource version 1/0, language 0, script 0
6 """
8 import aetools
9 import MacOS
11 _code = 'TEXT'
13 class Text_Suite_Events:
15 pass
18 class text_flow(aetools.ComponentItem):
19 """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """
20 want = 'cflo'
21 class _Prop__3c_inheritance_3e_(aetools.NProperty):
22 """<inheritance> - inherits some of its properties from this class """
23 which = 'c@#^'
24 want = 'ctxt'
25 class _Prop_name(aetools.NProperty):
26 """name - the name """
27 which = 'pnam'
28 want = 'itxt'
30 text_flows = text_flow
32 class character(aetools.ComponentItem):
33 """character - A character """
34 want = 'cha '
36 class line(aetools.ComponentItem):
37 """line - A line of text """
38 want = 'clin'
39 class _Prop_justification(aetools.NProperty):
40 """justification - the justification of the text """
41 which = 'pjst'
42 want = 'just'
44 lines = line
46 class paragraph(aetools.ComponentItem):
47 """paragraph - A paragraph """
48 want = 'cpar'
50 paragraphs = paragraph
52 class text(aetools.ComponentItem):
53 """text - Text """
54 want = 'ctxt'
55 class _Prop_color(aetools.NProperty):
56 """color - the color of the first character """
57 which = 'colr'
58 want = 'cRGB'
59 class _Prop_font(aetools.NProperty):
60 """font - the name of the font of the first character """
61 which = 'font'
62 want = 'ctxt'
63 class _Prop_quoted_form(aetools.NProperty):
64 """quoted form - the text in quoted form """
65 which = 'strq'
66 want = 'ctxt'
67 class _Prop_size(aetools.NProperty):
68 """size - the size in points of the first character """
69 which = 'ptsz'
70 want = 'fixd'
71 class _Prop_style(aetools.NProperty):
72 """style - the text style of the first character of the first character """
73 which = 'txst'
74 want = 'tsty'
75 class _Prop_uniform_styles(aetools.NProperty):
76 """uniform styles - the text styles that are uniform throughout the text """
77 which = 'ustl'
78 want = 'tsty'
79 class _Prop_writing_code(aetools.NProperty):
80 """writing code - the script system and language """
81 which = 'psct'
82 want = 'intl'
83 # element 'cha ' as ['indx']
84 # element 'clin' as ['indx']
85 # element 'cpar' as ['indx']
86 # element 'ctxt' as ['indx']
87 # element 'cwor' as ['indx']
89 class word(aetools.ComponentItem):
90 """word - A word """
91 want = 'cwor'
93 words = word
95 class text_style_info(aetools.ComponentItem):
96 """text style info - On and Off styles of text run """
97 want = 'tsty'
98 class _Prop_off_styles(aetools.NProperty):
99 """off styles - the styles that are off for the text """
100 which = 'ofst'
101 want = 'styl'
102 class _Prop_on_styles(aetools.NProperty):
103 """on styles - the styles that are on for the text """
104 which = 'onst'
105 want = 'styl'
107 text_style_infos = text_style_info
108 text_flow._superclassnames = ['text']
109 text_flow._privpropdict = {
110 '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
111 'name' : _Prop_name,
113 text_flow._privelemdict = {
115 character._superclassnames = ['text']
116 character._privpropdict = {
117 '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
119 character._privelemdict = {
121 line._superclassnames = ['text']
122 line._privpropdict = {
123 '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
124 'justification' : _Prop_justification,
126 line._privelemdict = {
128 paragraph._superclassnames = ['text']
129 paragraph._privpropdict = {
130 '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
132 paragraph._privelemdict = {
134 text._superclassnames = []
135 text._privpropdict = {
136 'color' : _Prop_color,
137 'font' : _Prop_font,
138 'quoted_form' : _Prop_quoted_form,
139 'size' : _Prop_size,
140 'style' : _Prop_style,
141 'uniform_styles' : _Prop_uniform_styles,
142 'writing_code' : _Prop_writing_code,
144 text._privelemdict = {
145 'character' : character,
146 'line' : line,
147 'paragraph' : paragraph,
148 'text' : text,
149 'word' : word,
151 word._superclassnames = ['text']
152 word._privpropdict = {
153 '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
155 word._privelemdict = {
157 text_style_info._superclassnames = []
158 text_style_info._privpropdict = {
159 'off_styles' : _Prop_off_styles,
160 'on_styles' : _Prop_on_styles,
162 text_style_info._privelemdict = {
164 _Enum_just = {
165 'left' : 'left', # Align with left margin
166 'right' : 'rght', # Align with right margin
167 'center' : 'cent', # Align with center
168 'full' : 'full', # Align with both left and right margins
171 _Enum_styl = {
172 'plain' : 'plan', # Plain
173 'bold' : 'bold', # Bold
174 'italic' : 'ital', # Italic
175 'outline' : 'outl', # Outline
176 'shadow' : 'shad', # Shadow
177 'underline' : 'undl', # Underline
178 'superscript' : 'spsc', # Superscript
179 'subscript' : 'sbsc', # Subscript
180 'strikethrough' : 'strk', # Strikethrough
181 'small_caps' : 'smcp', # Small caps
182 'all_caps' : 'alcp', # All capital letters
183 'all_lowercase' : 'lowc', # Lowercase
184 'condensed' : 'cond', # Condensed
185 'expanded' : 'pexp', # Expanded
186 'hidden' : 'hidn', # Hidden
191 # Indices of types declared in this module
193 _classdeclarations = {
194 'cflo' : text_flow,
195 'cha ' : character,
196 'clin' : line,
197 'cpar' : paragraph,
198 'ctxt' : text,
199 'cwor' : word,
200 'tsty' : text_style_info,
203 _propdeclarations = {
204 'c@#^' : _Prop__3c_inheritance_3e_,
205 'colr' : _Prop_color,
206 'font' : _Prop_font,
207 'ofst' : _Prop_off_styles,
208 'onst' : _Prop_on_styles,
209 'pjst' : _Prop_justification,
210 'pnam' : _Prop_name,
211 'psct' : _Prop_writing_code,
212 'ptsz' : _Prop_size,
213 'strq' : _Prop_quoted_form,
214 'txst' : _Prop_style,
215 'ustl' : _Prop_uniform_styles,
218 _compdeclarations = {
221 _enumdeclarations = {
222 'just' : _Enum_just,
223 'styl' : _Enum_styl,