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

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

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

File size: 15.2 KB
Line 
1
2/*
3 * This file was generated by the SOM Compiler.
4 * FileName: lupixbuf.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_LuPixbuf_xih
18#define SOM_LuPixbuf_xih
19
20#include <somcls.xh>
21#include <somcm.xh>
22
23#ifndef SOM_LuPixbuf_xh
24#include <lupixbuf.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 LuPixbuf_MaxNoMethods 8
35
36/*
37 * -- Instance Data
38 */
39typedef struct {
40        long width;
41        long height;
42        short bpp;
43        long dlen;
44        long rowsize;
45        void* data;
46} LuPixbufData;
47
48/*
49 * -- Getdata Macro
50 */
51
52/*
53 * -- This emitter treats Data Tokens as Thunks by default.
54 * -- Use the sc modifier "nothunks" to override this default.
55 */
56typedef LuPixbufData* (SOMLINK * somTD_LuPixbuf_DataThunk)(void*);
57#define LuPixbufGetData(somSelf) \
58   (((somTD_LuPixbuf_DataThunk)(LuPixbufCClassData.instanceDataToken))(somSelf))
59
60/*
61 * -- Instance Data Access Macros for use in Method Procedures
62 */
63#ifdef VARIABLE_MACROS
64  #define _width (somThis->width)
65  #define _height (somThis->height)
66  #define _bpp (somThis->bpp)
67  #define _dlen (somThis->dlen)
68  #define _rowsize (somThis->rowsize)
69  #define _data (somThis->data)
70#endif
71
72
73/*
74 * -- Primary Implementation File Support
75 */
76#if (defined(LuPixbuf_Class_Source) || defined(SOM_Module_lupixbuf_Source))
77
78/*
79 * Trace/Debug macro
80 */
81#ifndef LuPixbufMethodDebug
82   #define LuPixbufMethodDebug(c,m) SOMMethodDebug(c,m)
83#endif
84
85/*
86 * -- Method Macros for use in Method Procedures
87 */
88#ifdef METHOD_MACROS
89  #define _somDefaultInit somSelf->somDefaultInit
90  #define _somDestruct somSelf->somDestruct
91  #define _somDefaultCopyInit somSelf->somDefaultCopyInit
92  #define _somDefaultAssign somSelf->somDefaultAssign
93  #define _somDefaultConstCopyInit somSelf->somDefaultConstCopyInit
94  #define _somDefaultVCopyInit somSelf->somDefaultVCopyInit
95  #define _somDefaultConstVCopyInit somSelf->somDefaultConstVCopyInit
96  #define _somDefaultConstAssign somSelf->somDefaultConstAssign
97  #define _somDefaultVAssign somSelf->somDefaultVAssign
98  #define _somDefaultConstVAssign somSelf->somDefaultConstVAssign
99  #define _somInit somSelf->somInit
100  #define _somFree somSelf->somFree
101  #define _somUninit somSelf->somUninit
102  #define _somGetClass somSelf->somGetClass
103  #define _somGetClassName somSelf->somGetClassName
104  #define _somGetSize somSelf->somGetSize
105  #define _somIsA somSelf->somIsA
106  #define _somIsInstanceOf somSelf->somIsInstanceOf
107  #define _somRespondsTo somSelf->somRespondsTo
108  #define _somDispatch somSelf->somDispatch
109  #define _somClassDispatch somSelf->somClassDispatch
110  #define _somCastObj somSelf->somCastObj
111  #define _somResetObj somSelf->somResetObj
112  #define _somDispatchV somSelf->somDispatchV
113  #define _somDispatchL somSelf->somDispatchL
114  #define _somDispatchA somSelf->somDispatchA
115  #define _somDispatchD somSelf->somDispatchD
116  #define _somPrintSelf somSelf->somPrintSelf
117  #define _somDumpSelf somSelf->somDumpSelf
118  #define _somDumpSelfInt somSelf->somDumpSelfInt
119  #define _LuPixbufInit somSelf->LuPixbufInit
120  #define _getWidth somSelf->getWidth
121  #define _getHeight somSelf->getHeight
122  #define _getBpp somSelf->getBpp
123  #define _getRowSize somSelf->getRowSize
124  #define _getDataLen somSelf->getDataLen
125  #define _getDataPtr somSelf->getDataPtr
126  #define _putAt somSelf->putAt
127  #define _somDestruct somSelf->somDestruct
128#endif
129
130
131/*
132 * -- The LuPixbuf ClassData Structure
133 */
134SOMEXTERN struct LuPixbufClassDataStructure SOMDLINK LuPixbufClassData = {(SOMClass *) NULL};
135
136/*
137 * -- The auxiliary LuPixbuf ClassData structure
138 */
139SOMEXTERN struct LuPixbufCClassDataStructure SOMDLINK LuPixbufCClassData = {(somMethodTabs) NULL};
140
141
142/*
143 * New Method: LuPixbufInit
144 */
145SOM_Scope void  SOMLINK LuPixbufInit(LuPixbuf *somSelf, Environment *ev,
146                somInitCtrl* ctrl,
147                long w,
148                long h,
149                short bpp);
150#ifndef somMN_LuPixbufInit_defined
151#define somMN_LuPixbufInit_defined
152static char *somMN_LuPixbufInit = "LuPixbufInit";
153static somId somId_LuPixbufInit = &somMN_LuPixbufInit;
154#endif  /* somMN_LuPixbufInit_defined */
155#ifndef somDS_LuPixbufInit_defined
156#define somDS_LuPixbufInit_defined
157static char *somDS_LuPixbufInit = "::LuPixbuf::LuPixbufInit";
158static somId somDI_LuPixbufInit = &somDS_LuPixbufInit;
159#endif  /* somDS_LuPixbufInit_defined */
160
161static somMethodInfo LuPixbufInitMethodInfo = {0, 24, 0};
162
163static somApRdInfo LuPixbufInitStubs = {0, 0, &LuPixbufInitMethodInfo};
164
165/*
166 * New Method: getWidth
167 */
168SOM_Scope long  SOMLINK getWidth(LuPixbuf *somSelf, Environment *ev);
169#ifndef somMN_getWidth_defined
170#define somMN_getWidth_defined
171static char *somMN_getWidth = "getWidth";
172static somId somId_getWidth = &somMN_getWidth;
173#endif  /* somMN_getWidth_defined */
174#ifndef somDS_getWidth_defined
175#define somDS_getWidth_defined
176static char *somDS_getWidth = "::LuPixbuf::getWidth";
177static somId somDI_getWidth = &somDS_getWidth;
178#endif  /* somDS_getWidth_defined */
179#define getWidth_somApRdDefault
180
181/*
182 * New Method: getHeight
183 */
184SOM_Scope long  SOMLINK getHeight(LuPixbuf *somSelf, Environment *ev);
185#ifndef somMN_getHeight_defined
186#define somMN_getHeight_defined
187static char *somMN_getHeight = "getHeight";
188static somId somId_getHeight = &somMN_getHeight;
189#endif  /* somMN_getHeight_defined */
190#ifndef somDS_getHeight_defined
191#define somDS_getHeight_defined
192static char *somDS_getHeight = "::LuPixbuf::getHeight";
193static somId somDI_getHeight = &somDS_getHeight;
194#endif  /* somDS_getHeight_defined */
195#define getHeight_somApRdDefault
196
197/*
198 * New Method: getBpp
199 */
200SOM_Scope short  SOMLINK getBpp(LuPixbuf *somSelf, Environment *ev);
201#ifndef somMN_getBpp_defined
202#define somMN_getBpp_defined
203static char *somMN_getBpp = "getBpp";
204static somId somId_getBpp = &somMN_getBpp;
205#endif  /* somMN_getBpp_defined */
206#ifndef somDS_getBpp_defined
207#define somDS_getBpp_defined
208static char *somDS_getBpp = "::LuPixbuf::getBpp";
209static somId somDI_getBpp = &somDS_getBpp;
210#endif  /* somDS_getBpp_defined */
211
212static somMethodInfo getBppMethodInfo = {12, 8, 0};
213
214static somApRdInfo getBppStubs = {0, 0, &getBppMethodInfo};
215
216/*
217 * New Method: getRowSize
218 */
219SOM_Scope long  SOMLINK getRowSize(LuPixbuf *somSelf, Environment *ev);
220#ifndef somMN_getRowSize_defined
221#define somMN_getRowSize_defined
222static char *somMN_getRowSize = "getRowSize";
223static somId somId_getRowSize = &somMN_getRowSize;
224#endif  /* somMN_getRowSize_defined */
225#ifndef somDS_getRowSize_defined
226#define somDS_getRowSize_defined
227static char *somDS_getRowSize = "::LuPixbuf::getRowSize";
228static somId somDI_getRowSize = &somDS_getRowSize;
229#endif  /* somDS_getRowSize_defined */
230#define getRowSize_somApRdDefault
231
232/*
233 * New Method: getDataLen
234 */
235SOM_Scope long  SOMLINK getDataLen(LuPixbuf *somSelf, Environment *ev);
236#ifndef somMN_getDataLen_defined
237#define somMN_getDataLen_defined
238static char *somMN_getDataLen = "getDataLen";
239static somId somId_getDataLen = &somMN_getDataLen;
240#endif  /* somMN_getDataLen_defined */
241#ifndef somDS_getDataLen_defined
242#define somDS_getDataLen_defined
243static char *somDS_getDataLen = "::LuPixbuf::getDataLen";
244static somId somDI_getDataLen = &somDS_getDataLen;
245#endif  /* somDS_getDataLen_defined */
246#define getDataLen_somApRdDefault
247
248/*
249 * New Method: getDataPtr
250 */
251SOM_Scope void*  SOMLINK getDataPtr(LuPixbuf *somSelf, Environment *ev);
252#ifndef somMN_getDataPtr_defined
253#define somMN_getDataPtr_defined
254static char *somMN_getDataPtr = "getDataPtr";
255static somId somId_getDataPtr = &somMN_getDataPtr;
256#endif  /* somMN_getDataPtr_defined */
257#ifndef somDS_getDataPtr_defined
258#define somDS_getDataPtr_defined
259static char *somDS_getDataPtr = "::LuPixbuf::getDataPtr";
260static somId somDI_getDataPtr = &somDS_getDataPtr;
261#endif  /* somDS_getDataPtr_defined */
262#define getDataPtr_somApRdDefault
263
264/*
265 * New Method: putAt
266 */
267SOM_Scope void  SOMLINK putAt(LuPixbuf *somSelf, Environment *ev,
268                LuPixbuf* p,
269                long x,
270                long y);
271#ifndef somMN_putAt_defined
272#define somMN_putAt_defined
273static char *somMN_putAt = "putAt";
274static somId somId_putAt = &somMN_putAt;
275#endif  /* somMN_putAt_defined */
276#ifndef somDS_putAt_defined
277#define somDS_putAt_defined
278static char *somDS_putAt = "::LuPixbuf::putAt";
279static somId somDI_putAt = &somDS_putAt;
280#endif  /* somDS_putAt_defined */
281#define putAt_somApRdDefault
282
283/*
284 * Overridden method: somDestruct
285 */
286SOM_Scope void  SOMLINK somDestruct(LuPixbuf *somSelf,
287                octet doFree,
288                som3DestructCtrl* ctrl);
289static char *somMN_LuPixbufsomDestruct = "SOMObject::somDestruct";
290static somId somId_LuPixbufsomDestruct = &somMN_LuPixbufsomDestruct;
291#ifdef somId_somDestruct
292#undef somId_somDestruct
293#else
294#define somId_somDestruct somId_LuPixbufsomDestruct
295#endif
296
297/*
298 * -- Routines and Structures to create the class object
299 */
300
301
302/*
303 * Declare the Static Methods table.
304 */
305static somStaticMethod_t LuPixbufSM[] = {
306    {    &LuPixbufClassData.LuPixbufInit,
307         &somId_LuPixbufInit,
308         &somDI_LuPixbufInit,
309         (somMethodProc *) LuPixbufInit,
310         (somMethodProc *)((void*)-1),
311#ifdef LuPixbufInit_somApRdDefault
312         0},
313#else
314         (somMethodProc *) ((void*) &LuPixbufInitStubs) },
315#endif
316    {    &LuPixbufClassData.getWidth,
317         &somId_getWidth,
318         &somDI_getWidth,
319         (somMethodProc *) getWidth,
320         (somMethodProc *)((void*)-1),
321#ifdef getWidth_somApRdDefault
322         0},
323#else
324         (somMethodProc *) ((void*) &getWidthStubs) },
325#endif
326    {    &LuPixbufClassData.getHeight,
327         &somId_getHeight,
328         &somDI_getHeight,
329         (somMethodProc *) getHeight,
330         (somMethodProc *)((void*)-1),
331#ifdef getHeight_somApRdDefault
332         0},
333#else
334         (somMethodProc *) ((void*) &getHeightStubs) },
335#endif
336    {    &LuPixbufClassData.getBpp,
337         &somId_getBpp,
338         &somDI_getBpp,
339         (somMethodProc *) getBpp,
340         (somMethodProc *)((void*)-1),
341#ifdef getBpp_somApRdDefault
342         0},
343#else
344         (somMethodProc *) ((void*) &getBppStubs) },
345#endif
346    {    &LuPixbufClassData.getRowSize,
347         &somId_getRowSize,
348         &somDI_getRowSize,
349         (somMethodProc *) getRowSize,
350         (somMethodProc *)((void*)-1),
351#ifdef getRowSize_somApRdDefault
352         0},
353#else
354         (somMethodProc *) ((void*) &getRowSizeStubs) },
355#endif
356    {    &LuPixbufClassData.getDataLen,
357         &somId_getDataLen,
358         &somDI_getDataLen,
359         (somMethodProc *) getDataLen,
360         (somMethodProc *)((void*)-1),
361#ifdef getDataLen_somApRdDefault
362         0},
363#else
364         (somMethodProc *) ((void*) &getDataLenStubs) },
365#endif
366    {    &LuPixbufClassData.getDataPtr,
367         &somId_getDataPtr,
368         &somDI_getDataPtr,
369         (somMethodProc *) getDataPtr,
370         (somMethodProc *)((void*)-1),
371#ifdef getDataPtr_somApRdDefault
372         0},
373#else
374         (somMethodProc *) ((void*) &getDataPtrStubs) },
375#endif
376    {    &LuPixbufClassData.putAt,
377         &somId_putAt,
378         &somDI_putAt,
379         (somMethodProc *) putAt,
380         (somMethodProc *)((void*)-1),
381#ifdef putAt_somApRdDefault
382         0},
383#else
384         (somMethodProc *) ((void*) &putAtStubs) },
385#endif
386};
387
388
389/*
390 * Declare the Override Methods table.
391 */
392static somOverrideMethod_t LuPixbufOM[] = {
393    {    &somId_LuPixbufsomDestruct,
394         (somMethodProc *) somDestruct  },
395};
396
397
398/*
399 *  class Ids
400 */
401static char * somCN_LuPixbuf = "LuPixbuf";
402static char * somPCN_LuPixbuf_SOMObject = "SOMObject";
403
404static somId somPCLuPixbuf[] = {
405    &somPCN_LuPixbuf_SOMObject,
406};
407
408static somId somINITLuPixbuf[] = {
409    &somMN_LuPixbufInit,
410};
411
412static somStaticClassInfo LuPixbufSCI = {
413    4, 8, 1, 0, 0, 0, /* layout version 4 */
414    LuPixbuf_MajorVersion, LuPixbuf_MinorVersion,
415    sizeof(LuPixbufData), LuPixbuf_MaxNoMethods, 1,
416    &somCN_LuPixbuf,
417    (somId) NULL, 1,
418    somPCLuPixbuf,
419    (somClassDataStructure *) &LuPixbufClassData,
420    (somCClassDataStructure *) &LuPixbufCClassData,
421    LuPixbufSM, LuPixbufOM,
422    (char *) NULL,
423    (somNonInternalData_t *) NULL,
424   (somProcMethods_t *) NULL,
425    (somVarargsFuncs_t *) NULL,
426    (somTP_somClassInitFunc *) NULL,
427    4, /* type code alignment */
428    -1, /* use parents as DirectInitClasses */
429    0, /* no explicit DirectInitClasses */
430    0, /* number of general methods */
431    (somMethods_t *) NULL,
432    0, /* no public data offset */
433    0, /* no sci development level check */
434    0, /* number of SelectInheritedMethods */
435    0, /* no SelectInheritedMethods */
436    8, /* number of classdata entries */
437    0, /* no list provided currently */
438    0, /* number of migrated methods */
439    0, /* no migrated method implementations */
440    1, /* number of initializers */
441    somINITLuPixbuf, /* initializers */
442    0, /* not DTS a class */
443    0, /* no dynamically computed info */
444};
445
446
447/*
448 * Class Creation and Initialization
449 */
450
451SOMClass * SOMLINK LuPixbufNewClass (integer4 somtmajorVersion,
452                integer4 somtminorVersion)
453{
454    SOMClass *result;
455    if (_LuPixbuf && _LuPixbuf->somCheckVersion(somtmajorVersion, somtminorVersion))
456          return ((SOMClass*)((void*)_LuPixbuf));
457    SOMObjectNewClass(SOMObject_MajorVersion,SOMObject_MinorVersion);   /* static reference */
458    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuPixbufSCI, somtmajorVersion, somtminorVersion));
459    return result;
460}
461
462/*
463 * Functions for attributes.
464 */
465
466/*
467 * Macros for initializer/destructor entry/exit
468 */
469#define LuPixbuf_BeginDestructor \
470   if (!ctrl) { \
471      ctrl = &globalCtrl; \
472      memcpy(ctrl,&(((somParentMtabStructPtr)LuPixbufCClassData.parentMtab)->destructCtrl),sizeof(somDestructCtrl)); \
473   } \
474   somThis = (LuPixbufData*)((char*)somSelf + ctrl->info->dataOffset);\
475   myMask = ctrl->mask;
476#define LuPixbuf_EndDestructor \
477   ctrl->info = (somDestructInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
478   ctrl->mask += 1; \
479   LuPixbuf_DeInit_SOMObject_somDestruct(somSelf,0,ctrl); \
480   if (doFree) _LuPixbuf->somDeallocate((string)somSelf);
481#define LuPixbuf_BeginInitializer_LuPixbufInit \
482   if (!ctrl) { \
483      ctrl = &globalCtrl; \
484      memcpy(ctrl,&(((somParentMtabStructPtr)LuPixbufCClassData.parentMtab)->initCtrl),sizeof(somInitCtrl)); \
485   } \
486   myMask = ctrl->mask; \
487   somThis = (LuPixbufData*)((char*)somSelf + ctrl->info->dataOffset);\
488   ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info)); \
489   ctrl->mask += 1;
490
491/*
492 * Ancestor_Init/DeInit Macros
493 */
494
495/* ...for SOMObject */
496#define LuPixbuf_Init_SOMObject_somDefaultInit(somSelf, ctrl) \
497        if (myMask[0]&1) \
498        /* special case SOMObject */\
499        ctrl->info = (somInitInfo*)(ctrl->infoSize + (char*)(ctrl->info));
500#define LuPixbuf_DeInit_SOMObject_somDestruct(somSelf, doFree, ctrl) \
501        if (myMask[0]&1) \
502        /* special case SOMObject */\
503        ctrl->info = (somDestructInfo*)(ctrl->infoSize + (char*)(ctrl->info));
504
505#endif /* Primary Implementation Support */
506
507#endif       /* SOM_LuPixbuf_xih */
Note: See TracBrowser for help on using the repository browser.