Changeset 153
- Timestamp:
- Nov 11, 2006, 9:39:04 AM (14 years ago)
- Location:
- trunk/Lucide
- Files:
-
- 1 added
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Lucide/BIN/Lucide.lng
r136 r153 69 69 MSGS_FILE_LOAD_ERROR=File load error! 70 70 MSGS_LOADING_DOCUMENT=Loading document, please wait... 71 MSGS_CREATING_THUMBNAIL=Creating thumbnail for document, please wait... 71 72 MSGS_WARNING=Warning! 72 73 MSGS_OVERWRITE_FILE=File already exist. Overwrite? -
trunk/Lucide/SOURCE/gui/lucide.cpp
r152 r153 109 109 bool Lucide::docLoaded = false;; 110 110 char *Lucide::loadError = NULL; 111 void *Lucide::thumbnailData = NULL; 112 int Lucide::thumbnailDataLen = 0; 113 111 114 112 115 HMODULE _hmod = NULLHANDLE; … … 337 340 338 341 342 void Lucide::closeDocument() 343 { 344 docViewer->close(); 345 delete doc; 346 doc = NULL; 347 WinSetWindowText( hWndFrame, title ); 348 349 if ( thumbnailData != NULL ) { 350 writeThumbnail( docFullName ); 351 delete thumbnailData; 352 thumbnailData = NULL; 353 thumbnailDataLen = 0; 354 } 355 } 356 339 357 void Lucide::loadthread( void *p ) 340 358 { … … 343 361 344 362 docLoaded = doc->loadFile( ev, docFullName, NULL, &loadError ); 363 if ( docLoaded ) { 364 if ( doc->isCreateFileThumbnail( ev ) && isThumbNeeded( docFullName ) ) { 365 loadProgressDlg->setText( getLocalizedString( MSGS_CREATING_THUMBNAIL ).c_str() ); 366 createThumbnail( doc ); 367 } 368 } 345 369 loadProgressDlg->hide(); 346 370 … … 370 394 else 371 395 { 372 docViewer->close(); 373 delete doc; 374 doc = NULL; 375 WinSetWindowText( hWndFrame, title ); 396 closeDocument(); 376 397 377 398 doc = pluginMan->createDocumentForExt( ext + 1, false ); … … 953 974 WinDestroyWindow( hWndFrame ); 954 975 976 Lucide::closeDocument(); 955 977 delete docViewer; 956 978 delete indexWin; 957 // must be freed _before_ plugin manager 958 delete doc; 979 959 980 // must be freed _after_ document 960 981 delete pluginMan; -
trunk/Lucide/SOURCE/gui/lucide.h
r152 r153 71 71 static void setZoomChecks( SHORT cmd, SHORT cbind, double zoom ); 72 72 static void loadthread( void *p ); 73 74 static void *thumbnailData; 75 static int thumbnailDataLen; 73 76 74 77 public: … … 79 82 80 83 static void openDocument(); 84 static void closeDocument(); 81 85 static void loadDocument( const char *fn ); 82 86 static void saveDocumentAs(); … … 96 100 static void cmdMinimize(); 97 101 static void cmdSwitchToFullscreen(); 102 static void createThumbnail( LuDocument *_doc ); 103 static bool isThumbNeeded( const char *fn ); 104 static void writeThumbnail( const char *fn ); 98 105 }; 99 106 -
trunk/Lucide/SOURCE/gui/luutils.cpp
r133 r153 42 42 #include <string.h> 43 43 #include <strstrea.h> 44 #include <stdlib.h> 44 45 #include <string> 45 46 … … 507 508 return z; 508 509 } 510 511 char *getTmpDir( char *buf ) 512 { 513 char *tmpenv = getenv( "TMP" ); 514 strcpy( buf, ( tmpenv == NULL ) ? ".\\" : tmpenv ); 515 if ( buf[ strlen( buf ) - 1 ] != '\\' ) { 516 strcat( buf, "\\" ); 517 } 518 return buf; 519 } -
trunk/Lucide/SOURCE/gui/luutils.h
r127 r153 72 72 73 73 char *newstrdup( const char *s ); 74 char *getTmpDir( char *buf ); 74 75 75 76 // Internationalization/Localization -
trunk/Lucide/SOURCE/gui/makefile
r152 r153 1 1 .autodepend 2 2 3 TEST= 03 TEST=1 4 4 VERSION=Beta 5 5 5 … … 37 37 fontsInfoDlg.obj docInfoDlg.obj findDlg.obj progressDlg.obj \ 38 38 aboutDlg.obj settingsDlg.obj lusettings.obj printDlg.obj \ 39 print.obj stbrowser.obj pipemon.obj 39 print.obj stbrowser.obj pipemon.obj lucidethumbs.obj 40 40 41 41 lucide.dll: $(OBJS) lucide.res … … 70 70 file $(OBJDIR)\stbrowser.obj 71 71 file $(OBJDIR)\pipemon.obj 72 file $(OBJDIR)\lucidethumbs.obj 72 73 name $(EXEDIR)\lucide 73 74 lib ..\plugins\ludoc\ludoc … … 125 126 messages.obj: messages.cpp 126 127 pipemon.obj: pipemon.cpp 128 lucidethumbs.obj: lucidethumbs.cpp 127 129 linklab.obj: linklab.c 128 130 wwbtn.obj: wwbtn.c -
trunk/Lucide/SOURCE/gui/messages.cpp
r129 r153 55 55 56 56 // Lucide messages 57 const char *MSGS_MAIN_WIN_TITLE = "MSGS_MAIN_WIN_TITLE"; 58 const char *MSGS_NO_SUIT_PLUG = "MSGS_NO_SUIT_PLUG"; 59 const char *MSGS_FILE_LOAD_ERROR = "MSGS_FILE_LOAD_ERROR"; 60 const char *MSGS_LOADING_DOCUMENT = "MSGS_LOADING_DOCUMENT"; 61 const char *MSGS_WARNING = "MSGS_WARNING"; 62 const char *MSGS_OVERWRITE_FILE = "MSGS_OVERWRITE_FILE"; 63 const char *MSGS_FILE_SAVE_ERROR = "MSGS_FILE_SAVE_ERROR"; 64 const char *MSGS_PAGE = "MSGS_PAGE"; 57 const char *MSGS_MAIN_WIN_TITLE = "MSGS_MAIN_WIN_TITLE"; 58 const char *MSGS_NO_SUIT_PLUG = "MSGS_NO_SUIT_PLUG"; 59 const char *MSGS_FILE_LOAD_ERROR = "MSGS_FILE_LOAD_ERROR"; 60 const char *MSGS_LOADING_DOCUMENT = "MSGS_LOADING_DOCUMENT"; 61 const char *MSGS_CREATING_THUMBNAIL = "MSGS_CREATING_THUMBNAIL"; 62 const char *MSGS_WARNING = "MSGS_WARNING"; 63 const char *MSGS_OVERWRITE_FILE = "MSGS_OVERWRITE_FILE"; 64 const char *MSGS_FILE_SAVE_ERROR = "MSGS_FILE_SAVE_ERROR"; 65 const char *MSGS_PAGE = "MSGS_PAGE"; 65 66 const char *MSGS_ERROR_STARTING_BROWSER = "MSGS_ERROR_STARTING_BROWSER"; 66 67 -
trunk/Lucide/SOURCE/gui/messages.h
r129 r153 59 59 extern const char *MSGS_FILE_LOAD_ERROR; 60 60 extern const char *MSGS_LOADING_DOCUMENT; 61 extern const char *MSGS_CREATING_THUMBNAIL; 61 62 extern const char *MSGS_WARNING; 62 63 extern const char *MSGS_OVERWRITE_FILE; -
trunk/Lucide/SOURCE/gui/print.cpp
r123 r153 305 305 double pheight = ( (double)( curForm.cy - mTop - mBottom ) / 25.4 ) * 72.0; 306 306 307 char tmpps[ CCHMAXPATHCOMP ] = ""; 308 char *tmpenv = getenv( "TMP" ); 309 strcpy( tmpps, ( tmpenv == NULL ) ? ".\\" : tmpenv ); 310 if ( tmpps[ strlen( tmpps ) - 1 ] != '\\' ) { 311 strcat( tmpps, "\\" ); 312 } 307 char tmpps[ CCHMAXPATH ] = ""; 308 getTmpDir( tmpps ); 313 309 strcat( tmpps, "TMPLUCID.PS" ); 314 310 -
trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.cpp
r144 r153 390 390 391 391 392 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuDjvuDocument *somSelf, 393 Environment *ev) 394 { 395 return TRUE; 396 } 397 398 392 399 SOM_Scope void SOMLINK somDefaultInit(LuDjvuDocument *somSelf, 393 400 som3InitCtrl* ctrl) -
trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.idl
r95 r153 33 33 exportToPostScript: override; 34 34 isFixedImage: override; 35 isCreateFileThumbnail: override; 35 36 36 37 somDefaultInit: override, init; -
trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.xh
r123 r153 192 192 boolean caseSensitive); 193 193 typedef somTP_LuDjvuDocument_searchText *somTD_LuDjvuDocument_searchText; 194 typedef boolean SOMLINK somTP_LuDjvuDocument_isCreateFileThumbnail(LuDjvuDocument *somSelf, Environment *ev); 195 typedef somTP_LuDjvuDocument_isCreateFileThumbnail *somTD_LuDjvuDocument_isCreateFileThumbnail; 194 196 typedef void SOMLINK somTP_LuDjvuDocument_somDefaultInit(LuDjvuDocument *somSelf, 195 197 som3InitCtrl* ctrl); … … 701 703 702 704 705 /* method: isCreateFileThumbnail */ 706 boolean isCreateFileThumbnail(Environment *ev) 707 { 708 return SOM_ResolveD(this,LuDjvuDocument,LuDocument,isCreateFileThumbnail) 709 (this, ev); 710 } 711 712 703 713 /* initializer method: somDefaultInit */ 704 714 void somDefaultInit(som3InitCtrl* ctrl) -
trunk/Lucide/SOURCE/plugins/ludjvu/ludjvu.xih
r123 r153 110 110 #define _getThumbnail somSelf->getThumbnail 111 111 #define _searchText somSelf->searchText 112 #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail 112 113 #define _somDefaultInit somSelf->somDefaultInit 113 114 #define _somDestruct somSelf->somDestruct … … 153 154 #define _exportToPostScript somSelf->exportToPostScript 154 155 #define _isFixedImage somSelf->isFixedImage 156 #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail 155 157 #define _somDefaultInit somSelf->somDefaultInit 156 158 #define _somDestruct somSelf->somDestruct … … 729 731 #define LuDjvuDocument_parents_isFixedImage(somSelf,ev) (\ 730 732 LuDjvuDocument_parent_LuDocument_isFixedImage(somSelf,ev)) 733 734 /* 735 * Overridden method: isCreateFileThumbnail 736 */ 737 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuDjvuDocument *somSelf, Environment *ev); 738 static char *somMN_LuDjvuDocumentisCreateFileThumbnail = "LuDocument::isCreateFileThumbnail"; 739 static somId somId_LuDjvuDocumentisCreateFileThumbnail = &somMN_LuDjvuDocumentisCreateFileThumbnail; 740 #ifdef somId_isCreateFileThumbnail 741 #undef somId_isCreateFileThumbnail 742 #else 743 #define somId_isCreateFileThumbnail somId_LuDjvuDocumentisCreateFileThumbnail 744 #endif 745 typedef boolean SOMLINK somTP_xih_LuDjvuDocument_isCreateFileThumbnail(LuDjvuDocument *somSelf, Environment *ev); 746 typedef somTP_xih_LuDjvuDocument_isCreateFileThumbnail *somTD_xih_LuDjvuDocument_isCreateFileThumbnail; 747 /* define the parent method call macro */ 748 static 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)) 731 772 732 773 /* … … 792 833 { &somId_LuDjvuDocumentisFixedImage, 793 834 (somMethodProc *) isFixedImage }, 835 { &somId_LuDjvuDocumentisCreateFileThumbnail, 836 (somMethodProc *) isCreateFileThumbnail }, 794 837 { &somId_LuDjvuDocumentsomDefaultInit, 795 838 (somMethodProc *) somDefaultInit }, … … 810 853 811 854 static somStaticClassInfo LuDjvuDocumentSCI = { 812 4, 0, 1 5, 0, 0, 0, /* layout version 4 */855 4, 0, 16, 0, 0, 0, /* layout version 4 */ 813 856 LuDjvuDocument_MajorVersion, LuDjvuDocument_MinorVersion, 814 857 sizeof(LuDjvuDocumentData), LuDjvuDocument_MaxNoMethods, 1, … … 856 899 LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion); /* static reference */ 857 900 result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuDjvuDocumentSCI, somtmajorVersion, somtminorVersion)); 901 LuDjvuDocument_parent_LuDocument_isCreateFileThumbnail_resolved = 902 somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.isCreateFileThumbnail); 858 903 LuDjvuDocument_parent_LuDocument_isFixedImage_resolved = 859 904 somParentNumResolve(LuDjvuDocumentCClassData.parentMtab, 1, LuDocumentClassData.isFixedImage); -
trunk/Lucide/SOURCE/plugins/ludoc/ludoc.cpp
r126 r153 430 430 431 431 432 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuDocument *somSelf, 433 Environment *ev) 434 { 435 return FALSE; 436 } 437 438 432 439 SOM_Scope void SOMLINK somDefaultInit(LuDocument *somSelf, som3InitCtrl* ctrl) 433 440 { -
trunk/Lucide/SOURCE/plugins/ludoc/ludoc.idl
r126 r153 23 23 typedef sequence <LuLinkMapping> LuLinkMapSequence; 24 24 typedef sequence <LuFontInfo> LuFontInfoSequence; 25 25 typedef somMToken asynchCallbackFn; 26 26 27 27 /** … … 66 66 /** 67 67 * isFixedImage 68 * 68 * 69 69 * Determines if upscaling doesn't improve image quality. 70 70 * Must return TRUE for fixed-size images/bitmaps. … … 158 158 * it used during printing. 159 159 **/ 160 void renderPageToPixbufAsynch( in long pagenum, in long src_x, 161 162 in double scale, in long rotation, in LuPixbuf pixbuf, 163 in asynchCallbackFn fnd, in asynchCallbackFn fna, 160 void renderPageToPixbufAsynch( in long pagenum, in long src_x, 161 in long src_y, in long src_width, in long src_height, 162 in double scale, in long rotation, in LuPixbuf pixbuf, 163 in asynchCallbackFn fnd, in asynchCallbackFn fna, 164 164 in somToken fndata ); 165 165 … … 173 173 * presentation space using renderPageToPS(). 174 174 * 175 * Note: You may not implement renderPageToPixbuf() if 175 * Note: You may not implement renderPageToPixbuf() if 176 176 * isRenderIntoPS() is TRUE. 177 177 * … … 179 179 **/ 180 180 boolean isRenderIntoPS(); 181 182 181 182 183 183 /** 184 184 * renderPageToPS … … 202 202 void renderPageToPS( in long pagenum, in long src_x, in long src_y, 203 203 in long src_width, in long src_height, 204 in double scale, in long rotation, 204 in double scale, in long rotation, 205 205 in unsigned long hps, in somMToken rect ); 206 206 … … 212 212 * 213 213 * Return value: TRUE if document contains text, which 214 * can be selected by user, searched, etc, 214 * can be selected by user, searched, etc, 215 215 * FALSE otherwise. 216 216 * Default return value: FALSE … … 349 349 * brkExport: pointer to boolean variable which must be checked 350 350 * during generating postscript, if it's TRUE - interrupt 351 * generation process. 351 * generation process. 352 352 * 353 353 * Create a new postscript file and render document to. … … 356 356 * Default return value: FALSE 357 357 **/ 358 boolean exportToPostScript( in string filename, 358 boolean exportToPostScript( in string filename, 359 359 in long first_page, in long last_page, 360 360 in double width, in double height, … … 514 514 515 515 516 /** 517 * isCreateFileThumbnail 518 * 519 * If this method returns TRUE, then GUI may create thumbnail for 520 * this file and write it into EAs. 521 * 522 * Default return value: FALSE 523 **/ 524 boolean isCreateFileThumbnail(); 525 526 516 527 #ifdef __SOMIDL__ 517 528 518 529 implementation 519 530 { 520 releaseorder: loadFile, getBpp, isScalable, isRotable, 521 getPageCount, getPageSize, renderPageToPixbuf, 531 releaseorder: loadFile, getBpp, isScalable, isRotable, 532 getPageCount, getPageSize, renderPageToPixbuf, 522 533 isAsynchRenderingSupported, renderPageToPixbufAsynch, 523 534 isRenderIntoPS, renderPageToPS, 524 535 isHaveText, getSelectionRectangles, freeRectangles, 525 536 getText, isHaveLinks, getLinkMapping, freeLinkMapping, 526 isSaveable, saveAs, 537 isSaveable, saveAs, 527 538 isPostScriptExportable, exportToPostScript, 528 539 isHaveFontInfo, getFontInfo, freeFontInfo, 529 540 isHaveIndex, getIndex, getDocumentInfo, 530 541 freeDocumentInfo, getThumbnailSize, getThumbnail, 531 searchText, isFixedImage ;542 searchText, isFixedImage, isCreateFileThumbnail; 532 543 533 544 -
trunk/Lucide/SOURCE/plugins/ludoc/ludoc.xh
r123 r153 175 175 somMToken searchText; 176 176 somMToken isFixedImage; 177 somMToken isCreateFileThumbnail; 177 178 } SOMDLINK LuDocumentClassData; 178 179 #define _LuDocument LuDocumentClassData.classObject … … 313 314 boolean caseSensitive); 314 315 typedef somTP_LuDocument_searchText *somTD_LuDocument_searchText; 316 typedef boolean SOMLINK somTP_LuDocument_isCreateFileThumbnail(LuDocument *somSelf, Environment *ev); 317 typedef somTP_LuDocument_isCreateFileThumbnail *somTD_LuDocument_isCreateFileThumbnail; 315 318 316 319 /* … … 822 825 823 826 827 /* method: isCreateFileThumbnail */ 828 boolean isCreateFileThumbnail(Environment *ev) 829 { 830 return SOM_ResolveD(this,LuDocument,LuDocument,isCreateFileThumbnail) 831 (this, ev); 832 } 833 834 824 835 /* 825 836 * Reintroduce inherited methods -
trunk/Lucide/SOURCE/plugins/ludoc/ludoc.xih
r123 r153 32 32 #endif 33 33 34 #define LuDocument_MaxNoMethods 3 334 #define LuDocument_MaxNoMethods 34 35 35 36 36 /* … … 122 122 #define _getThumbnail somSelf->getThumbnail 123 123 #define _searchText somSelf->searchText 124 #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail 124 125 #define _somDefaultInit somSelf->somDefaultInit 125 126 #endif … … 753 754 754 755 /* 756 * New Method: isCreateFileThumbnail 757 */ 758 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuDocument *somSelf, Environment *ev); 759 #ifndef somMN_isCreateFileThumbnail_defined 760 #define somMN_isCreateFileThumbnail_defined 761 static char *somMN_isCreateFileThumbnail = "isCreateFileThumbnail"; 762 static somId somId_isCreateFileThumbnail = &somMN_isCreateFileThumbnail; 763 #endif /* somMN_isCreateFileThumbnail_defined */ 764 #ifndef somDS_isCreateFileThumbnail_defined 765 #define somDS_isCreateFileThumbnail_defined 766 static char *somDS_isCreateFileThumbnail = "::LuDocument::isCreateFileThumbnail"; 767 static somId somDI_isCreateFileThumbnail = &somDS_isCreateFileThumbnail; 768 #endif /* somDS_isCreateFileThumbnail_defined */ 769 770 static somMethodInfo isCreateFileThumbnailMethodInfo = {10, 8, 0}; 771 772 static somApRdInfo isCreateFileThumbnailStubs = {0, 0, &isCreateFileThumbnailMethodInfo}; 773 774 /* 755 775 * Overridden method: somDefaultInit 756 776 */ … … 1063 1083 #else 1064 1084 (somMethodProc *) ((void*) &searchTextStubs) }, 1085 #endif 1086 { &LuDocumentClassData.isCreateFileThumbnail, 1087 &somId_isCreateFileThumbnail, 1088 &somDI_isCreateFileThumbnail, 1089 (somMethodProc *) isCreateFileThumbnail, 1090 (somMethodProc *)((void*)-1), 1091 #ifdef isCreateFileThumbnail_somApRdDefault 1092 0}, 1093 #else 1094 (somMethodProc *) ((void*) &isCreateFileThumbnailStubs) }, 1065 1095 #endif 1066 1096 }; … … 1097 1127 1098 1128 static somStaticClassInfo LuDocumentSCI = { 1099 4, 29, 1, 0, 4, 0, /* layout version 4 */1129 4, 30, 1, 0, 4, 0, /* layout version 4 */ 1100 1130 LuDocument_MajorVersion, LuDocument_MinorVersion, 1101 1131 0, LuDocument_MaxNoMethods, 1, … … 1120 1150 0, /* number of SelectInheritedMethods */ 1121 1151 0, /* no SelectInheritedMethods */ 1122 3 3, /* number of classdata entries */1152 34, /* number of classdata entries */ 1123 1153 0, /* no list provided currently */ 1124 1154 0, /* number of migrated methods */ -
trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.cpp
r144 r153 5 5 * SOM incremental update: 2.24 6 6 */ 7 7 8 8 9 /* … … 1312 1313 1313 1314 1315 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuPopplerDocument *somSelf, 1316 Environment *ev) 1317 { 1318 return TRUE; 1319 } 1320 1321 1314 1322 SOM_Scope void SOMLINK somDefaultInit(LuPopplerDocument *somSelf, 1315 1323 som3InitCtrl* ctrl) -
trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.idl
r95 r153 51 51 searchText: override; 52 52 isFixedImage: override; 53 isCreateFileThumbnail: override; 53 54 54 55 somDefaultInit: override, init; -
trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xh
r123 r153 192 192 boolean caseSensitive); 193 193 typedef somTP_LuPopplerDocument_searchText *somTD_LuPopplerDocument_searchText; 194 typedef boolean SOMLINK somTP_LuPopplerDocument_isCreateFileThumbnail(LuPopplerDocument *somSelf, Environment *ev); 195 typedef somTP_LuPopplerDocument_isCreateFileThumbnail *somTD_LuPopplerDocument_isCreateFileThumbnail; 194 196 typedef void SOMLINK somTP_LuPopplerDocument_somDefaultInit(LuPopplerDocument *somSelf, 195 197 som3InitCtrl* ctrl); … … 701 703 702 704 705 /* method: isCreateFileThumbnail */ 706 boolean isCreateFileThumbnail(Environment *ev) 707 { 708 return SOM_ResolveD(this,LuPopplerDocument,LuDocument,isCreateFileThumbnail) 709 (this, ev); 710 } 711 712 703 713 /* initializer method: somDefaultInit */ 704 714 void somDefaultInit(som3InitCtrl* ctrl) -
trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xih
r123 r153 110 110 #define _getThumbnail somSelf->getThumbnail 111 111 #define _searchText somSelf->searchText 112 #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail 112 113 #define _somDefaultInit somSelf->somDefaultInit 113 114 #define _somDestruct somSelf->somDestruct … … 167 168 #define _searchText somSelf->searchText 168 169 #define _isFixedImage somSelf->isFixedImage 170 #define _isCreateFileThumbnail somSelf->isCreateFileThumbnail 169 171 #define _somDefaultInit somSelf->somDefaultInit 170 172 #define _somDestruct somSelf->somDestruct … … 1327 1329 #define LuPopplerDocument_parents_isFixedImage(somSelf,ev) (\ 1328 1330 LuPopplerDocument_parent_LuDocument_isFixedImage(somSelf,ev)) 1331 1332 /* 1333 * Overridden method: isCreateFileThumbnail 1334 */ 1335 SOM_Scope boolean SOMLINK isCreateFileThumbnail(LuPopplerDocument *somSelf, Environment *ev); 1336 static char *somMN_LuPopplerDocumentisCreateFileThumbnail = "LuDocument::isCreateFileThumbnail"; 1337 static somId somId_LuPopplerDocumentisCreateFileThumbnail = &somMN_LuPopplerDocumentisCreateFileThumbnail; 1338 #ifdef somId_isCreateFileThumbnail 1339 #undef somId_isCreateFileThumbnail 1340 #else 1341 #define somId_isCreateFileThumbnail somId_LuPopplerDocumentisCreateFileThumbnail 1342 #endif 1343 typedef boolean SOMLINK somTP_xih_LuPopplerDocument_isCreateFileThumbnail(LuPopplerDocument *somSelf, Environment *ev); 1344 typedef somTP_xih_LuPopplerDocument_isCreateFileThumbnail *somTD_xih_LuPopplerDocument_isCreateFileThumbnail; 1345 /* define the parent method call macro */ 1346 static 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)) 1329 1370 1330 1371 /* … … 1418 1459 { &somId_LuPopplerDocumentisFixedImage, 1419 1460 (somMethodProc *) isFixedImage }, 1461 { &somId_LuPopplerDocumentisCreateFileThumbnail, 1462 (somMethodProc *) isCreateFileThumbnail }, 1420 1463 { &somId_LuPopplerDocumentsomDefaultInit, 1421 1464 (somMethodProc *) somDefaultInit }, … … 1436 1479 1437 1480 static somStaticClassInfo LuPopplerDocumentSCI = { 1438 4, 0, 29, 0, 0, 0, /* layout version 4 */1481 4, 0, 30, 0, 0, 0, /* layout version 4 */ 1439 1482 LuPopplerDocument_MajorVersion, LuPopplerDocument_MinorVersion, 1440 1483 sizeof(LuPopplerDocumentData), LuPopplerDocument_MaxNoMethods, 1, … … 1482 1525 LuDocumentNewClass(LuDocument_MajorVersion,LuDocument_MinorVersion); /* static reference */ 1483 1526 result = (SOMClass*)((void*)somBuildClass(0xFFFFFFFF,&LuPopplerDocumentSCI, somtmajorVersion, somtminorVersion)); 1527 LuPopplerDocument_parent_LuDocument_isCreateFileThumbnail_resolved = 1528 somParentNumResolve(LuPopplerDocumentCClassData.parentMtab, 1, LuDocumentClassData.isCreateFileThumbnail); 1484 1529 LuPopplerDocument_parent_LuDocument_isFixedImage_resolved = 1485 1530 somParentNumResolve(LuPopplerDocumentCClassData.parentMtab, 1, LuDocumentClassData.isFixedImage); -
trunk/Lucide/changelog
r152 r153 1 1 Beta-5: 2 2 - Pipe commands, see readme for details. 3 - Writes into EA thumbnail of first page of document. 3 4 - PDF plugin: freetype library updated to version 2.2.1. 4 5 - Updated NLS-files: Spanish, German...
Note: See TracChangeset
for help on using the changeset viewer.