1 | """ |
---|
2 | Package generated from /Volumes/Sap/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2 |
---|
3 | """ |
---|
4 | |
---|
5 | from warnings import warnpy3k |
---|
6 | warnpy3k("In 3.x, the Netscape package is removed.", stacklevel=2) |
---|
7 | |
---|
8 | import aetools |
---|
9 | Error = aetools.Error |
---|
10 | import Standard_Suite |
---|
11 | import Standard_URL_suite |
---|
12 | import Mozilla_suite |
---|
13 | import Text |
---|
14 | import WorldWideWeb_suite |
---|
15 | import PowerPlant |
---|
16 | import Required_suite |
---|
17 | |
---|
18 | |
---|
19 | _code_to_module = { |
---|
20 | 'CoRe' : Standard_Suite, |
---|
21 | 'GURL' : Standard_URL_suite, |
---|
22 | 'MOSS' : Mozilla_suite, |
---|
23 | 'TEXT' : Text, |
---|
24 | 'WWW!' : WorldWideWeb_suite, |
---|
25 | 'ppnt' : PowerPlant, |
---|
26 | 'reqd' : Required_suite, |
---|
27 | } |
---|
28 | |
---|
29 | |
---|
30 | |
---|
31 | _code_to_fullname = { |
---|
32 | 'CoRe' : ('Netscape.Standard_Suite', 'Standard_Suite'), |
---|
33 | 'GURL' : ('Netscape.Standard_URL_suite', 'Standard_URL_suite'), |
---|
34 | 'MOSS' : ('Netscape.Mozilla_suite', 'Mozilla_suite'), |
---|
35 | 'TEXT' : ('Netscape.Text', 'Text'), |
---|
36 | 'WWW!' : ('Netscape.WorldWideWeb_suite', 'WorldWideWeb_suite'), |
---|
37 | 'ppnt' : ('Netscape.PowerPlant', 'PowerPlant'), |
---|
38 | 'reqd' : ('Netscape.Required_suite', 'Required_suite'), |
---|
39 | } |
---|
40 | |
---|
41 | from Standard_Suite import * |
---|
42 | from Standard_URL_suite import * |
---|
43 | from Mozilla_suite import * |
---|
44 | from Text import * |
---|
45 | from WorldWideWeb_suite import * |
---|
46 | from PowerPlant import * |
---|
47 | from Required_suite import * |
---|
48 | |
---|
49 | def getbaseclasses(v): |
---|
50 | if not getattr(v, '_propdict', None): |
---|
51 | v._propdict = {} |
---|
52 | v._elemdict = {} |
---|
53 | for superclassname in getattr(v, '_superclassnames', []): |
---|
54 | superclass = eval(superclassname) |
---|
55 | getbaseclasses(superclass) |
---|
56 | v._propdict.update(getattr(superclass, '_propdict', {})) |
---|
57 | v._elemdict.update(getattr(superclass, '_elemdict', {})) |
---|
58 | v._propdict.update(getattr(v, '_privpropdict', {})) |
---|
59 | v._elemdict.update(getattr(v, '_privelemdict', {})) |
---|
60 | |
---|
61 | import StdSuites |
---|
62 | |
---|
63 | # |
---|
64 | # Set property and element dictionaries now that all classes have been defined |
---|
65 | # |
---|
66 | getbaseclasses(text) |
---|
67 | getbaseclasses(styleset) |
---|
68 | getbaseclasses(StdSuites.Text_Suite.character) |
---|
69 | getbaseclasses(StdSuites.Text_Suite.text_flow) |
---|
70 | getbaseclasses(StdSuites.Text_Suite.word) |
---|
71 | getbaseclasses(StdSuites.Text_Suite.paragraph) |
---|
72 | getbaseclasses(StdSuites.Text_Suite.text_style_info) |
---|
73 | getbaseclasses(StdSuites.Text_Suite.line) |
---|
74 | getbaseclasses(StdSuites.Text_Suite.text) |
---|
75 | getbaseclasses(window) |
---|
76 | getbaseclasses(application) |
---|
77 | |
---|
78 | # |
---|
79 | # Indices of types declared in this module |
---|
80 | # |
---|
81 | _classdeclarations = { |
---|
82 | 'ctxt' : text, |
---|
83 | 'stys' : styleset, |
---|
84 | 'cha ' : StdSuites.Text_Suite.character, |
---|
85 | 'cflo' : StdSuites.Text_Suite.text_flow, |
---|
86 | 'cwor' : StdSuites.Text_Suite.word, |
---|
87 | 'cpar' : StdSuites.Text_Suite.paragraph, |
---|
88 | 'tsty' : StdSuites.Text_Suite.text_style_info, |
---|
89 | 'clin' : StdSuites.Text_Suite.line, |
---|
90 | 'ctxt' : StdSuites.Text_Suite.text, |
---|
91 | 'cwin' : window, |
---|
92 | 'capp' : application, |
---|
93 | } |
---|
94 | |
---|
95 | |
---|
96 | class Netscape(Standard_Suite_Events, |
---|
97 | Standard_URL_suite_Events, |
---|
98 | Mozilla_suite_Events, |
---|
99 | Text_Events, |
---|
100 | WorldWideWeb_suite_Events, |
---|
101 | PowerPlant_Events, |
---|
102 | Required_suite_Events, |
---|
103 | aetools.TalkTo): |
---|
104 | _signature = 'MOSS' |
---|
105 | |
---|
106 | _moduleName = 'Netscape' |
---|
107 | |
---|
108 | _elemdict = application._elemdict |
---|
109 | _propdict = application._propdict |
---|