Ignore:
Timestamp:
Nov 11, 2006, 9:39:04 AM (14 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/ludjvu/ludjvu.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
     
    153154  #define _exportToPostScript somSelf->exportToPostScript
    154155  #define _isFixedImage somSelf->isFixedImage
     156  #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail
    155157  #define _somDefaultInit somSelf->somDefaultInit
    156158  #define _somDestruct somSelf->somDestruct
     
    729731#define LuDjvuDocument_parents_isFixedImage(somSelf,ev) (\
    730732   LuDjvuDocument_parent_LuDocument_isFixedImage(somSelf,ev))
     733
     734/*
     735 * Overridden method: isCreateFileThumbnail
     736 */
     737SOM_Scope boolean  SOMLINK isCreateFileThumbnail(LuDjvuDocument *somSelf, Environment *ev);
     738static char *somMN_LuDjvuDocumentisCreateFileThumbnail = "LuDocument::isCreateFileThumbnail";
     739static somId somId_LuDjvuDocumentisCreateFileThumbnail = &somMN_LuDjvuDocumentisCreateFileThumbnail;
     740#ifdef somId_isCreateFileThumbnail
     741#undef somId_isCreateFileThumbnail
     742#else
     743#define somId_isCreateFileThumbnail somId_LuDjvuDocumentisCreateFileThumbnail
     744#endif
     745typedef boolean   SOMLINK somTP_xih_LuDjvuDocument_isCreateFileThumbnail(LuDjvuDocument *somSelf, Environment *ev);
     746typedef somTP_xih_LuDjvuDocument_isCreateFileThumbnail *somTD_xih_LuDjvuDocument_isCreateFileThumbnail;
     747/* define the parent method call macro */
     748static somMethodProc* LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail_resolved;
     749#define LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail(somSelf,ev) \
     750  ((( somTD_xih_LuDjvuDocument_isCreateFileThumbnail ) \
     751      LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail_resolved) \
     752        (somSelf,ev))
     753/* define a variety of (possibly ambiguous) short forms */
     754#ifndef SOMGD_pmc_parent_isCreateFileThumbnail
     755  #ifdef parent_isCreateFileThumbnail
     756    #define SOMGD_pmc_parent_isCreateFileThumbnail
     757    #undef parent_isCreateFileThumbnail
     758  #else
     759#define parent_isCreateFileThumbnail LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail
     760  #endif
     761#endif
     762#ifndef SOMGD_pmc_parent_LuDocument_isCreateFileThumbnail
     763  #ifdef parent_LuDocument_isCreateFileThumbnail
     764    #define SOMGD_pmc_parent_LuDocument_isCreateFileThumbnail
     765    #undef parent_LuDocument_isCreateFileThumbnail
     766  #else
     767    #define parent_LuDocument_isCreateFileThumbnail LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail
     768  #endif
     769#endif
     770#define LuDjvuDocument_parents_isCreateFileThumbnail(somSelf,ev) (\
     771   LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail(somSelf,ev))
    731772
    732773/*
     
    792833    {    &somId_LuDjvuDocumentisFixedImage,
    793834         (somMethodProc *) isFixedImage  },
     835    {    &somId_LuDjvuDocumentisCreateFileThumbnail,
     836         (somMethodProc *) isCreateFileThumbnail  },
    794837    {    &somId_LuDjvuDocumentsomDefaultInit,
    795838         (somMethodProc *) somDefaultInit  },
     
    810853
    811854static somStaticClassInfo LuDjvuDocumentSCI = {
    812     4, 0, 15, 0, 0, 0, /* layout version 4 */
     855    4, 0, 16, 0, 0, 0, /* layout version 4 */
    813856    LuDjvuDocument_MajorVersion, LuDjvuDocument_MinorVersion,
    814857    sizeof(LuDjvuDocumentData), LuDjvuDocument_MaxNoMethods, 1,
     
    856899    LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion);        /* static reference */
    857900    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuDjvuDocumentSCI, somtmajorVersion, somtminorVersion));
     901    LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail_resolved =
     902        somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.isCreateFileThumbnail);
    858903    LuDjvuDocument_parent_LuDocument_isFixedImage_resolved =
    859904        somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.isFixedImage);
Note: See TracChangeset for help on using the changeset viewer.