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

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

First import

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