From: kramm Date: Fri, 10 Sep 2004 14:24:52 +0000 (+0000) Subject: removed most set() functions. All parameters are now set X-Git-Tag: xpdf-3-00~15 X-Git-Url: http://git.asbjorn.it/?a=commitdiff_plain;h=55675b798f2079ce195a300c965c43178fe06064;p=swftools.git removed most set() functions. All parameters are now set via setparameter(). --- diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index ad411a9..0b79336 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -1795,27 +1795,7 @@ void pdfswf_addfont(char*filename) fonts[fontnum++] = f; } -/* TODO: get rid of this */ -void pdfswf_drawonlyshapes() { pdfswf_setparameter("drawonlyshapes", "1"); } -void pdfswf_ignoredraworder() { pdfswf_setparameter("ignoredraworder", "1"); } -void pdfswf_linksopennewwindow() { pdfswf_setparameter("opennewwindow", "1"); } -void pdfswf_storeallcharacters() { pdfswf_setparameter("storeallcharacters", "1"); } -void pdfswf_enablezlib() { pdfswf_setparameter("enablezlib", "1"); } void pdfswf_setoutputfilename(char*_filename) { swffilename = _filename; } -void pdfswf_insertstop() { pdfswf_setparameter("insertstoptag", "1"); } - -void pdfswf_jpegquality(int val) { - char tmp[32]; - sprintf(tmp, "%d", val); - pdfswf_setparameter("jpegquality", tmp); -} -void pdfswf_setversion(int n) { - char tmp[32]; - sprintf(tmp, "%d", n); - pdfswf_setparameter("flashversion", tmp); -} - - void pdfswf_convertpage(int page) { diff --git a/pdf2swf/SWFOutputDev.h b/pdf2swf/SWFOutputDev.h index 2348da2..87b3e11 100644 --- a/pdf2swf/SWFOutputDev.h +++ b/pdf2swf/SWFOutputDev.h @@ -27,16 +27,10 @@ void pdfswf_setparameter(char*name, char*value); void pdfswf_addfont(char*filename); void pdfswf_setoutputfilename(char*filename); -void pdfswf_drawonlyshapes(); -void pdfswf_enablezlib(); -void pdfswf_ignoredraworder(); -void pdfswf_linksopennewwindow(); + +void pdfswf_setversion(int); void pdfswf_jpegquality(int); void pdfswf_performconversion(); -void pdfswf_storeallcharacters(); -void pdfswf_insertstop(); -void pdfswf_setversion(int); - int pdfswf_numpages(); void pdfswf_convertpage(int page) ;