|
@@ 33-40 (lines=8) @@
|
| 30 |
|
return $this; |
| 31 |
|
} |
| 32 |
|
|
| 33 |
|
public function setRowspan($rowspan){ |
| 34 |
|
$to=min($this->_container->count(),$this->_row+$rowspan-1); |
| 35 |
|
for($i=$to;$i>$this->_row;$i--){ |
| 36 |
|
$this->_container->delete($this->_row+1,$this->_col); |
| 37 |
|
} |
| 38 |
|
$this->setProperty("rowspan", $rowspan); |
| 39 |
|
return $this->_container; |
| 40 |
|
} |
| 41 |
|
|
| 42 |
|
public function mergeRow(){ |
| 43 |
|
return $this->setRowspan($this->_container->count()); |
|
@@ 50-57 (lines=8) @@
|
| 47 |
|
return $this->setColspan($this->_container->getRow($this->_row)->count()); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function setColspan($colspan){ |
| 51 |
|
$to=min($this->_container->getRow($this->_row)->count(),$this->_col+$colspan-1); |
| 52 |
|
for($i=$to;$i>$this->_col;$i--){ |
| 53 |
|
$this->_container->delete($this->_row,$this->_col+1); |
| 54 |
|
} |
| 55 |
|
$this->setProperty("colspan", $colspan); |
| 56 |
|
return $this->_container; |
| 57 |
|
} |
| 58 |
|
} |