| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | """Suite Text Suite: A set of basic classes for text processing
 | 
					
						
							|  |  |  | Level 1, version 1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-03-23 22:07:28 +00:00
										 |  |  | Generated from /Volumes/Moes/Systeemmap/Extensies/AppleScript | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | AETE/AEUT resource version 1/0, language 0, script 0 | 
					
						
							|  |  |  | """
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | import aetools | 
					
						
							|  |  |  | import MacOS | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _code = 'TEXT' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class Text_Suite_Events: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	pass | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class character(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""character - A character """ | 
					
						
							|  |  |  | 	want = 'cha ' | 
					
						
							|  |  |  | class _3c_inheritance_3e_(aetools.NProperty): | 
					
						
							|  |  |  | 	"""<inheritance> - inherits some of its properties from this class """ | 
					
						
							|  |  |  | 	which = 'c@#^' | 
					
						
							|  |  |  | 	want = 'ctxt' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class line(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""line - A line of text """ | 
					
						
							|  |  |  | 	want = 'clin' | 
					
						
							|  |  |  | class justification(aetools.NProperty): | 
					
						
							|  |  |  | 	"""justification - the justification of the text """ | 
					
						
							|  |  |  | 	which = 'pjst' | 
					
						
							|  |  |  | 	want = 'just' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | lines = line | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class paragraph(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""paragraph - A paragraph """ | 
					
						
							|  |  |  | 	want = 'cpar' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | paragraphs = paragraph | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class text(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""text - Text """ | 
					
						
							|  |  |  | 	want = 'ctxt' | 
					
						
							|  |  |  | class color(aetools.NProperty): | 
					
						
							|  |  |  | 	"""color - the color of the first character """ | 
					
						
							|  |  |  | 	which = 'colr' | 
					
						
							|  |  |  | 	want = 'cRGB' | 
					
						
							|  |  |  | class font(aetools.NProperty): | 
					
						
							|  |  |  | 	"""font - the name of the font of the first character """ | 
					
						
							|  |  |  | 	which = 'font' | 
					
						
							|  |  |  | 	want = 'ctxt' | 
					
						
							|  |  |  | class size(aetools.NProperty): | 
					
						
							|  |  |  | 	"""size - the size in points of the first character """ | 
					
						
							|  |  |  | 	which = 'ptsz' | 
					
						
							|  |  |  | 	want = 'fixd' | 
					
						
							|  |  |  | class writing_code(aetools.NProperty): | 
					
						
							|  |  |  | 	"""writing code - the script system and language """ | 
					
						
							|  |  |  | 	which = 'psct' | 
					
						
							|  |  |  | 	want = 'intl' | 
					
						
							|  |  |  | class style(aetools.NProperty): | 
					
						
							|  |  |  | 	"""style - the text style of the first character of the first character """ | 
					
						
							|  |  |  | 	which = 'txst' | 
					
						
							|  |  |  | 	want = 'tsty' | 
					
						
							|  |  |  | class uniform_styles(aetools.NProperty): | 
					
						
							|  |  |  | 	"""uniform styles - the text styles that are uniform throughout the text """ | 
					
						
							|  |  |  | 	which = 'ustl' | 
					
						
							|  |  |  | 	want = 'tsty' | 
					
						
							|  |  |  | #        element 'cha ' as ['indx'] | 
					
						
							|  |  |  | #        element 'clin' as ['indx'] | 
					
						
							|  |  |  | #        element 'cpar' as ['indx'] | 
					
						
							|  |  |  | #        element 'ctxt' as ['indx'] | 
					
						
							|  |  |  | #        element 'cwor' as ['indx'] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class text_flow(aetools.ComponentItem): | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | 	"""text flow - A contiguous block of text.  Page layout applications call this a \xd4story.\xd5 """ | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	want = 'cflo' | 
					
						
							|  |  |  | class name(aetools.NProperty): | 
					
						
							|  |  |  | 	"""name - the name """ | 
					
						
							|  |  |  | 	which = 'pnam' | 
					
						
							|  |  |  | 	want = 'itxt' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | text_flows = text_flow | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class text_style_info(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""text style info - On and Off styles of text run """ | 
					
						
							|  |  |  | 	want = 'tsty' | 
					
						
							|  |  |  | class on_styles(aetools.NProperty): | 
					
						
							|  |  |  | 	"""on styles - the styles that are on for the text """ | 
					
						
							|  |  |  | 	which = 'onst' | 
					
						
							|  |  |  | 	want = 'styl' | 
					
						
							|  |  |  | class off_styles(aetools.NProperty): | 
					
						
							|  |  |  | 	"""off styles - the styles that are off for the text """ | 
					
						
							|  |  |  | 	which = 'ofst' | 
					
						
							|  |  |  | 	want = 'styl' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | text_style_infos = text_style_info | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class word(aetools.ComponentItem): | 
					
						
							|  |  |  | 	"""word - A word """ | 
					
						
							|  |  |  | 	want = 'cwor' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | words = word | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | character._superclassnames = ['text'] | 
					
						
							|  |  |  | character._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'_3c_inheritance_3e_' : _3c_inheritance_3e_, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | character._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | line._superclassnames = ['text'] | 
					
						
							|  |  |  | line._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'_3c_inheritance_3e_' : _3c_inheritance_3e_, | 
					
						
							|  |  |  | 	'justification' : justification, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | line._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | paragraph._superclassnames = ['text'] | 
					
						
							|  |  |  | paragraph._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'_3c_inheritance_3e_' : _3c_inheritance_3e_, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | paragraph._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text._superclassnames = [] | 
					
						
							|  |  |  | text._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'color' : color, | 
					
						
							|  |  |  | 	'font' : font, | 
					
						
							|  |  |  | 	'size' : size, | 
					
						
							|  |  |  | 	'writing_code' : writing_code, | 
					
						
							|  |  |  | 	'style' : style, | 
					
						
							|  |  |  | 	'uniform_styles' : uniform_styles, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'character' : character, | 
					
						
							|  |  |  | 	'line' : line, | 
					
						
							|  |  |  | 	'paragraph' : paragraph, | 
					
						
							|  |  |  | 	'text' : text, | 
					
						
							|  |  |  | 	'word' : word, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text_flow._superclassnames = ['text'] | 
					
						
							|  |  |  | text_flow._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'_3c_inheritance_3e_' : _3c_inheritance_3e_, | 
					
						
							|  |  |  | 	'name' : name, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text_flow._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text_style_info._superclassnames = [] | 
					
						
							|  |  |  | text_style_info._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'on_styles' : on_styles, | 
					
						
							|  |  |  | 	'off_styles' : off_styles, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | text_style_info._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | word._superclassnames = ['text'] | 
					
						
							|  |  |  | word._privpropdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'_3c_inheritance_3e_' : _3c_inheritance_3e_, | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2002-08-07 15:53:42 +00:00
										 |  |  | word._privelemdict = { | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							|  |  |  | _Enum_just = { | 
					
						
							|  |  |  | 	'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 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _Enum_styl = { | 
					
						
							|  |  |  | 	'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 | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # Indices of types declared in this module | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | _classdeclarations = { | 
					
						
							|  |  |  | 	'cpar' : paragraph, | 
					
						
							|  |  |  | 	'cha ' : character, | 
					
						
							| 
									
										
										
										
											2002-01-22 23:22:32 +00:00
										 |  |  | 	'cflo' : text_flow, | 
					
						
							|  |  |  | 	'tsty' : text_style_info, | 
					
						
							|  |  |  | 	'clin' : line, | 
					
						
							|  |  |  | 	'cwor' : word, | 
					
						
							|  |  |  | 	'ctxt' : text, | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _propdeclarations = { | 
					
						
							| 
									
										
										
										
											2002-01-22 23:22:32 +00:00
										 |  |  | 	'ptsz' : size, | 
					
						
							|  |  |  | 	'ofst' : off_styles, | 
					
						
							|  |  |  | 	'pjst' : justification, | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'colr' : color, | 
					
						
							| 
									
										
										
										
											2002-01-22 23:22:32 +00:00
										 |  |  | 	'txst' : style, | 
					
						
							|  |  |  | 	'psct' : writing_code, | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | 	'ustl' : uniform_styles, | 
					
						
							|  |  |  | 	'c@#^' : _3c_inheritance_3e_, | 
					
						
							| 
									
										
										
										
											2002-01-22 23:22:32 +00:00
										 |  |  | 	'pnam' : name, | 
					
						
							|  |  |  | 	'font' : font, | 
					
						
							|  |  |  | 	'onst' : on_styles, | 
					
						
							| 
									
										
										
										
											2000-08-17 22:14:57 +00:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _compdeclarations = { | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _enumdeclarations = { | 
					
						
							|  |  |  | 	'styl' : _Enum_styl, | 
					
						
							|  |  |  | 	'just' : _Enum_just, | 
					
						
							|  |  |  | } |