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