Ignore:
Timestamp:
Aug 3, 2006, 6:24:49 PM (15 years ago)
Author:
Eugene Romanenko
Message:

postscript printing updates, ability to abort PS generation, gcc support changes

Location:
trunk/Lucide/SOURCE/plugins/lupoppler
Files:
3 edited

Legend:

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

    r91 r92  
    682682                                    long first_page, long last_page,
    683683                                    double width, double height,
    684                                     boolean duplex)
     684                                    boolean duplex, boolean* brkExport)
    685685{
    686686    if ( filename == NULL ) {
     
    705705        }
    706706
    707     for ( long i = first_page; i <= last_page; i++ ) {
     707        if ( *brkExport ) {
     708                delete out;
     709        return TRUE;
     710        }
     711       
     712    for ( long i = first_page; (i <= last_page) && !(*brkExport); i++ ) {
    708713        doc->displayPage( out, i + 1, 72.0, 72.0, 0, gFalse, gTrue, gFalse );
    709714    }
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xh

    r91 r92  
    157157                double width,
    158158                double height,
    159                 boolean duplex);
     159                boolean duplex,
     160                boolean* brkExport);
    160161typedef somTP_LuPopplerDocument_exportToPostScript *somTD_LuPopplerDocument_exportToPostScript;
    161162typedef boolean   SOMLINK somTP_LuPopplerDocument_isHaveFontInfo(LuPopplerDocument *somSelf, Environment *ev);
     
    593594                double width,
    594595                double height,
    595                 boolean duplex)
     596                boolean duplex,
     597                boolean* brkExport)
    596598{
    597599   return SOM_ResolveD(this,LuPopplerDocument,LuDocument,exportToPostScript)
    598         (this, ev,filename,first_page,last_page,width,height,duplex);
     600        (this, ev,filename,first_page,last_page,width,height,duplex,brkExport);
    599601}
    600602
  • trunk/Lucide/SOURCE/plugins/lupoppler/lupoppler.xih

    r91 r92  
    915915                double width,
    916916                double height,
    917                 boolean duplex);
     917                boolean duplex,
     918                boolean* brkExport);
    918919static char *somMN_LuPopplerDocumentexportToPostScript = "LuDocument::exportToPostScript";
    919920static somId somId_LuPopplerDocumentexportToPostScript = &somMN_LuPopplerDocumentexportToPostScript;
     
    929930                double width,
    930931                double height,
    931                 boolean duplex);
     932                boolean duplex,
     933                boolean* brkExport);
    932934typedef somTP_xih_LuPopplerDocument_exportToPostScript *somTD_xih_LuPopplerDocument_exportToPostScript;
    933935/* define the parent method call macro */
    934936static somMethodProc* LuPopplerDocument_parent_LuDocument_exportToPostScript_resolved;
    935 #define LuPopplerDocument_parent_LuDocument_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex) \
     937#define LuPopplerDocument_parent_LuDocument_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex,brkExport) \
    936938  ((( somTD_xih_LuPopplerDocument_exportToPostScript ) \
    937939      LuPopplerDocument_parent_LuDocument_exportToPostScript_resolved) \
    938         (somSelf,ev,filename,first_page,last_page,width,height,duplex))
     940        (somSelf,ev,filename,first_page,last_page,width,height,duplex,brkExport))
    939941/* define a variety of (possibly ambiguous) short forms */
    940942#ifndef SOMGD_pmc_parent_exportToPostScript
     
    954956  #endif
    955957#endif
    956 #define LuPopplerDocument_parents_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex) (\
    957    LuPopplerDocument_parent_LuDocument_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex))
     958#define LuPopplerDocument_parents_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex,brkExport) (\
     959   LuPopplerDocument_parent_LuDocument_exportToPostScript(somSelf,ev,filename,first_page,last_page,width,height,duplex,brkExport))
    958960
    959961/*
Note: See TracChangeset for help on using the changeset viewer.