ยปCore Development>Code coverage>Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py

Python code coverage for Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py

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