From d9c572fb56da5b3fb32b28d409e62f85dd5bc9b3 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Wed, 9 Apr 2008 13:26:59 +0200 Subject: [PATCH] [svn r14801] oogie : add a function to set the size of the slides --- main/newscorm/openoffice_presentation.class.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/main/newscorm/openoffice_presentation.class.php b/main/newscorm/openoffice_presentation.class.php index 9e6311b266..35efcd1b3a 100644 --- a/main/newscorm/openoffice_presentation.class.php +++ b/main/newscorm/openoffice_presentation.class.php @@ -74,10 +74,17 @@ class OpenofficePresentation extends OpenofficeDocument { } function add_command_parameters(){ + + if(empty($this->slide_width) || empty($this->slide_height)) + list($this->slide_width, $this->slide_height) = explode('x',api_get_setting('service_ppt2lp','size')); + return ' -w '.$this->slide_width.' -h '.$this->slide_height.' -d oogie'; - list($slide_width, $slide_height) = explode('x',api_get_setting('service_ppt2lp','size')); - return " -w $slide_width -h $slide_height -d oogie"; + } + function set_slide_size($width,$height) + { + $this->slide_width = $width; + $this->slide_height = $height; } function add_docs_to_visio ($files=array()){