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