Example #1
0
 function OOoManifest($dir)
 {
     parent::absOOo();
     $this->DIRXML = $dir;
     $this->FILENAME = "META-INF/manifest.xml";
     $this->xml = new DOMIT_Document();
     $this->xml->setDocType("<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">");
 }
Example #2
0
 /**
      * OOoTable::OOoTable()
      * 
      * @param $col
      * @param $argStyle  = array(
 				"src"			=> "E:/_WebDev/www/cOOlWare2/cache/c_projekte.png",
 				"z-index"		=> "",
 				"height"		=> "",
 				"width"			=> "",
 				"anchorType"	=> "",		//(as-char|paragraph)
 				"horizontal-pos	=> "center",
 				"horizontal-rel	=> "paragraph",
 				"mirror			=> "none",
 				"clip			=> "rect(0cm 0cm 0cm 0cm)",
 				"luminance		=> "0%",
 				"contrast		=> "0%",
 				"red			=> "0%",
 				"green			=> "0%",
 				"blue			=> "0%",
 				"gamma			=> "1",
 				"color-inversion=> "false",
 				"transparency	=> "0%",
 				"color-mode		=> "standard"
 				)
      * @return none
      **/
 function OOoImg($argStyle)
 {
     parent::absOOo();
     if (is_array($argStyle)) {
         $this->verifIntegrite($argStyle, "imgStyle");
         $this->_styleImg = $argStyle;
     } else {
         $this->ErrorTracker(4, "L'argument de colSpan n'est pas un tableu ", 'colSpan', __FILE__, __LINE__);
     }
     $this->xml = new DOMIT_Document();
 }
Example #3
0
 /**
  * OOoMeta::OOoMeta(), construteur. méthode d'instanciation des paramètre nécessaire au bon fonctionnement de cette class
  * 
  * @param $dir
  * @return none
  **/
 function OOoMeta($dir)
 {
     parent::absOOo();
     $this->DIRXML = $dir;
     $this->FILENAME = "meta.xml";
     $file = new File($dir . "/" . $this->FILENAME);
     if ($file->exists()) {
         $this->xml = new DOMIT_Document();
         $this->xml->loadXML($dir . "/" . $this->FILENAME, false);
     } else {
         $this->xml = new DOMIT_Document();
         $this->create();
     }
     $this->xml->setDocType("<!DOCTYPE office:document-meta PUBLIC \"-//OpenOffice.org//DTD OfficeDocument 1.0//EN\" \"office.dtd\">");
 }
Example #4
0
 /**
      * OOoTable::OOoTable()
      * 
      * @param $col
      * @param $argStyle  = array(
 				"img"			=> array(
 						"scr"		=> "E:/_WebDev/www/cOOlWare2/cache/c_projekte.png",
 						"type"		=> "no-repeat",
 						"position"	=> "bottom right"),
 				"marginL"		=> "",
 				"marginR"		=> "",
 				"marginB"		=> "",
 				"marginT"		=> "",
 				"align"			=> "",	//(margins|center)
 				"width"			=> "",
 				"bgColor"		=> ""
 				)
      * @return 
      **/
 function OOoTable($column, $row, $argStyle)
 {
     parent::absOOo();
     $this->_column = $column;
     $this->_row = $row;
     $this->_lignCur = 0;
     for ($i = 0; $i < $row; $i++) {
         for ($j; $j < $column; $j++) {
             $this->_table[$i][$j] = NULL;
         }
     }
     $this->verifIntegrite($argStyle, "tableStyle");
     if (is_array($argStyle)) {
         $this->_style = $argStyle;
     } else {
         $this->ErrorTracker(4, "L'argument de colSpan n'est pas un tableu ", 'OOoTable', __FILE__, __LINE__);
     }
     if (isset($this->_style["widthRow"]) && count($this->_style["widthRow"]) != $column) {
         $this->ErrorTracker(4, "Error de largeurs de colonnes", 'OOoTable', __FILE__, __LINE__);
     }
     $this->xml = new DOMIT_Document();
 }
Example #5
0
 function save()
 {
     parent::save();
     $this->style->save();
 }