source: trunk/Lucide/SOURCE/plugins/ludoc/ludoc.xih @ 153

Last change on this file since 153 was 153, checked in by Eugene Romanenko, 14 years ago

Writes into EA thumbnail of first page of document

File size: 41.1 KB
Line 
1
2/*
3 * This file was generated by the SOM Compiler.
4 * FileName: ludoc.xih.
5 * Generated using:
6 *     SOM Precompiler somipc: 2.29.1.17
7 *     SOM Emitter emitxih: 2.47
8 */
9
10/*
11 * -- By default, for classes declared using IDL,
12 * -- this emitter doesn't define redispatch/apply stubs.
13 * -- Instead, it requests that the SOM kernel produce them.
14 * -- To override this default, use the "notc" modifier.
15 */
16
17#ifndef SOM_LuDocument_xih
18#define SOM_LuDocument_xih
19
20#include <somcls.xh>
21#include <somcm.xh>
22
23#ifndef SOM_LuDocument_xh
24#include <ludoc.xh>
25#endif
26
27/*
28 * Set the scope of methods functions
29 */
30#ifndef SOM_Scope
31#define SOM_Scope static
32#endif
33
34#define LuDocument_MaxNoMethods 34
35
36/*
37 * -- Instance Data
38 */
39typedef void LuDocumentData;
40
41/*
42 * This class introduces no instance data, so no GetData macro is provided
43 */
44
45/*
46 * -- Primary Implementation File Support
47 */
48#if (defined(LuDocument_Class_Source) || defined(SOM_Module_ludoc_Source))
49
50/*
51 * Trace/Debug macro
52 */
53#ifndef LuDocumentMethodDebug
54   #define LuDocumentMethodDebug(c,m) SOMMethodDebug(c,m)
55#endif
56
57/*
58 * -- Method Macros for use in Method Procedures
59 */
60#ifdef METHOD_MACROS
61  #define _somDefaultInit somSelf->somDefaultInit
62  #define _somDestruct somSelf->somDestruct
63  #define _somDefaultCopyInit somSelf->somDefaultCopyInit
64  #define _somDefaultAssign somSelf->somDefaultAssign
65  #define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
66  #define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
67  #define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
68  #define _somDefaultConstAssign somSelf->somDefaultConstAssign
69  #define _somDefaultVAssign somSelf->somDefaultVAssign
70  #define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
71  #define _somInit somSelf->somInit
72  #define _somFree somSelf->somFree
73  #define _somUninit somSelf->somUninit
74  #define _somGetClass somSelf->somGetClass
75  #define _somGetClassName somSelf->somGetClassName
76  #define _somGetSize somSelf->somGetSize
77  #define _somIsA somSelf->somIsA
78  #define _somIsInstanceOf somSelf->somIsInstanceOf
79  #define _somRespondsTo somSelf->somRespondsTo
80  #define _somDispatch somSelf->somDispatch
81  #define _somClassDispatch somSelf->somClassDispatch
82  #define _somCastObj somSelf->somCastObj
83  #define _somResetObj somSelf->somResetObj
84  #define _somDispatchV somSelf->somDispatchV
85  #define _somDispatchL somSelf->somDispatchL
86  #define _somDispatchA somSelf->somDispatchA
87  #define _somDispatchD somSelf->somDispatchD
88  #define _somPrintSelf somSelf->somPrintSelf
89  #define _somDumpSelf somSelf->somDumpSelf
90  #define _somDumpSelfInt somSelf->somDumpSelfInt
91  #define _loadFile somSelf->loadFile
92  #define _getBpp somSelf->getBpp
93  #define _isScalable somSelf->isScalable
94  #define _isFixedImage somSelf->isFixedImage
95  #define _isRotable somSelf->isRotable
96  #define _getPageCount somSelf->getPageCount
97  #define _getPageSize somSelf->getPageSize
98  #define _renderPageToPixbuf somSelf->renderPageToPixbuf
99  #define _isAsynchRenderingSupported somSelf->isAsynchRenderingSupported
100  #define _renderPageToPixbufAsynch somSelf->renderPageToPixbufAsynch
101  #define _isRenderIntoPS somSelf->isRenderIntoPS
102  #define _renderPageToPS somSelf->renderPageToPS
103  #define _isHaveText somSelf->isHaveText
104  #define _getSelectionRectangles somSelf->getSelectionRectangles
105  #define _freeRectangles somSelf->freeRectangles
106  #define _getText somSelf->getText
107  #define _isHaveLinks somSelf->isHaveLinks
108  #define _getLinkMapping somSelf->getLinkMapping
109  #define _freeLinkMapping somSelf->freeLinkMapping
110  #define _isSaveable somSelf->isSaveable
111  #define _saveAs somSelf->saveAs
112  #define _isPostScriptExportable somSelf->isPostScriptExportable
113  #define _exportToPostScript somSelf->exportToPostScript
114  #define _isHaveFontInfo somSelf->isHaveFontInfo
115  #define _getFontInfo somSelf->getFontInfo
116  #define _freeFontInfo somSelf->freeFontInfo
117  #define _isHaveIndex somSelf->isHaveIndex
118  #define _getIndex somSelf->getIndex
119  #define _getDocumentInfo somSelf->getDocumentInfo
120  #define _freeDocumentInfo somSelf->freeDocumentInfo
121  #define _getThumbnailSize somSelf->getThumbnailSize
122  #define _getThumbnail somSelf->getThumbnail
123  #define _searchText somSelf->searchText
124  #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail
125  #define _somDefaultInit somSelf->somDefaultInit
126#endif
127
128
129/*
130 * -- The LuDocument ClassData Structure
131 */
132SOMEXTERN struct LuDocumentClassDataStructure SOMDLINK LuDocumentClassData = {(SOMClass *) NULL};
133
134/*
135 * -- The auxiliary LuDocument ClassData structure
136 */
137SOMEXTERN struct LuDocumentCClassDataStructure SOMDLINK LuDocumentCClassData = {(somMethodTabs) NULL};
138
139
140/*
141 * New Method: loadFile
142 */
143SOM_Scope boolean  SOMLINK loadFile(LuDocument *somSelf, Environment *ev,
144                string filename,
145                string password,
146                string* error);
147#ifndef somMN_loadFile_defined
148#define somMN_loadFile_defined
149static char *somMN_loadFile = "loadFile";
150static somId somId_loadFile = &somMN_loadFile;
151#endif  /* somMN_loadFile_defined */
152#ifndef somDS_loadFile_defined
153#define somDS_loadFile_defined
154static char *somDS_loadFile = "::LuDocument::loadFile";
155static somId somDI_loadFile = &somDS_loadFile;
156#endif  /* somDS_loadFile_defined */
157
158static somMethodInfo loadFileMethodInfo = {10, 20, 0};
159
160static somApRdInfo loadFileStubs = {0, 0, &loadFileMethodInfo};
161
162/*
163 * New Method: getBpp
164 */
165SOM_Scope short  SOMLINK getBpp(LuDocument *somSelf, Environment *ev);
166#ifndef somMN_getBpp_defined
167#define somMN_getBpp_defined
168static char *somMN_getBpp = "getBpp";
169static somId somId_getBpp = &somMN_getBpp;
170#endif  /* somMN_getBpp_defined */
171#ifndef somDS_getBpp_defined
172#define somDS_getBpp_defined
173static char *somDS_getBpp = "::LuDocument::getBpp";
174static somId somDI_getBpp = &somDS_getBpp;
175#endif  /* somDS_getBpp_defined */
176
177static somMethodInfo getBppMethodInfo = {12, 8, 0};
178
179static somApRdInfo getBppStubs = {0, 0, &getBppMethodInfo};
180
181/*
182 * New Method: isScalable
183 */
184SOM_Scope boolean  SOMLINK isScalable(LuDocument *somSelf, Environment *ev);
185#ifndef somMN_isScalable_defined
186#define somMN_isScalable_defined
187static char *somMN_isScalable = "isScalable";
188static somId somId_isScalable = &somMN_isScalable;
189#endif  /* somMN_isScalable_defined */
190#ifndef somDS_isScalable_defined
191#define somDS_isScalable_defined
192static char *somDS_isScalable = "::LuDocument::isScalable";
193static somId somDI_isScalable = &somDS_isScalable;
194#endif  /* somDS_isScalable_defined */
195
196static somMethodInfo isScalableMethodInfo = {10, 8, 0};
197
198static somApRdInfo isScalableStubs = {0, 0, &isScalableMethodInfo};
199
200/*
201 * New Method: isFixedImage
202 */
203SOM_Scope boolean  SOMLINK isFixedImage(LuDocument *somSelf, Environment *ev);
204#ifndef somMN_isFixedImage_defined
205#define somMN_isFixedImage_defined
206static char *somMN_isFixedImage = "isFixedImage";
207static somId somId_isFixedImage = &somMN_isFixedImage;
208#endif  /* somMN_isFixedImage_defined */
209#ifndef somDS_isFixedImage_defined
210#define somDS_isFixedImage_defined
211static char *somDS_isFixedImage = "::LuDocument::isFixedImage";
212static somId somDI_isFixedImage = &somDS_isFixedImage;
213#endif  /* somDS_isFixedImage_defined */
214
215static somMethodInfo isFixedImageMethodInfo = {10, 8, 0};
216
217static somApRdInfo isFixedImageStubs = {0, 0, &isFixedImageMethodInfo};
218
219/*
220 * New Method: isRotable
221 */
222SOM_Scope boolean  SOMLINK isRotable(LuDocument *somSelf, Environment *ev);
223#ifndef somMN_isRotable_defined
224#define somMN_isRotable_defined
225static char *somMN_isRotable = "isRotable";
226static somId somId_isRotable = &somMN_isRotable;
227#endif  /* somMN_isRotable_defined */
228#ifndef somDS_isRotable_defined
229#define somDS_isRotable_defined
230static char *somDS_isRotable = "::LuDocument::isRotable";
231static somId somDI_isRotable = &somDS_isRotable;
232#endif  /* somDS_isRotable_defined */
233
234static somMethodInfo isRotableMethodInfo = {10, 8, 0};
235
236static somApRdInfo isRotableStubs = {0, 0, &isRotableMethodInfo};
237
238/*
239 * New Method: getPageCount
240 */
241SOM_Scope long  SOMLINK getPageCount(LuDocument *somSelf, Environment *ev);
242#ifndef somMN_getPageCount_defined
243#define somMN_getPageCount_defined
244static char *somMN_getPageCount = "getPageCount";
245static somId somId_getPageCount = &somMN_getPageCount;
246#endif  /* somMN_getPageCount_defined */
247#ifndef somDS_getPageCount_defined
248#define somDS_getPageCount_defined
249static char *somDS_getPageCount = "::LuDocument::getPageCount";
250static somId somDI_getPageCount = &somDS_getPageCount;
251#endif  /* somDS_getPageCount_defined */
252#define getPageCount_somApRdDefault
253
254/*
255 * New Method: getPageSize
256 */
257SOM_Scope void  SOMLINK getPageSize(LuDocument *somSelf, Environment *ev,
258                long pagenum,
259                double* width,
260                double* height);
261#ifndef somMN_getPageSize_defined
262#define somMN_getPageSize_defined
263static char *somMN_getPageSize = "getPageSize";
264static somId somId_getPageSize = &somMN_getPageSize;
265#endif  /* somMN_getPageSize_defined */
266#ifndef somDS_getPageSize_defined
267#define somDS_getPageSize_defined
268static char *somDS_getPageSize = "::LuDocument::getPageSize";
269static somId somDI_getPageSize = &somDS_getPageSize;
270#endif  /* somDS_getPageSize_defined */
271
272static somMethodInfo getPageSizeMethodInfo = {0, 28, 0};
273
274static somApRdInfo getPageSizeStubs = {0, 0, &getPageSizeMethodInfo};
275
276/*
277 * New Method: renderPageToPixbuf
278 */
279SOM_Scope void  SOMLINK renderPageToPixbuf(LuDocument *somSelf, Environment *ev,
280                long pagenum,
281                long src_x,
282                long src_y,
283                long src_width,
284                long src_height,
285                double scale,
286                long rotation,
287                LuPixbuf* pixbuf);
288#ifndef somMN_renderPageToPixbuf_defined
289#define somMN_renderPageToPixbuf_defined
290static char *somMN_renderPageToPixbuf = "renderPageToPixbuf";
291static somId somId_renderPageToPixbuf = &somMN_renderPageToPixbuf;
292#endif  /* somMN_renderPageToPixbuf_defined */
293#ifndef somDS_renderPageToPixbuf_defined
294#define somDS_renderPageToPixbuf_defined
295static char *somDS_renderPageToPixbuf = "::LuDocument::renderPageToPixbuf";
296static somId somDI_renderPageToPixbuf = &somDS_renderPageToPixbuf;
297#endif  /* somDS_renderPageToPixbuf_defined */
298
299static somFloatMap renderPageToPixbufFloatMap = {
30030, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
301
302static somMethodInfo renderPageToPixbufMethodInfo = {1, 44, &renderPageToPixbufFloatMap};
303
304static somApRdInfo renderPageToPixbufStubs = {0, 0, &renderPageToPixbufMethodInfo};
305
306/*
307 * New Method: isAsynchRenderingSupported
308 */
309SOM_Scope boolean  SOMLINK isAsynchRenderingSupported(LuDocument *somSelf, Environment *ev);
310#ifndef somMN_isAsynchRenderingSupported_defined
311#define somMN_isAsynchRenderingSupported_defined
312static char *somMN_isAsynchRenderingSupported = "isAsynchRenderingSupported";
313static somId somId_isAsynchRenderingSupported = &somMN_isAsynchRenderingSupported;
314#endif  /* somMN_isAsynchRenderingSupported_defined */
315#ifndef somDS_isAsynchRenderingSupported_defined
316#define somDS_isAsynchRenderingSupported_defined
317static char *somDS_isAsynchRenderingSupported = "::LuDocument::isAsynchRenderingSupported";
318static somId somDI_isAsynchRenderingSupported = &somDS_isAsynchRenderingSupported;
319#endif  /* somDS_isAsynchRenderingSupported_defined */
320
321static somMethodInfo isAsynchRenderingSupportedMethodInfo = {10, 8, 0};
322
323static somApRdInfo isAsynchRenderingSupportedStubs = {0, 0, &isAsynchRenderingSupportedMethodInfo};
324
325/*
326 * New Method: renderPageToPixbufAsynch
327 */
328SOM_Scope void  SOMLINK renderPageToPixbufAsynch(LuDocument *somSelf, Environment *ev,
329                long pagenum,
330                long src_x,
331                long src_y,
332                long src_width,
333                long src_height,
334                double scale,
335                long rotation,
336                LuPixbuf* pixbuf,
337                LuDocument_asynchCallbackFn fnd,
338                LuDocument_asynchCallbackFn fna,
339                somToken fndata);
340#ifndef somMN_renderPageToPixbufAsynch_defined
341#define somMN_renderPageToPixbufAsynch_defined
342static char *somMN_renderPageToPixbufAsynch = "renderPageToPixbufAsynch";
343static somId somId_renderPageToPixbufAsynch = &somMN_renderPageToPixbufAsynch;
344#endif  /* somMN_renderPageToPixbufAsynch_defined */
345#ifndef somDS_renderPageToPixbufAsynch_defined
346#define somDS_renderPageToPixbufAsynch_defined
347static char *somDS_renderPageToPixbufAsynch = "::LuDocument::renderPageToPixbufAsynch";
348static somId somDI_renderPageToPixbufAsynch = &somDS_renderPageToPixbufAsynch;
349#endif  /* somDS_renderPageToPixbufAsynch_defined */
350
351static somFloatMap renderPageToPixbufAsynchFloatMap = {
35230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
353
354static somMethodInfo renderPageToPixbufAsynchMethodInfo = {1, 56, &renderPageToPixbufAsynchFloatMap};
355
356static somApRdInfo renderPageToPixbufAsynchStubs = {0, 0, &renderPageToPixbufAsynchMethodInfo};
357
358/*
359 * New Method: isRenderIntoPS
360 */
361SOM_Scope boolean  SOMLINK isRenderIntoPS(LuDocument *somSelf, Environment *ev);
362#ifndef somMN_isRenderIntoPS_defined
363#define somMN_isRenderIntoPS_defined
364static char *somMN_isRenderIntoPS = "isRenderIntoPS";
365static somId somId_isRenderIntoPS = &somMN_isRenderIntoPS;
366#endif  /* somMN_isRenderIntoPS_defined */
367#ifndef somDS_isRenderIntoPS_defined
368#define somDS_isRenderIntoPS_defined
369static char *somDS_isRenderIntoPS = "::LuDocument::isRenderIntoPS";
370static somId somDI_isRenderIntoPS = &somDS_isRenderIntoPS;
371#endif  /* somDS_isRenderIntoPS_defined */
372
373static somMethodInfo isRenderIntoPSMethodInfo = {10, 8, 0};
374
375static somApRdInfo isRenderIntoPSStubs = {0, 0, &isRenderIntoPSMethodInfo};
376
377/*
378 * New Method: renderPageToPS
379 */
380SOM_Scope void  SOMLINK renderPageToPS(LuDocument *somSelf, Environment *ev,
381                long pagenum,
382                long src_x,
383                long src_y,
384                long src_width,
385                long src_height,
386                double scale,
387                long rotation,
388                unsigned long hps,
389                somMToken rect);
390#ifndef somMN_renderPageToPS_defined
391#define somMN_renderPageToPS_defined
392static char *somMN_renderPageToPS = "renderPageToPS";
393static somId somId_renderPageToPS = &somMN_renderPageToPS;
394#endif  /* somMN_renderPageToPS_defined */
395#ifndef somDS_renderPageToPS_defined
396#define somDS_renderPageToPS_defined
397static char *somDS_renderPageToPS = "::LuDocument::renderPageToPS";
398static somId somDI_renderPageToPS = &somDS_renderPageToPS;
399#endif  /* somDS_renderPageToPS_defined */
400
401static somFloatMap renderPageToPSFloatMap = {
40230, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
403
404static somMethodInfo renderPageToPSMethodInfo = {1, 48, &renderPageToPSFloatMap};
405
406static somApRdInfo renderPageToPSStubs = {0, 0, &renderPageToPSMethodInfo};
407
408/*
409 * New Method: isHaveText
410 */
411SOM_Scope boolean  SOMLINK isHaveText(LuDocument *somSelf, Environment *ev);
412#ifndef somMN_isHaveText_defined
413#define somMN_isHaveText_defined
414static char *somMN_isHaveText = "isHaveText";
415static somId somId_isHaveText = &somMN_isHaveText;
416#endif  /* somMN_isHaveText_defined */
417#ifndef somDS_isHaveText_defined
418#define somDS_isHaveText_defined
419static char *somDS_isHaveText = "::LuDocument::isHaveText";
420static somId somDI_isHaveText = &somDS_isHaveText;
421#endif  /* somDS_isHaveText_defined */
422
423static somMethodInfo isHaveTextMethodInfo = {10, 8, 0};
424
425static somApRdInfo isHaveTextStubs = {0, 0, &isHaveTextMethodInfo};
426
427/*
428 * New Method: getSelectionRectangles
429 */
430SOM_Scope LuDocument_LuRectSequence*  SOMLINK getSelectionRectangles(LuDocument *somSelf, Environment *ev,
431                long pagenum,
432                LuRectangle* selection);
433#ifndef somMN_getSelectionRectangles_defined
434#define somMN_getSelectionRectangles_defined
435static char *somMN_getSelectionRectangles = "getSelectionRectangles";
436static somId somId_getSelectionRectangles = &somMN_getSelectionRectangles;
437#endif  /* somMN_getSelectionRectangles_defined */
438#ifndef somDS_getSelectionRectangles_defined
439#define somDS_getSelectionRectangles_defined
440static char *somDS_getSelectionRectangles = "::LuDocument::getSelectionRectangles";
441static somId somDI_getSelectionRectangles = &somDS_getSelectionRectangles;
442#endif  /* somDS_getSelectionRectangles_defined */
443#define getSelectionRectangles_somApRdDefault
444
445/*
446 * New Direct call procedure: freeRectangles
447 */
448SOM_Scope void  SOMLINK freeRectangles(Environment *ev,
449                LuDocument_LuRectSequence* rectangles);
450
451/*
452 * New Method: getText
453 */
454SOM_Scope string  SOMLINK getText(LuDocument *somSelf, Environment *ev,
455                long pagenum,
456                LuRectangle* selection);
457#ifndef somMN_getText_defined
458#define somMN_getText_defined
459static char *somMN_getText = "getText";
460static somId somId_getText = &somMN_getText;
461#endif  /* somMN_getText_defined */
462#ifndef somDS_getText_defined
463#define somDS_getText_defined
464static char *somDS_getText = "::LuDocument::getText";
465static somId somDI_getText = &somDS_getText;
466#endif  /* somDS_getText_defined */
467#define getText_somApRdDefault
468
469/*
470 * New Method: isHaveLinks
471 */
472SOM_Scope boolean  SOMLINK isHaveLinks(LuDocument *somSelf, Environment *ev);
473#ifndef somMN_isHaveLinks_defined
474#define somMN_isHaveLinks_defined
475static char *somMN_isHaveLinks = "isHaveLinks";
476static somId somId_isHaveLinks = &somMN_isHaveLinks;
477#endif  /* somMN_isHaveLinks_defined */
478#ifndef somDS_isHaveLinks_defined
479#define somDS_isHaveLinks_defined
480static char *somDS_isHaveLinks = "::LuDocument::isHaveLinks";
481static somId somDI_isHaveLinks = &somDS_isHaveLinks;
482#endif  /* somDS_isHaveLinks_defined */
483
484static somMethodInfo isHaveLinksMethodInfo = {10, 8, 0};
485
486static somApRdInfo isHaveLinksStubs = {0, 0, &isHaveLinksMethodInfo};
487
488/*
489 * New Method: getLinkMapping
490 */
491SOM_Scope LuDocument_LuLinkMapSequence*  SOMLINK getLinkMapping(LuDocument *somSelf, Environment *ev,
492                long pagenum);
493#ifndef somMN_getLinkMapping_defined
494#define somMN_getLinkMapping_defined
495static char *somMN_getLinkMapping = "getLinkMapping";
496static somId somId_getLinkMapping = &somMN_getLinkMapping;
497#endif  /* somMN_getLinkMapping_defined */
498#ifndef somDS_getLinkMapping_defined
499#define somDS_getLinkMapping_defined
500static char *somDS_getLinkMapping = "::LuDocument::getLinkMapping";
501static somId somDI_getLinkMapping = &somDS_getLinkMapping;
502#endif  /* somDS_getLinkMapping_defined */
503#define getLinkMapping_somApRdDefault
504
505/*
506 * New Direct call procedure: freeLinkMapping
507 */
508SOM_Scope void  SOMLINK freeLinkMapping(Environment *ev,
509                LuDocument_LuLinkMapSequence* mapping);
510
511/*
512 * New Method: isSaveable
513 */
514SOM_Scope boolean  SOMLINK isSaveable(LuDocument *somSelf, Environment *ev);
515#ifndef somMN_isSaveable_defined
516#define somMN_isSaveable_defined
517static char *somMN_isSaveable = "isSaveable";
518static somId somId_isSaveable = &somMN_isSaveable;
519#endif  /* somMN_isSaveable_defined */
520#ifndef somDS_isSaveable_defined
521#define somDS_isSaveable_defined
522static char *somDS_isSaveable = "::LuDocument::isSaveable";
523static somId somDI_isSaveable = &somDS_isSaveable;
524#endif  /* somDS_isSaveable_defined */
525
526static somMethodInfo isSaveableMethodInfo = {10, 8, 0};
527
528static somApRdInfo isSaveableStubs = {0, 0, &isSaveableMethodInfo};
529
530/*
531 * New Method: saveAs
532 */
533SOM_Scope boolean  SOMLINK saveAs(LuDocument *somSelf, Environment *ev,
534                string filename);
535#ifndef somMN_saveAs_defined
536#define somMN_saveAs_defined
537static char *somMN_saveAs = "saveAs";
538static somId somId_saveAs = &somMN_saveAs;
539#endif  /* somMN_saveAs_defined */
540#ifndef somDS_saveAs_defined
541#define somDS_saveAs_defined
542static char *somDS_saveAs = "::LuDocument::saveAs";
543static somId somDI_saveAs = &somDS_saveAs;
544#endif  /* somDS_saveAs_defined */
545
546static somMethodInfo saveAsMethodInfo = {10, 12, 0};
547
548static somApRdInfo saveAsStubs = {0, 0, &saveAsMethodInfo};
549
550/*
551 * New Method: isPostScriptExportable
552 */
553SOM_Scope boolean  SOMLINK isPostScriptExportable(LuDocument *somSelf, Environment *ev);
554#ifndef somMN_isPostScriptExportable_defined
555#define somMN_isPostScriptExportable_defined
556static char *somMN_isPostScriptExportable = "isPostScriptExportable";
557static somId somId_isPostScriptExportable = &somMN_isPostScriptExportable;
558#endif  /* somMN_isPostScriptExportable_defined */
559#ifndef somDS_isPostScriptExportable_defined
560#define somDS_isPostScriptExportable_defined
561static char *somDS_isPostScriptExportable = "::LuDocument::isPostScriptExportable";
562static somId somDI_isPostScriptExportable = &somDS_isPostScriptExportable;
563#endif  /* somDS_isPostScriptExportable_defined */
564
565static somMethodInfo isPostScriptExportableMethodInfo = {10, 8, 0};
566
567static somApRdInfo isPostScriptExportableStubs = {0, 0, &isPostScriptExportableMethodInfo};
568
569/*
570 * New Method: exportToPostScript
571 */
572SOM_Scope boolean  SOMLINK exportToPostScript(LuDocument *somSelf, Environment *ev,
573                string filename,
574                long first_page,
575                long last_page,
576                double width,
577                double height,
578                boolean* brkExport);
579#ifndef somMN_exportToPostScript_defined
580#define somMN_exportToPostScript_defined
581static char *somMN_exportToPostScript = "exportToPostScript";
582static somId somId_exportToPostScript = &somMN_exportToPostScript;
583#endif  /* somMN_exportToPostScript_defined */
584#ifndef somDS_exportToPostScript_defined
585#define somDS_exportToPostScript_defined
586static char *somDS_exportToPostScript = "::LuDocument::exportToPostScript";
587static somId somDI_exportToPostScript = &somDS_exportToPostScript;
588#endif  /* somDS_exportToPostScript_defined */
589
590static somFloatMap exportToPostScriptFloatMap = {
59120, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, };
592
593static somMethodInfo exportToPostScriptMethodInfo = {11, 40, &exportToPostScriptFloatMap};
594
595static somApRdInfo exportToPostScriptStubs = {0, 0, &exportToPostScriptMethodInfo};
596
597/*
598 * New Method: isHaveFontInfo
599 */
600SOM_Scope boolean  SOMLINK isHaveFontInfo(LuDocument *somSelf, Environment *ev);
601#ifndef somMN_isHaveFontInfo_defined
602#define somMN_isHaveFontInfo_defined
603static char *somMN_isHaveFontInfo = "isHaveFontInfo";
604static somId somId_isHaveFontInfo = &somMN_isHaveFontInfo;
605#endif  /* somMN_isHaveFontInfo_defined */
606#ifndef somDS_isHaveFontInfo_defined
607#define somDS_isHaveFontInfo_defined
608static char *somDS_isHaveFontInfo = "::LuDocument::isHaveFontInfo";
609static somId somDI_isHaveFontInfo = &somDS_isHaveFontInfo;
610#endif  /* somDS_isHaveFontInfo_defined */
611
612static somMethodInfo isHaveFontInfoMethodInfo = {10, 8, 0};
613
614static somApRdInfo isHaveFontInfoStubs = {0, 0, &isHaveFontInfoMethodInfo};
615
616/*
617 * New Method: getFontInfo
618 */
619SOM_Scope LuDocument_LuFontInfoSequence*  SOMLINK getFontInfo(LuDocument *somSelf, Environment *ev);
620#ifndef somMN_getFontInfo_defined
621#define somMN_getFontInfo_defined
622static char *somMN_getFontInfo = "getFontInfo";
623static somId somId_getFontInfo = &somMN_getFontInfo;
624#endif  /* somMN_getFontInfo_defined */
625#ifndef somDS_getFontInfo_defined
626#define somDS_getFontInfo_defined
627static char *somDS_getFontInfo = "::LuDocument::getFontInfo";
628static somId somDI_getFontInfo = &somDS_getFontInfo;
629#endif  /* somDS_getFontInfo_defined */
630#define getFontInfo_somApRdDefault
631
632/*
633 * New Direct call procedure: freeFontInfo
634 */
635SOM_Scope void  SOMLINK freeFontInfo(Environment *ev,
636                LuDocument_LuFontInfoSequence* fonts);
637
638/*
639 * New Method: isHaveIndex
640 */
641SOM_Scope boolean  SOMLINK isHaveIndex(LuDocument *somSelf, Environment *ev);
642#ifndef somMN_isHaveIndex_defined
643#define somMN_isHaveIndex_defined
644static char *somMN_isHaveIndex = "isHaveIndex";
645static somId somId_isHaveIndex = &somMN_isHaveIndex;
646#endif  /* somMN_isHaveIndex_defined */
647#ifndef somDS_isHaveIndex_defined
648#define somDS_isHaveIndex_defined
649static char *somDS_isHaveIndex = "::LuDocument::isHaveIndex";
650static somId somDI_isHaveIndex = &somDS_isHaveIndex;
651#endif  /* somDS_isHaveIndex_defined */
652
653static somMethodInfo isHaveIndexMethodInfo = {10, 8, 0};
654
655static somApRdInfo isHaveIndexStubs = {0, 0, &isHaveIndexMethodInfo};
656
657/*
658 * New Method: getIndex
659 */
660SOM_Scope LuIndexNode*  SOMLINK getIndex(LuDocument *somSelf, Environment *ev);
661#ifndef somMN_getIndex_defined
662#define somMN_getIndex_defined
663static char *somMN_getIndex = "getIndex";
664static somId somId_getIndex = &somMN_getIndex;
665#endif  /* somMN_getIndex_defined */
666#ifndef somDS_getIndex_defined
667#define somDS_getIndex_defined
668static char *somDS_getIndex = "::LuDocument::getIndex";
669static somId somDI_getIndex = &somDS_getIndex;
670#endif  /* somDS_getIndex_defined */
671#define getIndex_somApRdDefault
672
673/*
674 * New Method: getDocumentInfo
675 */
676SOM_Scope LuDocumentInfo*  SOMLINK getDocumentInfo(LuDocument *somSelf, Environment *ev);
677#ifndef somMN_getDocumentInfo_defined
678#define somMN_getDocumentInfo_defined
679static char *somMN_getDocumentInfo = "getDocumentInfo";
680static somId somId_getDocumentInfo = &somMN_getDocumentInfo;
681#endif  /* somMN_getDocumentInfo_defined */
682#ifndef somDS_getDocumentInfo_defined
683#define somDS_getDocumentInfo_defined
684static char *somDS_getDocumentInfo = "::LuDocument::getDocumentInfo";
685static somId somDI_getDocumentInfo = &somDS_getDocumentInfo;
686#endif  /* somDS_getDocumentInfo_defined */
687#define getDocumentInfo_somApRdDefault
688
689/*
690 * New Direct call procedure: freeDocumentInfo
691 */
692SOM_Scope void  SOMLINK freeDocumentInfo(Environment *ev,
693                LuDocumentInfo* info);
694
695/*
696 * New Method: getThumbnailSize
697 */
698SOM_Scope boolean  SOMLINK getThumbnailSize(LuDocument *somSelf, Environment *ev,
699                long pagenum,
700                short suggested_width,
701                short* width,
702                short* height);
703#ifndef somMN_getThumbnailSize_defined
704#define somMN_getThumbnailSize_defined
705static char *somMN_getThumbnailSize = "getThumbnailSize";
706static somId somId_getThumbnailSize = &somMN_getThumbnailSize;
707#endif  /* somMN_getThumbnailSize_defined */
708#ifndef somDS_getThumbnailSize_defined
709#define somDS_getThumbnailSize_defined
710static char *somDS_getThumbnailSize = "::LuDocument::getThumbnailSize";
711static somId somDI_getThumbnailSize = &somDS_getThumbnailSize;
712#endif  /* somDS_getThumbnailSize_defined */
713
714static somMethodInfo getThumbnailSizeMethodInfo = {10, 24, 0};
715
716static somApRdInfo getThumbnailSizeStubs = {0, 0, &getThumbnailSizeMethodInfo};
717
718/*
719 * New Method: getThumbnail
720 */
721SOM_Scope LuPixbuf*  SOMLINK getThumbnail(LuDocument *somSelf, Environment *ev,
722                long pagenum,
723                short suggested_width);
724#ifndef somMN_getThumbnail_defined
725#define somMN_getThumbnail_defined
726static char *somMN_getThumbnail = "getThumbnail";
727static somId somId_getThumbnail = &somMN_getThumbnail;
728#endif  /* somMN_getThumbnail_defined */
729#ifndef somDS_getThumbnail_defined
730#define somDS_getThumbnail_defined
731static char *somDS_getThumbnail = "::LuDocument::getThumbnail";
732static somId somDI_getThumbnail = &somDS_getThumbnail;
733#endif  /* somDS_getThumbnail_defined */
734#define getThumbnail_somApRdDefault
735
736/*
737 * New Method: searchText
738 */
739SOM_Scope LuDocument_LuRectSequence*  SOMLINK searchText(LuDocument *somSelf, Environment *ev,
740                long pagenum,
741                string text,
742                boolean caseSensitive);
743#ifndef somMN_searchText_defined
744#define somMN_searchText_defined
745static char *somMN_searchText = "searchText";
746static somId somId_searchText = &somMN_searchText;
747#endif  /* somMN_searchText_defined */
748#ifndef somDS_searchText_defined
749#define somDS_searchText_defined
750static char *somDS_searchText = "::LuDocument::searchText";
751static somId somDI_searchText = &somDS_searchText;
752#endif  /* somDS_searchText_defined */
753#define searchText_somApRdDefault
754
755/*
756 * New Method: isCreateFileThumbnail
757 */
758SOM_Scope boolean  SOMLINK isCreateFileThumbnail(LuDocument *somSelf, Environment *ev);
759#ifndef somMN_isCreateFileThumbnail_defined
760#define somMN_isCreateFileThumbnail_defined
761static char *somMN_isCreateFileThumbnail = "isCreateFileThumbnail";
762static somId somId_isCreateFileThumbnail = &somMN_isCreateFileThumbnail;
763#endif  /* somMN_isCreateFileThumbnail_defined */
764#ifndef somDS_isCreateFileThumbnail_defined
765#define somDS_isCreateFileThumbnail_defined
766static char *somDS_isCreateFileThumbnail = "::LuDocument::isCreateFileThumbnail";
767static somId somDI_isCreateFileThumbnail = &somDS_isCreateFileThumbnail;
768#endif  /* somDS_isCreateFileThumbnail_defined */
769
770static somMethodInfo isCreateFileThumbnailMethodInfo = {10, 8, 0};
771
772static somApRdInfo isCreateFileThumbnailStubs = {0, 0, &isCreateFileThumbnailMethodInfo};
773
774/*
775 * Overridden method: somDefaultInit
776 */
777SOM_Scope void  SOMLINK somDefaultInit(LuDocument *somSelf,
778                som3InitCtrl* ctrl);
779static char *somMN_LuDocumentsomDefaultInit = "SOMObject::somDefaultInit";
780static somId somId_LuDocumentsomDefaultInit = &somMN_LuDocumentsomDefaultInit;
781#ifdef somId_somDefaultInit
782#undef somId_somDefaultInit
783#else
784#define somId_somDefaultInit somId_LuDocumentsomDefaultInit
785#endif
786
787/*
788 * -- Routines and Structures to create the class object
789 */
790
791
792/*
793 * Declare the Static Methods table.
794 */
795static somStaticMethod_t LuDocumentSM[] = {
796    {    &LuDocumentClassData.loadFile,
797         &somId_loadFile,
798         &somDI_loadFile,
799         (somMethodProc *) loadFile,
800         (somMethodProc *)((void*)-1),
801#ifdef loadFile_somApRdDefault
802         0},
803#else
804         (somMethodProc *) ((void*) &loadFileStubs) },
805#endif
806    {    &LuDocumentClassData.getBpp,
807         &somId_getBpp,
808         &somDI_getBpp,
809         (somMethodProc *) getBpp,
810         (somMethodProc *)((void*)-1),
811#ifdef getBpp_somApRdDefault
812         0},
813#else
814         (somMethodProc *) ((void*) &getBppStubs) },
815#endif
816    {    &LuDocumentClassData.isScalable,
817         &somId_isScalable,
818         &somDI_isScalable,
819         (somMethodProc *) isScalable,
820         (somMethodProc *)((void*)-1),
821#ifdef isScalable_somApRdDefault
822         0},
823#else
824         (somMethodProc *) ((void*) &isScalableStubs) },
825#endif
826    {    &LuDocumentClassData.isFixedImage,
827         &somId_isFixedImage,
828         &somDI_isFixedImage,
829         (somMethodProc *) isFixedImage,
830         (somMethodProc *)((void*)-1),
831#ifdef isFixedImage_somApRdDefault
832         0},
833#else
834         (somMethodProc *) ((void*) &isFixedImageStubs) },
835#endif
836    {    &LuDocumentClassData.isRotable,
837         &somId_isRotable,
838         &somDI_isRotable,
839         (somMethodProc *) isRotable,
840         (somMethodProc *)((void*)-1),
841#ifdef isRotable_somApRdDefault
842         0},
843#else
844         (somMethodProc *) ((void*) &isRotableStubs) },
845#endif
846    {    &LuDocumentClassData.getPageCount,
847         &somId_getPageCount,
848         &somDI_getPageCount,
849         (somMethodProc *) getPageCount,
850         (somMethodProc *)((void*)-1),
851#ifdef getPageCount_somApRdDefault
852         0},
853#else
854         (somMethodProc *) ((void*) &getPageCountStubs) },
855#endif
856    {    &LuDocumentClassData.getPageSize,
857         &somId_getPageSize,
858         &somDI_getPageSize,
859         (somMethodProc *) getPageSize,
860         (somMethodProc *)((void*)-1),
861#ifdef getPageSize_somApRdDefault
862         0},
863#else
864         (somMethodProc *) ((void*) &getPageSizeStubs) },
865#endif
866    {    &LuDocumentClassData.renderPageToPixbuf,
867         &somId_renderPageToPixbuf,
868         &somDI_renderPageToPixbuf,
869         (somMethodProc *) renderPageToPixbuf,
870         (somMethodProc *)((void*)-1),
871#ifdef renderPageToPixbuf_somApRdDefault
872         0},
873#else
874         (somMethodProc *) ((void*) &renderPageToPixbufStubs) },
875#endif
876    {    &LuDocumentClassData.isAsynchRenderingSupported,
877         &somId_isAsynchRenderingSupported,
878         &somDI_isAsynchRenderingSupported,
879         (somMethodProc *) isAsynchRenderingSupported,
880         (somMethodProc *)((void*)-1),
881#ifdef isAsynchRenderingSupported_somApRdDefault
882         0},
883#else
884         (somMethodProc *) ((void*) &isAsynchRenderingSupportedStubs) },
885#endif
886    {    &LuDocumentClassData.renderPageToPixbufAsynch,
887         &somId_renderPageToPixbufAsynch,
888         &somDI_renderPageToPixbufAsynch,
889         (somMethodProc *) renderPageToPixbufAsynch,
890         (somMethodProc *)((void*)-1),
891#ifdef renderPageToPixbufAsynch_somApRdDefault
892         0},
893#else
894         (somMethodProc *) ((void*) &renderPageToPixbufAsynchStubs) },
895#endif
896    {    &LuDocumentClassData.isRenderIntoPS,
897         &somId_isRenderIntoPS,
898         &somDI_isRenderIntoPS,
899         (somMethodProc *) isRenderIntoPS,
900         (somMethodProc *)((void*)-1),
901#ifdef isRenderIntoPS_somApRdDefault
902         0},
903#else
904         (somMethodProc *) ((void*) &isRenderIntoPSStubs) },
905#endif
906    {    &LuDocumentClassData.renderPageToPS,
907         &somId_renderPageToPS,
908         &somDI_renderPageToPS,
909         (somMethodProc *) renderPageToPS,
910         (somMethodProc *)((void*)-1),
911#ifdef renderPageToPS_somApRdDefault
912         0},
913#else
914         (somMethodProc *) ((void*) &renderPageToPSStubs) },
915#endif
916    {    &LuDocumentClassData.isHaveText,
917         &somId_isHaveText,
918         &somDI_isHaveText,
919         (somMethodProc *) isHaveText,
920         (somMethodProc *)((void*)-1),
921#ifdef isHaveText_somApRdDefault
922         0},
923#else
924         (somMethodProc *) ((void*) &isHaveTextStubs) },
925#endif
926    {    &LuDocumentClassData.getSelectionRectangles,
927         &somId_getSelectionRectangles,
928         &somDI_getSelectionRectangles,
929         (somMethodProc *) getSelectionRectangles,
930         (somMethodProc *)((void*)-1),
931#ifdef getSelectionRectangles_somApRdDefault
932         0},
933#else
934         (somMethodProc *) ((void*) &getSelectionRectanglesStubs) },
935#endif
936    {    &LuDocumentClassData.getText,
937         &somId_getText,
938         &somDI_getText,
939         (somMethodProc *) getText,
940         (somMethodProc *)((void*)-1),
941#ifdef getText_somApRdDefault
942         0},
943#else
944         (somMethodProc *) ((void*) &getTextStubs) },
945#endif
946    {    &LuDocumentClassData.isHaveLinks,
947         &somId_isHaveLinks,
948         &somDI_isHaveLinks,
949         (somMethodProc *) isHaveLinks,
950         (somMethodProc *)((void*)-1),
951#ifdef isHaveLinks_somApRdDefault
952         0},
953#else
954         (somMethodProc *) ((void*) &isHaveLinksStubs) },
955#endif
956    {    &LuDocumentClassData.getLinkMapping,
957         &somId_getLinkMapping,
958         &somDI_getLinkMapping,
959         (somMethodProc *) getLinkMapping,
960         (somMethodProc *)((void*)-1),
961#ifdef getLinkMapping_somApRdDefault
962         0},
963#else
964         (somMethodProc *) ((void*) &getLinkMappingStubs) },
965#endif
966    {    &LuDocumentClassData.isSaveable,
967         &somId_isSaveable,
968         &somDI_isSaveable,
969         (somMethodProc *) isSaveable,
970         (somMethodProc *)((void*)-1),
971#ifdef isSaveable_somApRdDefault
972         0},
973#else
974         (somMethodProc *) ((void*) &isSaveableStubs) },
975#endif
976    {    &LuDocumentClassData.saveAs,
977         &somId_saveAs,
978         &somDI_saveAs,
979         (somMethodProc *) saveAs,
980         (somMethodProc *)((void*)-1),
981#ifdef saveAs_somApRdDefault
982         0},
983#else
984         (somMethodProc *) ((void*) &saveAsStubs) },
985#endif
986    {    &LuDocumentClassData.isPostScriptExportable,
987         &somId_isPostScriptExportable,
988         &somDI_isPostScriptExportable,
989         (somMethodProc *) isPostScriptExportable,
990         (somMethodProc *)((void*)-1),
991#ifdef isPostScriptExportable_somApRdDefault
992         0},
993#else
994         (somMethodProc *) ((void*) &isPostScriptExportableStubs) },
995#endif
996    {    &LuDocumentClassData.exportToPostScript,
997         &somId_exportToPostScript,
998         &somDI_exportToPostScript,
999         (somMethodProc *) exportToPostScript,
1000         (somMethodProc *)((void*)-1),
1001#ifdef exportToPostScript_somApRdDefault
1002         0},
1003#else
1004         (somMethodProc *) ((void*) &exportToPostScriptStubs) },
1005#endif
1006    {    &LuDocumentClassData.isHaveFontInfo,
1007         &somId_isHaveFontInfo,
1008         &somDI_isHaveFontInfo,
1009         (somMethodProc *) isHaveFontInfo,
1010         (somMethodProc *)((void*)-1),
1011#ifdef isHaveFontInfo_somApRdDefault
1012         0},
1013#else
1014         (somMethodProc *) ((void*) &isHaveFontInfoStubs) },
1015#endif
1016    {    &LuDocumentClassData.getFontInfo,
1017         &somId_getFontInfo,
1018         &somDI_getFontInfo,
1019         (somMethodProc *) getFontInfo,
1020         (somMethodProc *)((void*)-1),
1021#ifdef getFontInfo_somApRdDefault
1022         0},
1023#else
1024         (somMethodProc *) ((void*) &getFontInfoStubs) },
1025#endif
1026    {    &LuDocumentClassData.isHaveIndex,
1027         &somId_isHaveIndex,
1028         &somDI_isHaveIndex,
1029         (somMethodProc *) isHaveIndex,
1030         (somMethodProc *)((void*)-1),
1031#ifdef isHaveIndex_somApRdDefault
1032         0},
1033#else
1034         (somMethodProc *) ((void*) &isHaveIndexStubs) },
1035#endif
1036    {    &LuDocumentClassData.getIndex,
1037         &somId_getIndex,
1038         &somDI_getIndex,
1039         (somMethodProc *) getIndex,
1040         (somMethodProc *)((void*)-1),
1041#ifdef getIndex_somApRdDefault
1042         0},
1043#else
1044         (somMethodProc *) ((void*) &getIndexStubs) },
1045#endif
1046    {    &LuDocumentClassData.getDocumentInfo,
1047         &somId_getDocumentInfo,
1048         &somDI_getDocumentInfo,
1049         (somMethodProc *) getDocumentInfo,
1050         (somMethodProc *)((void*)-1),
1051#ifdef getDocumentInfo_somApRdDefault
1052         0},
1053#else
1054         (somMethodProc *) ((void*) &getDocumentInfoStubs) },
1055#endif
1056    {    &LuDocumentClassData.getThumbnailSize,
1057         &somId_getThumbnailSize,
1058         &somDI_getThumbnailSize,
1059         (somMethodProc *) getThumbnailSize,
1060         (somMethodProc *)((void*)-1),
1061#ifdef getThumbnailSize_somApRdDefault
1062         0},
1063#else
1064         (somMethodProc *) ((void*) &getThumbnailSizeStubs) },
1065#endif
1066    {    &LuDocumentClassData.getThumbnail,
1067         &somId_getThumbnail,
1068         &somDI_getThumbnail,
1069         (somMethodProc *) getThumbnail,
1070         (somMethodProc *)((void*)-1),
1071#ifdef getThumbnail_somApRdDefault
1072         0},
1073#else
1074         (somMethodProc *) ((void*) &getThumbnailStubs) },
1075#endif
1076    {    &LuDocumentClassData.searchText,
1077         &somId_searchText,
1078         &somDI_searchText,
1079         (somMethodProc *) searchText,
1080         (somMethodProc *)((void*)-1),
1081#ifdef searchText_somApRdDefault
1082         0},
1083#else
1084         (somMethodProc *) ((void*) &searchTextStubs) },
1085#endif
1086    {    &LuDocumentClassData.isCreateFileThumbnail,
1087         &somId_isCreateFileThumbnail,
1088         &somDI_isCreateFileThumbnail,
1089         (somMethodProc *) isCreateFileThumbnail,
1090         (somMethodProc *)((void*)-1),
1091#ifdef isCreateFileThumbnail_somApRdDefault
1092         0},
1093#else
1094         (somMethodProc *) ((void*) &isCreateFileThumbnailStubs) },
1095#endif
1096};
1097
1098
1099/*
1100 * Declare the Override Methods table.
1101 */
1102static somOverrideMethod_t LuDocumentOM[] = {
1103    {    &somId_LuDocumentsomDefaultInit,
1104         (somMethodProc *) somDefaultInit  },
1105};
1106
1107
1108/*
1109 *  class Ids
1110 */
1111static char * somCN_LuDocument = "LuDocument";
1112static char * somPCN_LuDocument_SOMObject = "SOMObject";
1113
1114static somId somPCLuDocument[] = {
1115    &somPCN_LuDocument_SOMObject,
1116};
1117
1118static somProcMethods_t LuDocumentPM[] = {
1119    (somMethodProc **)&LuDocumentClassData.freeRectangles,
1120    (somMethodProc *) freeRectangles,
1121    (somMethodProc **)&LuDocumentClassData.freeLinkMapping,
1122    (somMethodProc *) freeLinkMapping,
1123    (somMethodProc **)&LuDocumentClassData.freeFontInfo,
1124    (somMethodProc *) freeFontInfo,
1125    (somMethodProc **)&LuDocumentClassData.freeDocumentInfo,
1126    (somMethodProc *) freeDocumentInfo};
1127
1128static somStaticClassInfo LuDocumentSCI = {
1129    4, 30, 1, 0, 4, 0, /* layout version 4 */
1130    LuDocument_MajorVersion, LuDocument_MinorVersion,
1131    0, LuDocument_MaxNoMethods, 1,
1132    &somCN_LuDocument,
1133    (somId) NULL, 1,
1134    somPCLuDocument,
1135    (somClassDataStructure *) &LuDocumentClassData,
1136    (somCClassDataStructure *) &LuDocumentCClassData,
1137    LuDocumentSM, LuDocumentOM,
1138    (char *) NULL,
1139    (somNonInternalData_t *) NULL,
1140   LuDocumentPM,
1141    (somVarargsFuncs_t *) NULL,
1142    (somTP_somClassInitFunc *) NULL,
1143    0, /* type code alignment */
1144    -1, /* use parents as DirectInitClasses */
1145    0, /* no explicit DirectInitClasses */
1146    0, /* number of general methods */
1147    (somMethods_t *) NULL,
1148    0, /* no public data offset */
1149    0, /* no sci development level check */
1150    0, /* number of SelectInheritedMethods */
1151    0, /* no SelectInheritedMethods */
1152    34, /* number of classdata entries */
1153    0, /* no list provided currently */
1154    0, /* number of migrated methods */
1155    0, /* no migrated method implementations */
1156    0, /* number of initializers */
1157    0, /* no initializers */
1158    0, /* not DTS a class */
1159    0, /* no dynamically computed info */
1160};
1161
1162
1163/*
1164 * Class Creation and Initialization
1165 */
1166
1167SOMClass * SOMLINK LuDocumentNewClass (integer4 somtmajorVersion,
1168                integer4 somtminorVersion)
1169{
1170    SOMClass *result;
1171    if (_LuDocument && _LuDocument->somCheckVersion(somtmajorVersion, somtminorVersion))
1172          return ((SOMClass*)((void*)_LuDocument));
1173    SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion);   /* static reference */
1174    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuDocumentSCI, somtmajorVersion, somtminorVersion));
1175    return result;
1176}
1177
1178/*
1179 * Functions for attributes.
1180 */
1181
1182/*
1183 * Macros for initializer/destructor entry/exit
1184 */
1185#define LuDocument_BeginInitializer_somDefaultInit \
1186   if (!ctrl) { \
1187      ctrl = &globalCtrl; \
1188      memcpy(ctrl,&(((somParentMtabStructPtr)LuDocumentCClassData.parentMtab)->initCtrl),sizeof(somInitCtrl)); \
1189   } \
1190   myMask = ctrl->mask; \
1191   ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
1192   ctrl->mask += 1;
1193
1194/*
1195 * Ancestor_Init/DeInit Macros
1196 */
1197
1198/* ...for SOMObject */
1199#define LuDocument_Init_SOMObject_somDefaultInit(somSelf, ctrl) \
1200        if (myMask[0]&1) \
1201        /* special case SOMObject */\
1202        ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info));
1203
1204#endif /* Primary Implementation Support */
1205
1206#endif       /* SOM_LuDocument_xih */
Note: See TracBrowser for help on using the repository browser.