Ignore:
Timestamp:
Nov 11, 2006, 9:39:04 AM (15 years ago)
Author:
Eugene Romanenko
Message:

Writes into EA thumbnail of first page of document

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xih

    r123 r153  
    110110  #define _getThumbnail somSelf->getThumbnail
    111111  #define _searchText somSelf->searchText
     112  #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail
    112113  #define _somDefaultInit somSelf->somDefaultInit
    113114  #define _somDestruct somSelf->somDestruct
     
    167168  #define _searchText somSelf->searchText
    168169  #define _isFixedImage somSelf->isFixedImage
     170  #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail
    169171  #define _somDefaultInit somSelf->somDefaultInit
    170172  #define _somDestruct somSelf->somDestruct
     
    13271329#define LuPopplerDocument_parents_isFixedImage(somSelf,ev) (\
    13281330   LuPopplerDocument_parent_LuDocument_isFixedImage(somSelf,ev))
     1331
     1332/*
     1333 * Overridden method: isCreateFileThumbnail
     1334 */
     1335SOM_Scope boolean  SOMLINK isCreateFileThumbnail(LuPopplerDocument *somSelf, Environment *ev);
     1336static char *somMN_LuPopplerDocumentisCreateFileThumbnail = "LuDocument::isCreateFileThumbnail";
     1337static somId somId_LuPopplerDocumentisCreateFileThumbnail = &somMN_LuPopplerDocumentisCreateFileThumbnail;
     1338#ifdef somId_isCreateFileThumbnail
     1339#undef somId_isCreateFileThumbnail
     1340#else
     1341#define somId_isCreateFileThumbnail somId_LuPopplerDocumentisCreateFileThumbnail
     1342#endif
     1343typedef boolean   SOMLINK somTP_xih_LuPopplerDocument_isCreateFileThumbnail(LuPopplerDocument *somSelf, Environment *ev);
     1344typedef somTP_xih_LuPopplerDocument_isCreateFileThumbnail *somTD_xih_LuPopplerDocument_isCreateFileThumbnail;
     1345/* define the parent method call macro */
     1346static somMethodProc* LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail_resolved;
     1347#define LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail(somSelf,ev) \
     1348  ((( somTD_xih_LuPopplerDocument_isCreateFileThumbnail ) \
     1349      LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail_resolved) \
     1350        (somSelf,ev))
     1351/* define a variety of (possibly ambiguous) short forms */
     1352#ifndef SOMGD_pmc_parent_isCreateFileThumbnail
     1353  #ifdef parent_isCreateFileThumbnail
     1354    #define SOMGD_pmc_parent_isCreateFileThumbnail
     1355    #undef parent_isCreateFileThumbnail
     1356  #else
     1357#define parent_isCreateFileThumbnail LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail
     1358  #endif
     1359#endif
     1360#ifndef SOMGD_pmc_parent_LuDocument_isCreateFileThumbnail
     1361  #ifdef parent_LuDocument_isCreateFileThumbnail
     1362    #define SOMGD_pmc_parent_LuDocument_isCreateFileThumbnail
     1363    #undef parent_LuDocument_isCreateFileThumbnail
     1364  #else
     1365    #define parent_LuDocument_isCreateFileThumbnail LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail
     1366  #endif
     1367#endif
     1368#define LuPopplerDocument_parents_isCreateFileThumbnail(somSelf,ev) (\
     1369   LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail(somSelf,ev))
    13291370
    13301371/*
     
    14181459    {    &somId_LuPopplerDocumentisFixedImage,
    14191460         (somMethodProc *) isFixedImage  },
     1461    {    &somId_LuPopplerDocumentisCreateFileThumbnail,
     1462         (somMethodProc *) isCreateFileThumbnail  },
    14201463    {    &somId_LuPopplerDocumentsomDefaultInit,
    14211464         (somMethodProc *) somDefaultInit  },
     
    14361479
    14371480static somStaticClassInfo LuPopplerDocumentSCI = {
    1438     4, 0, 29, 0, 0, 0, /* layout version 4 */
     1481    4, 0, 30, 0, 0, 0, /* layout version 4 */
    14391482    LuPopplerDocument_MajorVersion, LuPopplerDocument_MinorVersion,
    14401483    sizeof(LuPopplerDocumentData), LuPopplerDocument_MaxNoMethods, 1,
     
    14821525    LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion);        /* static reference */
    14831526    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuPopplerDocumentSCI, somtmajorVersion, somtminorVersion));
     1527    LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail_resolved =
     1528        somParentNumResolve(LuPopplerDocumentCClassData.parentMtab, 1, LuDocumentClassData.isCreateFileThumbnail);
    14841529    LuPopplerDocument_parent_LuDocument_isFixedImage_resolved =
    14851530        somParentNumResolve(LuPopplerDocumentCClassData.parentMtab, 1, LuDocumentClassData.isFixedImage);
Note: See TracChangeset for help on using the changeset viewer.