Ignore:
Timestamp:
Jul 26, 2006, 3:02:50 PM (15 years ago)
Author:
Eugene Romanenko
Message:

UI improvements, save files, ability to compile plugins with gcc, saveAs for djvu plugin, djvu plugin compiled with gcc, get rid of ddjvuapi.dll

File:
1 edited

Legend:

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

    r61 r88  
    147147  #define _getThumbnailSize somSelf->getThumbnailSize
    148148  #define _getThumbnail somSelf->getThumbnail
     149  #define _isSaveable somSelf->isSaveable
     150  #define _saveAs somSelf->saveAs
    149151  #define _somDefaultInit somSelf->somDefaultInit
    150152  #define _somDestruct somSelf->somDestruct
     
    514516#define LuDjvuDocument_parents_getThumbnail(somSelf,ev,pagenum,suggested_width) (\
    515517   LuDjvuDocument_parent_LuDocument_getThumbnail(somSelf,ev,pagenum,suggested_width))
     518
     519/*
     520 * Overridden method: isSaveable
     521 */
     522SOM_Scope boolean  SOMLINK isSaveable(LuDjvuDocument *somSelf, Environment *ev);
     523static char *somMN_LuDjvuDocumentisSaveable = "LuDocument::isSaveable";
     524static somId somId_LuDjvuDocumentisSaveable = &somMN_LuDjvuDocumentisSaveable;
     525#ifdef somId_isSaveable
     526#undef somId_isSaveable
     527#else
     528#define somId_isSaveable somId_LuDjvuDocumentisSaveable
     529#endif
     530typedef boolean   SOMLINK somTP_xih_LuDjvuDocument_isSaveable(LuDjvuDocument *somSelf, Environment *ev);
     531typedef somTP_xih_LuDjvuDocument_isSaveable *somTD_xih_LuDjvuDocument_isSaveable;
     532/* define the parent method call macro */
     533static somMethodProc* LuDjvuDocument_parent_LuDocument_isSaveable_resolved;
     534#define LuDjvuDocument_parent_LuDocument_isSaveable(somSelf,ev) \
     535  ((( somTD_xih_LuDjvuDocument_isSaveable ) \
     536      LuDjvuDocument_parent_LuDocument_isSaveable_resolved) \
     537        (somSelf,ev))
     538/* define a variety of (possibly ambiguous) short forms */
     539#ifndef SOMGD_pmc_parent_isSaveable
     540  #ifdef parent_isSaveable
     541    #define SOMGD_pmc_parent_isSaveable
     542    #undef parent_isSaveable
     543  #else
     544#define parent_isSaveable LuDjvuDocument_parent_LuDocument_isSaveable
     545  #endif
     546#endif
     547#ifndef SOMGD_pmc_parent_LuDocument_isSaveable
     548  #ifdef parent_LuDocument_isSaveable
     549    #define SOMGD_pmc_parent_LuDocument_isSaveable
     550    #undef parent_LuDocument_isSaveable
     551  #else
     552    #define parent_LuDocument_isSaveable LuDjvuDocument_parent_LuDocument_isSaveable
     553  #endif
     554#endif
     555#define LuDjvuDocument_parents_isSaveable(somSelf,ev) (\
     556   LuDjvuDocument_parent_LuDocument_isSaveable(somSelf,ev))
     557
     558/*
     559 * Overridden method: saveAs
     560 */
     561SOM_Scope boolean  SOMLINK saveAs(LuDjvuDocument *somSelf, Environment *ev,
     562                string filename);
     563static char *somMN_LuDjvuDocumentsaveAs = "LuDocument::saveAs";
     564static somId somId_LuDjvuDocumentsaveAs = &somMN_LuDjvuDocumentsaveAs;
     565#ifdef somId_saveAs
     566#undef somId_saveAs
     567#else
     568#define somId_saveAs somId_LuDjvuDocumentsaveAs
     569#endif
     570typedef boolean   SOMLINK somTP_xih_LuDjvuDocument_saveAs(LuDjvuDocument *somSelf, Environment *ev,
     571                string filename);
     572typedef somTP_xih_LuDjvuDocument_saveAs *somTD_xih_LuDjvuDocument_saveAs;
     573/* define the parent method call macro */
     574static somMethodProc* LuDjvuDocument_parent_LuDocument_saveAs_resolved;
     575#define LuDjvuDocument_parent_LuDocument_saveAs(somSelf,ev,filename) \
     576  ((( somTD_xih_LuDjvuDocument_saveAs ) \
     577      LuDjvuDocument_parent_LuDocument_saveAs_resolved) \
     578        (somSelf,ev,filename))
     579/* define a variety of (possibly ambiguous) short forms */
     580#ifndef SOMGD_pmc_parent_saveAs
     581  #ifdef parent_saveAs
     582    #define SOMGD_pmc_parent_saveAs
     583    #undef parent_saveAs
     584  #else
     585#define parent_saveAs LuDjvuDocument_parent_LuDocument_saveAs
     586  #endif
     587#endif
     588#ifndef SOMGD_pmc_parent_LuDocument_saveAs
     589  #ifdef parent_LuDocument_saveAs
     590    #define SOMGD_pmc_parent_LuDocument_saveAs
     591    #undef parent_LuDocument_saveAs
     592  #else
     593    #define parent_LuDocument_saveAs LuDjvuDocument_parent_LuDocument_saveAs
     594  #endif
     595#endif
     596#define LuDjvuDocument_parents_saveAs(somSelf,ev,filename) (\
     597   LuDjvuDocument_parent_LuDocument_saveAs(somSelf,ev,filename))
    516598
    517599/*
     
    567649    {    &somId_LuDjvuDocumentgetThumbnail,
    568650         (somMethodProc *) getThumbnail  },
     651    {    &somId_LuDjvuDocumentisSaveable,
     652         (somMethodProc *) isSaveable  },
     653    {    &somId_LuDjvuDocumentsaveAs,
     654         (somMethodProc *) saveAs  },
    569655    {    &somId_LuDjvuDocumentsomDefaultInit,
    570656         (somMethodProc *) somDefaultInit  },
     
    585671
    586672static somStaticClassInfo LuDjvuDocumentSCI = {
    587     4, 0, 10, 0, 0, 0, /* layout version 4 */
     673    4, 0, 12, 0, 0, 0, /* layout version 4 */
    588674    LuDjvuDocument_MajorVersion, LuDjvuDocument_MinorVersion,
    589675    sizeof(LuDjvuDocumentData), LuDjvuDocument_MaxNoMethods, 1,
     
    631717    LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion);        /* static reference */
    632718    result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuDjvuDocumentSCI, somtmajorVersion, somtminorVersion));
     719    LuDjvuDocument_parent_LuDocument_saveAs_resolved =
     720        somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.saveAs);
     721    LuDjvuDocument_parent_LuDocument_isSaveable_resolved =
     722        somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.isSaveable);
    633723    LuDjvuDocument_parent_LuDocument_getThumbnail_resolved =
    634724        somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.getThumbnail);
Note: See TracChangeset for help on using the changeset viewer.