mirror of
https://github.com/python/cpython.git
synced 2025-08-09 11:29:45 +00:00

This is a first step towards regenerating the modules with newer, MacOSX, versions of these programs, and using the programmatic interface to get at the terminology in stead of poking in resource files.
104 lines
2.7 KiB
Python
104 lines
2.7 KiB
Python
"""
|
|
Package generated from /Volumes/Moes/Applications (Mac OS 9)/Netscape Communicator™ Folder/Netscape Communicator™
|
|
Resource aete resid 0
|
|
"""
|
|
import aetools
|
|
Error = aetools.Error
|
|
import Standard_Suite
|
|
import Standard_URL_suite
|
|
import Mozilla_suite
|
|
import Text
|
|
import WorldWideWeb_suite
|
|
import PowerPlant
|
|
import Required_suite
|
|
|
|
|
|
_code_to_module = {
|
|
'CoRe' : Standard_Suite,
|
|
'GURL' : Standard_URL_suite,
|
|
'MOSS' : Mozilla_suite,
|
|
'TEXT' : Text,
|
|
'WWW!' : WorldWideWeb_suite,
|
|
'ppnt' : PowerPlant,
|
|
'reqd' : Required_suite,
|
|
}
|
|
|
|
|
|
|
|
_code_to_fullname = {
|
|
'CoRe' : ('Netscape.Standard_Suite', 'Standard_Suite'),
|
|
'GURL' : ('Netscape.Standard_URL_suite', 'Standard_URL_suite'),
|
|
'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'),
|
|
'TEXT' : ('Netscape.Text', 'Text'),
|
|
'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'),
|
|
'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'),
|
|
'reqd' : ('Netscape.Required_suite', 'Required_suite'),
|
|
}
|
|
|
|
from Standard_Suite import *
|
|
from Standard_URL_suite import *
|
|
from Mozilla_suite import *
|
|
from Text import *
|
|
from WorldWideWeb_suite import *
|
|
from PowerPlant import *
|
|
from Required_suite import *
|
|
|
|
def getbaseclasses(v):
|
|
if not getattr(v, '_propdict', None):
|
|
v._propdict = {}
|
|
v._elemdict = {}
|
|
for superclassname in getattr(v, '_superclassnames', []):
|
|
superclass = eval(superclassname)
|
|
getbaseclasses(superclass)
|
|
v._propdict.update(getattr(superclass, '_propdict', {}))
|
|
v._elemdict.update(getattr(superclass, '_elemdict', {}))
|
|
v._propdict.update(getattr(v, '_privpropdict', {}))
|
|
v._elemdict.update(getattr(v, '_privelemdict', {}))
|
|
|
|
import StdSuites
|
|
|
|
#
|
|
# Set property and element dictionaries now that all classes have been defined
|
|
#
|
|
getbaseclasses(window)
|
|
getbaseclasses(application)
|
|
getbaseclasses(StdSuites.Text_Suite.paragraph)
|
|
getbaseclasses(StdSuites.Text_Suite.character)
|
|
getbaseclasses(StdSuites.Text_Suite.text_style_info)
|
|
getbaseclasses(StdSuites.Text_Suite.word)
|
|
getbaseclasses(StdSuites.Text_Suite.text_flow)
|
|
getbaseclasses(StdSuites.Text_Suite.line)
|
|
getbaseclasses(StdSuites.Text_Suite.text)
|
|
getbaseclasses(text)
|
|
getbaseclasses(styleset)
|
|
|
|
#
|
|
# Indices of types declared in this module
|
|
#
|
|
_classdeclarations = {
|
|
'cwin' : window,
|
|
'capp' : application,
|
|
'cpar' : StdSuites.Text_Suite.paragraph,
|
|
'cha ' : StdSuites.Text_Suite.character,
|
|
'tsty' : StdSuites.Text_Suite.text_style_info,
|
|
'cwor' : StdSuites.Text_Suite.word,
|
|
'cflo' : StdSuites.Text_Suite.text_flow,
|
|
'clin' : StdSuites.Text_Suite.line,
|
|
'ctxt' : StdSuites.Text_Suite.text,
|
|
'ctxt' : text,
|
|
'stys' : styleset,
|
|
}
|
|
|
|
|
|
class Netscape(Standard_Suite_Events,
|
|
Standard_URL_suite_Events,
|
|
Mozilla_suite_Events,
|
|
Text_Events,
|
|
WorldWideWeb_suite_Events,
|
|
PowerPlant_Events,
|
|
Required_suite_Events,
|
|
aetools.TalkTo):
|
|
_signature = 'MOSS'
|
|
|
|
_moduleName = 'Netscape'
|
|
|