summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/lib-scriptpackages/Netscape/Text.py
blob: 25fbd03b45932ce5462864a5e305480fafcd2701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
"""Suite Text: 
Level 0, version 0

Generated from /Volumes/Moes/Applications (Mac OS 9)/Netscape Communicator\xe2\x84\xa2 Folder/Netscape Communicator\xe2\x84\xa2
AETE/AEUT resource version 1/0, language 0, script 0
"""

import aetools
import MacOS

_code = 'TEXT'

from StdSuites.Text_Suite import *
class Text_Events(Text_Suite_Events):

	pass


class text(aetools.ComponentItem):
	"""text - independent text view objects """
	want = 'ctxt'
class beginning(aetools.NProperty):
	"""beginning - Beginning of element """
	which = 'bgng'
	want = 'obj '
class end(aetools.NProperty):
	"""end - Ending of element """
	which = 'end '
	want = 'obj '
class infront(aetools.NProperty):
	"""infront - Immediately before element """
	which = 'pBef'
	want = 'obj '
class justbehind(aetools.NProperty):
	"""justbehind - Immediately after element """
	which = 'pAft'
	want = 'obj '
class updateLevel(aetools.NProperty):
	"""updateLevel - updating level.  Can only be incremented or decremented.  Do so only in a try block -- if the level is greater than zero, visual text updating will cease. """
	which = 'pUpL'
	want = 'long'
#        element 'stys' as ['indx', 'name']

class styleset(aetools.ComponentItem):
	"""styleset - A style \xd2set\xd3 that may be used repeatedly in text objects. """
	want = 'stys'
class color(aetools.NProperty):
	"""color - the color """
	which = 'colr'
	want = 'RGB '
class font(aetools.NProperty):
	"""font - font name """
	which = 'font'
	want = 'TEXT'
class name(aetools.NProperty):
	"""name - style name """
	which = 'pnam'
	want = 'TEXT'
class size(aetools.NProperty):
	"""size - the size in points """
	which = 'ptsz'
	want = 'long'
class style(aetools.NProperty):
	"""style - the text styles or face attributes """
	which = 'txst'
	want = 'tsty'
class writing_code(aetools.NProperty):
	"""writing code - the script system and language """
	which = 'psct'
	want = 'tsty'

stylesets = styleset
text._superclassnames = []
text._privpropdict = {
	'beginning' : beginning,
	'end' : end,
	'infront' : infront,
	'justbehind' : justbehind,
	'updateLevel' : updateLevel,
}
text._privelemdict = {
	'styleset' : styleset,
}
styleset._superclassnames = []
styleset._privpropdict = {
	'color' : color,
	'font' : font,
	'name' : name,
	'size' : size,
	'style' : style,
	'writing_code' : writing_code,
}
styleset._privelemdict = {
}

#
# Indices of types declared in this module
#
_classdeclarations = {
	'ctxt' : text,
	'stys' : styleset,
}

_propdeclarations = {
	'bgng' : beginning,
	'colr' : color,
	'end ' : end,
	'font' : font,
	'pAft' : justbehind,
	'pBef' : infront,
	'pUpL' : updateLevel,
	'pnam' : name,
	'psct' : writing_code,
	'ptsz' : size,
	'txst' : style,
}

_compdeclarations = {
}

_enumdeclarations = {
}