source: trunk/Lucide/SOURCE/plugins/lujpeg/lujpeg.xih @ 27

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

poppler updated to version 0.5.2, also needed changes to be compatible with new poppler

File size: 20.4 KB
Line 
1
2/*
3 * This file was generated by the SOM Compiler.
4 * FileName: lujpeg.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_LuJpegDocument_xih
18#define SOM_LuJpegDocument_xih
19
20#include <somcls.xh>
21#include <somcm.xh>
22
23#ifndef SOM_LuJpegDocument_xh
24#include <lujpeg.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 LuJpegDocument_MaxNoMethods 0
35
36/*
37 * -- Instance Data
38 */
39typedef struct {
40        void* data;
41} LuJpegDocumentData;
42
43/*
44 * -- Getdata Macro
45 */
46
47/*
48 * -- This emitter treats Data Tokens as Thunks by default.
49 * -- Use the sc modifier "nothunks" to override this default.
50 */
51typedef LuJpegDocumentData* (SOMLINK * somTD_LuJpegDocument_DataThunk)(void*);
52#define LuJpegDocumentGetData(somSelf) \
53   (((somTD_LuJpegDocument_DataThunk)(LuJpegDocumentCClassData.instanceDataToken))(somSelf))
54
55/*
56 * -- Instance Data Access Macros for use in Method Procedures
57 */
58#ifdef VARIABLE_MACROS
59  #define _data (somThis->data)
60#endif
61
62
63/*
64 * -- Primary Implementation File Support
65 */
66#if (defined(LuJpegDocument_Class_Source) || defined(SOM_Module_lujpeg_Source))
67
68/*
69 * Trace/Debug macro
70 */
71#ifndef LuJpegDocumentMethodDebug
72   #define LuJpegDocumentMethodDebug(c,m) SOMMethodDebug(c,m)
73#endif
74
75/*
76 * -- Method Macros for use in Method Procedures
77 */
78#ifdef METHOD_MACROS
79  #define _loadFile somSelf->loadFile
80  #define _getBpp somSelf->getBpp
81  #define _isScalable somSelf->isScalable
82  #define _isRotable somSelf->isRotable
83  #define _getPageCount somSelf->getPageCount
84  #define _getPageSize somSelf->getPageSize
85  #define _renderPageToPixbuf somSelf->renderPageToPixbuf
86  #define _isAsynchRenderingSupported somSelf->isAsynchRenderingSupported
87  #define _renderPageToPixbufAsynch somSelf->renderPageToPixbufAsynch
88  #define _isHaveText somSelf->isHaveText
89  #define _getSelectionRectangles somSelf->getSelectionRectangles
90  #define _freeRectangles somSelf->freeRectangles
91  #define _getText somSelf->getText
92  #define _isHaveLinks somSelf->isHaveLinks
93  #define _getLinkMapping somSelf->getLinkMapping
94  #define _freeLinkMapping somSelf->freeLinkMapping
95  #define _isSaveable somSelf->isSaveable
96  #define _saveAs somSelf->saveAs
97  #define _isPSExportable somSelf->isPSExportable
98  #define _exportToPS somSelf->exportToPS
99  #define _isHaveFontInfo somSelf->isHaveFontInfo
100  #define _getFontInfo somSelf->getFontInfo
101  #define _freeFontInfo somSelf->freeFontInfo
102  #define _isHaveIndex somSelf->isHaveIndex
103  #define _getIndex somSelf->getIndex
104  #define _getDocumentInfo somSelf->getDocumentInfo
105  #define _freeDocumentInfo somSelf->freeDocumentInfo
106  #define _getThumbnailSize somSelf->getThumbnailSize
107  #define _getThumbnail somSelf->getThumbnail
108  #define _searchText somSelf->searchText
109  #define _somDefaultInit somSelf->somDefaultInit
110  #define _somDestruct somSelf->somDestruct
111  #define _somDefaultCopyInit somSelf->somDefaultCopyInit
112  #define _somDefaultAssign somSelf->somDefaultAssign
113  #define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
114  #define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
115  #define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
116  #define _somDefaultConstAssign somSelf->somDefaultConstAssign
117  #define _somDefaultVAssign somSelf->somDefaultVAssign
118  #define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
119  #define _somInit somSelf->somInit
120  #define _somFree somSelf->somFree
121  #define _somUninit somSelf->somUninit
122  #define _somGetClass somSelf->somGetClass
123  #define _somGetClassName somSelf->somGetClassName
124  #define _somGetSize somSelf->somGetSize
125  #define _somIsA somSelf->somIsA
126  #define _somIsInstanceOf somSelf->somIsInstanceOf
127  #define _somRespondsTo somSelf->somRespondsTo
128  #define _somDispatch somSelf->somDispatch
129  #define _somClassDispatch somSelf->somClassDispatch
130  #define _somCastObj somSelf->somCastObj
131  #define _somResetObj somSelf->somResetObj
132  #define _somDispatchV somSelf->somDispatchV
133  #define _somDispatchL somSelf->somDispatchL
134  #define _somDispatchA somSelf->somDispatchA
135  #define _somDispatchD somSelf->somDispatchD
136  #define _somPrintSelf somSelf->somPrintSelf
137  #define _somDumpSelf somSelf->somDumpSelf
138  #define _somDumpSelfInt somSelf->somDumpSelfInt
139  #define _loadFile somSelf->loadFile
140  #define _getBpp somSelf->getBpp
141  #define _getPageCount somSelf->getPageCount
142  #define _getPageSize somSelf->getPageSize
143  #define _renderPageToPixbuf somSelf->renderPageToPixbuf
144  #define _somDefaultInit somSelf->somDefaultInit
145  #define _somDestruct somSelf->somDestruct
146#endif
147
148
149/*
150 * -- The LuJpegDocument ClassData Structure
151 */
152SOMEXTERN struct LuJpegDocumentClassDataStructure SOMDLINK LuJpegDocumentClassData = {(SOMClass *) NULL};
153
154/*
155 * -- The auxiliary LuJpegDocument ClassData structure
156 */
157SOMEXTERN struct LuJpegDocumentCClassDataStructure SOMDLINK LuJpegDocumentCClassData = {(somMethodTabs) NULL};
158
159
160/*
161 * Overridden method: loadFile
162 */
163SOM_Scope boolean  SOMLINK loadFile(LuJpegDocument *somSelf, Environment *ev,
164                string filename,
165                string password,
166                string* error);
167static char *somMN_LuJpegDocumentloadFile = "LuDocument::loadFile";
168static somId somId_LuJpegDocumentloadFile = &somMN_LuJpegDocumentloadFile;
169#ifdef somId_loadFile
170#undef somId_loadFile
171#else
172#define somId_loadFile somId_LuJpegDocumentloadFile
173#endif
174typedef boolean   SOMLINK somTP_xih_LuJpegDocument_loadFile(LuJpegDocument *somSelf, Environment *ev,
175                string filename,
176                string password,
177                string* error);
178typedef somTP_xih_LuJpegDocument_loadFile *somTD_xih_LuJpegDocument_loadFile;
179/* define the parent method call macro */
180static somMethodProc* LuJpegDocument_parent_LuDocument_loadFile_resolved;
181#define LuJpegDocument_parent_LuDocument_loadFile(somSelf,ev,filename,password,error) \
182  ((( somTD_xih_LuJpegDocument_loadFile ) \
183      LuJpegDocument_parent_LuDocument_loadFile_resolved) \
184        (somSelf,ev,filename,password,error))
185/* define a variety of (possibly ambiguous) short forms */
186#ifndef SOMGD_pmc_parent_loadFile
187  #ifdef parent_loadFile
188    #define SOMGD_pmc_parent_loadFile
189    #undef parent_loadFile
190  #else
191#define parent_loadFile LuJpegDocument_parent_LuDocument_loadFile
192  #endif
193#endif
194#ifndef SOMGD_pmc_parent_LuDocument_loadFile
195  #ifdef parent_LuDocument_loadFile
196    #define SOMGD_pmc_parent_LuDocument_loadFile
197    #undef parent_LuDocument_loadFile
198  #else
199    #define parent_LuDocument_loadFile LuJpegDocument_parent_LuDocument_loadFile
200  #endif
201#endif
202#define LuJpegDocument_parents_loadFile(somSelf,ev,filename,password,error) (\
203   LuJpegDocument_parent_LuDocument_loadFile(somSelf,ev,filename,password,error))
204
205/*
206 * Overridden method: getBpp
207 */
208SOM_Scope short  SOMLINK getBpp(LuJpegDocument *somSelf, Environment *ev);
209static char *somMN_LuJpegDocumentgetBpp = "LuDocument::getBpp";
210static somId somId_LuJpegDocumentgetBpp = &somMN_LuJpegDocumentgetBpp;
211#ifdef somId_getBpp
212#undef somId_getBpp
213#else
214#define somId_getBpp somId_LuJpegDocumentgetBpp
215#endif
216typedef short   SOMLINK somTP_xih_LuJpegDocument_getBpp(LuJpegDocument *somSelf, Environment *ev);
217typedef somTP_xih_LuJpegDocument_getBpp *somTD_xih_LuJpegDocument_getBpp;
218/* define the parent method call macro */
219static somMethodProc* LuJpegDocument_parent_LuDocument_getBpp_resolved;
220#define LuJpegDocument_parent_LuDocument_getBpp(somSelf,ev) \
221  ((( somTD_xih_LuJpegDocument_getBpp ) \
222      LuJpegDocument_parent_LuDocument_getBpp_resolved) \
223        (somSelf,ev))
224/* define a variety of (possibly ambiguous) short forms */
225#ifndef SOMGD_pmc_parent_getBpp
226  #ifdef parent_getBpp
227    #define SOMGD_pmc_parent_getBpp
228    #undef parent_getBpp
229  #else
230#define parent_getBpp LuJpegDocument_parent_LuDocument_getBpp
231  #endif
232#endif
233#ifndef SOMGD_pmc_parent_LuDocument_getBpp
234  #ifdef parent_LuDocument_getBpp
235    #define SOMGD_pmc_parent_LuDocument_getBpp
236    #undef parent_LuDocument_getBpp
237  #else
238    #define parent_LuDocument_getBpp LuJpegDocument_parent_LuDocument_getBpp
239  #endif
240#endif
241#define LuJpegDocument_parents_getBpp(somSelf,ev) (\
242   LuJpegDocument_parent_LuDocument_getBpp(somSelf,ev))
243
244/*
245 * Overridden method: getPageCount
246 */
247SOM_Scope long  SOMLINK getPageCount(LuJpegDocument *somSelf, Environment *ev);
248static char *somMN_LuJpegDocumentgetPageCount = "LuDocument::getPageCount";
249static somId somId_LuJpegDocumentgetPageCount = &somMN_LuJpegDocumentgetPageCount;
250#ifdef somId_getPageCount
251#undef somId_getPageCount
252#else
253#define somId_getPageCount somId_LuJpegDocumentgetPageCount
254#endif
255typedef long   SOMLINK somTP_xih_LuJpegDocument_getPageCount(LuJpegDocument *somSelf, Environment *ev);
256typedef somTP_xih_LuJpegDocument_getPageCount *somTD_xih_LuJpegDocument_getPageCount;
257/* define the parent method call macro */
258static somMethodProc* LuJpegDocument_parent_LuDocument_getPageCount_resolved;
259#define LuJpegDocument_parent_LuDocument_getPageCount(somSelf,ev) \
260  ((( somTD_xih_LuJpegDocument_getPageCount ) \
261      LuJpegDocument_parent_LuDocument_getPageCount_resolved) \
262        (somSelf,ev))
263/* define a variety of (possibly ambiguous) short forms */
264#ifndef SOMGD_pmc_parent_getPageCount
265  #ifdef parent_getPageCount
266    #define SOMGD_pmc_parent_getPageCount
267    #undef parent_getPageCount
268  #else
269#define parent_getPageCount LuJpegDocument_parent_LuDocument_getPageCount
270  #endif
271#endif
272#ifndef SOMGD_pmc_parent_LuDocument_getPageCount
273  #ifdef parent_LuDocument_getPageCount
274    #define SOMGD_pmc_parent_LuDocument_getPageCount
275    #undef parent_LuDocument_getPageCount
276  #else
277    #define parent_LuDocument_getPageCount LuJpegDocument_parent_LuDocument_getPageCount
278  #endif
279#endif
280#define LuJpegDocument_parents_getPageCount(somSelf,ev) (\
281   LuJpegDocument_parent_LuDocument_getPageCount(somSelf,ev))
282
283/*
284 * Overridden method: getPageSize
285 */
286SOM_Scope void  SOMLINK getPageSize(LuJpegDocument *somSelf, Environment *ev,
287                long pagenum,
288                double* width,
289                double* height);
290static char *somMN_LuJpegDocumentgetPageSize = "LuDocument::getPageSize";
291static somId somId_LuJpegDocumentgetPageSize = &somMN_LuJpegDocumentgetPageSize;
292#ifdef somId_getPageSize
293#undef somId_getPageSize
294#else
295#define somId_getPageSize somId_LuJpegDocumentgetPageSize
296#endif
297typedef void   SOMLINK somTP_xih_LuJpegDocument_getPageSize(LuJpegDocument *somSelf, Environment *ev,
298                long pagenum,
299                double* width,
300                double* height);
301typedef somTP_xih_LuJpegDocument_getPageSize *somTD_xih_LuJpegDocument_getPageSize;
302/* define the parent method call macro */
303static somMethodProc* LuJpegDocument_parent_LuDocument_getPageSize_resolved;
304#define LuJpegDocument_parent_LuDocument_getPageSize(somSelf,ev,pagenum,width,height) \
305  ((( somTD_xih_LuJpegDocument_getPageSize ) \
306      LuJpegDocument_parent_LuDocument_getPageSize_resolved) \
307        (somSelf,ev,pagenum,width,height))
308/* define a variety of (possibly ambiguous) short forms */
309#ifndef SOMGD_pmc_parent_getPageSize
310  #ifdef parent_getPageSize
311    #define SOMGD_pmc_parent_getPageSize
312    #undef parent_getPageSize
313  #else
314#define parent_getPageSize LuJpegDocument_parent_LuDocument_getPageSize
315  #endif
316#endif
317#ifndef SOMGD_pmc_parent_LuDocument_getPageSize
318  #ifdef parent_LuDocument_getPageSize
319    #define SOMGD_pmc_parent_LuDocument_getPageSize
320    #undef parent_LuDocument_getPageSize
321  #else
322    #define parent_LuDocument_getPageSize LuJpegDocument_parent_LuDocument_getPageSize
323  #endif
324#endif
325#define LuJpegDocument_parents_getPageSize(somSelf,ev,pagenum,width,height) (\
326   LuJpegDocument_parent_LuDocument_getPageSize(somSelf,ev,pagenum,width,height))
327
328/*
329 * Overridden method: renderPageToPixbuf
330 */
331SOM_Scope void  SOMLINK renderPageToPixbuf(LuJpegDocument *somSelf, Environment *ev,
332                long pagenum,
333                long src_x,
334                long src_y,
335                long src_width,
336                long src_height,
337                double scale,
338                long rotation,
339                LuPixbuf* pixbuf);
340static char *somMN_LuJpegDocumentrenderPageToPixbuf = "LuDocument::renderPageToPixbuf";
341static somId somId_LuJpegDocumentrenderPageToPixbuf = &somMN_LuJpegDocumentrenderPageToPixbuf;
342#ifdef somId_renderPageToPixbuf
343#undef somId_renderPageToPixbuf
344#else
345#define somId_renderPageToPixbuf somId_LuJpegDocumentrenderPageToPixbuf
346#endif
347typedef void   SOMLINK somTP_xih_LuJpegDocument_renderPageToPixbuf(LuJpegDocument *somSelf, Environment *ev,
348                long pagenum,
349                long src_x,
350                long src_y,
351                long src_width,
352                long src_height,
353                double scale,
354                long rotation,
355                LuPixbuf* pixbuf);
356typedef somTP_xih_LuJpegDocument_renderPageToPixbuf *somTD_xih_LuJpegDocument_renderPageToPixbuf;
357/* define the parent method call macro */
358static somMethodProc* LuJpegDocument_parent_LuDocument_renderPageToPixbuf_resolved;
359#define LuJpegDocument_parent_LuDocument_renderPageToPixbuf(somSelf,ev,pagenum,src_x,src_y,src_width,src_height,scale,rotation,pixbuf) \
360  ((( somTD_xih_LuJpegDocument_renderPageToPixbuf ) \
361      LuJpegDocument_parent_LuDocument_renderPageToPixbuf_resolved) \
362        (somSelf,ev,pagenum,src_x,src_y,src_width,src_height,scale,rotation,pixbuf))
363/* define a variety of (possibly ambiguous) short forms */
364#ifndef SOMGD_pmc_parent_renderPageToPixbuf
365  #ifdef parent_renderPageToPixbuf
366    #define SOMGD_pmc_parent_renderPageToPixbuf
367    #undef parent_renderPageToPixbuf
368  #else
369#define parent_renderPageToPixbuf LuJpegDocument_parent_LuDocument_renderPageToPixbuf
370  #endif
371#endif
372#ifndef SOMGD_pmc_parent_LuDocument_renderPageToPixbuf
373  #ifdef parent_LuDocument_renderPageToPixbuf
374    #define SOMGD_pmc_parent_LuDocument_renderPageToPixbuf
375    #undef parent_LuDocument_renderPageToPixbuf
376  #else
377    #define parent_LuDocument_renderPageToPixbuf LuJpegDocument_parent_LuDocument_renderPageToPixbuf
378  #endif
379#endif
380#define LuJpegDocument_parents_renderPageToPixbuf(somSelf,ev,pagenum,src_x,src_y,src_width,src_height,scale,rotation,pixbuf) (\
381   LuJpegDocument_parent_LuDocument_renderPageToPixbuf(somSelf,ev,pagenum,src_x,src_y,src_width,src_height,scale,rotation,pixbuf))
382
383/*
384 * Overridden method: somDefaultInit
385 */
386SOM_Scope void  SOMLINK somDefaultInit(LuJpegDocument *somSelf,
387                som3InitCtrl* ctrl);
388static char *somMN_LuJpegDocumentsomDefaultInit = "SOMObject::somDefaultInit";
389static somId somId_LuJpegDocumentsomDefaultInit = &somMN_LuJpegDocumentsomDefaultInit;
390#ifdef somId_somDefaultInit
391#undef somId_somDefaultInit
392#else
393#define somId_somDefaultInit somId_LuJpegDocumentsomDefaultInit
394#endif
395
396/*
397 * Overridden method: somDestruct
398 */
399SOM_Scope void  SOMLINK somDestruct(LuJpegDocument *somSelf,
400                octet doFree,
401                som3DestructCtrl* ctrl);
402static char *somMN_LuJpegDocumentsomDestruct = "SOMObject::somDestruct";
403static somId somId_LuJpegDocumentsomDestruct = &somMN_LuJpegDocumentsomDestruct;
404#ifdef somId_somDestruct
405#undef somId_somDestruct
406#else
407#define somId_somDestruct somId_LuJpegDocumentsomDestruct
408#endif
409
410/*
411 * -- Routines and Structures to create the class object
412 */
413
414
415/*
416 * Declare the Override Methods table.
417 */
418static somOverrideMethod_t LuJpegDocumentOM[] = {
419    {    &somId_LuJpegDocumentloadFile,
420         (somMethodProc *) loadFile  },
421    {    &somId_LuJpegDocumentgetBpp,
422         (somMethodProc *) getBpp  },
423    {    &somId_LuJpegDocumentgetPageCount,
424         (somMethodProc *) getPageCount  },
425    {    &somId_LuJpegDocumentgetPageSize,
426         (somMethodProc *) getPageSize  },
427    {    &somId_LuJpegDocumentrenderPageToPixbuf,
428         (somMethodProc *) renderPageToPixbuf  },
429    {    &somId_LuJpegDocumentsomDefaultInit,
430         (somMethodProc *) somDefaultInit  },
431    {    &somId_LuJpegDocumentsomDestruct,
432         (somMethodProc *) somDestruct  },
433};
434
435
436/*
437 *  class Ids
438 */
439static char * somCN_LuJpegDocument = "LuJpegDocument";
440static char * somPCN_LuJpegDocument_LuDocument = "LuDocument";
441
442static somId somPCLuJpegDocument[] = {
443    &somPCN_LuJpegDocument_LuDocument,
444};
445
446static somStaticClassInfo LuJpegDocumentSCI = {
447    4, 0, 7, 0, 0, 0, /* layout version 4 */
448    LuJpegDocument_MajorVersion, LuJpegDocument_MinorVersion,
449    sizeof(LuJpegDocumentData), LuJpegDocument_MaxNoMethods, 1,
450    &somCN_LuJpegDocument,
451    (somId) NULL, 1,
452    somPCLuJpegDocument,
453    (somClassDataStructure *) &LuJpegDocumentClassData,
454    (somCClassDataStructure *) &LuJpegDocumentCClassData,
455    (somStaticMethod_t *) NULL, LuJpegDocumentOM,
456    (char *) NULL,
457    (somNonInternalData_t *) NULL,
458   (somProcMethods_t *) NULL,
459    (somVarargsFuncs_t *) NULL,
460    (somTP_somClassInitFunc *) NULL,
461    4, /* type code alignment */
462    -1, /* use parents as DirectInitClasses */
463    0, /* no explicit DirectInitClasses */
464    0, /* number of general methods */
465    (somMethods_t *) NULL,
466    0, /* no public data offset */
467    0, /* no sci development level check */
468    0, /* number of SelectInheritedMethods */
469    0, /* no SelectInheritedMethods */
470    0, /* number of classdata entries */
471    0, /* no list provided currently */
472    0, /* number of migrated methods */
473    0, /* no migrated method implementations */
474    0, /* number of initializers */
475    0, /* no initializers */
476    0, /* not DTS a class */
477    0, /* no dynamically computed info */
478};
479
480
481/*
482 * Class Creation and Initialization
483 */
484
485SOMClass * SOMLINK LuJpegDocumentNewClass (integer4 somtmajorVersion,
486                integer4 somtminorVersion)
487{
488    SOMClass *result;
489    if (_LuJpegDocument && _LuJpegDocument->somCheckVersion(somtmajorVersion, somtminorVersion))
490          return ((SOMClass*)((void*)_LuJpegDocument));
491    LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion);        /* static reference */
492    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuJpegDocumentSCI, somtmajorVersion, somtminorVersion));
493    LuJpegDocument_parent_LuDocument_renderPageToPixbuf_resolved =
494        somParentNumResolve(LuJpegDocumentCClassData.parentMtab, 1, LuDocumentClassData.renderPageToPixbuf);
495    LuJpegDocument_parent_LuDocument_getPageSize_resolved =
496        somParentNumResolve(LuJpegDocumentCClassData.parentMtab, 1, LuDocumentClassData.getPageSize);
497    LuJpegDocument_parent_LuDocument_getPageCount_resolved =
498        somParentNumResolve(LuJpegDocumentCClassData.parentMtab, 1, LuDocumentClassData.getPageCount);
499    LuJpegDocument_parent_LuDocument_getBpp_resolved =
500        somParentNumResolve(LuJpegDocumentCClassData.parentMtab, 1, LuDocumentClassData.getBpp);
501    LuJpegDocument_parent_LuDocument_loadFile_resolved =
502        somParentNumResolve(LuJpegDocumentCClassData.parentMtab, 1, LuDocumentClassData.loadFile);
503    return result;
504}
505
506/*
507 * Functions for attributes.
508 */
509
510/*
511 * Macros for initializer/destructor entry/exit
512 */
513#define LuJpegDocument_BeginInitializer_somDefaultInit \
514   if (!ctrl) { \
515      ctrl = &globalCtrl; \
516      memcpy(ctrl,&(((somParentMtabStructPtr)LuJpegDocumentCClassData.parentMtab)->initCtrl),sizeof(somInitCtrl)); \
517   } \
518   myMask = ctrl->mask; \
519   somThis = (LuJpegDocumentData*)((char*)somSelf + ctrl->info->dataOffset);\
520   ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
521   ctrl->mask += 1;
522#define LuJpegDocument_BeginDestructor \
523   if (!ctrl) { \
524      ctrl = &globalCtrl; \
525      memcpy(ctrl,&(((somParentMtabStructPtr)LuJpegDocumentCClassData.parentMtab)->destructCtrl),sizeof(somDestructCtrl)); \
526   } \
527   somThis = (LuJpegDocumentData*)((char*)somSelf + ctrl->info->dataOffset);\
528   myMask = ctrl->mask;
529#define LuJpegDocument_EndDestructor \
530   ctrl->info = (somDestructInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
531   ctrl->mask += 1; \
532   LuJpegDocument_DeInit_LuDocument_somDestruct(somSelf,0,ctrl); \
533   if (doFree) _LuJpegDocument->somDeallocate((string)somSelf);
534
535/*
536 * Ancestor_Init/DeInit Macros
537 */
538
539/* ...for LuDocument */
540#define LuJpegDocument_Init_LuDocument_somDefaultInit(somSelf, ctrl) \
541        if (myMask[0]&1) \
542           ((somTD_SOMObject_somDefaultInit) \
543               ctrl->info->defaultInit) \
544                   ((SOMObject *)((void *) somSelf), ctrl)
545#define LuJpegDocument_DeInit_LuDocument_somDestruct(somSelf, doFree, ctrl) \
546        if (myMask[0]&1) \
547           ((somTD_SOMObject_somDestruct) \
548               ctrl->info->defaultDestruct) \
549                   ((SOMObject *)((void *) somSelf), 0, ctrl)
550
551#endif /* Primary Implementation Support */
552
553#endif       /* SOM_LuJpegDocument_xih */
Note: See TracBrowser for help on using the repository browser.