py-cvs-rel2_1 (Rev 1.2) merge
[python/dscho.git] / Mac / Lib / lib-scriptpackages / StdSuites / Text_Suite.py
blob2f18df13668198fd3bc8a72a51930c21089a740a
1 """Suite Text Suite: A set of basic classes for text processing
2 Level 1, version 1
4 Generated from Macintosh HD:Systeemmap:Extensies: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 character(aetools.ComponentItem):
19 """character - A character """
20 want = 'cha '
21 class _3c_inheritance_3e_(aetools.NProperty):
22 """<inheritance> - inherits some of its properties from this class """
23 which = 'c@#^'
24 want = 'ctxt'
26 class line(aetools.ComponentItem):
27 """line - A line of text """
28 want = 'clin'
29 # repeated property _3c_inheritance_3e_ inherits some of its properties from this class
30 class justification(aetools.NProperty):
31 """justification - the justification of the text """
32 which = 'pjst'
33 want = 'just'
35 lines = line
37 class paragraph(aetools.ComponentItem):
38 """paragraph - A paragraph """
39 want = 'cpar'
40 # repeated property _3c_inheritance_3e_ inherits some of its properties from this class
42 paragraphs = paragraph
44 class text(aetools.ComponentItem):
45 """text - Text """
46 want = 'ctxt'
47 class color(aetools.NProperty):
48 """color - the color of the first character """
49 which = 'colr'
50 want = 'cRGB'
51 class font(aetools.NProperty):
52 """font - the name of the font of the first character """
53 which = 'font'
54 want = 'ctxt'
55 class size(aetools.NProperty):
56 """size - the size in points of the first character """
57 which = 'ptsz'
58 want = 'fixd'
59 class writing_code(aetools.NProperty):
60 """writing code - the script system and language """
61 which = 'psct'
62 want = 'intl'
63 class style(aetools.NProperty):
64 """style - the text style of the first character of the first character """
65 which = 'txst'
66 want = 'tsty'
67 class uniform_styles(aetools.NProperty):
68 """uniform styles - the text styles that are uniform throughout the text """
69 which = 'ustl'
70 want = 'tsty'
71 # element 'cha ' as ['indx']
72 # element 'clin' as ['indx']
73 # element 'cpar' as ['indx']
74 # element 'ctxt' as ['indx']
75 # element 'cwor' as ['indx']
77 class text_flow(aetools.ComponentItem):
78 """text flow - A contiguous block of text. Page layout applications call this a •story.Õ """
79 want = 'cflo'
80 # repeated property _3c_inheritance_3e_ inherits some of its properties from this class
81 class name(aetools.NProperty):
82 """name - the name """
83 which = 'pnam'
84 want = 'itxt'
86 text_flows = text_flow
88 class text_style_info(aetools.ComponentItem):
89 """text style info - On and Off styles of text run """
90 want = 'tsty'
91 class on_styles(aetools.NProperty):
92 """on styles - the styles that are on for the text """
93 which = 'onst'
94 want = 'styl'
95 class off_styles(aetools.NProperty):
96 """off styles - the styles that are off for the text """
97 which = 'ofst'
98 want = 'styl'
100 text_style_infos = text_style_info
102 class word(aetools.ComponentItem):
103 """word - A word """
104 want = 'cwor'
105 # repeated property _3c_inheritance_3e_ inherits some of its properties from this class
107 words = word
108 character._propdict = {
109 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
111 character._elemdict = {
113 line._propdict = {
114 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
115 'justification' : justification,
117 line._elemdict = {
119 paragraph._propdict = {
120 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
122 paragraph._elemdict = {
124 text._propdict = {
125 'color' : color,
126 'font' : font,
127 'size' : size,
128 'writing_code' : writing_code,
129 'style' : style,
130 'uniform_styles' : uniform_styles,
132 text._elemdict = {
133 'character' : character,
134 'line' : line,
135 'paragraph' : paragraph,
136 'text' : text,
137 'word' : word,
139 text_flow._propdict = {
140 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
141 'name' : name,
143 text_flow._elemdict = {
145 text_style_info._propdict = {
146 'on_styles' : on_styles,
147 'off_styles' : off_styles,
149 text_style_info._elemdict = {
151 word._propdict = {
152 '_3c_inheritance_3e_' : _3c_inheritance_3e_,
154 word._elemdict = {
156 _Enum_just = {
157 'left' : 'left', # Align with left margin
158 'right' : 'rght', # Align with right margin
159 'center' : 'cent', # Align with center
160 'full' : 'full', # Align with both left and right margins
163 _Enum_styl = {
164 'plain' : 'plan', # Plain
165 'bold' : 'bold', # Bold
166 'italic' : 'ital', # Italic
167 'outline' : 'outl', # Outline
168 'shadow' : 'shad', # Shadow
169 'underline' : 'undl', # Underline
170 'superscript' : 'spsc', # Superscript
171 'subscript' : 'sbsc', # Subscript
172 'strikethrough' : 'strk', # Strikethrough
173 'small_caps' : 'smcp', # Small caps
174 'all_caps' : 'alcp', # All capital letters
175 'all_lowercase' : 'lowc', # Lowercase
176 'condensed' : 'cond', # Condensed
177 'expanded' : 'pexp', # Expanded
178 'hidden' : 'hidn', # Hidden
183 # Indices of types declared in this module
185 _classdeclarations = {
186 'clin' : line,
187 'ctxt' : text,
188 'cwor' : word,
189 'cflo' : text_flow,
190 'cpar' : paragraph,
191 'tsty' : text_style_info,
192 'cha ' : character,
195 _propdeclarations = {
196 'psct' : writing_code,
197 'txst' : style,
198 'colr' : color,
199 'font' : font,
200 'pnam' : name,
201 'ustl' : uniform_styles,
202 'pjst' : justification,
203 'ofst' : off_styles,
204 'onst' : on_styles,
205 'ptsz' : size,
206 'c@#^' : _3c_inheritance_3e_,
209 _compdeclarations = {
212 _enumdeclarations = {
213 'styl' : _Enum_styl,
214 'just' : _Enum_just,