summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-04-12 22:27:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-04-12 22:27:11 (GMT)
commit3576066cad445e0b3870766fa661b534f9799de7 (patch)
treea0251816bb4ef3bbc54468d20e752a3896a9f827 /Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
parent7b01a83488ebe1969b416d579e7df58576bb3c44 (diff)
downloadcpython-3576066cad445e0b3870766fa661b534f9799de7.zip
cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.gz
cpython-3576066cad445e0b3870766fa661b534f9799de7.tar.bz2
Oops, _propdeclarations and friends are needed: gensuitemodule uses them
to lookup properties declared in base classes. Looking at it I'm not sure what the official scope if the property codes is, maybe it is only the (OSA) class in which they are used. But giving them global scope hasn't been a problem so far. Regenerated the standard suites, which are now also space-indented.
Diffstat (limited to 'Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py')
-rw-r--r--Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py174
1 files changed, 94 insertions, 80 deletions
diff --git a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
index 7deaec7..9f109e1 100644
--- a/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
+++ b/Lib/plat-mac/lib-scriptpackages/SystemEvents/Text_Suite.py
@@ -12,40 +12,40 @@ _code = '????'
class Text_Suite_Events:
- pass
+ pass
class attachment(aetools.ComponentItem):
- """attachment - Represents an inline text attachment. This class is used mainly for make commands. """
- want = 'atts'
+ """attachment - Represents an inline text attachment. This class is used mainly for make commands. """
+ want = 'atts'
class _Prop__3c_Inheritance_3e_(aetools.NProperty):
- """<Inheritance> - All of the properties of the superclass. """
- which = 'c@#^'
- want = 'ctxt'
+ """<Inheritance> - All of the properties of the superclass. """
+ which = 'c@#^'
+ want = 'ctxt'
class _Prop_file_name(aetools.NProperty):
- """file name - The path to the file for the attachment """
- which = 'atfn'
- want = 'utxt'
+ """file name - The path to the file for the attachment """
+ which = 'atfn'
+ want = 'utxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test']
class attribute_run(aetools.ComponentItem):
- """attribute run - This subdivides the text into chunks that all have the same attributes. """
- want = 'catr'
+ """attribute run - This subdivides the text into chunks that all have the same attributes. """
+ want = 'catr'
class _Prop_color(aetools.NProperty):
- """color - The color of the first character. """
- which = 'colr'
- want = 'colr'
+ """color - The color of the first character. """
+ which = 'colr'
+ want = 'colr'
class _Prop_font(aetools.NProperty):
- """font - The name of the font of the first character. """
- which = 'font'
- want = 'utxt'
+ """font - The name of the font of the first character. """
+ which = 'font'
+ want = 'utxt'
class _Prop_size(aetools.NProperty):
- """size - The size in points of the first character. """
- which = 'ptsz'
- want = 'long'
+ """size - The size in points of the first character. """
+ which = 'ptsz'
+ want = 'long'
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
@@ -54,8 +54,8 @@ class _Prop_size(aetools.NProperty):
attribute_runs = attribute_run
class character(aetools.ComponentItem):
- """character - This subdivides the text into characters. """
- want = 'cha '
+ """character - This subdivides the text into characters. """
+ want = 'cha '
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
@@ -64,8 +64,8 @@ class character(aetools.ComponentItem):
characters = character
class paragraph(aetools.ComponentItem):
- """paragraph - This subdivides the text into paragraphs. """
- want = 'cpar'
+ """paragraph - This subdivides the text into paragraphs. """
+ want = 'cpar'
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
@@ -74,16 +74,16 @@ class paragraph(aetools.ComponentItem):
paragraphs = paragraph
class text(aetools.ComponentItem):
- """text - Rich (styled) text """
- want = 'ctxt'
+ """text - Rich (styled) text """
+ want = 'ctxt'
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
# element 'cwor' as ['indx', 'rele', 'rang', 'test']
class word(aetools.ComponentItem):
- """word - This subdivides the text into words. """
- want = 'cwor'
+ """word - This subdivides the text into words. """
+ want = 'cwor'
# element 'catr' as ['indx', 'rele', 'rang', 'test']
# element 'cha ' as ['indx', 'rele', 'rang', 'test']
# element 'cpar' as ['indx', 'rele', 'rang', 'test']
@@ -92,90 +92,104 @@ class word(aetools.ComponentItem):
words = word
attachment._superclassnames = ['text']
attachment._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'file_name' : _Prop_file_name,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'file_name' : _Prop_file_name,
}
attachment._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
import Standard_Suite
attribute_run._superclassnames = ['item']
attribute_run._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'color' : _Prop_color,
- 'font' : _Prop_font,
- 'size' : _Prop_size,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'color' : _Prop_color,
+ 'font' : _Prop_font,
+ 'size' : _Prop_size,
}
attribute_run._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
character._superclassnames = ['item']
character._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'color' : _Prop_color,
- 'font' : _Prop_font,
- 'size' : _Prop_size,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'color' : _Prop_color,
+ 'font' : _Prop_font,
+ 'size' : _Prop_size,
}
character._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
paragraph._superclassnames = ['item']
paragraph._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'color' : _Prop_color,
- 'font' : _Prop_font,
- 'size' : _Prop_size,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'color' : _Prop_color,
+ 'font' : _Prop_font,
+ 'size' : _Prop_size,
}
paragraph._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
text._superclassnames = ['item']
text._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'color' : _Prop_color,
- 'font' : _Prop_font,
- 'size' : _Prop_size,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'color' : _Prop_color,
+ 'font' : _Prop_font,
+ 'size' : _Prop_size,
}
text._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
word._superclassnames = ['item']
word._privpropdict = {
- '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
- 'color' : _Prop_color,
- 'font' : _Prop_font,
- 'size' : _Prop_size,
+ '_3c_Inheritance_3e_' : _Prop__3c_Inheritance_3e_,
+ 'color' : _Prop_color,
+ 'font' : _Prop_font,
+ 'size' : _Prop_size,
}
word._privelemdict = {
- 'attribute_run' : attribute_run,
- 'character' : character,
- 'paragraph' : paragraph,
- 'word' : word,
+ 'attribute_run' : attribute_run,
+ 'character' : character,
+ 'paragraph' : paragraph,
+ 'word' : word,
}
#
# Indices of types declared in this module
#
_classdeclarations = {
- 'atts' : attachment,
- 'catr' : attribute_run,
- 'cha ' : character,
- 'cpar' : paragraph,
- 'ctxt' : text,
- 'cwor' : word,
+ 'atts' : attachment,
+ 'catr' : attribute_run,
+ 'cha ' : character,
+ 'cpar' : paragraph,
+ 'ctxt' : text,
+ 'cwor' : word,
+}
+
+_propdeclarations = {
+ 'atfn' : _Prop_file_name,
+ 'c@#^' : _Prop__3c_Inheritance_3e_,
+ 'colr' : _Prop_color,
+ 'font' : _Prop_font,
+ 'ptsz' : _Prop_size,
+}
+
+_compdeclarations = {
+}
+
+_enumdeclarations = {
}