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

Python code coverage for Lib/plat-mac/lib-scriptpackages/StdSuites/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 /Volumes/Sap/System Folder/Extensions/AppleScript
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 = 'TEXT'
12n/a
13n/aclass Text_Suite_Events:
14n/a
15n/a pass
16n/a
17n/a
18n/aclass text_flow(aetools.ComponentItem):
19n/a """text flow - A contiguous block of text. Page layout applications call this a \xd4story.\xd5 """
20n/a want = 'cflo'
21n/aclass _Prop__3c_inheritance_3e_(aetools.NProperty):
22n/a """<inheritance> - inherits some of its properties from this class """
23n/a which = 'c@#^'
24n/a want = 'ctxt'
25n/aclass _Prop_name(aetools.NProperty):
26n/a """name - the name """
27n/a which = 'pnam'
28n/a want = 'itxt'
29n/a
30n/atext_flows = text_flow
31n/a
32n/aclass character(aetools.ComponentItem):
33n/a """character - A character """
34n/a want = 'cha '
35n/a
36n/aclass line(aetools.ComponentItem):
37n/a """line - A line of text """
38n/a want = 'clin'
39n/aclass _Prop_justification(aetools.NProperty):
40n/a """justification - the justification of the text """
41n/a which = 'pjst'
42n/a want = 'just'
43n/a
44n/alines = line
45n/a
46n/aclass paragraph(aetools.ComponentItem):
47n/a """paragraph - A paragraph """
48n/a want = 'cpar'
49n/a
50n/aparagraphs = paragraph
51n/a
52n/aclass text(aetools.ComponentItem):
53n/a """text - Text """
54n/a want = 'ctxt'
55n/aclass _Prop_color(aetools.NProperty):
56n/a """color - the color of the first character """
57n/a which = 'colr'
58n/a want = 'cRGB'
59n/aclass _Prop_font(aetools.NProperty):
60n/a """font - the name of the font of the first character """
61n/a which = 'font'
62n/a want = 'ctxt'
63n/aclass _Prop_quoted_form(aetools.NProperty):
64n/a """quoted form - the text in quoted form """
65n/a which = 'strq'
66n/a want = 'ctxt'
67n/aclass _Prop_size(aetools.NProperty):
68n/a """size - the size in points of the first character """
69n/a which = 'ptsz'
70n/a want = 'fixd'
71n/aclass _Prop_style(aetools.NProperty):
72n/a """style - the text style of the first character of the first character """
73n/a which = 'txst'
74n/a want = 'tsty'
75n/aclass _Prop_uniform_styles(aetools.NProperty):
76n/a """uniform styles - the text styles that are uniform throughout the text """
77n/a which = 'ustl'
78n/a want = 'tsty'
79n/aclass _Prop_writing_code(aetools.NProperty):
80n/a """writing code - the script system and language """
81n/a which = 'psct'
82n/a want = 'intl'
83n/a# element 'cha ' as ['indx']
84n/a# element 'clin' as ['indx']
85n/a# element 'cpar' as ['indx']
86n/a# element 'ctxt' as ['indx']
87n/a# element 'cwor' as ['indx']
88n/a
89n/aclass word(aetools.ComponentItem):
90n/a """word - A word """
91n/a want = 'cwor'
92n/a
93n/awords = word
94n/a
95n/aclass text_style_info(aetools.ComponentItem):
96n/a """text style info - On and Off styles of text run """
97n/a want = 'tsty'
98n/aclass _Prop_off_styles(aetools.NProperty):
99n/a """off styles - the styles that are off for the text """
100n/a which = 'ofst'
101n/a want = 'styl'
102n/aclass _Prop_on_styles(aetools.NProperty):
103n/a """on styles - the styles that are on for the text """
104n/a which = 'onst'
105n/a want = 'styl'
106n/a
107n/atext_style_infos = text_style_info
108n/atext_flow._superclassnames = ['text']
109n/atext_flow._privpropdict = {
110n/a '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
111n/a 'name' : _Prop_name,
112n/a}
113n/atext_flow._privelemdict = {
114n/a}
115n/acharacter._superclassnames = ['text']
116n/acharacter._privpropdict = {
117n/a '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
118n/a}
119n/acharacter._privelemdict = {
120n/a}
121n/aline._superclassnames = ['text']
122n/aline._privpropdict = {
123n/a '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
124n/a 'justification' : _Prop_justification,
125n/a}
126n/aline._privelemdict = {
127n/a}
128n/aparagraph._superclassnames = ['text']
129n/aparagraph._privpropdict = {
130n/a '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
131n/a}
132n/aparagraph._privelemdict = {
133n/a}
134n/atext._superclassnames = []
135n/atext._privpropdict = {
136n/a 'color' : _Prop_color,
137n/a 'font' : _Prop_font,
138n/a 'quoted_form' : _Prop_quoted_form,
139n/a 'size' : _Prop_size,
140n/a 'style' : _Prop_style,
141n/a 'uniform_styles' : _Prop_uniform_styles,
142n/a 'writing_code' : _Prop_writing_code,
143n/a}
144n/atext._privelemdict = {
145n/a 'character' : character,
146n/a 'line' : line,
147n/a 'paragraph' : paragraph,
148n/a 'text' : text,
149n/a 'word' : word,
150n/a}
151n/aword._superclassnames = ['text']
152n/aword._privpropdict = {
153n/a '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
154n/a}
155n/aword._privelemdict = {
156n/a}
157n/atext_style_info._superclassnames = []
158n/atext_style_info._privpropdict = {
159n/a 'off_styles' : _Prop_off_styles,
160n/a 'on_styles' : _Prop_on_styles,
161n/a}
162n/atext_style_info._privelemdict = {
163n/a}
164n/a_Enum_just = {
165n/a 'left' : 'left', # Align with left margin
166n/a 'right' : 'rght', # Align with right margin
167n/a 'center' : 'cent', # Align with center
168n/a 'full' : 'full', # Align with both left and right margins
169n/a}
170n/a
171n/a_Enum_styl = {
172n/a 'plain' : 'plan', # Plain
173n/a 'bold' : 'bold', # Bold
174n/a 'italic' : 'ital', # Italic
175n/a 'outline' : 'outl', # Outline
176n/a 'shadow' : 'shad', # Shadow
177n/a 'underline' : 'undl', # Underline
178n/a 'superscript' : 'spsc', # Superscript
179n/a 'subscript' : 'sbsc', # Subscript
180n/a 'strikethrough' : 'strk', # Strikethrough
181n/a 'small_caps' : 'smcp', # Small caps
182n/a 'all_caps' : 'alcp', # All capital letters
183n/a 'all_lowercase' : 'lowc', # Lowercase
184n/a 'condensed' : 'cond', # Condensed
185n/a 'expanded' : 'pexp', # Expanded
186n/a 'hidden' : 'hidn', # Hidden
187n/a}
188n/a
189n/a
190n/a#
191n/a# Indices of types declared in this module
192n/a#
193n/a_classdeclarations = {
194n/a 'cflo' : text_flow,
195n/a 'cha ' : character,
196n/a 'clin' : line,
197n/a 'cpar' : paragraph,
198n/a 'ctxt' : text,
199n/a 'cwor' : word,
200n/a 'tsty' : text_style_info,
201n/a}
202n/a
203n/a_propdeclarations = {
204n/a 'c@#^' : _Prop__3c_inheritance_3e_,
205n/a 'colr' : _Prop_color,
206n/a 'font' : _Prop_font,
207n/a 'ofst' : _Prop_off_styles,
208n/a 'onst' : _Prop_on_styles,
209n/a 'pjst' : _Prop_justification,
210n/a 'pnam' : _Prop_name,
211n/a 'psct' : _Prop_writing_code,
212n/a 'ptsz' : _Prop_size,
213n/a 'strq' : _Prop_quoted_form,
214n/a 'txst' : _Prop_style,
215n/a 'ustl' : _Prop_uniform_styles,
216n/a}
217n/a
218n/a_compdeclarations = {
219n/a}
220n/a
221n/a_enumdeclarations = {
222n/a 'just' : _Enum_just,
223n/a 'styl' : _Enum_styl,
224n/a}