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

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

more comments, new method isFixedImage(), fixed keyboard selection of printer in printer dialog

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 duplex,
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, 44, &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 * Overridden method: somDefaultInit
757 */
758SOM_Scope void  SOMLINK somDefaultInit(LuDocument *somSelf,
759                som3InitCtrl* ctrl);
760static char *somMN_LuDocumentsomDefaultInit = "SOMObject::somDefaultInit";
761static somId somId_LuDocumentsomDefaultInit = &somMN_LuDocumentsomDefaultInit;
762#ifdef somId_somDefaultInit
763#undef somId_somDefaultInit
764#else
765#define somId_somDefaultInit somId_LuDocumentsomDefaultInit
766#endif
767
768/*
769 * -- Routines and Structures to create the class object
770 */
771
772
773/*
774 * Declare the Static Methods table.
775 */
776static somStaticMethod_t LuDocumentSM[] = {
777    {    &LuDocumentClassData.loadFile,
778         &somId_loadFile,
779         &somDI_loadFile,
780         (somMethodProc *) loadFile,
781         (somMethodProc *)((void*)-1),
782#ifdef loadFile_somApRdDefault
783         0},
784#else
785         (somMethodProc *) ((void*) &loadFileStubs) },
786#endif
787    {    &LuDocumentClassData.getBpp,
788         &somId_getBpp,
789         &somDI_getBpp,
790         (somMethodProc *) getBpp,
791         (somMethodProc *)((void*)-1),
792#ifdef getBpp_somApRdDefault
793         0},
794#else
795         (somMethodProc *) ((void*) &getBppStubs) },
796#endif
797    {    &LuDocumentClassData.isScalable,
798         &somId_isScalable,
799         &somDI_isScalable,
800         (somMethodProc *) isScalable,
801         (somMethodProc *)((void*)-1),
802#ifdef isScalable_somApRdDefault
803         0},
804#else
805         (somMethodProc *) ((void*) &isScalableStubs) },
806#endif
807    {    &LuDocumentClassData.isFixedImage,
808         &somId_isFixedImage,
809         &somDI_isFixedImage,
810         (somMethodProc *) isFixedImage,
811         (somMethodProc *)((void*)-1),
812#ifdef isFixedImage_somApRdDefault
813         0},
814#else
815         (somMethodProc *) ((void*) &isFixedImageStubs) },
816#endif
817    {    &LuDocumentClassData.isRotable,
818         &somId_isRotable,
819         &somDI_isRotable,
820         (somMethodProc *) isRotable,
821         (somMethodProc *)((void*)-1),
822#ifdef isRotable_somApRdDefault
823         0},
824#else
825         (somMethodProc *) ((void*) &isRotableStubs) },
826#endif
827    {    &LuDocumentClassData.getPageCount,
828         &somId_getPageCount,
829         &somDI_getPageCount,
830         (somMethodProc *) getPageCount,
831         (somMethodProc *)((void*)-1),
832#ifdef getPageCount_somApRdDefault
833         0},
834#else
835         (somMethodProc *) ((void*) &getPageCountStubs) },
836#endif
837    {    &LuDocumentClassData.getPageSize,
838         &somId_getPageSize,
839         &somDI_getPageSize,
840         (somMethodProc *) getPageSize,
841         (somMethodProc *)((void*)-1),
842#ifdef getPageSize_somApRdDefault
843         0},
844#else
845         (somMethodProc *) ((void*) &getPageSizeStubs) },
846#endif
847    {    &LuDocumentClassData.renderPageToPixbuf,
848         &somId_renderPageToPixbuf,
849         &somDI_renderPageToPixbuf,
850         (somMethodProc *) renderPageToPixbuf,
851         (somMethodProc *)((void*)-1),
852#ifdef renderPageToPixbuf_somApRdDefault
853         0},
854#else
855         (somMethodProc *) ((void*) &renderPageToPixbufStubs) },
856#endif
857    {    &LuDocumentClassData.isAsynchRenderingSupported,
858         &somId_isAsynchRenderingSupported,
859         &somDI_isAsynchRenderingSupported,
860         (somMethodProc *) isAsynchRenderingSupported,
861         (somMethodProc *)((void*)-1),
862#ifdef isAsynchRenderingSupported_somApRdDefault
863         0},
864#else
865         (somMethodProc *) ((void*) &isAsynchRenderingSupportedStubs) },
866#endif
867    {    &LuDocumentClassData.renderPageToPixbufAsynch,
868         &somId_renderPageToPixbufAsynch,
869         &somDI_renderPageToPixbufAsynch,
870         (somMethodProc *) renderPageToPixbufAsynch,
871         (somMethodProc *)((void*)-1),
872#ifdef renderPageToPixbufAsynch_somApRdDefault
873         0},
874#else
875         (somMethodProc *) ((void*) &renderPageToPixbufAsynchStubs) },
876#endif
877    {    &LuDocumentClassData.isRenderIntoPS,
878         &somId_isRenderIntoPS,
879         &somDI_isRenderIntoPS,
880         (somMethodProc *) isRenderIntoPS,
881         (somMethodProc *)((void*)-1),
882#ifdef isRenderIntoPS_somApRdDefault
883         0},
884#else
885         (somMethodProc *) ((void*) &isRenderIntoPSStubs) },
886#endif
887    {    &LuDocumentClassData.renderPageToPS,
888         &somId_renderPageToPS,
889         &somDI_renderPageToPS,
890         (somMethodProc *) renderPageToPS,
891         (somMethodProc *)((void*)-1),
892#ifdef renderPageToPS_somApRdDefault
893         0},
894#else
895         (somMethodProc *) ((void*) &renderPageToPSStubs) },
896#endif
897    {    &LuDocumentClassData.isHaveText,
898         &somId_isHaveText,
899         &somDI_isHaveText,
900         (somMethodProc *) isHaveText,
901         (somMethodProc *)((void*)-1),
902#ifdef isHaveText_somApRdDefault
903         0},
904#else
905         (somMethodProc *) ((void*) &isHaveTextStubs) },
906#endif
907    {    &LuDocumentClassData.getSelectionRectangles,
908         &somId_getSelectionRectangles,
909         &somDI_getSelectionRectangles,
910         (somMethodProc *) getSelectionRectangles,
911         (somMethodProc *)((void*)-1),
912#ifdef getSelectionRectangles_somApRdDefault
913         0},
914#else
915         (somMethodProc *) ((void*) &getSelectionRectanglesStubs) },
916#endif
917    {    &LuDocumentClassData.getText,
918         &somId_getText,
919         &somDI_getText,
920         (somMethodProc *) getText,
921         (somMethodProc *)((void*)-1),
922#ifdef getText_somApRdDefault
923         0},
924#else
925         (somMethodProc *) ((void*) &getTextStubs) },
926#endif
927    {    &LuDocumentClassData.isHaveLinks,
928         &somId_isHaveLinks,
929         &somDI_isHaveLinks,
930         (somMethodProc *) isHaveLinks,
931         (somMethodProc *)((void*)-1),
932#ifdef isHaveLinks_somApRdDefault
933         0},
934#else
935         (somMethodProc *) ((void*) &isHaveLinksStubs) },
936#endif
937    {    &LuDocumentClassData.getLinkMapping,
938         &somId_getLinkMapping,
939         &somDI_getLinkMapping,
940         (somMethodProc *) getLinkMapping,
941         (somMethodProc *)((void*)-1),
942#ifdef getLinkMapping_somApRdDefault
943         0},
944#else
945         (somMethodProc *) ((void*) &getLinkMappingStubs) },
946#endif
947    {    &LuDocumentClassData.isSaveable,
948         &somId_isSaveable,
949         &somDI_isSaveable,
950         (somMethodProc *) isSaveable,
951         (somMethodProc *)((void*)-1),
952#ifdef isSaveable_somApRdDefault
953         0},
954#else
955         (somMethodProc *) ((void*) &isSaveableStubs) },
956#endif
957    {    &LuDocumentClassData.saveAs,
958         &somId_saveAs,
959         &somDI_saveAs,
960         (somMethodProc *) saveAs,
961         (somMethodProc *)((void*)-1),
962#ifdef saveAs_somApRdDefault
963         0},
964#else
965         (somMethodProc *) ((void*) &saveAsStubs) },
966#endif
967    {    &LuDocumentClassData.isPostScriptExportable,
968         &somId_isPostScriptExportable,
969         &somDI_isPostScriptExportable,
970         (somMethodProc *) isPostScriptExportable,
971         (somMethodProc *)((void*)-1),
972#ifdef isPostScriptExportable_somApRdDefault
973         0},
974#else
975         (somMethodProc *) ((void*) &isPostScriptExportableStubs) },
976#endif
977    {    &LuDocumentClassData.exportToPostScript,
978         &somId_exportToPostScript,
979         &somDI_exportToPostScript,
980         (somMethodProc *) exportToPostScript,
981         (somMethodProc *)((void*)-1),
982#ifdef exportToPostScript_somApRdDefault
983         0},
984#else
985         (somMethodProc *) ((void*) &exportToPostScriptStubs) },
986#endif
987    {    &LuDocumentClassData.isHaveFontInfo,
988         &somId_isHaveFontInfo,
989         &somDI_isHaveFontInfo,
990         (somMethodProc *) isHaveFontInfo,
991         (somMethodProc *)((void*)-1),
992#ifdef isHaveFontInfo_somApRdDefault
993         0},
994#else
995         (somMethodProc *) ((void*) &isHaveFontInfoStubs) },
996#endif
997    {    &LuDocumentClassData.getFontInfo,
998         &somId_getFontInfo,
999         &somDI_getFontInfo,
1000         (somMethodProc *) getFontInfo,
1001         (somMethodProc *)((void*)-1),
1002#ifdef getFontInfo_somApRdDefault
1003         0},
1004#else
1005         (somMethodProc *) ((void*) &getFontInfoStubs) },
1006#endif
1007    {    &LuDocumentClassData.isHaveIndex,
1008         &somId_isHaveIndex,
1009         &somDI_isHaveIndex,
1010         (somMethodProc *) isHaveIndex,
1011         (somMethodProc *)((void*)-1),
1012#ifdef isHaveIndex_somApRdDefault
1013         0},
1014#else
1015         (somMethodProc *) ((void*) &isHaveIndexStubs) },
1016#endif
1017    {    &LuDocumentClassData.getIndex,
1018         &somId_getIndex,
1019         &somDI_getIndex,
1020         (somMethodProc *) getIndex,
1021         (somMethodProc *)((void*)-1),
1022#ifdef getIndex_somApRdDefault
1023         0},
1024#else
1025         (somMethodProc *) ((void*) &getIndexStubs) },
1026#endif
1027    {    &LuDocumentClassData.getDocumentInfo,
1028         &somId_getDocumentInfo,
1029         &somDI_getDocumentInfo,
1030         (somMethodProc *) getDocumentInfo,
1031         (somMethodProc *)((void*)-1),
1032#ifdef getDocumentInfo_somApRdDefault
1033         0},
1034#else
1035         (somMethodProc *) ((void*) &getDocumentInfoStubs) },
1036#endif
1037    {    &LuDocumentClassData.getThumbnailSize,
1038         &somId_getThumbnailSize,
1039         &somDI_getThumbnailSize,
1040         (somMethodProc *) getThumbnailSize,
1041         (somMethodProc *)((void*)-1),
1042#ifdef getThumbnailSize_somApRdDefault
1043         0},
1044#else
1045         (somMethodProc *) ((void*) &getThumbnailSizeStubs) },
1046#endif
1047    {    &LuDocumentClassData.getThumbnail,
1048         &somId_getThumbnail,
1049         &somDI_getThumbnail,
1050         (somMethodProc *) getThumbnail,
1051         (somMethodProc *)((void*)-1),
1052#ifdef getThumbnail_somApRdDefault
1053         0},
1054#else
1055         (somMethodProc *) ((void*) &getThumbnailStubs) },
1056#endif
1057    {    &LuDocumentClassData.searchText,
1058         &somId_searchText,
1059         &somDI_searchText,
1060         (somMethodProc *) searchText,
1061         (somMethodProc *)((void*)-1),
1062#ifdef searchText_somApRdDefault
1063         0},
1064#else
1065         (somMethodProc *) ((void*) &searchTextStubs) },
1066#endif
1067};
1068
1069
1070/*
1071 * Declare the Override Methods table.
1072 */
1073static somOverrideMethod_t LuDocumentOM[] = {
1074    {    &somId_LuDocumentsomDefaultInit,
1075         (somMethodProc *) somDefaultInit  },
1076};
1077
1078
1079/*
1080 *  class Ids
1081 */
1082static char * somCN_LuDocument = "LuDocument";
1083static char * somPCN_LuDocument_SOMObject = "SOMObject";
1084
1085static somId somPCLuDocument[] = {
1086    &somPCN_LuDocument_SOMObject,
1087};
1088
1089static somProcMethods_t LuDocumentPM[] = {
1090    (somMethodProc **)&LuDocumentClassData.freeRectangles,
1091    (somMethodProc *) freeRectangles,
1092    (somMethodProc **)&LuDocumentClassData.freeLinkMapping,
1093    (somMethodProc *) freeLinkMapping,
1094    (somMethodProc **)&LuDocumentClassData.freeFontInfo,
1095    (somMethodProc *) freeFontInfo,
1096    (somMethodProc **)&LuDocumentClassData.freeDocumentInfo,
1097    (somMethodProc *) freeDocumentInfo};
1098
1099static somStaticClassInfo LuDocumentSCI = {
1100    4, 29, 1, 0, 4, 0, /* layout version 4 */
1101    LuDocument_MajorVersion, LuDocument_MinorVersion,
1102    0, LuDocument_MaxNoMethods, 1,
1103    &somCN_LuDocument,
1104    (somId) NULL, 1,
1105    somPCLuDocument,
1106    (somClassDataStructure *) &LuDocumentClassData,
1107    (somCClassDataStructure *) &LuDocumentCClassData,
1108    LuDocumentSM, LuDocumentOM,
1109    (char *) NULL,
1110    (somNonInternalData_t *) NULL,
1111   LuDocumentPM,
1112    (somVarargsFuncs_t *) NULL,
1113    (somTP_somClassInitFunc *) NULL,
1114    0, /* type code alignment */
1115    -1, /* use parents as DirectInitClasses */
1116    0, /* no explicit DirectInitClasses */
1117    0, /* number of general methods */
1118    (somMethods_t *) NULL,
1119    0, /* no public data offset */
1120    0, /* no sci development level check */
1121    0, /* number of SelectInheritedMethods */
1122    0, /* no SelectInheritedMethods */
1123    33, /* number of classdata entries */
1124    0, /* no list provided currently */
1125    0, /* number of migrated methods */
1126    0, /* no migrated method implementations */
1127    0, /* number of initializers */
1128    0, /* no initializers */
1129    0, /* not DTS a class */
1130    0, /* no dynamically computed info */
1131};
1132
1133
1134/*
1135 * Class Creation and Initialization
1136 */
1137
1138SOMClass * SOMLINK LuDocumentNewClass (integer4 somtmajorVersion,
1139                integer4 somtminorVersion)
1140{
1141    SOMClass *result;
1142    if (_LuDocument && _LuDocument->somCheckVersion(somtmajorVersion, somtminorVersion))
1143          return ((SOMClass*)((void*)_LuDocument));
1144    SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion);   /* static reference */
1145    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuDocumentSCI, somtmajorVersion, somtminorVersion));
1146    return result;
1147}
1148
1149/*
1150 * Functions for attributes.
1151 */
1152
1153/*
1154 * Macros for initializer/destructor entry/exit
1155 */
1156#define LuDocument_BeginInitializer_somDefaultInit \
1157   if (!ctrl) { \
1158      ctrl = &globalCtrl; \
1159      memcpy(ctrl,&(((somParentMtabStructPtr)LuDocumentCClassData.parentMtab)->initCtrl),sizeof(somInitCtrl)); \
1160   } \
1161   myMask = ctrl->mask; \
1162   ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
1163   ctrl->mask += 1;
1164
1165/*
1166 * Ancestor_Init/DeInit Macros
1167 */
1168
1169/* ...for SOMObject */
1170#define LuDocument_Init_SOMObject_somDefaultInit(somSelf, ctrl) \
1171        if (myMask[0]&1) \
1172        /* special case SOMObject */\
1173        ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info));
1174
1175#endif /* Primary Implementation Support */
1176
1177#endif       /* SOM_LuDocument_xih */
Note: See TracBrowser for help on using the repository browser.