summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
blob: 86912649515f0a2e09d3fabbf53ecba072dc68ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
"""Suite Text Suite: A set of basic classes for text processing.
Level 1, version 1

Generated from /System/Library/CoreServices/System Events.app
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = '????'

class Text_Suite_Events:

	pass


class attachment(aetools.ComponentItem):
	"""attachment - Represents an inline text attachment.  This class is used mainly for make commands. """
	want = 'atts'
class _3c_Inheritance_3e_(aetools.NProperty):
	"""<Inheritance> - All of the properties of the superclass. """
	which = 'c@#^'
	want = 'ctxt'
class file_name(aetools.NProperty):
	"""file name - The path to the file for the attachment """
	which = 'atfn'
	want = 'utxt'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class attribute_run(aetools.ComponentItem):
	"""attribute run - This subdivides the text into chunks that all have the same attributes. """
	want = 'catr'
class color(aetools.NProperty):
	"""color - The color of the first character. """
	which = 'colr'
	want = 'colr'
class font(aetools.NProperty):
	"""font - The name of the font of the first character. """
	which = 'font'
	want = 'utxt'
class size(aetools.NProperty):
	"""size - The size in points of the first character. """
	which = 'ptsz'
	want = 'long'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

attribute_runs = attribute_run

class character(aetools.ComponentItem):
	"""character - This subdivides the text into characters. """
	want = 'cha '
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

characters = character

class paragraph(aetools.ComponentItem):
	"""paragraph - This subdivides the text into paragraphs. """
	want = 'cpar'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

paragraphs = paragraph

class text(aetools.ComponentItem):
	"""text - Rich (styled) text """
	want = 'ctxt'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

class word(aetools.ComponentItem):
	"""word - This subdivides the text into words. """
	want = 'cwor'
#        element 'catr' as ['indx', 'rele', 'rang', 'test']
#        element 'cha ' as ['indx', 'rele', 'rang', 'test']
#        element 'cpar' as ['indx', 'rele', 'rang', 'test']
#        element 'cwor' as ['indx', 'rele', 'rang', 'test']

words = word
attachment._superclassnames = ['text']
attachment._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'file_name' : file_name,
}
attachment._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
import Standard_Suite
attribute_run._superclassnames = ['item']
attribute_run._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
attribute_run._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
character._superclassnames = ['item']
character._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
character._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
paragraph._superclassnames = ['item']
paragraph._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
paragraph._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
text._superclassnames = ['item']
text._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
text._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}
word._superclassnames = ['item']
word._privpropdict = {
	'_3c_Inheritance_3e_' : _3c_Inheritance_3e_,
	'color' : color,
	'font' : font,
	'size' : size,
}
word._privelemdict = {
	'attribute_run' : attribute_run,
	'character' : character,
	'paragraph' : paragraph,
	'word' : word,
}

#
# Indices of types declared in this module
#
_classdeclarations = {
	'atts' : attachment,
	'catr' : attribute_run,
	'cha ' : character,
	'cpar' : paragraph,
	'ctxt' : text,
	'cwor' : word,
}

_propdeclarations = {
	'atfn' : file_name,
	'c@#^' : _3c_Inheritance_3e_,
	'colr' : color,
	'font' : font,
	'ptsz' : size,
}

_compdeclarations = {
}

_enumdeclarations = {
}