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