0
|
1 |
"/
|
|
2 |
"/ $Header: /opt/data/cvs/stx/goodies/xmlsuite/xsl-fo/loadAll,v 1.2 2007-04-13 15:42:07 vranyj1 Exp $
|
|
3 |
"/
|
|
4 |
"/ loadAll-file to fileIn code for: stx:goodies/xmlsuite/xsl-fo
|
|
5 |
"/
|
|
6 |
"/ Automatically generated by the browsers generate-loadAll function.
|
|
7 |
"/ DO NOT MODIFY THIS fILE;
|
|
8 |
"/
|
|
9 |
"/
|
|
10 |
"/ Prerequisites:
|
|
11 |
"/
|
|
12 |
"/ Smalltalk loadPackage:'module:directory'.
|
|
13 |
"/ Smalltalk loadPackage:'....'.
|
|
14 |
!
|
|
15 |
'Executing preLoad script if any...' infoPrintCR.
|
|
16 |
Smalltalk fileIn:'preLoad.st'.
|
|
17 |
!
|
|
18 |
"{ package:'stx:goodies/xmlsuite/xsl-fo' }"
|
|
19 |
!
|
|
20 |
|
|
21 |
|files|
|
|
22 |
|
|
23 |
'loading package stx:goodies/xmlsuite/xsl-fo...' infoPrintCR.
|
|
24 |
|
|
25 |
files := #(
|
|
26 |
'FO__BasicFlowRenderer.st'
|
|
27 |
'FO__Document.st'
|
|
28 |
'FO__DocumentStream.st'
|
|
29 |
'FO__Element.st'
|
|
30 |
'FO__FOImplementation.st'
|
|
31 |
'FO__FlowView.st'
|
|
32 |
'FO__FlowViewTestApp.st'
|
|
33 |
'FO__Unit.st'
|
|
34 |
'FO__Pixel.st'
|
|
35 |
'FO__VisualElement.st'
|
|
36 |
'FO__ContainerElement.st'
|
|
37 |
'FO__Table.st'
|
|
38 |
'FO__TableCell.st'
|
|
39 |
'FO__TableRow.st'
|
|
40 |
'FO__Block.st'
|
|
41 |
'FO__Flow.st'
|
|
42 |
'FO__ListBlock.st'
|
|
43 |
'FO__ListItem.st'
|
|
44 |
'FO__ListItemBody.st'
|
|
45 |
'FO__ListItemLabel.st'
|
|
46 |
'extensions.st'
|
|
47 |
|
|
48 |
) asOrderedCollection.
|
|
49 |
|
|
50 |
"/ see if there is a classLibrary
|
|
51 |
(Smalltalk fileInClassLibrary:'goodies/xmlsuite/xsl-fo') ifTrue:[
|
|
52 |
|handle loaded|
|
|
53 |
|
|
54 |
handle := ObjectFileLoader loadedObjectHandles
|
|
55 |
detect:[:h | h package = 'stx:goodies/xmlsuite/xsl-fo'] ifNone:nil.
|
|
56 |
handle ifNotNil:[
|
|
57 |
loaded := Set new:(handle classes size).
|
|
58 |
handle classes do:[:c| c isMeta ifFalse:[loaded add:c classFilename]].
|
|
59 |
files := files asOrderedCollection select:[:f| (loaded includes:f) not].
|
|
60 |
].
|
|
61 |
].
|
|
62 |
|
|
63 |
"/ load files which are not in the classLibrary (all if there is none)
|
|
64 |
files size > 0 ifTrue:[
|
|
65 |
ApplicationLoader::FileLoadingStartedEvent ifNotNil:[
|
|
66 |
ApplicationLoader::FileLoadingStartedEvent new
|
|
67 |
filenames:files;
|
|
68 |
raise
|
|
69 |
].
|
|
70 |
|
|
71 |
files do:[:f |
|
|
72 |
f asFilename exists ifTrue:[
|
|
73 |
Smalltalk fileIn:f.
|
|
74 |
ApplicationLoader::FileLoadedEvent ifNotNil:[
|
|
75 |
ApplicationLoader::FileLoadedEvent new
|
|
76 |
raise
|
|
77 |
] ifNil:[
|
|
78 |
'.' infoPrint.
|
|
79 |
]
|
|
80 |
] ifFalse:[
|
|
81 |
Smalltalk fileIn:('source/' , f).
|
|
82 |
ApplicationLoader::FileLoadedEvent ifNotNil:[
|
|
83 |
ApplicationLoader::FileLoadedEvent new
|
|
84 |
raise
|
|
85 |
] ifNil:[
|
|
86 |
'.' infoPrint.
|
|
87 |
]
|
|
88 |
]
|
|
89 |
|
|
90 |
].
|
|
91 |
ApplicationLoader::FileLoadingFinishedEvent ifNotNil:[
|
|
92 |
ApplicationLoader::FileLoadingFinishedEvent new
|
|
93 |
raise
|
|
94 |
].
|
|
95 |
|
|
96 |
|
|
97 |
' ' infoPrintCR.
|
|
98 |
].
|
|
99 |
' done (stx:goodies/xmlsuite/xsl-fo).' infoPrintCR.
|
|
100 |
'Executing postLoad script if any...' infoPrintCR.
|
|
101 |
Smalltalk fileIn:'postLoad.st'.
|
|
102 |
!
|