mirror of
https://github.com/python/cpython.git
synced 2025-09-21 08:00:37 +00:00
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.
This commit is contained in:
parent
7b01a83488
commit
3576066cad
56 changed files with 13056 additions and 11895 deletions
|
@ -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 = {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue