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

Last change on this file since 123 was 123, checked in by Eugene Romanenko, 15 years ago

allow printing in descending order (closes #88), small interface fixes (closes #89)

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