Text_Suite.py 5.81 KB
Newer Older
1 2 3
"""Suite Text Suite: A set of basic classes for text processing
Level 1, version 1

4
Generated from /Volumes/Sap/System Folder/Extensions/AppleScript
5 6 7 8 9 10 11 12 13 14
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'TEXT'

class Text_Suite_Events:

15
    pass
16 17


18
class text_flow(aetools.ComponentItem):
19 20
    """text flow - A contiguous block of text.  Page layout applications call this a \xd4story.\xd5 """
    want = 'cflo'
21
class _Prop__3c_inheritance_3e_(aetools.NProperty):
22 23 24
    """<inheritance> - inherits some of its properties from this class """
    which = 'c@#^'
    want = 'ctxt'
25
class _Prop_name(aetools.NProperty):
26 27 28
    """name - the name """
    which = 'pnam'
    want = 'itxt'
29 30 31 32

text_flows = text_flow

class character(aetools.ComponentItem):
33 34
    """character - A character """
    want = 'cha '
35 36

class line(aetools.ComponentItem):
37 38
    """line - A line of text """
    want = 'clin'
39
class _Prop_justification(aetools.NProperty):
40 41 42
    """justification - the justification of the text """
    which = 'pjst'
    want = 'just'
43 44 45 46

lines = line

class paragraph(aetools.ComponentItem):
47 48
    """paragraph - A paragraph """
    want = 'cpar'
49 50 51 52

paragraphs = paragraph

class text(aetools.ComponentItem):
53 54
    """text - Text """
    want = 'ctxt'
55
class _Prop_color(aetools.NProperty):
56 57 58
    """color - the color of the first character """
    which = 'colr'
    want = 'cRGB'
59
class _Prop_font(aetools.NProperty):
60 61 62
    """font - the name of the font of the first character """
    which = 'font'
    want = 'ctxt'
63 64 65 66
class _Prop_quoted_form(aetools.NProperty):
    """quoted form - the text in quoted form """
    which = 'strq'
    want = 'ctxt'
67
class _Prop_size(aetools.NProperty):
68 69 70
    """size - the size in points of the first character """
    which = 'ptsz'
    want = 'fixd'
71
class _Prop_style(aetools.NProperty):
72 73 74
    """style - the text style of the first character of the first character """
    which = 'txst'
    want = 'tsty'
75
class _Prop_uniform_styles(aetools.NProperty):
76 77 78
    """uniform styles - the text styles that are uniform throughout the text """
    which = 'ustl'
    want = 'tsty'
79
class _Prop_writing_code(aetools.NProperty):
80 81 82
    """writing code - the script system and language """
    which = 'psct'
    want = 'intl'
83 84 85 86 87 88
#        element 'cha ' as ['indx']
#        element 'clin' as ['indx']
#        element 'cpar' as ['indx']
#        element 'ctxt' as ['indx']
#        element 'cwor' as ['indx']

89
class word(aetools.ComponentItem):
90 91
    """word - A word """
    want = 'cwor'
92

93
words = word
94 95

class text_style_info(aetools.ComponentItem):
96 97
    """text style info - On and Off styles of text run """
    want = 'tsty'
98
class _Prop_off_styles(aetools.NProperty):
99 100 101
    """off styles - the styles that are off for the text """
    which = 'ofst'
    want = 'styl'
102
class _Prop_on_styles(aetools.NProperty):
103 104 105
    """on styles - the styles that are on for the text """
    which = 'onst'
    want = 'styl'
106 107

text_style_infos = text_style_info
108 109
text_flow._superclassnames = ['text']
text_flow._privpropdict = {
110 111
    '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
    'name' : _Prop_name,
112 113 114
}
text_flow._privelemdict = {
}
115 116
character._superclassnames = ['text']
character._privpropdict = {
117
    '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
118
}
119
character._privelemdict = {
120
}
121 122
line._superclassnames = ['text']
line._privpropdict = {
123 124
    '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
    'justification' : _Prop_justification,
125
}
126
line._privelemdict = {
127
}
128 129
paragraph._superclassnames = ['text']
paragraph._privpropdict = {
130
    '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
131
}
132
paragraph._privelemdict = {
133
}
134 135
text._superclassnames = []
text._privpropdict = {
136 137
    'color' : _Prop_color,
    'font' : _Prop_font,
138
    'quoted_form' : _Prop_quoted_form,
139 140 141 142
    'size' : _Prop_size,
    'style' : _Prop_style,
    'uniform_styles' : _Prop_uniform_styles,
    'writing_code' : _Prop_writing_code,
143
}
144
text._privelemdict = {
145 146 147 148 149
    'character' : character,
    'line' : line,
    'paragraph' : paragraph,
    'text' : text,
    'word' : word,
150
}
151 152
word._superclassnames = ['text']
word._privpropdict = {
153
    '_3c_inheritance_3e_' : _Prop__3c_inheritance_3e_,
154
}
155
word._privelemdict = {
156
}
157 158
text_style_info._superclassnames = []
text_style_info._privpropdict = {
159 160
    'off_styles' : _Prop_off_styles,
    'on_styles' : _Prop_on_styles,
161
}
162
text_style_info._privelemdict = {
163 164
}
_Enum_just = {
165 166 167 168
    'left' : 'left',    # Align with left margin
    'right' : 'rght',   # Align with right margin
    'center' : 'cent',  # Align with center
    'full' : 'full',    # Align with both left and right margins
169 170 171
}

_Enum_styl = {
172 173 174 175 176 177 178 179 180 181 182 183 184 185 186
    'plain' : 'plan',   # Plain
    'bold' : 'bold',    # Bold
    'italic' : 'ital',  # Italic
    'outline' : 'outl', # Outline
    'shadow' : 'shad',  # Shadow
    'underline' : 'undl',       # Underline
    'superscript' : 'spsc',     # Superscript
    'subscript' : 'sbsc',       # Subscript
    'strikethrough' : 'strk',   # Strikethrough
    'small_caps' : 'smcp',      # Small caps
    'all_caps' : 'alcp',        # All capital letters
    'all_lowercase' : 'lowc',   # Lowercase
    'condensed' : 'cond',       # Condensed
    'expanded' : 'pexp',        # Expanded
    'hidden' : 'hidn',  # Hidden
187 188 189 190 191 192 193
}


#
# Indices of types declared in this module
#
_classdeclarations = {
194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
    'cflo' : text_flow,
    'cha ' : character,
    'clin' : line,
    'cpar' : paragraph,
    'ctxt' : text,
    'cwor' : word,
    'tsty' : text_style_info,
}

_propdeclarations = {
    'c@#^' : _Prop__3c_inheritance_3e_,
    'colr' : _Prop_color,
    'font' : _Prop_font,
    'ofst' : _Prop_off_styles,
    'onst' : _Prop_on_styles,
    'pjst' : _Prop_justification,
    'pnam' : _Prop_name,
    'psct' : _Prop_writing_code,
    'ptsz' : _Prop_size,
213
    'strq' : _Prop_quoted_form,
214 215 216 217 218 219 220 221 222 223
    'txst' : _Prop_style,
    'ustl' : _Prop_uniform_styles,
}

_compdeclarations = {
}

_enumdeclarations = {
    'just' : _Enum_just,
    'styl' : _Enum_styl,
224
}