From: kramm Date: Sat, 10 Sep 2005 12:31:06 +0000 (+0000) Subject: get() now takes a "name" parameter X-Git-Tag: xpdf-3-01~67 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=bcc4020a983e4f2cdaa13e2b0bc110a775fa5b0e;p=swftools.git get() now takes a "name" parameter --- diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index 98a6db2..24db0e9 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -163,7 +163,7 @@ public: virtual void startPage(int pageNum, GfxState *state, double x1, double y1, double x2, double y2) ; void endframe(); - void* getSWF(); + void* get(char*name); //----- get info about output device @@ -1020,10 +1020,10 @@ int SWFOutputDev::save(char*filename) finish(); return result->save(result, filename); } -void* SWFOutputDev::getSWF() +void* SWFOutputDev::get(char*name) { finish(); - return result->get(result, "swf"); + return result->get(result, name); } SWFOutputDev::~SWFOutputDev() @@ -2858,10 +2858,10 @@ int swf_output_save(swf_output_t*swf, char*filename) return ret; } -void* swf_output_get(swf_output_t*swf) +void* swf_output_get(swf_output_t*swf,char*name) { swf_output_internal_t*i= (swf_output_internal_t*)swf->internal; - void* ret = i->outputDev->getSWF(); + void* ret = i->outputDev->get(name); return ret; } diff --git a/pdf2swf/SWFOutputDev.h b/pdf2swf/SWFOutputDev.h index 4ee8382..e12930b 100644 --- a/pdf2swf/SWFOutputDev.h +++ b/pdf2swf/SWFOutputDev.h @@ -53,7 +53,7 @@ void swf_output_startframe(swf_output_t*, int width, int height); void swf_output_endframe(swf_output_t*); void swf_output_setparameter(swf_output_t*, char*name, char*value); int swf_output_save(swf_output_t*, char*filename); -void* swf_output_get(swf_output_t*); +void* swf_output_get(swf_output_t*, char*name); void swf_output_preparepage(swf_output_t*, int pdfpage, int outputpage); void swf_output_destroy(swf_output_t*page);