示例#1
0
 /**
  * @param Cell $cell
  * @param string $url
  * @param string $str
  * @param null $format
  */
 protected function writeUrlLabel(Cell $cell, $url, $str, $format = null)
 {
     if (!$format) {
         $format = $this->urlFormat;
     }
     if ($str == '') {
         $str = $url;
     }
     $this->writeString($cell->getRow(), $cell->getCol(), $str, $format);
 }
示例#2
0
 /**
  * Include specified cell
  * @param Cell $cell
  * @return Range
  */
 public function expand(Cell $cell)
 {
     if ($cell->getRow() > $this->rowTo) {
         $this->setRowTo($cell->getRow());
     }
     if ($cell->getCol() > $this->colTo) {
         $this->setColTo($cell->getCol());
     }
     return $this;
 }