[svn r14801] oogie : add a function to set the size of the slides

skala
Eric Marguin 18 years ago
parent 2f90498412
commit d9c572fb56
  1. 11
      main/newscorm/openoffice_presentation.class.php

@ -75,11 +75,18 @@ class OpenofficePresentation extends OpenofficeDocument {
function add_command_parameters(){ function add_command_parameters(){
list($slide_width, $slide_height) = explode('x',api_get_setting('service_ppt2lp','size')); if(empty($this->slide_width) || empty($this->slide_height))
return " -w $slide_width -h $slide_height -d oogie"; 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';
} }
function set_slide_size($width,$height)
{
$this->slide_width = $width;
$this->slide_height = $height;
}
function add_docs_to_visio ($files=array()){ function add_docs_to_visio ($files=array()){
global $_course; global $_course;

Loading…
Cancel
Save